diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 00000000..9d86450b --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Raoul Hecky diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..94a9ed02 --- /dev/null +++ b/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 00000000..c013b7d1 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,104 @@ +24-05-2011 Raoul Hecky + + * Ajout des conditions sur les sorties + +30-06-2011 Raoul Hecky + + * Correction du log des temperatures, ajout de son ID + * Correction de la valeur d'un timer au demarrage => true, permet de rester + coherent par rapport au fonctionnement des timer (etat bas pendant la duree + d'attente du timer, etat haut pendant le reste du temps). + +08-29-2011 Raoul Hecky + + * Ajout d'un systeme de rapport de bug automatique. + +28-09-2011 Raoul Hecky + + * Corrige le probleme de reconnexion aux automates en la gardant ouverte + +10-11-2011 + + * Correction de la lecture des valeurs DALI. + * Correction d'une fuite memoire. + * Correction des logs des WIAnalog + * Correction d'un bug possible dans la gestion des requetes automate + * Correction du bug empechant le toggle sur un WODaliRVB + +22-11-2011 + + * Correction d'un plantage dans les ActionTouchscreen. + +23-11-2011 + + * Support du Squeezecenter 7.7.x + * Ajout d'une commande "getitembasic?" pour recuperer les items de la + playlist. + +14-12-2011 Raoul Hecky + + * Correction du port utilise par le squeezecenter. Le parametre "port" + disparait au profit de "port_cli" et "port_web". + +27-12-2011 Raoul Hecky + + * Remise a zero de la valeur d'un WIDigitalTriple apres relachement du + bouton. + * Correction de la lecture des WIDigitalBP + * Lancement des regles au demarrage apres avoir lu les entrees/sorties + +16-01-2012 Raoul Hecky + + * Correction d'un potentiel probleme lors de la lecture d'un + interrupteur + +17-01-2012 Raoul Hecky + + * L'enregistrement des variables sauvegardes se fait dans un fichier + separe (iostates.cache) + * L'enregistrement des fichiers de configuration est maintenant plus + sur, afin d'eviter une corruption. + +26-01-2012 Raoul Hecky + + * Release Firmware 1.1.19 + +01-02-2012 Raoul Hecky + + * Ajout du support des Amplificateur Audio/Video Pioneer et Denon. + +11-02-2012 Raoul Hecky + + * Correction des valeurs de temperature negative + +27-02-2012 Raoul Hecky + + * Correction d'un probleme de sauvegarde de la configuration des + scenarios. + * Release Firmware 1.1.20 + +15-03-2012 Raoul Hecky + + * Correction d'un probleme qui empechait la lecture correcte des + entrees WIDigitalBP au demarrage. + * Correction des actions "impulse up x" et "impulse down x" sur + des sorties WOVolet et WOVoletSmart + +28-03-2012 Raoul Hecky + + * Ajout des commandes de volume sur les AudioOutput + +29-03-2012 Raoul Hecky + + * Correction d'un bug possible dans la connexion reseau + * Ajout du support des Amplificateurs A/V Onkyo/Integra (eISCP) + +03-04-2012 Raoul Hecky + + * Ajout du support des ammplificateurs A/V Marantz + +23-07-2012 Raoul Hecky + + * Correction d'un bug sur la lecture des entrees KNX/STD lorsqu'on + utilise les deux avec les memes adresses. + diff --git a/INSTALL b/INSTALL new file mode 100644 index 00000000..a1e89e18 --- /dev/null +++ b/INSTALL @@ -0,0 +1,370 @@ +Installation Instructions +************************* + +Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, +Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + Briefly, the shell commands `./configure; make; make install' should +configure, build, and install this package. The following +more-detailed instructions are generic; see the `README' file for +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. Caching is +disabled by default to prevent problems with accidental use of stale +cache files. + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You need `configure.ac' if +you want to change it or regenerate `configure' using a newer version +of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. 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. + + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. + + With a non-GNU `make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use `make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + +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', where PREFIX must be an +absolute file name. + + 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. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= + + 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'. + + 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. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + HP-UX `make' updates targets which have the same time stamps as +their prerequisites, which makes it generally unusable when shipped +generated files such as `configure' are involved. Use GNU `make' +instead. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--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. + +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..92bc7b03 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,30 @@ +## Process this file with automake to produce Makefile.in + +SUBDIRS = src data + +MAINTAINERCLEANFILES = \ +Makefile.in \ +aclocal.m4 \ +config.guess \ +config.h.in \ +config.h.in~ \ +config.sub \ +configure \ +depcomp \ +install-sh \ +ltconfig \ +ltmain.sh \ +missing \ +$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \ +$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \ +m4/libtool.m4 \ +m4/lt~obsolete.m4 \ +m4/ltoptions.m4 \ +m4/ltsugar.m4 \ +m4/ltversion.m4 + +EXTRA_DIST = \ +AUTHORS \ +COPYING \ +README \ +autogen.sh diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 00000000..9040bd42 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,791 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = . +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 ltmain.sh \ + missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = src data +MAINTAINERCLEANFILES = \ +Makefile.in \ +aclocal.m4 \ +config.guess \ +config.h.in \ +config.h.in~ \ +config.sub \ +configure \ +depcomp \ +install-sh \ +ltconfig \ +ltmain.sh \ +missing \ +$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \ +$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \ +m4/libtool.m4 \ +m4/lt~obsolete.m4 \ +m4/ltoptions.m4 \ +m4/ltsugar.m4 \ +m4/ltversion.m4 + +EXTRA_DIST = \ +AUTHORS \ +COPYING \ +README \ +autogen.sh + +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @if test ! -f $@; then rm -f stamp-h1; else :; fi + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile 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: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ + ctags-recursive install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ + dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \ + dist-zip distcheck distclean distclean-generic distclean-hdr \ + distclean-libtool distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-recursive uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 00000000..e69de29b diff --git a/README b/README new file mode 100644 index 00000000..9a7d9335 --- /dev/null +++ b/README @@ -0,0 +1,12 @@ +[Calaos Home](http://www.calaos.fr) +============= + +Calaos is a powerful home automation software. It features a complete set of part to automate your house from lights to shutter or even music or cameras. +Calaos uses the Enlightenment Foundation Libraries to power its amazing touchscreen interface. + +This is the base package for the server and the touchscreen client. + +Contributing +------------ + +Want to contribute? Great! There are many ways to contribute, come get in touch with us on #calaos on freenode. diff --git a/README.md b/README.md deleted file mode 100644 index 137cbf4c..00000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -calaos_base -=========== - -Calaos server and touchscreen interface \ No newline at end of file diff --git a/TODO b/TODO new file mode 100644 index 00000000..e69de29b diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 00000000..5bd259df --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,9794 @@ +# generated automatically by aclocal 1.11.3 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, +# Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, +[m4_warning([this file was generated for autoconf 2.68. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) + +# serial 57 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_defun([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl +dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from `configure', and `config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# `config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain="$ac_aux_dir/ltmain.sh" +])# _LT_PROG_LTMAIN + + + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the `libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to `config.status' so that its +# declaration there will have the same value as in `configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags="_LT_TAGS"dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into `config.status', and then the shell code to quote escape them in +# for loops in `config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# `#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test $lt_write_fail = 0 && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +_LT_COPYING +_LT_LIBTOOL_TAGS + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + _LT_PROG_REPLACE_SHELLFNS + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +m4_ifndef([AC_PROG_GO], [ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_GO. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +m4_defun([AC_PROG_GO], +[AC_LANG_PUSH(Go)dnl +AC_ARG_VAR([GOC], [Go compiler command])dnl +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl +_AC_ARG_VAR_LDFLAGS()dnl +AC_CHECK_TOOL(GOC, gccgo) +if test -z "$GOC"; then + if test -n "$ac_tool_prefix"; then + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) + fi +fi +if test -z "$GOC"; then + AC_CHECK_PROG(GOC, gccgo, gccgo, false) +fi +])#m4_defun +])#m4_ifndef + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([AC_PROG_GO], + [LT_LANG(GO)], + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES([TAG]) +# --------------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + m4_if([$1], [CXX], +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script which will find a shell with a builtin +# printf (which we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case "$ECHO" in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +: ${AR_FLAGS=cru} +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links="nottested" +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", + [Define to the sub-directory in which libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[23]].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[[3-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], + [Run-time system search path for libraries]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program which can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program which can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], + [lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest*]) +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ F* | *Sun*Fortran*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Intel*\ [[CF]]*Compiler*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + *Portland\ Group*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + _LT_TAGVAR(link_all_deplibs, $1)=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS="$save_LDFLAGS"]) + if test "$lt_cv_irix_exported_symbol" = yes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting ${shlibpath_var} if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report which library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC="$lt_save_CC" +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + gnu*) + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + + _LT_TAGVAR(GCC, $1)="$GXX" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF +package foo +func foo() { +} +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)="${prev}${p}" + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)="$p" + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)="$p" + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test "X$F77" = "Xno"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_F77" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$G77" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" + CFLAGS="$lt_save_CFLAGS" +fi # test "$_lt_disable_F77" != yes + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test "X$FC" = "Xno"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_FC" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test "$_lt_disable_FC" != yes + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_GO_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Go compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GO_CONFIG], +[AC_REQUIRE([LT_PROG_GO])dnl +AC_LANG_SAVE + +# Source file extension for Go test sources. +ac_ext=go + +# Object file extension for compiled Go test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="package main; func main() { }" + +# Code to be used in simple link tests +lt_simple_link_test_code='package main; func main() { }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GOC-"gccgo"} +CFLAGS=$GOFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# Go did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GO_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_GO +# ---------- +AC_DEFUN([LT_PROG_GO], +[AC_CHECK_TOOL(GOC, gccgo,) +]) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # + +m4_defun([AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +AC_MSG_RESULT([$xsi_shell]) +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) + +AC_MSG_CHECKING([whether the shell understands "+="]) +lt_shell_append=no +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +AC_MSG_RESULT([$lt_shell_append]) +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) +# ------------------------------------------------------ +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. +m4_defun([_LT_PROG_FUNCTION_REPLACE], +[dnl { +sed -e '/^$1 ()$/,/^} # $1 /c\ +$1 ()\ +{\ +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: +]) + + +# _LT_PROG_REPLACE_SHELLFNS +# ------------------------- +# Replace existing portable implementations of several shell functions with +# equivalent extended shell implementations where those features are available.. +m4_defun([_LT_PROG_REPLACE_SHELLFNS], +[if test x"$xsi_shell" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl + func_split_long_opt_name=${1%%=*} + func_split_long_opt_arg=${1#*=}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) + + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) + + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) + + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) +fi + +if test x"$lt_shell_append" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) + + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl + func_quote_for_eval "${2}" +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ + eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) +fi +]) + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine which file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS + +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 7 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the `static' and +# `disable-static' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the `fast-install' +# and `disable-fast-install' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the `pic-only' and `no-pic' +# LT_INIT options. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [pic_mode=default]) + +test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) + +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) + +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 3337 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4.2]) +m4_define([LT_PACKAGE_REVISION], [1.3337]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4.2' +macro_revision='1.3337' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) + +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) + +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 1 (pkg-config-0.24) +# +# Copyright © 2004 Scott James Remnant . +# +# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# ---------------------------------- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi +fi[]dnl +])# PKG_PROG_PKG_CONFIG + +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +# +# Check to see whether a particular set of modules exists. Similar +# to PKG_CHECK_MODULES(), but does not set variables or print errors. +# +# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +# only at the first occurence in configure.ac, so if the first place +# it's called might be skipped (such as if it is within an "if", you +# have to call PKG_CHECK_EXISTS manually +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_default([$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +# --------------------------------------------- +m4_define([_PKG_CONFIG], +[if test -n "$$1"; then + pkg_cv_[]$1="$$1" + elif test -n "$PKG_CONFIG"; then + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], + [pkg_failed=yes]) + else + pkg_failed=untried +fi[]dnl +])# _PKG_CONFIG + +# _PKG_SHORT_ERRORS_SUPPORTED +# ----------------------------- +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])# _PKG_SHORT_ERRORS_SUPPORTED + + +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# +# Note that if there is a possibility the first call to +# PKG_CHECK_MODULES might not happen, you should be sure to include an +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +# +# +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + m4_default([$4], [AC_MSG_ERROR( +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT])[]dnl + ]) +elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])[]dnl + ]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + $3 +fi[]dnl +])# PKG_CHECK_MODULES + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.3], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.3])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, +# 2010, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --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='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, +# Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software +# Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2009, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few `make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using `$V' instead of `$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 00000000..a49af3ee --- /dev/null +++ b/autogen.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +rm -rf autom4te.cache +rm -f aclocal.m4 ltmain.sh + +autoreconf -f -i + +if [ -z "$NOCONFIGURE" ]; then + ./configure "$@" +fi diff --git a/autom4te.cache/output.0 b/autom4te.cache/output.0 new file mode 100644 index 00000000..e54bcd79 --- /dev/null +++ b/autom4te.cache/output.0 @@ -0,0 +1,19716 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.68 for calaos 2.0. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +@%:@ Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: raoul.hecky@gmail.com about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in @%:@( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='calaos' +PACKAGE_TARNAME='calaos' +PACKAGE_VERSION='2.0' +PACKAGE_STRING='calaos 2.0' +PACKAGE_BUGREPORT='raoul.hecky@gmail.com' +PACKAGE_URL='' + +ac_unique_file="configure.ac" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIB@&t@OBJS +requirements_calaos_home +CALAOS_HOME_LIBS +CALAOS_HOME_CFLAGS +requirements_calaos_server +CALAOS_SERVER_LIBS +CALAOS_SERVER_CFLAGS +requirements_calaos_common +CALAOS_COMMON_LIBS +CALAOS_COMMON_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +CXXCPP +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +OBJDUMP +DLLTOOL +AS +EGREP +GREP +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_largefile +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_assert +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +CXX +CXXFLAGS +CCC +CXXCPP +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +CALAOS_COMMON_CFLAGS +CALAOS_COMMON_LIBS +CALAOS_SERVER_CFLAGS +CALAOS_SERVER_LIBS +CALAOS_HOME_CFLAGS +CALAOS_HOME_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used" >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures calaos 2.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/calaos@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of calaos 2.0:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-largefile omit support for large files + --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ + --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ + --enable-fast-install@<:@=PKGS@:>@ + optimize for fast installation @<:@default=yes@:>@ + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-assert turn off assertions + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use + both@:>@ + --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + CALAOS_COMMON_CFLAGS + C compiler flags for CALAOS_COMMON, overriding pkg-config + CALAOS_COMMON_LIBS + linker flags for CALAOS_COMMON, overriding pkg-config + CALAOS_SERVER_CFLAGS + C compiler flags for CALAOS_SERVER, overriding pkg-config + CALAOS_SERVER_LIBS + linker flags for CALAOS_SERVER, overriding pkg-config + CALAOS_HOME_CFLAGS + C compiler flags for CALAOS_HOME, overriding pkg-config + CALAOS_HOME_LIBS + linker flags for CALAOS_HOME, overriding pkg-config + +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 +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +calaos configure 2.0 +generated by GNU Autoconf 2.68 + +Copyright (C) 2010 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------------ ## +## Report this to raoul.hecky@gmail.com ## +## ------------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile + +@%:@ ac_fn_cxx_try_cpp LINENO +@%:@ ------------------------ +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_cpp + +@%:@ ac_fn_cxx_try_link LINENO +@%:@ ------------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_link +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by calaos $as_me 2.0, which was +generated by GNU Autoconf 2.68. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + +ac_config_headers="$ac_config_headers config.h" + + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='calaos' + VERSION='2.0' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + +@%:@ Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=0;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "@%:@define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h + + + +@%:@ Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if ${ac_cv_sys_largefile_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if ${ac_cv_sys_file_offset_bits+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _FILE_OFFSET_BITS 64 +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if ${ac_cv_sys_large_files+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _LARGE_FILES 1 +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* + fi +fi + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +@%:@ Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +@%:@ Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + + +# Set options +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + enable_dlopen=no + + + + @%:@ Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + @%:@ Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +@%:@define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +### Needed information + + + + +### Checks for programs +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=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 + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + gnu*) + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=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_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +# pkg-config + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +### Checks for libraries + +requirements_calaos_common="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 sigc++-2.0 >= 2.2.0 log4cpp >= 1.0 jansson >= 2.0.0 vmime >= 0.9.0 lua5.1 >= 5.1.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_COMMON" >&5 +$as_echo_n "checking for CALAOS_COMMON... " >&6; } + +if test -n "$CALAOS_COMMON_CFLAGS"; then + pkg_cv_CALAOS_COMMON_CFLAGS="$CALAOS_COMMON_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_common}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_common}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_COMMON_LIBS"; then + pkg_cv_CALAOS_COMMON_LIBS="$CALAOS_COMMON_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_common}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_common}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_COMMON_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_common}" 2>&1` + else + CALAOS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_common}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_COMMON_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_common}) were not met: + +$CALAOS_COMMON_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_COMMON_CFLAGS +and CALAOS_COMMON_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_COMMON_CFLAGS +and CALAOS_COMMON_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_COMMON_CFLAGS=$pkg_cv_CALAOS_COMMON_CFLAGS + CALAOS_COMMON_LIBS=$pkg_cv_CALAOS_COMMON_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +requirements_calaos_server="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_SERVER" >&5 +$as_echo_n "checking for CALAOS_SERVER... " >&6; } + +if test -n "$CALAOS_SERVER_CFLAGS"; then + pkg_cv_CALAOS_SERVER_CFLAGS="$CALAOS_SERVER_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_server}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_server}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_SERVER_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_SERVER_LIBS"; then + pkg_cv_CALAOS_SERVER_LIBS="$CALAOS_SERVER_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_server}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_server}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_SERVER_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_SERVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_server}" 2>&1` + else + CALAOS_SERVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_server}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_SERVER_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_server}) were not met: + +$CALAOS_SERVER_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_SERVER_CFLAGS +and CALAOS_SERVER_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_SERVER_CFLAGS +and CALAOS_SERVER_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_SERVER_CFLAGS=$pkg_cv_CALAOS_SERVER_CFLAGS + CALAOS_SERVER_LIBS=$pkg_cv_CALAOS_SERVER_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +requirements_calaos_home="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 elementary >= 1.7.0 ecore-x >= 1.7.0 openssl >= 1.0.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_HOME" >&5 +$as_echo_n "checking for CALAOS_HOME... " >&6; } + +if test -n "$CALAOS_HOME_CFLAGS"; then + pkg_cv_CALAOS_HOME_CFLAGS="$CALAOS_HOME_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_home}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_home}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_HOME_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_HOME_LIBS"; then + pkg_cv_CALAOS_HOME_LIBS="$CALAOS_HOME_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_home}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_home}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_HOME_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_HOME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_home}" 2>&1` + else + CALAOS_HOME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_home}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_HOME_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_home}) were not met: + +$CALAOS_HOME_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_HOME_CFLAGS +and CALAOS_HOME_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_HOME_CFLAGS +and CALAOS_HOME_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_HOME_CFLAGS=$pkg_cv_CALAOS_HOME_CFLAGS + CALAOS_HOME_LIBS=$pkg_cv_CALAOS_HOME_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +### Checks for compiler characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + +### Checks for header files + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 +$as_echo_n "checking whether to enable assertions... " >&6; } + @%:@ Check whether --enable-assert was given. +if test "${enable_assert+set}" = set; then : + enableval=$enable_assert; ac_enable_assert=$enableval + if test "x$enableval" = xno; then : + +$as_echo "@%:@define NDEBUG 1" >>confdefs.h + +elif test "x$enableval" != xyes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 +$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} + ac_enable_assert=yes +fi +else + ac_enable_assert=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 +$as_echo "$ac_enable_assert" >&6; } + +for ac_header in unistd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_UNISTD_H 1 +_ACEOF + +fi + +done + + +ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/bin/Makefile src/bin/calaos_server/Makefile src/bin/calaos_home/Makefile data/Makefile data/themes/Makefile data/themes/default/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in @%:@( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by calaos $as_me 2.0, which was +generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +calaos config.status 2.0 +configured by $0, generated by GNU Autoconf 2.68, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; + "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; + "src/bin/calaos_server/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/calaos_server/Makefile" ;; + "src/bin/calaos_home/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/calaos_home/Makefile" ;; + "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; + "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;; + "data/themes/default/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/default/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +##################################################################### +## Info + +echo +echo +echo +echo "------------------------------------------------------------------------" +echo "$PACKAGE $VERSION" +echo "------------------------------------------------------------------------" +echo +echo +echo "Configuration Options Summary:" +echo +echo "Compilation............: make (or gmake)" +echo " CPPFLAGS.............: $CPPFLAGS" +echo " CFLAGS...............: $CFLAGS" +echo " LDFLAGS..............: $LDFLAGS" +echo +echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" +echo " prefix...............: $prefix" +echo diff --git a/autom4te.cache/output.1 b/autom4te.cache/output.1 new file mode 100644 index 00000000..858952f2 --- /dev/null +++ b/autom4te.cache/output.1 @@ -0,0 +1,19712 @@ +@%:@! /bin/sh +@%:@ Guess values for system-dependent variables and create Makefiles. +@%:@ Generated by GNU Autoconf 2.68 for calaos 2.0. +@%:@ +@%:@ Report bugs to . +@%:@ +@%:@ +@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +@%:@ Foundation, Inc. +@%:@ +@%:@ +@%:@ This configure script is free software; the Free Software Foundation +@%:@ gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in @%:@( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + case $- in @%:@ (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: raoul.hecky@gmail.com about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in @%:@( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIB@&t@OBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='calaos' +PACKAGE_TARNAME='calaos' +PACKAGE_VERSION='2.0' +PACKAGE_STRING='calaos 2.0' +PACKAGE_BUGREPORT='raoul.hecky@gmail.com' +PACKAGE_URL='' + +ac_unique_file="configure.ac" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIB@&t@OBJS +requirements_calaos_home +CALAOS_HOME_LIBS +CALAOS_HOME_CFLAGS +requirements_calaos_server +CALAOS_SERVER_LIBS +CALAOS_SERVER_CFLAGS +requirements_calaos_common +CALAOS_COMMON_LIBS +CALAOS_COMMON_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +CXXCPP +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +OBJDUMP +DLLTOOL +AS +EGREP +GREP +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_largefile +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_assert +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +CXX +CXXFLAGS +CCC +CXXCPP +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +CALAOS_COMMON_CFLAGS +CALAOS_COMMON_LIBS +CALAOS_SERVER_CFLAGS +CALAOS_SERVER_LIBS +CALAOS_HOME_CFLAGS +CALAOS_HOME_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used" >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures calaos 2.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + @<:@@S|@ac_default_prefix@:>@ + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + @<:@PREFIX@:>@ + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root @<:@DATAROOTDIR/doc/calaos@:>@ + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of calaos 2.0:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-largefile omit support for large files + --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ + --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ + --enable-fast-install@<:@=PKGS@:>@ + optimize for fast installation @<:@default=yes@:>@ + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-assert turn off assertions + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use + both@:>@ + --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + CALAOS_COMMON_CFLAGS + C compiler flags for CALAOS_COMMON, overriding pkg-config + CALAOS_COMMON_LIBS + linker flags for CALAOS_COMMON, overriding pkg-config + CALAOS_SERVER_CFLAGS + C compiler flags for CALAOS_SERVER, overriding pkg-config + CALAOS_SERVER_LIBS + linker flags for CALAOS_SERVER, overriding pkg-config + CALAOS_HOME_CFLAGS + C compiler flags for CALAOS_HOME, overriding pkg-config + CALAOS_HOME_LIBS + linker flags for CALAOS_HOME, overriding pkg-config + +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 +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +calaos configure 2.0 +generated by GNU Autoconf 2.68 + +Copyright (C) 2010 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +@%:@ ac_fn_c_try_compile LINENO +@%:@ -------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_compile + +@%:@ ac_fn_c_try_cpp LINENO +@%:@ ---------------------- +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_cpp + +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using +@%:@ the include files in INCLUDES and setting the cache variable VAR +@%:@ accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------------ ## +## Report this to raoul.hecky@gmail.com ## +## ------------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_mongrel + +@%:@ ac_fn_c_try_run LINENO +@%:@ ---------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes +@%:@ that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_run + +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +@%:@ ------------------------------------------------------- +@%:@ Tests whether HEADER exists and can be compiled using the include files in +@%:@ INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +@%:@include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_header_compile + +@%:@ ac_fn_c_try_link LINENO +@%:@ ----------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_c_try_link + +@%:@ ac_fn_c_check_func LINENO FUNC VAR +@%:@ ---------------------------------- +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} @%:@ ac_fn_c_check_func + +@%:@ ac_fn_cxx_try_compile LINENO +@%:@ ---------------------------- +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_compile + +@%:@ ac_fn_cxx_try_cpp LINENO +@%:@ ------------------------ +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_cpp + +@%:@ ac_fn_cxx_try_link LINENO +@%:@ ------------------------- +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} @%:@ ac_fn_cxx_try_link +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by calaos $as_me 2.0, which was +generated by GNU Autoconf 2.68. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in @%:@(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + +ac_config_headers="$ac_config_headers config.h" + + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in @%:@(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='calaos' + VERSION='2.0' + + +cat >>confdefs.h <<_ACEOF +@%:@define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +@%:@define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + +@%:@ Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=0;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +@%:@ Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "@%:@define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h + + + +@%:@ Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if ${ac_cv_sys_largefile_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if ${ac_cv_sys_file_offset_bits+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _FILE_OFFSET_BITS 64 +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if ${ac_cv_sys_large_files+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@define _LARGE_FILES 1 +@%:@include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +@%:@define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* + fi +fi + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +@%:@ Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +@%:@ Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + + +# Set options +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + enable_dlopen=no + + + + @%:@ Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + @%:@ Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +@%:@define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +### Needed information + + + + +### Checks for programs +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@ifdef __STDC__ +@%:@ include +@%:@else +@%:@ include +@%:@endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +@%:@include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=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 + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +@%:@ Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + gnu*) + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=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_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $@%:@ != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +# pkg-config + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +### Checks for libraries + +requirements_calaos_common="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 sigc++-2.0 >= 2.2.0 log4cpp >= 1.0 jansson >= 2.0.0 vmime >= 0.9.0 lua5.1 >= 5.1.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_COMMON" >&5 +$as_echo_n "checking for CALAOS_COMMON... " >&6; } + +if test -n "$CALAOS_COMMON_CFLAGS"; then + pkg_cv_CALAOS_COMMON_CFLAGS="$CALAOS_COMMON_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_common}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_common}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_COMMON_LIBS"; then + pkg_cv_CALAOS_COMMON_LIBS="$CALAOS_COMMON_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_common}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_common}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_COMMON_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_common}" 2>&1` + else + CALAOS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_common}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_COMMON_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_common}) were not met: + +$CALAOS_COMMON_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_COMMON_CFLAGS +and CALAOS_COMMON_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_COMMON_CFLAGS +and CALAOS_COMMON_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_COMMON_CFLAGS=$pkg_cv_CALAOS_COMMON_CFLAGS + CALAOS_COMMON_LIBS=$pkg_cv_CALAOS_COMMON_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +requirements_calaos_server="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_SERVER" >&5 +$as_echo_n "checking for CALAOS_SERVER... " >&6; } + +if test -n "$CALAOS_SERVER_CFLAGS"; then + pkg_cv_CALAOS_SERVER_CFLAGS="$CALAOS_SERVER_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_server}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_server}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_SERVER_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_SERVER_LIBS"; then + pkg_cv_CALAOS_SERVER_LIBS="$CALAOS_SERVER_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_server}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_server}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_SERVER_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_SERVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_server}" 2>&1` + else + CALAOS_SERVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_server}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_SERVER_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_server}) were not met: + +$CALAOS_SERVER_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_SERVER_CFLAGS +and CALAOS_SERVER_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_SERVER_CFLAGS +and CALAOS_SERVER_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_SERVER_CFLAGS=$pkg_cv_CALAOS_SERVER_CFLAGS + CALAOS_SERVER_LIBS=$pkg_cv_CALAOS_SERVER_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +requirements_calaos_home="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 elementary >= 1.7.0 ecore-x >= 1.7.0 openssl >= 1.0.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_HOME" >&5 +$as_echo_n "checking for CALAOS_HOME... " >&6; } + +if test -n "$CALAOS_HOME_CFLAGS"; then + pkg_cv_CALAOS_HOME_CFLAGS="$CALAOS_HOME_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_home}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_home}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_HOME_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_HOME_LIBS"; then + pkg_cv_CALAOS_HOME_LIBS="$CALAOS_HOME_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_home}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_home}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_HOME_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_HOME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_home}" 2>&1` + else + CALAOS_HOME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_home}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_HOME_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_home}) were not met: + +$CALAOS_HOME_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_HOME_CFLAGS +and CALAOS_HOME_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_HOME_CFLAGS +and CALAOS_HOME_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_HOME_CFLAGS=$pkg_cv_CALAOS_HOME_CFLAGS + CALAOS_HOME_LIBS=$pkg_cv_CALAOS_HOME_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +### Checks for compiler characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + +### Checks for header files + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 +$as_echo_n "checking whether to enable assertions... " >&6; } + @%:@ Check whether --enable-assert was given. +if test "${enable_assert+set}" = set; then : + enableval=$enable_assert; ac_enable_assert=$enableval + if test "x$enableval" = xno; then : + +$as_echo "@%:@define NDEBUG 1" >>confdefs.h + +elif test "x$enableval" != xyes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 +$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} + ac_enable_assert=yes +fi +else + ac_enable_assert=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 +$as_echo "$ac_enable_assert" >&6; } + +for ac_header in unistd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +@%:@define HAVE_UNISTD_H 1 +_ACEOF + +fi + +done + + +ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/bin/Makefile src/bin/calaos_server/Makefile src/bin/calaos_home/Makefile data/Makefile data/themes/Makefile data/themes/default/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIB@&t@OBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in @%:@( + *posix*) : + set -o posix ;; @%:@( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in @%:@( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in @%:@(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] +@%:@ ---------------------------------------- +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the +@%:@ script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} @%:@ as_fn_error + + +@%:@ as_fn_set_status STATUS +@%:@ ----------------------- +@%:@ Set @S|@? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} @%:@ as_fn_set_status + +@%:@ as_fn_exit STATUS +@%:@ ----------------- +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} @%:@ as_fn_exit + +@%:@ as_fn_unset VAR +@%:@ --------------- +@%:@ Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +@%:@ as_fn_append VAR VALUE +@%:@ ---------------------- +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take +@%:@ advantage of any shell optimizations that allow amortized linear growth over +@%:@ repeated appends, instead of the typical quadratic growth present in naive +@%:@ implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +@%:@ as_fn_arith ARG... +@%:@ ------------------ +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments +@%:@ must be portable across @S|@(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in @%:@((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +@%:@ as_fn_mkdir_p +@%:@ ------------- +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} @%:@ as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in @%:@( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by calaos $as_me 2.0, which was +generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +calaos config.status 2.0 +configured by $0, generated by GNU Autoconf 2.68, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX +@%:@@%:@ Running $as_me. @%:@@%:@ +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; + "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; + "src/bin/calaos_server/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/calaos_server/Makefile" ;; + "src/bin/calaos_home/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/calaos_home/Makefile" ;; + "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; + "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;; + "data/themes/default/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/default/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +##################################################################### +## Info + +echo +echo +echo +echo "------------------------------------------------------------------------" +echo "$PACKAGE $VERSION" +echo "------------------------------------------------------------------------" +echo +echo +echo "Configuration Options Summary:" +echo +echo "Compilation............: make (or gmake)" +echo " CPPFLAGS.............: $CPPFLAGS" +echo " CFLAGS...............: $CFLAGS" +echo " LDFLAGS..............: $LDFLAGS" +echo +echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" +echo " prefix...............: $prefix" +echo diff --git a/autom4te.cache/requests b/autom4te.cache/requests new file mode 100644 index 00000000..7130928a --- /dev/null +++ b/autom4te.cache/requests @@ -0,0 +1,294 @@ +# This file was generated by Autom4te Sun Nov 6 20:57:04 UTC 2011. +# It contains the lists of macros which have been traced. +# It can be safely removed. + +@request = ( + bless( [ + '0', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + '/usr/share/aclocal/argz.m4', + '/usr/share/aclocal/libtool.m4', + '/usr/share/aclocal/ltdl.m4', + '/usr/share/aclocal/ltoptions.m4', + '/usr/share/aclocal/ltsugar.m4', + '/usr/share/aclocal/ltversion.m4', + '/usr/share/aclocal/lt~obsolete.m4', + '/usr/share/aclocal/pkg.m4', + '/usr/share/aclocal-1.11/amversion.m4', + '/usr/share/aclocal-1.11/auxdir.m4', + '/usr/share/aclocal-1.11/cond.m4', + '/usr/share/aclocal-1.11/depend.m4', + '/usr/share/aclocal-1.11/depout.m4', + '/usr/share/aclocal-1.11/init.m4', + '/usr/share/aclocal-1.11/install-sh.m4', + '/usr/share/aclocal-1.11/lead-dot.m4', + '/usr/share/aclocal-1.11/make.m4', + '/usr/share/aclocal-1.11/missing.m4', + '/usr/share/aclocal-1.11/mkdirp.m4', + '/usr/share/aclocal-1.11/options.m4', + '/usr/share/aclocal-1.11/runlog.m4', + '/usr/share/aclocal-1.11/sanity.m4', + '/usr/share/aclocal-1.11/silent.m4', + '/usr/share/aclocal-1.11/strip.m4', + '/usr/share/aclocal-1.11/substnot.m4', + '/usr/share/aclocal-1.11/tar.m4', + 'configure.ac' + ], + { + 'AM_ENABLE_STATIC' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + '_LT_AC_SHELL_INIT' => 1, + 'AC_DEFUN' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AM_MISSING_PROG' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + '_m4_warn' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'gl_FUNC_ARGZ' => 1, + 'AM_SANITY_CHECK' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'LT_LIB_M' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'LTSUGAR_VERSION' => 1, + '_LT_PROG_LTMAIN' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + '_AM_PROG_TAR' => 1, + 'AC_LIBTOOL_GCJ' => 1, + '_LT_WITH_SYSROOT' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + '_LT_AC_LANG_F77' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + 'AC_LTDL_DLLIB' => 1, + '_AM_SUBST_NOTMAKE' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'AM_DISABLE_SHARED' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + '_LTDL_SETUP' => 1, + 'AM_PROG_LIBTOOL' => 1, + '_LT_AC_LANG_CXX' => 1, + 'AM_PROG_LD' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + 'AC_LIB_LTDL' => 1, + 'AU_DEFUN' => 1, + 'AC_PROG_NM' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'AC_PROG_LD' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + 'AC_LIBTOOL_FC' => 1, + 'LTDL_CONVENIENCE' => 1, + '_AM_SET_OPTION' => 1, + 'AC_LTDL_PREOPEN' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, + 'gl_PREREQ_ARGZ' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'LT_PROG_RC' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'AC_DEFUN_ONCE' => 1, + '_LT_AC_LANG_GCJ' => 1, + 'AC_LTDL_OBJDIR' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + 'AC_LIBTOOL_RC' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + 'AM_SILENT_RULES' => 1, + 'include' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + 'LT_AC_PROG_SED' => 1, + 'AM_ENABLE_SHARED' => 1, + 'LTDL_INSTALLABLE' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + 'AC_ENABLE_SHARED' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + 'AC_ENABLE_STATIC' => 1, + '_LT_AC_TAGVAR' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AM_CONDITIONAL' => 1, + 'LT_LIB_DLLOAD' => 1, + 'LTVERSION_VERSION' => 1, + '_LT_PROG_CXX' => 1, + '_LT_PROG_F77' => 1, + 'LTDL_INIT' => 1, + 'm4_include' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AC_PROG_EGREP' => 1, + 'AC_PATH_MAGIC' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AM_MAKE_INCLUDE' => 1, + 'LT_CMD_MAX_LEN' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'm4_pattern_forbid' => 1, + '_LT_LINKER_OPTION' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'AC_DISABLE_SHARED' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'LT_LANG' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'LT_OUTPUT' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + '_PKG_SHORT_ERRORS_SUPPORTED' => 1, + 'AC_WITH_LTDL' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'PKG_CHECK_EXISTS' => 1, + 'LT_AC_PROG_RC' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'LT_INIT' => 1, + 'LT_AC_PROG_GCJ' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'AM_DEP_TRACK' => 1, + 'AM_DISABLE_STATIC' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_AM_IF_OPTION' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'm4_pattern_allow' => 1, + 'AC_LIBTOOL_F77' => 1, + 'AM_SET_LEADING_DOT' => 1, + '_LT_PROG_FC' => 1, + 'LT_AC_PROG_EGREP' => 1, + '_AM_DEPENDENCIES' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + 'LTOPTIONS_VERSION' => 1, + '_LT_AC_SYS_COMPILER' => 1, + 'AM_PROG_NM' => 1, + 'PKG_CHECK_MODULES' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + 'LT_PROG_GCJ' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_DISABLE_STATIC' => 1, + 'LT_PATH_NM' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + '_LT_AC_LOCK' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + 'LT_PROG_GO' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'LT_WITH_LTDL' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + '_LT_COMPILER_OPTION' => 1, + '_AM_SET_OPTIONS' => 1, + 'AM_RUN_LOG' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AC_CHECK_LIBM' => 1, + 'LT_PATH_LD' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, + '_AM_MANGLE_OPTION' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AM_SET_DEPDIR' => 1, + 'PKG_PROG_PKG_CONFIG' => 1, + '_LT_CC_BASENAME' => 1, + '_LT_LIBOBJ' => 1 + } + ], 'Autom4te::Request' ), + bless( [ + '1', + 1, + [ + '/usr/share/autoconf' + ], + [ + '/usr/share/autoconf/autoconf/autoconf.m4f', + 'aclocal.m4', + 'configure.ac' + ], + { + 'AM_PROG_F77_C_O' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AC_INIT' => 1, + 'm4_pattern_forbid' => 1, + 'AC_CANONICAL_TARGET' => 1, + '_AM_COND_IF' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AC_SUBST' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_FC_SRCEXT' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AM_PATH_GUILE' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'm4_sinclude' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_NLS' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + '_m4_warn' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AM_PROG_CXX_C_O' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + '_AM_COND_ENDIF' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_PROG_MOC' => 1, + 'AC_CONFIG_FILES' => 1, + 'include' => 1, + 'LT_INIT' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AM_PROG_AR' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AC_FC_FREEFORM' => 1, + 'AH_OUTPUT' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'm4_pattern_allow' => 1, + 'AM_PROG_CC_C_O' => 1, + 'sinclude' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AM_POT_TOOLS' => 1, + 'm4_include' => 1, + '_AM_COND_ELSE' => 1, + 'AC_SUBST_TRACE' => 1 + } + ], 'Autom4te::Request' ) + ); + diff --git a/autom4te.cache/traces.0 b/autom4te.cache/traces.0 new file mode 100644 index 00000000..cd2eb4c5 --- /dev/null +++ b/autom4te.cache/traces.0 @@ -0,0 +1,2631 @@ +m4trace:/usr/share/aclocal/argz.m4:12: -1- AC_DEFUN([gl_FUNC_ARGZ], [gl_PREREQ_ARGZ + +AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_TYPES([error_t], + [], + [AC_DEFINE([error_t], [int], + [Define to a type to use for `error_t' if it is not otherwise available.]) + AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h + does not typedef error_t.])], + [#if defined(HAVE_ARGZ_H) +# include +#endif]) + +ARGZ_H= +AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \ + argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])]) + +dnl if have system argz functions, allow forced use of +dnl libltdl-supplied implementation (and default to do so +dnl on "known bad" systems). Could use a runtime check, but +dnl (a) detecting malloc issues is notoriously unreliable +dnl (b) only known system that declares argz functions, +dnl provides them, yet they are broken, is cygwin +dnl releases prior to 16-Mar-2007 (1.5.24 and earlier) +dnl So, it's more straightforward simply to special case +dnl this for known bad systems. +AS_IF([test -z "$ARGZ_H"], + [AC_CACHE_CHECK( + [if argz actually works], + [lt_cv_sys_argz_works], + [[case $host_os in #( + *cygwin*) + lt_cv_sys_argz_works=no + if test "$cross_compiling" != no; then + lt_cv_sys_argz_works="guessing no" + else + lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' + save_IFS=$IFS + IFS=-. + set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` + IFS=$save_IFS + lt_os_major=${2-0} + lt_os_minor=${3-0} + lt_os_micro=${4-0} + if test "$lt_os_major" -gt 1 \ + || { test "$lt_os_major" -eq 1 \ + && { test "$lt_os_minor" -gt 5 \ + || { test "$lt_os_minor" -eq 5 \ + && test "$lt_os_micro" -gt 24; }; }; }; then + lt_cv_sys_argz_works=yes + fi + fi + ;; #( + *) lt_cv_sys_argz_works=yes ;; + esac]]) + AS_IF([test "$lt_cv_sys_argz_works" = yes], + [AC_DEFINE([HAVE_WORKING_ARGZ], 1, + [This value is set to 1 to indicate that the system argz facility works])], + [ARGZ_H=argz.h + AC_LIBOBJ([argz])])]) + +AC_SUBST([ARGZ_H]) +]) +m4trace:/usr/share/aclocal/argz.m4:79: -1- AC_DEFUN([gl_PREREQ_ARGZ], [:]) +m4trace:/usr/share/aclocal/libtool.m4:69: -1- AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +]) +m4trace:/usr/share/aclocal/libtool.m4:107: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:107: -1- AC_DEFUN([AC_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:108: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:108: -1- AC_DEFUN([AM_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:609: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +]) +m4trace:/usr/share/aclocal/libtool.m4:790: -1- AC_DEFUN([LT_SUPPORTED_TAG], []) +m4trace:/usr/share/aclocal/libtool.m4:801: -1- AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +]) +m4trace:/usr/share/aclocal/libtool.m4:893: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +m4trace:/usr/share/aclocal/libtool.m4:893: -1- AC_DEFUN([AC_LIBTOOL_CXX], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete. +You should run autoupdate.])dnl +LT_LANG(C++)]) +m4trace:/usr/share/aclocal/libtool.m4:894: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +m4trace:/usr/share/aclocal/libtool.m4:894: -1- AC_DEFUN([AC_LIBTOOL_F77], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Fortran 77)]) +m4trace:/usr/share/aclocal/libtool.m4:895: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +m4trace:/usr/share/aclocal/libtool.m4:895: -1- AC_DEFUN([AC_LIBTOOL_FC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Fortran)]) +m4trace:/usr/share/aclocal/libtool.m4:896: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +m4trace:/usr/share/aclocal/libtool.m4:896: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Java)]) +m4trace:/usr/share/aclocal/libtool.m4:897: -1- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +m4trace:/usr/share/aclocal/libtool.m4:897: -1- AC_DEFUN([AC_LIBTOOL_RC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_RC' is obsolete. +You should run autoupdate.])dnl +LT_LANG(Windows Resource)]) +m4trace:/usr/share/aclocal/libtool.m4:1225: -1- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) +m4trace:/usr/share/aclocal/libtool.m4:1502: -1- AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +]) +m4trace:/usr/share/aclocal/libtool.m4:1544: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1544: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1553: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +]) +m4trace:/usr/share/aclocal/libtool.m4:1588: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1588: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1595: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +]) +m4trace:/usr/share/aclocal/libtool.m4:1733: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1733: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1844: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +]) +m4trace:/usr/share/aclocal/libtool.m4:1961: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:1961: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:2942: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +]) +m4trace:/usr/share/aclocal/libtool.m4:3004: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3004: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_DIAGNOSE([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3027: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +]) +m4trace:/usr/share/aclocal/libtool.m4:3501: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3501: -1- AC_DEFUN([AM_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_NM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3502: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3502: -1- AC_DEFUN([AC_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_NM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3572: -1- AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +]) +m4trace:/usr/share/aclocal/libtool.m4:3591: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:3591: -1- AC_DEFUN([AC_CHECK_LIBM], [AC_DIAGNOSE([obsolete], [The macro `AC_CHECK_LIBM' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7641: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) +m4trace:/usr/share/aclocal/libtool.m4:7650: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7650: -1- AC_DEFUN([LT_AC_PROG_GCJ], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7657: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) +]) +m4trace:/usr/share/aclocal/libtool.m4:7664: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) +]) +m4trace:/usr/share/aclocal/libtool.m4:7669: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7669: -1- AC_DEFUN([LT_AC_PROG_RC], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_RC' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7789: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) +m4trace:/usr/share/aclocal/libtool.m4:7789: -1- AC_DEFUN([LT_AC_PROG_SED], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_SED' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:16: -1- AC_DEFUN([LT_CONFIG_LTDL_DIR], [AC_BEFORE([$0], [LTDL_INIT]) +_$0($*) +]) +m4trace:/usr/share/aclocal/ltdl.m4:68: -1- AC_DEFUN([LTDL_CONVENIENCE], [AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +]) +m4trace:/usr/share/aclocal/ltdl.m4:81: -1- AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) +m4trace:/usr/share/aclocal/ltdl.m4:81: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_CONVENIENCE' is obsolete. +You should run autoupdate.])dnl +_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_CONVENIENCE]) +m4trace:/usr/share/aclocal/ltdl.m4:124: -1- AC_DEFUN([LTDL_INSTALLABLE], [AC_BEFORE([$0], [LTDL_INIT])dnl +dnl Although the argument is deprecated and no longer documented, +dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one +dnl here make sure it is the same as any other declaration of libltdl's +dnl location! This also ensures lt_ltdl_dir is set when configure.ac is +dnl not yet using an explicit LT_CONFIG_LTDL_DIR. +m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl +_$0() +]) +m4trace:/usr/share/aclocal/ltdl.m4:137: -1- AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) +m4trace:/usr/share/aclocal/ltdl.m4:137: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. +You should run autoupdate.])dnl +_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) +_LTDL_INSTALLABLE]) +m4trace:/usr/share/aclocal/ltdl.m4:213: -1- AC_DEFUN([_LT_LIBOBJ], [ + m4_pattern_allow([^_LT_LIBOBJS$]) + _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" +]) +m4trace:/usr/share/aclocal/ltdl.m4:226: -1- AC_DEFUN([LTDL_INIT], [dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +dnl We need to keep our own list of libobjs separate from our parent project, +dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while +dnl we look for our own LIBOBJs. +m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) +m4_pushdef([AC_LIBSOURCES]) + +dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: +m4_if(_LTDL_MODE, [], + [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) + m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], + [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) + +AC_ARG_WITH([included_ltdl], + [AS_HELP_STRING([--with-included-ltdl], + [use the GNU ltdl sources included here])]) + +if test "x$with_included_ltdl" != xyes; then + # We are not being forced to use the included libltdl sources, so + # decide whether there is a useful installed version we can use. + AC_CHECK_HEADER([ltdl.h], + [AC_CHECK_DECL([lt_dlinterface_register], + [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], + [with_included_ltdl=no], + [with_included_ltdl=yes])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT + #include ])], + [with_included_ltdl=yes], + [AC_INCLUDES_DEFAULT] + ) +fi + +dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE +dnl was called yet, then for old times' sake, we assume libltdl is in an +dnl eponymous directory: +AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) + +AC_ARG_WITH([ltdl_include], + [AS_HELP_STRING([--with-ltdl-include=DIR], + [use the ltdl headers installed in DIR])]) + +if test -n "$with_ltdl_include"; then + if test -f "$with_ltdl_include/ltdl.h"; then : + else + AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) + fi +else + with_ltdl_include=no +fi + +AC_ARG_WITH([ltdl_lib], + [AS_HELP_STRING([--with-ltdl-lib=DIR], + [use the libltdl.la installed in DIR])]) + +if test -n "$with_ltdl_lib"; then + if test -f "$with_ltdl_lib/libltdl.la"; then : + else + AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) + fi +else + with_ltdl_lib=no +fi + +case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in + ,yes,no,no,) + m4_case(m4_default(_LTDL_TYPE, [convenience]), + [convenience], [_LTDL_CONVENIENCE], + [installable], [_LTDL_INSTALLABLE], + [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) + ;; + ,no,no,no,) + # If the included ltdl is not to be used, then use the + # preinstalled libltdl we found. + AC_DEFINE([HAVE_LTDL], [1], + [Define this if a modern libltdl is already installed]) + LIBLTDL=-lltdl + LTDLDEPS= + LTDLINCL= + ;; + ,no*,no,*) + AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) + ;; + *) with_included_ltdl=no + LIBLTDL="-L$with_ltdl_lib -lltdl" + LTDLDEPS= + LTDLINCL="-I$with_ltdl_include" + ;; +esac +INCLTDL="$LTDLINCL" + +# Report our decision... +AC_MSG_CHECKING([where to find libltdl headers]) +AC_MSG_RESULT([$LTDLINCL]) +AC_MSG_CHECKING([where to find libltdl library]) +AC_MSG_RESULT([$LIBLTDL]) + +_LTDL_SETUP + +dnl restore autoconf definition. +m4_popdef([AC_LIBOBJ]) +m4_popdef([AC_LIBSOURCES]) + +AC_CONFIG_COMMANDS_PRE([ + _ltdl_libobjs= + _ltdl_ltlibobjs= + if test -n "$_LT_LIBOBJS"; then + # Remove the extension. + _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do + _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" + _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" + done + fi + AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) + AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) +]) + +# Only expand once: +m4_define([LTDL_INIT]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:352: -1- AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:352: -1- AC_DEFUN([AC_LIB_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIB_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:353: -1- AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `AC_WITH_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:354: -1- AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([LT_WITH_LTDL], [AC_DIAGNOSE([obsolete], [The macro `LT_WITH_LTDL' is obsolete. +You should run autoupdate.])dnl +LTDL_INIT($@)]) +m4trace:/usr/share/aclocal/ltdl.m4:367: -1- AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_SYS_MODULE_EXT])dnl +AC_REQUIRE([LT_SYS_MODULE_PATH])dnl +AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl +AC_REQUIRE([LT_LIB_DLLOAD])dnl +AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl +AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl +AC_REQUIRE([gl_FUNC_ARGZ])dnl + +m4_require([_LT_CHECK_OBJDIR])dnl +m4_require([_LT_HEADER_DLFCN])dnl +m4_require([_LT_CHECK_DLPREOPEN])dnl +m4_require([_LT_DECL_SED])dnl + +dnl Don't require this, or it will be expanded earlier than the code +dnl that sets the variables it relies on: +_LT_ENABLE_INSTALL + +dnl _LTDL_MODE specific code must be called at least once: +_LTDL_MODE_DISPATCH + +# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS +# the user used. This is so that ltdl.h can pick up the parent projects +# config.h file, The first file in AC_CONFIG_HEADERS must contain the +# definitions required by ltdl.c. +# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). +AC_CONFIG_COMMANDS_PRE([dnl +m4_pattern_allow([^LT_CONFIG_H$])dnl +m4_ifset([AH_HEADER], + [LT_CONFIG_H=AH_HEADER], + [m4_ifset([AC_LIST_HEADERS], + [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], + [])])]) +AC_SUBST([LT_CONFIG_H]) + +AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], + [], [], [AC_INCLUDES_DEFAULT]) + +AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) +AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) + +m4_pattern_allow([LT_LIBEXT])dnl +AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) + +name= +eval "lt_libprefix=\"$libname_spec\"" +m4_pattern_allow([LT_LIBPREFIX])dnl +AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) + +name=ltdl +eval "LTDLOPEN=\"$libname_spec\"" +AC_SUBST([LTDLOPEN]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:443: -1- AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_CACHE_CHECK([whether deplibs are loaded by dlopen], + [lt_cv_sys_dlopen_deplibs], + [# PORTME does your system automatically load deplibs for dlopen? + # or its logical equivalent (e.g. shl_load for HP-UX < 11) + # For now, we just catch OSes we know something about -- in the + # future, we'll try test this programmatically. + lt_cv_sys_dlopen_deplibs=unknown + case $host_os in + aix3*|aix4.1.*|aix4.2.*) + # Unknown whether this is true for these versions of AIX, but + # we want this `case' here to explicitly catch those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + aix[[4-9]]*) + lt_cv_sys_dlopen_deplibs=yes + ;; + amigaos*) + case $host_cpu in + powerpc) + lt_cv_sys_dlopen_deplibs=no + ;; + esac + ;; + darwin*) + # Assuming the user has installed a libdl from somewhere, this is true + # If you are looking for one http://www.opendarwin.org/projects/dlcompat + lt_cv_sys_dlopen_deplibs=yes + ;; + freebsd* | dragonfly*) + lt_cv_sys_dlopen_deplibs=yes + ;; + gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) + # GNU and its variants, using gnu ld.so (Glibc) + lt_cv_sys_dlopen_deplibs=yes + ;; + hpux10*|hpux11*) + lt_cv_sys_dlopen_deplibs=yes + ;; + interix*) + lt_cv_sys_dlopen_deplibs=yes + ;; + irix[[12345]]*|irix6.[[01]]*) + # Catch all versions of IRIX before 6.2, and indicate that we don't + # know how it worked for any of those versions. + lt_cv_sys_dlopen_deplibs=unknown + ;; + irix*) + # The case above catches anything before 6.2, and it's known that + # at 6.2 and later dlopen does load deplibs. + lt_cv_sys_dlopen_deplibs=yes + ;; + netbsd* | netbsdelf*-gnu) + lt_cv_sys_dlopen_deplibs=yes + ;; + openbsd*) + lt_cv_sys_dlopen_deplibs=yes + ;; + osf[[1234]]*) + # dlopen did load deplibs (at least at 4.x), but until the 5.x series, + # it did *not* use an RPATH in a shared library to find objects the + # library depends on, so we explicitly say `no'. + lt_cv_sys_dlopen_deplibs=no + ;; + osf5.0|osf5.0a|osf5.1) + # dlopen *does* load deplibs and with the right loader patch applied + # it even uses RPATH in a shared library to search for shared objects + # that the library depends on, but there's no easy way to know if that + # patch is installed. Since this is the case, all we can really + # say is unknown -- it depends on the patch being installed. If + # it is, this changes to `yes'. Without it, it would be `no'. + lt_cv_sys_dlopen_deplibs=unknown + ;; + osf*) + # the two cases above should catch all versions of osf <= 5.1. Read + # the comments above for what we know about them. + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library + # is used to find them so we can finally say `yes'. + lt_cv_sys_dlopen_deplibs=yes + ;; + qnx*) + lt_cv_sys_dlopen_deplibs=yes + ;; + solaris*) + lt_cv_sys_dlopen_deplibs=yes + ;; + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + libltdl_cv_sys_dlopen_deplibs=yes + ;; + esac + ]) +if test "$lt_cv_sys_dlopen_deplibs" != yes; then + AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], + [Define if the OS needs help to load dependent libraries for dlopen().]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:542: -1- AU_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:542: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:549: -1- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([which extension is used for runtime loadable modules], + [libltdl_cv_shlibext], +[ +module=yes +eval libltdl_cv_shlibext=$shrext_cmds +module=no +eval libltdl_cv_shrext=$shrext_cmds + ]) +if test -n "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_MODULE_EXT])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], + [Define to the extension used for runtime loadable modules, say, ".so".]) +fi +if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then + m4_pattern_allow([LT_SHARED_EXT])dnl + AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], + [Define to the shared library suffix, say, ".dylib".]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:572: -1- AU_DEFUN([AC_LTDL_SHLIBEXT], [m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:572: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBEXT' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:579: -1- AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([which variable specifies run-time module search path], + [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) +if test -n "$lt_cv_module_path_var"; then + m4_pattern_allow([LT_MODULE_PATH_VAR])dnl + AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], + [Define to the name of the environment variable that determines the run-time module search path.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:591: -1- AU_DEFUN([AC_LTDL_SHLIBPATH], [m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:591: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SHLIBPATH' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:598: -1- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl +AC_CACHE_CHECK([for the default library search path], + [lt_cv_sys_dlsearch_path], + [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) +if test -n "$lt_cv_sys_dlsearch_path"; then + sys_dlsearch_path= + for dir in $lt_cv_sys_dlsearch_path; do + if test -z "$sys_dlsearch_path"; then + sys_dlsearch_path="$dir" + else + sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" + fi + done + m4_pattern_allow([LT_DLSEARCH_PATH])dnl + AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], + [Define to the system default library search path.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:619: -1- AU_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:619: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYSSEARCHPATH' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:645: -1- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) +LT_DLLOADERS= +AC_SUBST([LT_DLLOADERS]) + +AC_LANG_PUSH([C]) + +LIBADD_DLOPEN= +AC_SEARCH_LIBS([dlopen], [dl], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + if test "$ac_cv_search_dlopen" != "none required" ; then + LIBADD_DLOPEN="-ldl" + fi + libltdl_cv_lib_dl_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H +# include +#endif + ]], [[dlopen(0, 0);]])], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + libltdl_cv_func_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], + [AC_CHECK_LIB([svld], [dlopen], + [AC_DEFINE([HAVE_LIBDL], [1], + [Define if you have the libdl library or equivalent.]) + LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) +if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes +then + lt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DLOPEN" + AC_CHECK_FUNCS([dlerror]) + LIBS="$lt_save_LIBS" +fi +AC_SUBST([LIBADD_DLOPEN]) + +LIBADD_SHL_LOAD= +AC_CHECK_FUNC([shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], + [AC_CHECK_LIB([dld], [shl_load], + [AC_DEFINE([HAVE_SHL_LOAD], [1], + [Define if you have the shl_load function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" + LIBADD_SHL_LOAD="-ldld"])]) +AC_SUBST([LIBADD_SHL_LOAD]) + +case $host_os in +darwin[[1567]].*) +# We only want this for pre-Mac OS X 10.4. + AC_CHECK_FUNC([_dyld_func_lookup], + [AC_DEFINE([HAVE_DYLD], [1], + [Define if you have the _dyld_func_lookup function.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) + ;; +beos*) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" + ;; +cygwin* | mingw* | os2* | pw32*) + AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" + ;; +esac + +AC_CHECK_LIB([dld], [dld_link], + [AC_DEFINE([HAVE_DLD], [1], + [Define if you have the GNU dld library.]) + LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) +AC_SUBST([LIBADD_DLD_LINK]) + +m4_pattern_allow([^LT_DLPREOPEN$]) +LT_DLPREOPEN= +if test -n "$LT_DLLOADERS" +then + for lt_loader in $LT_DLLOADERS; do + LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " + done + AC_DEFINE([HAVE_LIBDLLOADER], [1], + [Define if libdlloader will be built on this platform]) +fi +AC_SUBST([LT_DLPREOPEN]) + +dnl This isn't used anymore, but set it for backwards compatibility +LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" +AC_SUBST([LIBADD_DL]) + +AC_LANG_POP +]) +m4trace:/usr/share/aclocal/ltdl.m4:738: -1- AU_DEFUN([AC_LTDL_DLLIB], [m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:738: -1- AC_DEFUN([AC_LTDL_DLLIB], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLLIB' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:746: -1- AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +AC_CACHE_CHECK([for _ prefix in compiled symbols], + [lt_cv_sys_symbol_underscore], + [lt_cv_sys_symbol_underscore=no + cat > conftest.$ac_ext <<_LT_EOF +void nm_test_func(){} +int main(){nm_test_func;return 0;} +_LT_EOF + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + ac_nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then + # See whether the symbols have a leading underscore. + if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then + lt_cv_sys_symbol_underscore=yes + else + if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then + : + else + echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD + fi + fi + else + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.c >&AS_MESSAGE_LOG_FD + fi + rm -rf conftest* + ]) + sys_symbol_underscore=$lt_cv_sys_symbol_underscore + AC_SUBST([sys_symbol_underscore]) +]) +m4trace:/usr/share/aclocal/ltdl.m4:783: -1- AU_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:783: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_SYMBOL_USCORE' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:790: -1- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl +if test x"$lt_cv_sys_symbol_underscore" = xyes; then + if test x"$libltdl_cv_func_dlopen" = xyes || + test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then + AC_CACHE_CHECK([whether we have to add an underscore for dlsym], + [libltdl_cv_need_uscore], + [libltdl_cv_need_uscore=unknown + save_LIBS="$LIBS" + LIBS="$LIBS $LIBADD_DLOPEN" + _LT_TRY_DLOPEN_SELF( + [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], + [], [libltdl_cv_need_uscore=cross]) + LIBS="$save_LIBS" + ]) + fi +fi + +if test x"$libltdl_cv_need_uscore" = xyes; then + AC_DEFINE([NEED_USCORE], [1], + [Define if dlsym() requires a leading underscore in symbol names.]) +fi +]) +m4trace:/usr/share/aclocal/ltdl.m4:815: -1- AU_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltdl.m4:815: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [AC_DIAGNOSE([obsolete], [The macro `AC_LTDL_DLSYM_USCORE' is obsolete. +You should run autoupdate.])dnl +m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) +m4trace:/usr/share/aclocal/ltoptions.m4:14: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) +m4trace:/usr/share/aclocal/ltoptions.m4:111: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:111: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:146: -1- AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:146: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +You should run autoupdate.])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:195: -1- AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:199: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:203: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:203: -1- AC_DEFUN([AM_ENABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. +You should run autoupdate.])dnl +AC_ENABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:204: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:204: -1- AC_DEFUN([AM_DISABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete. +You should run autoupdate.])dnl +AC_DISABLE_SHARED($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:249: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:253: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:257: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:257: -1- AC_DEFUN([AM_ENABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete. +You should run autoupdate.])dnl +AC_ENABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:258: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:258: -1- AC_DEFUN([AM_DISABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. +You should run autoupdate.])dnl +AC_DISABLE_STATIC($@)]) +m4trace:/usr/share/aclocal/ltoptions.m4:303: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:303: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:310: -1- AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:310: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:358: -1- AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltoptions.m4:358: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete. +You should run autoupdate.])dnl +_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) +m4trace:/usr/share/aclocal/ltsugar.m4:13: -1- AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) +m4trace:/usr/share/aclocal/ltversion.m4:18: -1- AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' +macro_revision='1.3337' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:36: -1- AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:40: -1- AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:41: -1- AC_DEFUN([_LT_AC_SHELL_INIT]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:42: -1- AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:44: -1- AC_DEFUN([_LT_AC_TAGVAR]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:45: -1- AC_DEFUN([AC_LTDL_ENABLE_INSTALL]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:46: -1- AC_DEFUN([AC_LTDL_PREOPEN]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:47: -1- AC_DEFUN([_LT_AC_SYS_COMPILER]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:48: -1- AC_DEFUN([_LT_AC_LOCK]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:49: -1- AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:50: -1- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:51: -1- AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:52: -1- AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:53: -1- AC_DEFUN([AC_LIBTOOL_OBJDIR]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:54: -1- AC_DEFUN([AC_LTDL_OBJDIR]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:55: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:56: -1- AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:57: -1- AC_DEFUN([AC_PATH_MAGIC]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:58: -1- AC_DEFUN([AC_PROG_LD_GNU]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:59: -1- AC_DEFUN([AC_PROG_LD_RELOAD_FLAG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:60: -1- AC_DEFUN([AC_DEPLIBS_CHECK_METHOD]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:61: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:62: -1- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:63: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:64: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:65: -1- AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:66: -1- AC_DEFUN([LT_AC_PROG_EGREP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:71: -1- AC_DEFUN([_AC_PROG_LIBTOOL]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:72: -1- AC_DEFUN([AC_LIBTOOL_SETUP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:73: -1- AC_DEFUN([_LT_AC_CHECK_DLFCN]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:74: -1- AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:75: -1- AC_DEFUN([_LT_AC_TAGCONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:77: -1- AC_DEFUN([_LT_AC_LANG_CXX]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:78: -1- AC_DEFUN([_LT_AC_LANG_F77]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:79: -1- AC_DEFUN([_LT_AC_LANG_GCJ]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:80: -1- AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:81: -1- AC_DEFUN([_LT_AC_LANG_C_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:82: -1- AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:83: -1- AC_DEFUN([_LT_AC_LANG_CXX_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:84: -1- AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:85: -1- AC_DEFUN([_LT_AC_LANG_F77_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:86: -1- AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:87: -1- AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:88: -1- AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:89: -1- AC_DEFUN([_LT_AC_LANG_RC_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:90: -1- AC_DEFUN([AC_LIBTOOL_CONFIG]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:91: -1- AC_DEFUN([_LT_AC_FILE_LTDLL_C]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:93: -1- AC_DEFUN([_LT_AC_PROG_CXXCPP]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:96: -1- AC_DEFUN([_LT_PROG_F77]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:97: -1- AC_DEFUN([_LT_PROG_FC]) +m4trace:/usr/share/aclocal/lt~obsolete.m4:98: -1- AC_DEFUN([_LT_PROG_CXX]) +m4trace:/usr/share/aclocal/pkg.m4:27: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi +fi[]dnl +]) +m4trace:/usr/share/aclocal/pkg.m4:60: -1- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_default([$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) +m4trace:/usr/share/aclocal/pkg.m4:86: -1- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +]) +m4trace:/usr/share/aclocal/pkg.m4:106: -1- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + m4_default([$4], [AC_MSG_ERROR( +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT])[]dnl + ]) +elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])[]dnl + ]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + $3 +fi[]dnl +]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:17: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.3], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) +m4trace:/usr/share/aclocal-1.11/amversion.m4:36: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.3])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) +m4trace:/usr/share/aclocal-1.11/auxdir.m4:49: -1- 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` +]) +m4trace:/usr/share/aclocal-1.11/cond.m4:15: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) +m4trace:/usr/share/aclocal-1.11/depend.m4:28: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:164: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) +m4trace:/usr/share/aclocal-1.11/depend.m4:172: -1- 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='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:14: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +]) +m4trace:/usr/share/aclocal-1.11/depout.m4:75: -1- 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"]) +]) +m4trace:/usr/share/aclocal-1.11/init.m4:26: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) +m4trace:/usr/share/aclocal-1.11/init.m4:126: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) +m4trace:/usr/share/aclocal-1.11/install-sh.m4:14: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) +m4trace:/usr/share/aclocal-1.11/lead-dot.m4:12: -1- 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])]) +m4trace:/usr/share/aclocal-1.11/make.m4:14: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) +m4trace:/usr/share/aclocal-1.11/missing.m4:14: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) +m4trace:/usr/share/aclocal-1.11/missing.m4:24: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) +m4trace:/usr/share/aclocal-1.11/mkdirp.m4:14: -1- AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) +m4trace:/usr/share/aclocal-1.11/options.m4:14: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) +m4trace:/usr/share/aclocal-1.11/options.m4:20: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) +m4trace:/usr/share/aclocal-1.11/options.m4:26: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +m4trace:/usr/share/aclocal-1.11/options.m4:32: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) +m4trace:/usr/share/aclocal-1.11/runlog.m4:14: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) +m4trace:/usr/share/aclocal-1.11/sanity.m4:14: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) +m4trace:/usr/share/aclocal-1.11/silent.m4:14: -1- AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few `make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using `$V' instead of `$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) +m4trace:/usr/share/aclocal-1.11/strip.m4:19: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:14: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) +m4trace:/usr/share/aclocal-1.11/substnot.m4:19: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) +m4trace:/usr/share/aclocal-1.11/tar.m4:24: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /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]) +]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:1: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:15: -1- AM_INIT_AUTOMAKE([1.6 dist-bzip2]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:15: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:15: -1- AM_AUTOMAKE_VERSION([1.11.3]) +m4trace:configure.ac:15: -1- _AM_AUTOCONF_VERSION([2.68]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:15: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:15: -1- _AM_SET_OPTIONS([1.6 dist-bzip2]) +m4trace:configure.ac:15: -1- _AM_SET_OPTION([1.6]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([1.6]) +m4trace:configure.ac:15: -1- _AM_SET_OPTION([dist-bzip2]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([dist-bzip2]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:15: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:15: -1- AM_SANITY_CHECK +m4trace:configure.ac:15: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:15: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:15: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:15: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:15: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:15: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:15: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:15: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:15: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:15: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:15: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:15: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:15: -1- AM_PROG_MKDIR_P +m4trace:configure.ac:15: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:15: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:15: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:15: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:15: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:15: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:15: -1- _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])]) +m4trace:configure.ac:15: -2- _AM_MANGLE_OPTION([silent-rules]) +m4trace:configure.ac:16: -1- AM_SILENT_RULES([yes]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:16: -1- AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:16: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:16: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:16: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:16: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:18: -1- _m4_warn([obsolete], [The macro `AC_GNU_SOURCE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... +configure.ac:18: the top level]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:18: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:18: -1- AM_SET_DEPDIR +m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:18: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:18: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:18: -1- AM_DEP_TRACK +m4trace:configure.ac:18: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:18: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:18: -1- AC_PROG_EGREP +m4trace:configure.ac:18: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_POSIX_SOURCE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_MINIX$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^__EXTENSIONS__$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_ALL_SOURCE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_GNU_SOURCE$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^_FILE_OFFSET_BITS$]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^_LARGE_FILES$]) +m4trace:configure.ac:22: -1- LT_INIT([win32-dll]) +m4trace:configure.ac:22: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:22: -1- LTOPTIONS_VERSION +m4trace:configure.ac:22: -1- LTSUGAR_VERSION +m4trace:configure.ac:22: -1- LTVERSION_VERSION +m4trace:configure.ac:22: -1- LTOBSOLETE_VERSION +m4trace:configure.ac:22: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:22: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:22: -1- _LT_PREPARE_SED_QUOTE_VARS +m4trace:configure.ac:22: -1- _LT_PROG_ECHO_BACKSLASH +m4trace:configure.ac:22: -1- LT_PATH_LD +m4trace:configure.ac:22: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:22: -1- LT_PATH_NM +m4trace:configure.ac:22: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:22: -1- LT_CMD_MAX_LEN +m4trace:configure.ac:22: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:22: -1- _LT_WITH_SYSROOT +m4trace:configure.ac:22: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:22: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:22: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:22: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:22: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:22: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:22: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:22: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) +m4trace:configure.ac:22: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;; + esac], [_LT_TAGVAR(lt_prog_compiler_pic, )= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no]) +m4trace:configure.ac:22: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:22: -1- _LT_REQUIRED_DARWIN_CHECKS +m4trace:configure.ac:22: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:22: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) +m4trace:configure.ac:22: -1- LT_SYS_DLOPEN_SELF +m4trace:configure.ac:22: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:30: -1- _AM_DEPENDENCIES([CXX]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:30: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:30: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:30: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:30: -1- LT_LANG([CXX]) +m4trace:configure.ac:30: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:30: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:30: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:30: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:30: -1- LT_PATH_LD +m4trace:configure.ac:30: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:30: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, CXX)=" $_LT_TAGVAR(lt_prog_compiler_pic, CXX)" ;; + esac], [_LT_TAGVAR(lt_prog_compiler_pic, CXX)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, CXX)=no]) +m4trace:configure.ac:30: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:31: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:31: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:31: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:31: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:34: -1- PKG_PROG_PKG_CONFIG +m4trace:configure.ac:34: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:39: -1- PKG_CHECK_MODULES([CALAOS_COMMON], [${requirements_calaos_common}]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^CALAOS_COMMON_CFLAGS$]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^CALAOS_COMMON_LIBS$]) +m4trace:configure.ac:39: -1- PKG_CHECK_EXISTS([${requirements_calaos_common}], [pkg_cv_[]CALAOS_COMMON_CFLAGS=`$PKG_CONFIG --[]cflags "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:39: -1- PKG_CHECK_EXISTS([${requirements_calaos_common}], [pkg_cv_[]CALAOS_COMMON_LIBS=`$PKG_CONFIG --[]libs "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:39: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:40: -1- m4_pattern_allow([^requirements_calaos_common$]) +m4trace:configure.ac:43: -1- PKG_CHECK_MODULES([CALAOS_SERVER], [${requirements_calaos_server}]) +m4trace:configure.ac:43: -1- m4_pattern_allow([^CALAOS_SERVER_CFLAGS$]) +m4trace:configure.ac:43: -1- m4_pattern_allow([^CALAOS_SERVER_LIBS$]) +m4trace:configure.ac:43: -1- PKG_CHECK_EXISTS([${requirements_calaos_server}], [pkg_cv_[]CALAOS_SERVER_CFLAGS=`$PKG_CONFIG --[]cflags "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:43: -1- PKG_CHECK_EXISTS([${requirements_calaos_server}], [pkg_cv_[]CALAOS_SERVER_LIBS=`$PKG_CONFIG --[]libs "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:43: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:44: -1- m4_pattern_allow([^requirements_calaos_server$]) +m4trace:configure.ac:47: -1- PKG_CHECK_MODULES([CALAOS_HOME], [${requirements_calaos_home}]) +m4trace:configure.ac:47: -1- m4_pattern_allow([^CALAOS_HOME_CFLAGS$]) +m4trace:configure.ac:47: -1- m4_pattern_allow([^CALAOS_HOME_LIBS$]) +m4trace:configure.ac:47: -1- PKG_CHECK_EXISTS([${requirements_calaos_home}], [pkg_cv_[]CALAOS_HOME_CFLAGS=`$PKG_CONFIG --[]cflags "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:47: -1- PKG_CHECK_EXISTS([${requirements_calaos_home}], [pkg_cv_[]CALAOS_HOME_LIBS=`$PKG_CONFIG --[]libs "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) +m4trace:configure.ac:47: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:48: -1- m4_pattern_allow([^requirements_calaos_home$]) +m4trace:configure.ac:51: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:51: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:55: -1- m4_pattern_allow([^NDEBUG$]) +m4trace:configure.ac:56: -1- m4_pattern_allow([^HAVE_UNISTD_H$]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:70: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:70: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:70: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:70: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) +m4trace:configure.ac:70: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:70: -1- _LT_PROG_LTMAIN diff --git a/autom4te.cache/traces.1 b/autom4te.cache/traces.1 new file mode 100644 index 00000000..43c6c03c --- /dev/null +++ b/autom4te.cache/traces.1 @@ -0,0 +1,752 @@ +m4trace:configure.ac:1: -1- AC_INIT([calaos], [2.0], [raoul.hecky@gmail.com]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?A[CHUM]_]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([_AC_]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:1: -1- m4_pattern_allow([^AS_FLAGS$]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?m4_]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^dnl$]) +m4trace:configure.ac:1: -1- m4_pattern_forbid([^_?AS_]) +m4trace:configure.ac:1: -1- AC_SUBST([SHELL]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([SHELL]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^SHELL$]) +m4trace:configure.ac:1: -1- AC_SUBST([PATH_SEPARATOR]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PATH_SEPARATOR$]) +m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_NAME]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_STRING]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:1: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([PACKAGE_URL]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:1: -1- AC_SUBST([exec_prefix], [NONE]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([exec_prefix]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^exec_prefix$]) +m4trace:configure.ac:1: -1- AC_SUBST([prefix], [NONE]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([prefix]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^prefix$]) +m4trace:configure.ac:1: -1- AC_SUBST([program_transform_name], [s,x,x,]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([program_transform_name]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^program_transform_name$]) +m4trace:configure.ac:1: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([bindir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^bindir$]) +m4trace:configure.ac:1: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([sbindir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^sbindir$]) +m4trace:configure.ac:1: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([libexecdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^libexecdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([datarootdir], ['${prefix}/share']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([datarootdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^datarootdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([datadir], ['${datarootdir}']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([datadir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^datadir$]) +m4trace:configure.ac:1: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([sysconfdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^sysconfdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([sharedstatedir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^sharedstatedir$]) +m4trace:configure.ac:1: -1- AC_SUBST([localstatedir], ['${prefix}/var']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([localstatedir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^localstatedir$]) +m4trace:configure.ac:1: -1- AC_SUBST([includedir], ['${prefix}/include']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([includedir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^includedir$]) +m4trace:configure.ac:1: -1- AC_SUBST([oldincludedir], ['/usr/include']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([oldincludedir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^oldincludedir$]) +m4trace:configure.ac:1: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], + ['${datarootdir}/doc/${PACKAGE_TARNAME}'], + ['${datarootdir}/doc/${PACKAGE}'])]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([docdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^docdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([infodir], ['${datarootdir}/info']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([infodir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^infodir$]) +m4trace:configure.ac:1: -1- AC_SUBST([htmldir], ['${docdir}']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([htmldir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^htmldir$]) +m4trace:configure.ac:1: -1- AC_SUBST([dvidir], ['${docdir}']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([dvidir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^dvidir$]) +m4trace:configure.ac:1: -1- AC_SUBST([pdfdir], ['${docdir}']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([pdfdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^pdfdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([psdir], ['${docdir}']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([psdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^psdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([libdir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^libdir$]) +m4trace:configure.ac:1: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([localedir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^localedir$]) +m4trace:configure.ac:1: -1- AC_SUBST([mandir], ['${datarootdir}/man']) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([mandir]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^mandir$]) +m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_NAME$]) +m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ +@%:@undef PACKAGE_NAME]) +m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) +m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ +@%:@undef PACKAGE_TARNAME]) +m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_VERSION$]) +m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ +@%:@undef PACKAGE_VERSION]) +m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_STRING$]) +m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ +@%:@undef PACKAGE_STRING]) +m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) +m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ +@%:@undef PACKAGE_BUGREPORT]) +m4trace:configure.ac:1: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^PACKAGE_URL$]) +m4trace:configure.ac:1: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ +@%:@undef PACKAGE_URL]) +m4trace:configure.ac:1: -1- AC_SUBST([DEFS]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([DEFS]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^DEFS$]) +m4trace:configure.ac:1: -1- AC_SUBST([ECHO_C]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([ECHO_C]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_C$]) +m4trace:configure.ac:1: -1- AC_SUBST([ECHO_N]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([ECHO_N]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_N$]) +m4trace:configure.ac:1: -1- AC_SUBST([ECHO_T]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([ECHO_T]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^ECHO_T$]) +m4trace:configure.ac:1: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:1: -1- AC_SUBST([build_alias]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([build_alias]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^build_alias$]) +m4trace:configure.ac:1: -1- AC_SUBST([host_alias]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([host_alias]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^host_alias$]) +m4trace:configure.ac:1: -1- AC_SUBST([target_alias]) +m4trace:configure.ac:1: -1- AC_SUBST_TRACE([target_alias]) +m4trace:configure.ac:1: -1- m4_pattern_allow([^target_alias$]) +m4trace:configure.ac:6: -1- AC_CONFIG_HEADERS([config.h]) +m4trace:configure.ac:7: -1- AH_OUTPUT([00001], [ +#ifndef CALAOS_CONFIG_H__ +#define CALAOS_CONFIG_H__ +]) +m4trace:configure.ac:11: -1- AH_OUTPUT([zzzz2], [ +#endif /* CALAOS_CONFIG_H__ */ +]) +m4trace:configure.ac:15: -1- AM_INIT_AUTOMAKE([1.6 dist-bzip2]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:15: -1- AM_AUTOMAKE_VERSION([1.11.3]) +m4trace:configure.ac:15: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:15: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:15: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:15: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:15: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([am__isrc]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:15: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:15: -1- AC_SUBST([CYGPATH_W]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([CYGPATH_W]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:15: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([PACKAGE]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:15: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([VERSION]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:15: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:15: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ +@%:@undef PACKAGE]) +m4trace:configure.ac:15: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:15: -1- AH_OUTPUT([VERSION], [/* Version number of package */ +@%:@undef VERSION]) +m4trace:configure.ac:15: -1- AC_REQUIRE_AUX_FILE([missing]) +m4trace:configure.ac:15: -1- AC_SUBST([ACLOCAL]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([ACLOCAL]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:15: -1- AC_SUBST([AUTOCONF]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([AUTOCONF]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:15: -1- AC_SUBST([AUTOMAKE]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([AUTOMAKE]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:15: -1- AC_SUBST([AUTOHEADER]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([AUTOHEADER]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:15: -1- AC_SUBST([MAKEINFO]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([MAKEINFO]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:15: -1- AC_SUBST([install_sh]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([install_sh]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:15: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:15: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:15: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:15: -1- AC_SUBST([MKDIR_P]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:15: -1- AC_SUBST([mkdir_p], ["$MKDIR_P"]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([mkdir_p]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:15: -1- AC_SUBST([AWK]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:15: -1- AC_SUBST([SET_MAKE]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([SET_MAKE]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:15: -1- AC_SUBST([am__leading_dot]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([am__leading_dot]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:15: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([AMTAR]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:15: -1- AC_SUBST([am__tar]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([am__tar]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:15: -1- AC_SUBST([am__untar]) +m4trace:configure.ac:15: -1- AC_SUBST_TRACE([am__untar]) +m4trace:configure.ac:15: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:16: -1- AM_SILENT_RULES([yes]) +m4trace:configure.ac:16: -1- AC_SUBST([AM_V]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([AM_V]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:16: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:16: -1- AC_SUBST([AM_DEFAULT_V]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:16: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:16: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:16: -1- AC_SUBST([AM_BACKSLASH]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([AM_BACKSLASH]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:16: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:18: -1- _m4_warn([obsolete], [The macro `AC_GNU_SOURCE' is obsolete. +You should run autoupdate.], [../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... +configure.ac:18: the top level]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:18: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:18: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:18: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:18: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([DEPDIR]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:18: -1- AC_SUBST([am__include]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__include]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:18: -1- AC_SUBST([am__quote]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__quote]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__quote$]) +m4trace:configure.ac:18: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:18: -1- AC_SUBST([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:18: -1- AC_SUBST([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:18: -1- AC_SUBST([am__nodep]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__nodep]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:18: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CCDEPMODE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:18: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:18: -1- AC_SUBST([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:18: -1- AC_SUBST([am__fastdepCC_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:18: -1- AC_SUBST([CPP]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:18: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:18: -1- AC_SUBST([CPP]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CPP]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^CPP$]) +m4trace:configure.ac:18: -1- AC_SUBST([GREP]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:18: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:18: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:18: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ +@%:@undef STDC_HEADERS]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_TYPES_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_SYS_STAT_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDLIB_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRING_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_MEMORY_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STRINGS_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_INTTYPES_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_STDINT_H]) +m4trace:configure.ac:18: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_SOURCE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_POSIX_SOURCE$]) +m4trace:configure.ac:18: -1- AH_OUTPUT([_POSIX_SOURCE], [/* Define to 1 if you need to in order for `stat\' and other things to work. */ +@%:@undef _POSIX_SOURCE]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_1_SOURCE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) +m4trace:configure.ac:18: -1- AH_OUTPUT([_POSIX_1_SOURCE], [/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +@%:@undef _POSIX_1_SOURCE]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_MINIX]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_MINIX$]) +m4trace:configure.ac:18: -1- AH_OUTPUT([_MINIX], [/* Define to 1 if on MINIX. */ +@%:@undef _MINIX]) +m4trace:configure.ac:18: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif +]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([__EXTENSIONS__]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^__EXTENSIONS__$]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_ALL_SOURCE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_ALL_SOURCE$]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_GNU_SOURCE$]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_PTHREAD_SEMANTICS]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) +m4trace:configure.ac:18: -1- AC_DEFINE_TRACE_LITERAL([_TANDEM_SOURCE]) +m4trace:configure.ac:18: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) +m4trace:configure.ac:19: -1- AC_DEFINE_TRACE_LITERAL([_FILE_OFFSET_BITS]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^_FILE_OFFSET_BITS$]) +m4trace:configure.ac:19: -1- AH_OUTPUT([_FILE_OFFSET_BITS], [/* Number of bits in a file offset, on hosts where this is settable. */ +@%:@undef _FILE_OFFSET_BITS]) +m4trace:configure.ac:19: -1- AC_DEFINE_TRACE_LITERAL([_LARGE_FILES]) +m4trace:configure.ac:19: -1- m4_pattern_allow([^_LARGE_FILES$]) +m4trace:configure.ac:19: -1- AH_OUTPUT([_LARGE_FILES], [/* Define for large files, on AIX-style hosts. */ +@%:@undef _LARGE_FILES]) +m4trace:configure.ac:22: -1- LT_INIT([win32-dll]) +m4trace:configure.ac:22: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:22: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +m4trace:configure.ac:22: -1- AC_SUBST([AS]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([AS]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:22: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:22: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:22: -1- AC_SUBST([LIBTOOL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([LIBTOOL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:22: -1- AC_CANONICAL_HOST +m4trace:configure.ac:22: -1- AC_CANONICAL_BUILD +m4trace:configure.ac:22: -1- AC_REQUIRE_AUX_FILE([config.sub]) +m4trace:configure.ac:22: -1- AC_REQUIRE_AUX_FILE([config.guess]) +m4trace:configure.ac:22: -1- AC_SUBST([build], [$ac_cv_build]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([build]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:22: -1- AC_SUBST([build_cpu], [$[1]]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([build_cpu]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:22: -1- AC_SUBST([build_vendor], [$[2]]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([build_vendor]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:22: -1- AC_SUBST([build_os]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([build_os]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:22: -1- AC_SUBST([host], [$ac_cv_host]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([host]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:22: -1- AC_SUBST([host_cpu], [$[1]]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([host_cpu]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:22: -1- AC_SUBST([host_vendor], [$[2]]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([host_vendor]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:22: -1- AC_SUBST([host_os]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([host_os]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:22: -1- AC_SUBST([SED]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:22: -1- AC_SUBST([FGREP]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([FGREP]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:22: -1- AC_SUBST([GREP]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:22: -1- AC_SUBST([LD]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:22: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:22: -1- AC_SUBST([ac_ct_DUMPBIN]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:22: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:22: -1- AC_SUBST([NM]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([NM]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:22: -1- AC_SUBST([LN_S], [$as_ln_s]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([LN_S]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:22: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:22: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:22: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:22: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:22: -1- AC_SUBST([AR]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:22: -1- AC_SUBST([ac_ct_AR]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([ac_ct_AR]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:22: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:22: -1- AC_SUBST([RANLIB]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([RANLIB]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:22: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:22: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:22: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +@%:@undef LT_OBJDIR]) +m4trace:configure.ac:22: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:22: -1- AC_SUBST([MANIFEST_TOOL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([MANIFEST_TOOL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:22: -1- AC_SUBST([DSYMUTIL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([DSYMUTIL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:22: -1- AC_SUBST([NMEDIT]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([NMEDIT]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:22: -1- AC_SUBST([LIPO]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([LIPO]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:22: -1- AC_SUBST([OTOOL]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([OTOOL]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:22: -1- AC_SUBST([OTOOL64]) +m4trace:configure.ac:22: -1- AC_SUBST_TRACE([OTOOL64]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:22: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_DLFCN_H]) +m4trace:configure.ac:22: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H]) +m4trace:configure.ac:22: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:26: -1- AC_CANONICAL_BUILD +m4trace:configure.ac:27: -1- AC_CANONICAL_HOST +m4trace:configure.ac:30: -1- AC_SUBST([CXX]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:30: -1- AC_SUBST([CXXFLAGS]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CXXFLAGS]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:30: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:30: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:30: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:30: -1- AC_SUBST([CXX]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:30: -1- AC_SUBST([ac_ct_CXX]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([ac_ct_CXX]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:30: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CXXDEPMODE]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:30: -1- AM_CONDITIONAL([am__fastdepCXX], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:30: -1- AC_SUBST([am__fastdepCXX_TRUE]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:30: -1- AC_SUBST([am__fastdepCXX_FALSE]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:30: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:30: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:30: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:30: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:30: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:30: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:30: -1- AC_SUBST([LD]) +m4trace:configure.ac:30: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:30: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:31: -1- AC_SUBST([CC]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:31: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:31: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:31: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:31: -1- AC_SUBST([CC]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- AC_SUBST([CC]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- AC_SUBST([CC]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- AC_SUBST([CC]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:31: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:31: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([CCDEPMODE]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:31: -1- AM_CONDITIONAL([am__fastdepCC], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:31: -1- AC_SUBST([am__fastdepCC_TRUE]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:31: -1- AC_SUBST([am__fastdepCC_FALSE]) +m4trace:configure.ac:31: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) +m4trace:configure.ac:31: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:31: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:31: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:34: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:34: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:34: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:34: -1- AC_SUBST([PKG_CONFIG_PATH]) +m4trace:configure.ac:34: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:34: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:34: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:34: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:34: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:34: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:39: -1- AC_SUBST([CALAOS_COMMON_CFLAGS]) +m4trace:configure.ac:39: -1- AC_SUBST_TRACE([CALAOS_COMMON_CFLAGS]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^CALAOS_COMMON_CFLAGS$]) +m4trace:configure.ac:39: -1- AC_SUBST([CALAOS_COMMON_LIBS]) +m4trace:configure.ac:39: -1- AC_SUBST_TRACE([CALAOS_COMMON_LIBS]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^CALAOS_COMMON_LIBS$]) +m4trace:configure.ac:40: -1- AC_SUBST([requirements_calaos_common]) +m4trace:configure.ac:40: -1- AC_SUBST_TRACE([requirements_calaos_common]) +m4trace:configure.ac:40: -1- m4_pattern_allow([^requirements_calaos_common$]) +m4trace:configure.ac:43: -1- AC_SUBST([CALAOS_SERVER_CFLAGS]) +m4trace:configure.ac:43: -1- AC_SUBST_TRACE([CALAOS_SERVER_CFLAGS]) +m4trace:configure.ac:43: -1- m4_pattern_allow([^CALAOS_SERVER_CFLAGS$]) +m4trace:configure.ac:43: -1- AC_SUBST([CALAOS_SERVER_LIBS]) +m4trace:configure.ac:43: -1- AC_SUBST_TRACE([CALAOS_SERVER_LIBS]) +m4trace:configure.ac:43: -1- m4_pattern_allow([^CALAOS_SERVER_LIBS$]) +m4trace:configure.ac:44: -1- AC_SUBST([requirements_calaos_server]) +m4trace:configure.ac:44: -1- AC_SUBST_TRACE([requirements_calaos_server]) +m4trace:configure.ac:44: -1- m4_pattern_allow([^requirements_calaos_server$]) +m4trace:configure.ac:47: -1- AC_SUBST([CALAOS_HOME_CFLAGS]) +m4trace:configure.ac:47: -1- AC_SUBST_TRACE([CALAOS_HOME_CFLAGS]) +m4trace:configure.ac:47: -1- m4_pattern_allow([^CALAOS_HOME_CFLAGS$]) +m4trace:configure.ac:47: -1- AC_SUBST([CALAOS_HOME_LIBS]) +m4trace:configure.ac:47: -1- AC_SUBST_TRACE([CALAOS_HOME_LIBS]) +m4trace:configure.ac:47: -1- m4_pattern_allow([^CALAOS_HOME_LIBS$]) +m4trace:configure.ac:48: -1- AC_SUBST([requirements_calaos_home]) +m4trace:configure.ac:48: -1- AC_SUBST_TRACE([requirements_calaos_home]) +m4trace:configure.ac:48: -1- m4_pattern_allow([^requirements_calaos_home$]) +m4trace:configure.ac:51: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif]) +m4trace:configure.ac:51: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) +m4trace:configure.ac:51: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:51: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD]) +m4trace:configure.ac:51: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:51: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */ +@%:@undef AC_APPLE_UNIVERSAL_BUILD]) +m4trace:configure.ac:52: -1- AH_OUTPUT([inline], [/* Define to `__inline__\' or `__inline\' if that\'s what the C compiler + calls it, or to nothing if \'inline\' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif]) +m4trace:configure.ac:55: -1- AC_DEFINE_TRACE_LITERAL([NDEBUG]) +m4trace:configure.ac:55: -1- m4_pattern_allow([^NDEBUG$]) +m4trace:configure.ac:55: -1- AH_OUTPUT([NDEBUG], [/* Define to 1 if assertions should be disabled. */ +@%:@undef NDEBUG]) +m4trace:configure.ac:56: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_UNISTD_H]) +m4trace:configure.ac:56: -1- AC_DEFINE_TRACE_LITERAL([HAVE_UNISTD_H]) +m4trace:configure.ac:56: -1- m4_pattern_allow([^HAVE_UNISTD_H$]) +m4trace:configure.ac:58: -1- AC_CONFIG_FILES([ +Makefile +src/Makefile +src/lib/Makefile +src/bin/Makefile +src/bin/calaos_server/Makefile +src/bin/calaos_home/Makefile +data/Makefile +data/themes/Makefile +data/themes/default/Makefile +]) +m4trace:configure.ac:70: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:70: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:70: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:70: -1- AC_SUBST([am__EXEEXT_TRUE]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:70: -1- AC_SUBST([am__EXEEXT_FALSE]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) +m4trace:configure.ac:70: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:70: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:70: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([INSTALL]) +m4trace:configure.ac:70: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:70: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) diff --git a/config.guess b/config.guess new file mode 100755 index 00000000..d622a44e --- /dev/null +++ b/config.guess @@ -0,0 +1,1530 @@ +#! /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, 2006, 2007, 2008, 2009, 2010, +# 2011, 2012 Free Software Foundation, Inc. + +timestamp='2012-02-10' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 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, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a 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. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + +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, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + *) + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-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 ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-gnu + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-gnueabi + else + echo ${UNAME_MACHINE}-unknown-linux-gnueabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-gnu + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-gnu + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:Linux:*:*) + LIBC=gnu + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; + or32:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-gnu + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + 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-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-gnu + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; + 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 ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; +esac + +#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 00000000..eb9fb5d0 --- /dev/null +++ b/config.h.in @@ -0,0 +1,133 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + + +#ifndef CALAOS_CONFIG_H__ +#define CALAOS_CONFIG_H__ + + +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Define to 1 if assertions should be disabled. */ +#undef NDEBUG + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Enable extensions on AIX 3, Interix. */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Version number of package */ +#undef VERSION + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Define to 1 if on MINIX. */ +#undef _MINIX + +/* Define to 2 if the system does not provide POSIX.1 features except with + this defined. */ +#undef _POSIX_1_SOURCE + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +#undef _POSIX_SOURCE + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif + + +#endif /* CALAOS_CONFIG_H__ */ + diff --git a/config.sub b/config.sub new file mode 100755 index 00000000..c894da45 --- /dev/null +++ b/config.sub @@ -0,0 +1,1773 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +# 2011, 2012 Free Software Foundation, Inc. + +timestamp='2012-02-10' + +# 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, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted GNU ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | be32 | be64 \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | epiphany \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 \ + | ns16k | ns32k \ + | open8 \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pyramid \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pyramid-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze) + basic_machine=microblaze-xilinx + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i386-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 00000000..814f8642 --- /dev/null +++ b/configure @@ -0,0 +1,19712 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.68 for calaos 2.0. +# +# Report bugs to . +# +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +# Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: raoul.hecky@gmail.com about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='calaos' +PACKAGE_TARNAME='calaos' +PACKAGE_VERSION='2.0' +PACKAGE_STRING='calaos 2.0' +PACKAGE_BUGREPORT='raoul.hecky@gmail.com' +PACKAGE_URL='' + +ac_unique_file="configure.ac" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +requirements_calaos_home +CALAOS_HOME_LIBS +CALAOS_HOME_CFLAGS +requirements_calaos_server +CALAOS_SERVER_LIBS +CALAOS_SERVER_CFLAGS +requirements_calaos_common +CALAOS_COMMON_LIBS +CALAOS_COMMON_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +CXXCPP +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +OBJDUMP +DLLTOOL +AS +EGREP +GREP +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_largefile +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_assert +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +CXX +CXXFLAGS +CCC +CXXCPP +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +CALAOS_COMMON_CFLAGS +CALAOS_COMMON_LIBS +CALAOS_SERVER_CFLAGS +CALAOS_SERVER_LIBS +CALAOS_HOME_CFLAGS +CALAOS_HOME_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used" >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures calaos 2.0 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/calaos] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of calaos 2.0:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-largefile omit support for large files + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-assert turn off assertions + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + CALAOS_COMMON_CFLAGS + C compiler flags for CALAOS_COMMON, overriding pkg-config + CALAOS_COMMON_LIBS + linker flags for CALAOS_COMMON, overriding pkg-config + CALAOS_SERVER_CFLAGS + C compiler flags for CALAOS_SERVER, overriding pkg-config + CALAOS_SERVER_LIBS + linker flags for CALAOS_SERVER, overriding pkg-config + CALAOS_HOME_CFLAGS + C compiler flags for CALAOS_HOME, overriding pkg-config + CALAOS_HOME_LIBS + linker flags for CALAOS_HOME, overriding pkg-config + +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 +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +calaos configure 2.0 +generated by GNU Autoconf 2.68 + +Copyright (C) 2010 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------------ ## +## Report this to raoul.hecky@gmail.com ## +## ------------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by calaos $as_me 2.0, which was +generated by GNU Autoconf 2.68. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + +ac_config_headers="$ac_config_headers config.h" + + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='calaos' + VERSION='2.0' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=0;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + + +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if ${ac_cv_sys_largefile_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF + if ac_fn_c_try_compile "$LINENO"; then : + break +fi +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if ${ac_cv_sys_file_offset_bits+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _FILE_OFFSET_BITS 64 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if ${ac_cv_sys_large_files+:} false; then : + $as_echo_n "(cached) " >&6 +else + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _LARGE_FILES 1 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* + fi +fi + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.2' +macro_revision='1.3337' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + + +# Set options +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AS+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + enable_dlopen=no + + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +### Needed information + + + + +### Checks for programs +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=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 + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + gnu*) + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=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_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +# pkg-config + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +### Checks for libraries + +requirements_calaos_common="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 sigc++-2.0 >= 2.2.0 log4cpp >= 1.0 jansson >= 2.0.0 vmime >= 0.9.0 lua5.1 >= 5.1.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_COMMON" >&5 +$as_echo_n "checking for CALAOS_COMMON... " >&6; } + +if test -n "$CALAOS_COMMON_CFLAGS"; then + pkg_cv_CALAOS_COMMON_CFLAGS="$CALAOS_COMMON_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_common}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_common}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_COMMON_LIBS"; then + pkg_cv_CALAOS_COMMON_LIBS="$CALAOS_COMMON_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_common}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_common}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_COMMON_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_common}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_common}" 2>&1` + else + CALAOS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_common}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_COMMON_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_common}) were not met: + +$CALAOS_COMMON_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_COMMON_CFLAGS +and CALAOS_COMMON_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_COMMON_CFLAGS +and CALAOS_COMMON_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_COMMON_CFLAGS=$pkg_cv_CALAOS_COMMON_CFLAGS + CALAOS_COMMON_LIBS=$pkg_cv_CALAOS_COMMON_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +requirements_calaos_server="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_SERVER" >&5 +$as_echo_n "checking for CALAOS_SERVER... " >&6; } + +if test -n "$CALAOS_SERVER_CFLAGS"; then + pkg_cv_CALAOS_SERVER_CFLAGS="$CALAOS_SERVER_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_server}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_server}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_SERVER_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_SERVER_LIBS"; then + pkg_cv_CALAOS_SERVER_LIBS="$CALAOS_SERVER_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_server}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_server}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_SERVER_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_server}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_SERVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_server}" 2>&1` + else + CALAOS_SERVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_server}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_SERVER_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_server}) were not met: + +$CALAOS_SERVER_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_SERVER_CFLAGS +and CALAOS_SERVER_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_SERVER_CFLAGS +and CALAOS_SERVER_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_SERVER_CFLAGS=$pkg_cv_CALAOS_SERVER_CFLAGS + CALAOS_SERVER_LIBS=$pkg_cv_CALAOS_SERVER_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +requirements_calaos_home="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 elementary >= 1.7.0 ecore-x >= 1.7.0 openssl >= 1.0.0" + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CALAOS_HOME" >&5 +$as_echo_n "checking for CALAOS_HOME... " >&6; } + +if test -n "$CALAOS_HOME_CFLAGS"; then + pkg_cv_CALAOS_HOME_CFLAGS="$CALAOS_HOME_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_home}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_home}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_HOME_CFLAGS=`$PKG_CONFIG --cflags "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$CALAOS_HOME_LIBS"; then + pkg_cv_CALAOS_HOME_LIBS="$CALAOS_HOME_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${requirements_calaos_home}\""; } >&5 + ($PKG_CONFIG --exists --print-errors "${requirements_calaos_home}") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_CALAOS_HOME_LIBS=`$PKG_CONFIG --libs "${requirements_calaos_home}" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + CALAOS_HOME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${requirements_calaos_home}" 2>&1` + else + CALAOS_HOME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${requirements_calaos_home}" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$CALAOS_HOME_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (${requirements_calaos_home}) were not met: + +$CALAOS_HOME_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables CALAOS_HOME_CFLAGS +and CALAOS_HOME_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables CALAOS_HOME_CFLAGS +and CALAOS_HOME_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } +else + CALAOS_HOME_CFLAGS=$pkg_cv_CALAOS_HOME_CFLAGS + CALAOS_HOME_LIBS=$pkg_cv_CALAOS_HOME_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +### Checks for compiler characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if ${ac_cv_c_bigendian+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes +else + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; + +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no +else + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + +### Checks for header files + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 +$as_echo_n "checking whether to enable assertions... " >&6; } + # Check whether --enable-assert was given. +if test "${enable_assert+set}" = set; then : + enableval=$enable_assert; ac_enable_assert=$enableval + if test "x$enableval" = xno; then : + +$as_echo "#define NDEBUG 1" >>confdefs.h + +elif test "x$enableval" != xyes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 +$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} + ac_enable_assert=yes +fi +else + ac_enable_assert=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 +$as_echo "$ac_enable_assert" >&6; } + +for ac_header in unistd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UNISTD_H 1 +_ACEOF + +fi + +done + + +ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/bin/Makefile src/bin/calaos_server/Makefile src/bin/calaos_home/Makefile data/Makefile data/themes/Makefile data/themes/default/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by calaos $as_me 2.0, which was +generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +calaos config.status 2.0 +configured by $0, generated by GNU Autoconf 2.68, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in AS \ +DLLTOOL \ +OBJDUMP \ +SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; + "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; + "src/bin/calaos_server/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/calaos_server/Makefile" ;; + "src/bin/calaos_home/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/calaos_home/Makefile" ;; + "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; + "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;; + "data/themes/default/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/default/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Assembler program. +AS=$lt_AS + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Object dumper program. +OBJDUMP=$lt_OBJDUMP + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +##################################################################### +## Info + +echo +echo +echo +echo "------------------------------------------------------------------------" +echo "$PACKAGE $VERSION" +echo "------------------------------------------------------------------------" +echo +echo +echo "Configuration Options Summary:" +echo +echo "Compilation............: make (or gmake)" +echo " CPPFLAGS.............: $CPPFLAGS" +echo " CFLAGS...............: $CFLAGS" +echo " LDFLAGS..............: $LDFLAGS" +echo +echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" +echo " prefix...............: $prefix" +echo diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..50c83a23 --- /dev/null +++ b/configure.ac @@ -0,0 +1,92 @@ +AC_INIT([calaos], [2.0], [raoul.hecky@gmail.com]) +AC_PREREQ([2.59]) +AC_CONFIG_SRCDIR([configure.ac]) +AC_CONFIG_MACRO_DIR([m4]) + +AC_CONFIG_HEADERS([config.h]) +AH_TOP([ +#ifndef CALAOS_CONFIG_H__ +#define CALAOS_CONFIG_H__ +]) +AH_BOTTOM([ +#endif /* CALAOS_CONFIG_H__ */ +]) + +AM_INIT_AUTOMAKE([1.6 dist-bzip2]) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +AC_GNU_SOURCE +AC_SYS_LARGEFILE + +LT_PREREQ([2.2]) +LT_INIT([win32-dll]) + +### Needed information + +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + +### Checks for programs +AC_PROG_CXX +AC_PROG_CC + +# pkg-config +PKG_PROG_PKG_CONFIG + +### Checks for libraries + +requirements_calaos_common="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 sigc++-2.0 >= 2.2.0 log4cpp >= 1.0 jansson >= 2.0.0 vmime >= 0.9.0 lua5.1 >= 5.1.0" +PKG_CHECK_MODULES([CALAOS_COMMON], [${requirements_calaos_common}]) +AC_SUBST([requirements_calaos_common]) + +requirements_calaos_server="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0" +PKG_CHECK_MODULES([CALAOS_SERVER], [${requirements_calaos_server}]) +AC_SUBST([requirements_calaos_server]) + +requirements_calaos_home="eina >= 1.7.0 eet >= 1.7.0 ecore >= 1.7.0 ecore-file >= 1.7.0 ecore-con >= 1.7.0 elementary >= 1.7.0 ecore-x >= 1.7.0 openssl >= 1.0.0" +PKG_CHECK_MODULES([CALAOS_HOME], [${requirements_calaos_home}]) +AC_SUBST([requirements_calaos_home]) + +### Checks for compiler characteristics +AC_C_BIGENDIAN +AC_C_INLINE + +### Checks for header files +AC_HEADER_ASSERT +AC_CHECK_HEADERS([unistd.h]) + +AC_CONFIG_FILES([ +Makefile +src/Makefile +src/lib/Makefile +src/bin/Makefile +src/bin/calaos_server/Makefile +src/bin/calaos_home/Makefile +data/Makefile +data/themes/Makefile +data/themes/default/Makefile +]) + +AC_OUTPUT + +##################################################################### +## Info + +echo +echo +echo +echo "------------------------------------------------------------------------" +echo "$PACKAGE $VERSION" +echo "------------------------------------------------------------------------" +echo +echo +echo "Configuration Options Summary:" +echo +echo "Compilation............: make (or gmake)" +echo " CPPFLAGS.............: $CPPFLAGS" +echo " CFLAGS...............: $CFLAGS" +echo " LDFLAGS..............: $LDFLAGS" +echo +echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" +echo " prefix...............: $prefix" +echo diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 00000000..6cded0ab --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = themes + +MAINTAINERCLEANFILES = Makefile.in diff --git a/data/Makefile.in b/data/Makefile.in new file mode 100644 index 00000000..8f3d9655 --- /dev/null +++ b/data/Makefile.in @@ -0,0 +1,584 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = data +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 = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = themes +MAINTAINERCLEANFILES = Makefile.in +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu data/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic clean-libtool \ + ctags ctags-recursive distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am new file mode 100644 index 00000000..97ebe31a --- /dev/null +++ b/data/themes/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = default + +MAINTAINERCLEANFILES = Makefile.in diff --git a/data/themes/Makefile.in b/data/themes/Makefile.in new file mode 100644 index 00000000..c6271ef2 --- /dev/null +++ b/data/themes/Makefile.in @@ -0,0 +1,584 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = data/themes +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 = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = default +MAINTAINERCLEANFILES = Makefile.in +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/themes/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu data/themes/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic clean-libtool \ + ctags ctags-recursive distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/data/themes/default/Makefile.am b/data/themes/default/Makefile.am new file mode 100644 index 00000000..6a16d0b0 --- /dev/null +++ b/data/themes/default/Makefile.am @@ -0,0 +1,895 @@ +MAINTAINERCLEANFILES = Makefile.in + +EDJE_CC = edje_cc + +EDJE_FLAGS = \ +-id $(top_srcdir)/data/themes/default/images \ +-id $(top_srcdir)/data/themes/default/images/buttons \ +-id $(top_srcdir)/data/themes/default/images/parts \ +-id $(top_srcdir)/data/themes/default/images/icons \ +-id $(top_srcdir)/data/themes/default/images/logo \ +-id $(top_srcdir)/data/themes/default/images/animations \ +-id $(top_srcdir)/data/themes/default/images/animations/glowed_556_line \ +-id $(top_srcdir)/data/themes/default/images/animations/room_touched \ +-id $(top_srcdir)/data/themes/default/images/animations/round_button \ +-id $(top_srcdir)/data/themes/default/images/animations/light_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/shutter_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/scenario_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/mini_circular_cooldown \ +-id $(top_srcdir)/data/themes/default/images/animations/micro_circular_cooldown \ +-id $(top_srcdir)/data/themes/default/images/animations/cd_player \ +-id $(top_srcdir)/data/themes/default/images/animations/bootsplash_logo \ +-id $(top_srcdir)/data/themes/default/images/animations/bootsplash_logo_reflect \ +-id $(top_srcdir)/data/themes/default/images/animations/bootsplash_notification_icone \ +-id $(top_srcdir)/data/themes/default/images/animations/tor_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/volume_knob_leds \ +-id $(top_srcdir)/data/themes/default/images/boosplash \ +-id $(top_srcdir)/data/themes/default/images/adjust_pattern \ +-id $(top_srcdir)/data/themes/default/images/background \ +-id $(top_srcdir)/data/themes/default/images/scenario \ +-id $(top_srcdir)/data/themes/default/images/rooms \ +-id $(top_srcdir)/data/themes/default/images/rooms/lounge \ +-id $(top_srcdir)/data/themes/default/images/rooms/bedroom \ +-id $(top_srcdir)/data/themes/default/images/rooms/kitchen \ +-id $(top_srcdir)/data/themes/default/images/rooms/office \ +-id $(top_srcdir)/data/themes/default/images/rooms/diningroom \ +-id $(top_srcdir)/data/themes/default/images/rooms/various \ +-id $(top_srcdir)/data/themes/default/images/rooms/outside \ +-id $(top_srcdir)/data/themes/default/images/rooms/bathroom \ +-id $(top_srcdir)/data/themes/default/images/rooms/corridor \ +-id $(top_srcdir)/data/themes/default/images/rooms/cellar \ +-id $(top_srcdir)/data/themes/default/images/rooms/garage \ +-id $(top_srcdir)/data/themes/default/images/widgets \ +-fd $(top_srcdir)/data/themes/default/fonts + +EDJE_VERB = $(EDJE_VERB_$(V)) +EDJE_VERB_ = $(EDJE_VERB_$(AM_DEFAULT_VERBOSITY)) +EDJE_VERB_1 = -v + +defaultdir = $(pkgdatadir) + +default_DATA = default.edj + +IMG = \ +images/buttons/button_list_up_glow.png \ +images/buttons/button_previous_glow.png \ +images/buttons/button_action_reboot_off.png \ +images/buttons/button_action_reload.png \ +images/buttons/button_action_scenario_play.png \ +images/buttons/button_action_popup_glow.png \ +images/buttons/button_widget_move_right.png \ +images/buttons/button_action_labeled.png \ +images/buttons/button_home_glow.png \ +images/buttons/button_rot_right_glow.png \ +images/buttons/button_scenarios.png \ +images/buttons/button_action_toggle.png \ +images/buttons/button_widget_list_end.png \ +images/buttons/button_rot_zoomout.png \ +images/buttons/button_action_select_unselected.png \ +images/buttons/button_rot_up_glow.png \ +images/buttons/button_scenarios_stop.png \ +images/buttons/button_action_on.png \ +images/buttons/button_action_pager_previous.png \ +images/buttons/button_action_fullscreen.png \ +images/buttons/button_home_bloom.png \ +images/buttons/button_down.png \ +images/buttons/button_action_left.png \ +images/buttons/button_scroll_glow.png \ +images/buttons/button_widget_move_left.png \ +images/buttons/button_previous.png \ +images/buttons/button_action_reboot.png \ +images/buttons/button_next.png \ +images/buttons/button_action_del_off.png \ +images/buttons/button_browser_glow.png \ +images/buttons/button_action_warming_up_glow.png \ +images/buttons/button_action_warming_up.png \ +images/buttons/button_action_on_glow.png \ +images/buttons/button_home_stop_on.png \ +images/buttons/button_action_glow_small.png \ +images/buttons/button_rot_centre_glow.png \ +images/buttons/button_rot_centre.png \ +images/buttons/menu_item.png \ +images/buttons/button_scenarios_glow.png \ +images/buttons/button_action_quit_off.png \ +images/buttons/button_configuration.png \ +images/buttons/button_rot_zoomout_glow.png \ +images/buttons/button_selected_neon.png \ +images/buttons/button_action_pager_next.png \ +images/buttons/button_action_labeled_small.png \ +images/buttons/button_action_plus_off.png \ +images/buttons/button_action_editor_glow.png \ +images/buttons/button_action_small_glow.png \ +images/buttons/button_home.png \ +images/buttons/button_element.png \ +images/buttons/button_list_down.png \ +images/buttons/button_configuration_bloom.png \ +images/buttons/button_action_big_glow.png \ +images/buttons/button_action_popup_valid.png \ +images/buttons/button_media_stop_on.png \ +images/buttons/button_action_back.png \ +images/buttons/button_configuration_stop_on.png \ +images/buttons/button_widget_move_left_big.png \ +images/buttons/button_action_neon.png \ +images/buttons/button_action_vertical_glow.png \ +images/buttons/button_rot_left.png \ +images/buttons/button_element_bevel.png \ +images/buttons/button_glow_down.png \ +images/buttons/button_widget_resize.png \ +images/buttons/button_scenarios_stop_on.png \ +images/buttons/button_action_clavier2.png \ +images/buttons/button_configuration_stop.png \ +images/buttons/button_element_cut_glow.png \ +images/buttons/button_home_stop.png \ +images/buttons/button_scenarios_bloom.png \ +images/buttons/button_action_glow.png \ +images/buttons/button_glow_up.png \ +images/buttons/button_media_glow.png \ +images/buttons/button_action_pause.png \ +images/buttons/button_rot_right.png \ +images/buttons/button_scroll.png \ +images/buttons/button_action_light_off.png \ +images/buttons/button_action_scenario_play_glow.png \ +images/buttons/button_widget_move_up.png \ +images/buttons/button_action_clavier_off.png \ +images/buttons/button_action_valid_off.png \ +images/buttons/button_feature_small.png \ +images/buttons/button_action_off.png \ +images/buttons/button_rot_down_glow.png \ +images/buttons/button_key_del.png \ +images/buttons/button_browser.png \ +images/buttons/button_action_impulse_glow.png \ +images/buttons/button_action_edit.png \ +images/buttons/button_action_rolll_up.png \ +images/buttons/button_action_small.png \ +images/buttons/button_media_bloom.png \ +images/buttons/button_action_quit.png \ +images/buttons/button_action_upper.png \ +images/buttons/menu_item_select2.png \ +images/buttons/button_action_del.png \ +images/buttons/button_action_home.png \ +images/buttons/button_action_actionstop_off.png \ +images/buttons/button_rot_down.png \ +images/buttons/button_slider_less.png \ +images/buttons/button_slider_more.png \ +images/buttons/button_action_less_vertical.png \ +images/buttons/button_rot_zoomin.png \ +images/buttons/button_rot_zoomin_glow.png \ +images/buttons/button_action_big.png \ +images/buttons/button_action_fullscreen_glow.png \ +images/buttons/button_previous_off.png \ +images/buttons/button_widget_list_begin.png \ +images/buttons/button_rot_up.png \ +images/buttons/button_action_downer.png \ +images/buttons/button_action_impulse.png \ +images/buttons/button_action_less.png \ +images/buttons/button_media_stop.png \ +images/buttons/button_keyboard_select.png \ +images/buttons/button_action_right.png \ +images/buttons/button_action_up.png \ +images/buttons/button_action_more.png \ +images/buttons/button_next_off.png \ +images/buttons/button_action_rolll_down.png \ +images/buttons/button_action_sync.png \ +images/buttons/button_media.png \ +images/buttons/button_next_glow.png \ +images/buttons/button_action_more_vertical.png \ +images/buttons/button_up.png \ +images/buttons/button_element_open.png \ +images/buttons/button_action_popup_back_glow.png \ +images/buttons/button_element_glow.png \ +images/buttons/button_action_valid.png \ +images/buttons/button_info.png \ +images/buttons/button_action_popup_back.png \ +images/buttons/button_widget_move_up_big.png \ +images/buttons/button_keyboard.png \ +images/buttons/button_action_plus.png \ +images/buttons/button_action_light_on.png \ +images/buttons/button_widget_move_down_big.png \ +images/buttons/button_action_previous.png \ +images/buttons/button_configuration_glow.png \ +images/buttons/button_action_impulse_up.png \ +images/buttons/button_action_pattern.png \ +images/buttons/button_round_stop.png \ +images/buttons/button_list_up.png \ +images/buttons/button_list_down_glow.png \ +images/buttons/button_action_labeled_glow.png \ +images/buttons/button_action_border.png \ +images/buttons/button_action_stop.png \ +images/buttons/button_action_play.png \ +images/buttons/button_widget_move_right_big.png \ +images/buttons/button_action_actionstop.png \ +images/buttons/button_action_next.png \ +images/buttons/button_widget_list_item.png \ +images/buttons/button_action_clavier.png \ +images/buttons/button_action_select_selected.png \ +images/buttons/button_widget_move_down.png \ +images/buttons/button_element_cut.png \ +images/buttons/button_action_down.png \ +images/buttons/button_rot_left_glow.png \ +images/buttons/button_action_impulse_down.png \ +images/buttons/menu_item_select.png \ +images/buttons/button_feature_big.png \ +images/buttons/button_action_warming_down.png \ +images/buttons/button_key_return.png \ +images/buttons/button_info_glow.png \ +images/buttons/button_action_editor.png \ +images/buttons/button_action_delete.png \ +images/progressbar/progressbar_background.png \ +images/progressbar/progressbar_niveau.png \ +images/progressbar/progressbar_ligne.png \ +images/adjust_pattern/elements_light.png \ +images/adjust_pattern/normal_room_bg.png \ +images/adjust_pattern/big_room_bg.png \ +images/adjust_pattern/elements.png \ +images/adjust_pattern/cover.png \ +images/adjust_pattern/elements_track.png \ +images/adjust_pattern/player.png \ +images/adjust_pattern/small_room_bg.png \ +images/widgets/widget_container_back_buttons.png \ +images/widgets/widget_back_edit.png \ +images/widgets/xmas_banner_right.png \ +images/widgets/flake_large.png \ +images/widgets/widget_container_back.png \ +images/widgets/flake_small.png \ +images/widgets/xmas_banner_left.png \ +images/widgets/flake_medium.png \ +images/parts/config_item.png \ +images/parts/slider_green.png \ +images/parts/footer_shadow.png \ +images/parts/loading_top.png \ +images/parts/menu_glowed_neon.png \ +images/parts/menu_media_item_separator.png \ +images/parts/slider_vertical.png \ +images/parts/camera_big_border.png \ +images/parts/module_footer_shadow.png \ +images/parts/player_line_decoration_top.png \ +images/parts/dialog_neon.png \ +images/parts/selector_on.png \ +images/parts/browser_list_decoration.png \ +images/parts/camera_border.png \ +images/parts/module_header_shadow.png \ +images/parts/keyboard_select_bar_right.png \ +images/parts/menu_media_icon_eskiss_back.png \ +images/parts/player_small_shadow.png \ +images/parts/calendar_back.png \ +images/parts/glow.png \ +images/parts/medium_list_decoration_left.png \ +images/parts/player_cover_front.png \ +images/parts/dialog_lines.png \ +images/parts/player_line_decoration_bottom.png \ +images/parts/slider_on.png \ +images/parts/calendar_holiday.png \ +images/parts/menu_back.png \ +images/parts/loading_bar.png \ +images/parts/slider_border_red.png \ +images/parts/calendar_select.png \ +images/parts/controls_sep.png \ +images/parts/keyboard_agenda_background.png \ +images/parts/slider_green_on.png \ +images/parts/menu_media_icon_web_back.png \ +images/parts/keyboard_select_separator.png \ +images/parts/window_border2.png \ +images/parts/shutter_arrows_deco.png \ +images/parts/volume_knob_move.png \ +images/parts/keyboard_cursor.png \ +images/parts/keyboard_select_bar_left.png \ +images/parts/shadow_photo.png \ +images/parts/menu_header_shadow.png \ +images/parts/slider_vertical_on.png \ +images/parts/middle_skyline.png \ +images/parts/keyboard_lines.png \ +images/parts/album_back.png \ +images/parts/top_skyline.png \ +images/parts/indicator_glow.png \ +images/parts/player_line_decoration_right.png \ +images/parts/top_skyline_neon.png \ +images/parts/player_glow.png \ +images/parts/vertical_level_indicator.png \ +images/parts/slider_red_on.png \ +images/parts/popup_arrow_down.png \ +images/parts/slider_border_green.png \ +images/parts/slider_border.png \ +images/parts/medium_list_decoration_right.png \ +images/parts/menu_media_icon_cd_back.png \ +images/parts/keyboard_key_glow.png \ +images/parts/standard_list_decoration_top.png \ +images/parts/slider_border_blue.png \ +images/parts/player_small_cover_back.png \ +images/parts/calendar_header.png \ +images/parts/standard_list_decoration_bottom.png \ +images/parts/slider_blue.png \ +images/parts/calendar_ring.png \ +images/parts/keyboard_key_selected.png \ +images/parts/player_cover_back.png \ +images/parts/keyboard_multiline_background.png \ +images/parts/selector_off.png \ +images/parts/menu_media_item_glow.png \ +images/parts/footer_kevlar.png \ +images/parts/popup_arrow_left.png \ +images/parts/camera_reflect.png \ +images/parts/menu_buttons_shadow_left.png \ +images/parts/list_message_border.png \ +images/parts/small_list_decoration.png \ +images/parts/player_line_decoration_cd.png \ +images/parts/medium_list_decoration_camera.png \ +images/parts/player_line_decoration_left.png \ +images/parts/camera_mire.png \ +images/parts/controls_bg.png \ +images/parts/menu_buttons_shadow_right.png \ +images/parts/slider_blue_on.png \ +images/parts/menu_media_item_shadow.png \ +images/parts/display_border.png \ +images/parts/menu_media_item_reflect.png \ +images/parts/popup_arrow_right.png \ +images/parts/menu_media_icon_camera_red.png \ +images/parts/cover_loading_border.png \ +images/parts/display_border2.png \ +images/parts/cursor.png \ +images/parts/small_scroll_list_decoration.png \ +images/parts/standard_list_decoration.png \ +images/parts/medium_scroll_list_decoration.png \ +images/parts/menu_media_item.png \ +images/parts/scenario_separator.png \ +images/parts/camera_medium_border.png \ +images/parts/popup_carbon.png \ +images/parts/separator.png \ +images/parts/menu_media_icon_camera_back.png \ +images/parts/player_small_cover_front.png \ +images/parts/keyboard_background.png \ +images/parts/volume_knob_ledsoff.png \ +images/parts/rgb_preview.png \ +images/parts/config_item_select.png \ +images/parts/popup_arrow_up.png \ +images/parts/menu_footer_shadow.png \ +images/parts/middle_skyline_neon.png \ +images/parts/dialog_background.png \ +images/parts/window_border.png \ +images/parts/popup_bg.png \ +images/parts/slider_red.png \ +images/parts/loading_bg.png \ +images/parts/player_shadow.png \ +images/parts/volume_knob.png \ +images/parts/window_shutter.png \ +images/parts/imageviewer_footer.png \ +images/parts/player_cd_shadow.png \ +images/parts/scenario_list_decoration.png \ +images/parts/slider.png \ +images/parts/camera_nocam.png \ +images/parts/album_cover.png \ +images/parts/small_list_decoration_left.png \ +images/parts/slider_border_vertical.png \ +images/parts/cover_border.png \ +images/bootsplash/neonlight.png \ +images/scenario/wizzard_4.png \ +images/scenario/wizzard_header.png \ +images/scenario/wizzard_3.png \ +images/scenario/wizzard_line_selected.png \ +images/scenario/wizzard_bg_selected.png \ +images/scenario/wizzard_1.png \ +images/scenario/wizzard_2.png \ +images/background/menu_footer_background_left.png \ +images/background/bootsplash.png \ +images/background/background_top.png \ +images/background/background_default_lighted.png \ +images/background/background_quad.png \ +images/background/background_bottom.png \ +images/background/module_footer.png \ +images/background/menu_header_background_version.png \ +images/background/background_default.png \ +images/background/menu_header_background.png \ +images/background/menu_footer_background.png \ +images/background/module_header.png \ +images/background/menu_footer_background_right.png \ +images/background/background_center.png \ +images/download_manager/download_disk.png \ +images/download_manager/download_shadow.png \ +images/download_manager/download_arrow.png \ +images/download_manager/download_fond.png \ +images/logo/final.png \ +images/logo/shadow.png \ +images/logo/logo_tittle.png \ +images/logo/calaos_about_logo.png \ +images/logo/menu_logo.png \ +images/logo/logo_mirror.png \ +images/logo/bloom.png \ +images/icons/icon_select_simple.png \ +images/icons/icon_groom.png \ +images/icons/icon_player.png \ +images/icons/icon_play.png \ +images/icons/icon_edit.png \ +images/icons/icon_analog.png \ +images/icons/icon_light_on.png \ +images/icons/icon_item_widget.png \ +images/icons/icon_scenario_big.png \ +images/icons/icon_item_screensaver.png \ +images/icons/icon_tor_on.png \ +images/icons/icon_config_widget.png \ +images/icons/icon_cd.png \ +images/icons/icon_cd_glow.png \ +images/icons/icon_string.png \ +images/icons/icon_plus.png \ +images/icons/icon_camera_on.png \ +images/icons/icon_config_info.png \ +images/icons/icon_camera.png \ +images/icons/icon_action.png \ +images/icons/icon_clock.png \ +images/icons/icon_light_simple.png \ +images/icons/icon_warming_up.png \ +images/icons/icon_sound.png \ +images/icons/icon_search.png \ +images/icons/icon_config_veille.png \ +images/icons/icon_temp.png \ +images/icons/icon_folder.png \ +images/icons/icon_myhome.png \ +images/icons/icon_room_on.png \ +images/icons/icon_disclosure.png \ +images/icons/icon_scenario_small.png \ +images/icons/icon_music.png \ +images/icons/icon_camera_title.png \ +images/icons/icon_action_simple.png \ +images/icons/icon_flickr.png \ +images/icons/icon_config_terminal.png \ +images/icons/icon_config_fw.png \ +images/icons/icon_bool_on.png \ +images/icons/icon_bool.png \ +images/icons/icon_int.png \ +images/icons/icon_light_off.png \ +images/icons/icon_play_simple.png \ +images/icons/icon_room.png \ +images/icons/icon_bool_scenario.png \ +images/icons/icon_config_l18n.png \ +images/icons/icon_config_clock.png \ +images/icons/icon_warming.png \ +images/icons/icon_stop_simple.png \ +images/icons/icon_action_blue.png \ +images/icons/icon_trash.png \ +images/icons/icon_camera_simple.png \ +images/icons/icon_warming_down.png \ +images/icons/icon_config_network.png \ +images/icons/icon_item_lock.png \ +images/icons/icon_light.png \ +images/icons/icon_playlist.png \ +images/icons/icon_note.png \ +images/icons/icon_config_security.png \ +images/icons/icon_item_reboot.png \ +images/icons/icon_tor.png \ +images/icons/icon_widget_unknown.png \ +images/icons/icon_shutter_on.png \ +images/icons/icon_note_on.png \ +images/icons/icon_shutter.png \ +images/icons/icon_moins.png \ +images/icons/icon_radio.png \ +images/animations/bootsplash_logo/0028.png \ +images/animations/bootsplash_logo/0002.png \ +images/animations/bootsplash_logo/0047.png \ +images/animations/bootsplash_logo/0006.png \ +images/animations/bootsplash_logo/0043.png \ +images/animations/bootsplash_logo/0021.png \ +images/animations/bootsplash_logo/0040.png \ +images/animations/bootsplash_logo/0056.png \ +images/animations/bootsplash_logo/0024.png \ +images/animations/bootsplash_logo/0053.png \ +images/animations/bootsplash_logo/0054.png \ +images/animations/bootsplash_logo/0012.png \ +images/animations/bootsplash_logo/0063.png \ +images/animations/bootsplash_logo/0051.png \ +images/animations/bootsplash_logo/0061.png \ +images/animations/bootsplash_logo/0031.png \ +images/animations/bootsplash_logo/0013.png \ +images/animations/bootsplash_logo/0019.png \ +images/animations/bootsplash_logo/0009.png \ +images/animations/bootsplash_logo/0060.png \ +images/animations/bootsplash_logo/0064.png \ +images/animations/bootsplash_logo/0001.png \ +images/animations/bootsplash_logo/0045.png \ +images/animations/bootsplash_logo/0033.png \ +images/animations/bootsplash_logo/0017.png \ +images/animations/bootsplash_logo/0029.png \ +images/animations/bootsplash_logo/0059.png \ +images/animations/bootsplash_logo/0057.png \ +images/animations/bootsplash_logo/0037.png \ +images/animations/bootsplash_logo/0039.png \ +images/animations/bootsplash_logo/0065.png \ +images/animations/bootsplash_logo/0014.png \ +images/animations/bootsplash_logo/0015.png \ +images/animations/bootsplash_logo/0003.png \ +images/animations/bootsplash_logo/0010.png \ +images/animations/bootsplash_logo/0050.png \ +images/animations/bootsplash_logo/0011.png \ +images/animations/bootsplash_logo/0008.png \ +images/animations/bootsplash_logo/0007.png \ +images/animations/bootsplash_logo/0038.png \ +images/animations/bootsplash_logo/0049.png \ +images/animations/bootsplash_logo/0058.png \ +images/animations/bootsplash_logo/0048.png \ +images/animations/bootsplash_logo/0035.png \ +images/animations/bootsplash_logo/0062.png \ +images/animations/bootsplash_logo/0005.png \ +images/animations/bootsplash_logo/0032.png \ +images/animations/bootsplash_logo/0027.png \ +images/animations/bootsplash_logo/0055.png \ +images/animations/bootsplash_logo/0025.png \ +images/animations/bootsplash_logo/0026.png \ +images/animations/bootsplash_logo/0052.png \ +images/animations/bootsplash_logo/0030.png \ +images/animations/bootsplash_logo/0036.png \ +images/animations/bootsplash_logo/0022.png \ +images/animations/bootsplash_logo/0020.png \ +images/animations/bootsplash_logo/0044.png \ +images/animations/bootsplash_logo/0046.png \ +images/animations/bootsplash_logo/0016.png \ +images/animations/bootsplash_logo/0042.png \ +images/animations/bootsplash_logo/0004.png \ +images/animations/bootsplash_logo/0041.png \ +images/animations/bootsplash_logo/0034.png \ +images/animations/bootsplash_logo/0018.png \ +images/animations/bootsplash_logo/0023.png \ +images/animations/shutter_icon/icon_shutter_000.png \ +images/animations/shutter_icon/icon_shutter_002.png \ +images/animations/shutter_icon/icon_shutter_006.png \ +images/animations/shutter_icon/icon_shutter_005.png \ +images/animations/shutter_icon/icon_shutter_001.png \ +images/animations/shutter_icon/icon_shutter_008.png \ +images/animations/shutter_icon/icon_shutter_007.png \ +images/animations/shutter_icon/icon_shutter_003.png \ +images/animations/shutter_icon/icon_shutter_009.png \ +images/animations/shutter_icon/icon_shutter_004.png \ +images/animations/round_button/round_button_006.png \ +images/animations/round_button/round_button_001.png \ +images/animations/round_button/round_button_010.png \ +images/animations/round_button/round_button_007.png \ +images/animations/round_button/round_button_009.png \ +images/animations/round_button/round_button_003.png \ +images/animations/round_button/round_button_002.png \ +images/animations/round_button/round_button_005.png \ +images/animations/round_button/round_button_008.png \ +images/animations/round_button/round_button_004.png \ +images/animations/tor_icon/icon_tor_003.png \ +images/animations/tor_icon/icon_tor_006.png \ +images/animations/tor_icon/icon_tor_001.png \ +images/animations/tor_icon/icon_tor_007.png \ +images/animations/tor_icon/icon_tor_000.png \ +images/animations/tor_icon/icon_tor_002.png \ +images/animations/tor_icon/icon_tor_004.png \ +images/animations/tor_icon/icon_tor_005.png \ +images/animations/tor_icon/icon_tor_008.png \ +images/animations/light_icon/icon_light_004.png \ +images/animations/light_icon/icon_light_009.png \ +images/animations/light_icon/icon_light_008.png \ +images/animations/light_icon/icon_light_003.png \ +images/animations/light_icon/icon_light_001.png \ +images/animations/light_icon/icon_light_002.png \ +images/animations/light_icon/icon_light_005.png \ +images/animations/light_icon/icon_light_007.png \ +images/animations/light_icon/icon_light_006.png \ +images/animations/mini_circular_cooldown/mini_circular_015.png \ +images/animations/mini_circular_cooldown/mini_circular_004.png \ +images/animations/mini_circular_cooldown/mini_circular_013.png \ +images/animations/mini_circular_cooldown/mini_circular_008.png \ +images/animations/mini_circular_cooldown/mini_circular_009.png \ +images/animations/mini_circular_cooldown/mini_circular_012.png \ +images/animations/mini_circular_cooldown/mini_circular_000.png \ +images/animations/mini_circular_cooldown/mini_circular_011.png \ +images/animations/mini_circular_cooldown/mini_circular_005.png \ +images/animations/mini_circular_cooldown/mini_circular_007.png \ +images/animations/mini_circular_cooldown/mini_circular_017.png \ +images/animations/mini_circular_cooldown/mini_circular_003.png \ +images/animations/mini_circular_cooldown/mini_circular_002.png \ +images/animations/mini_circular_cooldown/mini_circular_006.png \ +images/animations/mini_circular_cooldown/mini_circular_001.png \ +images/animations/mini_circular_cooldown/mini_circular_016.png \ +images/animations/mini_circular_cooldown/mini_circular_014.png \ +images/animations/mini_circular_cooldown/mini_circular_010.png \ +images/animations/room_touched/medium_room_touched_001.png \ +images/animations/room_touched/medium_room_touched_003.png \ +images/animations/room_touched/medium_room_touched_002.png \ +images/animations/cd_player/menu_media_icon_cd_01.png \ +images/animations/cd_player/cd_player_007.png \ +images/animations/cd_player/cd_player_003.png \ +images/animations/cd_player/menu_media_icon_cd_06.png \ +images/animations/cd_player/menu_media_icon_cd_07.png \ +images/animations/cd_player/menu_media_icon_cd_09.png \ +images/animations/cd_player/cd_player_006.png \ +images/animations/cd_player/mini_cd_player_001.png \ +images/animations/cd_player/menu_media_icon_cd_02.png \ +images/animations/cd_player/cd_player_008.png \ +images/animations/cd_player/menu_media_icon_cd_05.png \ +images/animations/cd_player/menu_media_icon_cd_04.png \ +images/animations/cd_player/cd_player_001.png \ +images/animations/cd_player/cd_player_002.png \ +images/animations/cd_player/cd_player_004.png \ +images/animations/cd_player/menu_media_icon_cd_03.png \ +images/animations/cd_player/cd_player_005.png \ +images/animations/cd_player/cd_player_009.png \ +images/animations/cd_player/menu_media_icon_cd_08.png \ +images/animations/scenario_icon/icon_scenario_035.png \ +images/animations/scenario_icon/icon_scenario_029.png \ +images/animations/scenario_icon/icon_scenario_011.png \ +images/animations/scenario_icon/icon_scenario_006.png \ +images/animations/scenario_icon/icon_scenario_027.png \ +images/animations/scenario_icon/icon_scenario_013.png \ +images/animations/scenario_icon/icon_scenario_009.png \ +images/animations/scenario_icon/icon_scenario_032.png \ +images/animations/scenario_icon/icon_scenario_038.png \ +images/animations/scenario_icon/icon_scenario_012.png \ +images/animations/scenario_icon/icon_scenario_019.png \ +images/animations/scenario_icon/icon_scenario_021.png \ +images/animations/scenario_icon/icon_scenario_015.png \ +images/animations/scenario_icon/icon_scenario_018.png \ +images/animations/scenario_icon/icon_scenario_025.png \ +images/animations/scenario_icon/icon_scenario_001.png \ +images/animations/scenario_icon/icon_scenario_024.png \ +images/animations/scenario_icon/icon_scenario_022.png \ +images/animations/scenario_icon/icon_scenario_008.png \ +images/animations/scenario_icon/icon_scenario_010.png \ +images/animations/scenario_icon/icon_scenario_004.png \ +images/animations/scenario_icon/icon_scenario_020.png \ +images/animations/scenario_icon/icon_scenario_036.png \ +images/animations/scenario_icon/icon_scenario_014.png \ +images/animations/scenario_icon/icon_scenario_028.png \ +images/animations/scenario_icon/icon_scenario_033.png \ +images/animations/scenario_icon/icon_scenario_023.png \ +images/animations/scenario_icon/icon_scenario_037.png \ +images/animations/scenario_icon/icon_scenario_040.png \ +images/animations/scenario_icon/icon_scenario_007.png \ +images/animations/scenario_icon/icon_scenario_002.png \ +images/animations/scenario_icon/icon_scenario_026.png \ +images/animations/scenario_icon/icon_scenario_030.png \ +images/animations/scenario_icon/icon_scenario_016.png \ +images/animations/scenario_icon/icon_scenario_039.png \ +images/animations/scenario_icon/icon_scenario_017.png \ +images/animations/scenario_icon/icon_scenario_034.png \ +images/animations/scenario_icon/icon_scenario_031.png \ +images/animations/scenario_icon/icon_scenario_005.png \ +images/animations/scenario_icon/icon_scenario_003.png \ +images/animations/bootsplash_logo_reflect/reflect_004.png \ +images/animations/bootsplash_logo_reflect/reflect_002.png \ +images/animations/bootsplash_logo_reflect/reflect_001.png \ +images/animations/bootsplash_logo_reflect/reflect_005.png \ +images/animations/bootsplash_logo_reflect/reflect_007.png \ +images/animations/bootsplash_logo_reflect/reflect_006.png \ +images/animations/bootsplash_logo_reflect/reflect_003.png \ +images/animations/bootsplash_notification_icone/loader_icon_0009.png \ +images/animations/bootsplash_notification_icone/loader_icon_0015.png \ +images/animations/bootsplash_notification_icone/loader_icon_0003.png \ +images/animations/bootsplash_notification_icone/loader_icon_0017.png \ +images/animations/bootsplash_notification_icone/loader_icon_0016.png \ +images/animations/bootsplash_notification_icone/loader_icon_0019.png \ +images/animations/bootsplash_notification_icone/loader_icon_0023.png \ +images/animations/bootsplash_notification_icone/loader_icon_0004.png \ +images/animations/bootsplash_notification_icone/loader_icon_0025.png \ +images/animations/bootsplash_notification_icone/loader_icon_0007.png \ +images/animations/bootsplash_notification_icone/loader_icon_0008.png \ +images/animations/bootsplash_notification_icone/loader_icon_0020.png \ +images/animations/bootsplash_notification_icone/loader_icon_0006.png \ +images/animations/bootsplash_notification_icone/loader_icon_0010.png \ +images/animations/bootsplash_notification_icone/loader_icon_0021.png \ +images/animations/bootsplash_notification_icone/loader_icon_0014.png \ +images/animations/bootsplash_notification_icone/loader_icon_0012.png \ +images/animations/bootsplash_notification_icone/loader_icon_0001.png \ +images/animations/bootsplash_notification_icone/loader_icon_0002.png \ +images/animations/bootsplash_notification_icone/loader_icon_bg.png \ +images/animations/bootsplash_notification_icone/loader_icon_0018.png \ +images/animations/bootsplash_notification_icone/loader_icon_0011.png \ +images/animations/bootsplash_notification_icone/loader_icon_0013.png \ +images/animations/bootsplash_notification_icone/loader_icon_0005.png \ +images/animations/bootsplash_notification_icone/loader_icon_0024.png \ +images/animations/bootsplash_notification_icone/loader_icon_0022.png \ +images/animations/micro_circular_cooldown/micro_circular_001.png \ +images/animations/micro_circular_cooldown/micro_circular_004.png \ +images/animations/micro_circular_cooldown/micro_circular_012.png \ +images/animations/micro_circular_cooldown/micro_circular_010.png \ +images/animations/micro_circular_cooldown/micro_circular_007.png \ +images/animations/micro_circular_cooldown/micro_circular_009.png \ +images/animations/micro_circular_cooldown/micro_circular_003.png \ +images/animations/micro_circular_cooldown/micro_circular_014.png \ +images/animations/micro_circular_cooldown/micro_circular_006.png \ +images/animations/micro_circular_cooldown/micro_circular_008.png \ +images/animations/micro_circular_cooldown/micro_circular_017.png \ +images/animations/micro_circular_cooldown/micro_circular_011.png \ +images/animations/micro_circular_cooldown/micro_circular_016.png \ +images/animations/micro_circular_cooldown/micro_circular_002.png \ +images/animations/micro_circular_cooldown/micro_circular_013.png \ +images/animations/micro_circular_cooldown/micro_circular_000.png \ +images/animations/micro_circular_cooldown/micro_circular_015.png \ +images/animations/micro_circular_cooldown/micro_circular_005.png \ +images/animations/volume_knob_leds/volume_led_32.png \ +images/animations/volume_knob_leds/volume_led_24.png \ +images/animations/volume_knob_leds/volume_led_25.png \ +images/animations/volume_knob_leds/volume_led_29.png \ +images/animations/volume_knob_leds/volume_led_43.png \ +images/animations/volume_knob_leds/volume_led_26.png \ +images/animations/volume_knob_leds/volume_led_27.png \ +images/animations/volume_knob_leds/volume_led_20.png \ +images/animations/volume_knob_leds/volume_led_31.png \ +images/animations/volume_knob_leds/volume_led_02.png \ +images/animations/volume_knob_leds/volume_led_35.png \ +images/animations/volume_knob_leds/volume_led_37.png \ +images/animations/volume_knob_leds/volume_led_41.png \ +images/animations/volume_knob_leds/volume_led_19.png \ +images/animations/volume_knob_leds/volume_led_28.png \ +images/animations/volume_knob_leds/volume_led_09.png \ +images/animations/volume_knob_leds/volume_led_17.png \ +images/animations/volume_knob_leds/volume_led_07.png \ +images/animations/volume_knob_leds/volume_led_01.png \ +images/animations/volume_knob_leds/volume_led_22.png \ +images/animations/volume_knob_leds/volume_led_30.png \ +images/animations/volume_knob_leds/volume_led_08.png \ +images/animations/volume_knob_leds/volume_led_06.png \ +images/animations/volume_knob_leds/volume_led_11.png \ +images/animations/volume_knob_leds/volume_led_14.png \ +images/animations/volume_knob_leds/volume_led_15.png \ +images/animations/volume_knob_leds/volume_led_10.png \ +images/animations/volume_knob_leds/volume_led_34.png \ +images/animations/volume_knob_leds/volume_led_42.png \ +images/animations/volume_knob_leds/volume_led_16.png \ +images/animations/volume_knob_leds/volume_led_39.png \ +images/animations/volume_knob_leds/volume_led_23.png \ +images/animations/volume_knob_leds/volume_led_03.png \ +images/animations/volume_knob_leds/volume_led_40.png \ +images/animations/volume_knob_leds/volume_led_45.png \ +images/animations/volume_knob_leds/volume_led_18.png \ +images/animations/volume_knob_leds/volume_led_21.png \ +images/animations/volume_knob_leds/volume_led_36.png \ +images/animations/volume_knob_leds/volume_led_33.png \ +images/animations/volume_knob_leds/volume_led_05.png \ +images/animations/volume_knob_leds/volume_led_38.png \ +images/animations/volume_knob_leds/volume_led_13.png \ +images/animations/volume_knob_leds/volume_led_04.png \ +images/animations/volume_knob_leds/volume_led_12.png \ +images/animations/volume_knob_leds/volume_led_44.png \ +images/animations/glowed_556_line/glowed_556_line_final.png \ +images/rooms/cellar/cellar_medium_bloom.png \ +images/rooms/cellar/cellar_small.png \ +images/rooms/cellar/cellar_medium.png \ +images/rooms/cellar/cellar_big.png \ +images/rooms/bathroom/bathroom_medium_bloom.png \ +images/rooms/bathroom/bathroom_small.png \ +images/rooms/bathroom/bathroom_medium.png \ +images/rooms/bathroom/bathroom_big.png \ +images/rooms/office/office_small.png \ +images/rooms/office/office_medium_bloom.png \ +images/rooms/office/office_medium.png \ +images/rooms/office/office_big.png \ +images/rooms/bedroom_small.png \ +images/rooms/lounge/lounge_medium.png \ +images/rooms/lounge/lounge_small.png \ +images/rooms/lounge/lounge_medium_bloom.png \ +images/rooms/lounge/lounge_big.png \ +images/rooms/bathroom_small.png \ +images/rooms/garage/garage_medium.png \ +images/rooms/garage/garage_big.png \ +images/rooms/garage/garage_medium_bloom.png \ +images/rooms/garage/garage_small.png \ +images/rooms/various/various_medium_bloom.png \ +images/rooms/various/various_big.png \ +images/rooms/various/various_medium.png \ +images/rooms/various/various_small.png \ +images/rooms/big_room_glow.png \ +images/rooms/diningroom_small.png \ +images/rooms/medium_room_neon.png \ +images/rooms/big_room_wire.png \ +images/rooms/diningroom/diningroom_small.png \ +images/rooms/diningroom/diningroom_big.png \ +images/rooms/diningroom/diningroom_medium.png \ +images/rooms/diningroom/diningroom_medium_bloom.png \ +images/rooms/small_room_shadow.png \ +images/rooms/medium_room_shadow.png \ +images/rooms/cellar_small.png \ +images/rooms/medium_room_glow.png \ +images/rooms/medium_room_touched.png \ +images/rooms/outside/outside_medium_bloom.png \ +images/rooms/outside/outside_big.png \ +images/rooms/outside/outside_small.png \ +images/rooms/outside/outside_medium.png \ +images/rooms/bedroom/bedroom_big.png \ +images/rooms/bedroom/bedroom_small.png \ +images/rooms/bedroom/bedroom_medium.png \ +images/rooms/bedroom/bedroom_medium_bloom.png \ +images/rooms/corridor/corridor_medium.png \ +images/rooms/corridor/corridor_big.png \ +images/rooms/corridor/corridor_medium_bloom.png \ +images/rooms/corridor/corridor_small.png \ +images/rooms/garage_small.png \ +images/rooms/corridor_small.png \ +images/rooms/kitchen/kitchen_medium_bloom.png \ +images/rooms/kitchen/kitchen_small.png \ +images/rooms/kitchen/kitchen_medium.png \ +images/rooms/kitchen/kitchen_big.png \ +images/rooms/big_room_shadow.png + + +EDC = \ +calaos_theme.edc \ +elm/elm_genlist_item_internalstring.edc \ +elm/elm_ctxpopup.edc \ +elm/elm_genlist_item_internalbool.edc \ +elm/elm_calendar.edc \ +elm/elm_entry_keyboard.edc \ +elm/elm_list_base.edc \ +elm/elm_genlist_item_wovolet.edc \ +elm/elm_genlist_item_wovoletsmart.edc \ +elm/elm_genlist_item_woanalog.edc \ +elm/elm_button.edc \ +elm/elm_actionbutton.edc \ +elm/elm_list_homeboard.edc \ +elm/elm_genlist_item_wianalog.edc \ +elm/elm_genlist_item_simple.edc \ +elm/elm_genlist_item_scenario.edc \ +elm/elm_genlist_item_browser_album.edc \ +elm/elm_genlist_item_wodigital.edc \ +elm/elm_genlist_item_group_room.edc \ +elm/elm_genlist_item_wodalirvb.edc \ +elm/elm_genlist_item_internalint.edc \ +elm/elm_genlist_item_playlist.edc \ +elm/elm_pager.edc \ +elm/elm_genlist_item_wodali.edc \ +elm/elm_slider_knob.edc \ +elm/elm_list_home_room.edc \ +elm/elm_genlist_item_witemp.edc \ +elm/elm_genlist_item_scenario_schedule.edc \ +elm/elm_spinner.edc \ +structure/page_camera.edc \ +structure/room_prog_macro.edc \ +structure/page_config_panel.edc \ +structure/activity_header_footer.edc \ +structure/page_widgets.edc \ +structure/keyboard_macros.edc \ +structure/page_web.edc \ +structure/room_macro.edc \ +structure/main_layout.edc \ +structure/player_prog.edc \ +structure/styles.edc \ +structure/macro_menu_button.edc \ +structure/circular_spinner.edc \ +structure/page_scenarios.edc \ +structure/page_schedule.edc \ +structure/page_edit_scenario.edc \ +structure/main_menu.edc \ +structure/page_audio_list.edc \ +structure/popup_actions_pages.edc \ +structure/element_scenario_home.edc \ +structure/page_keyboard.edc \ +structure/player.edc \ +structure/slider_horizontal_macro.edc \ +structure/icons.edc \ +structure/utils.edc \ +structure/paging_view.edc \ +structure/slider_vertical_macro.edc \ +structure/rooms.edc \ +structure/page_home.edc \ +structure/activity_loading.edc \ +structure/scrolling_text.edc \ +structure/page_media.edc \ +structure/old_macros.edc \ +structure/slider.edc \ +structure/macro_round_button.edc \ +structure/amplifier_control.edc \ +structure/images.edc + +FONT = \ +fonts/calaos_logo.ttf \ +fonts/calaos_content.ttf \ +fonts/calaos_content-oblique.ttf \ +fonts/calaos_text_bold.ttf \ +fonts/Ubuntu-L.ttf \ +fonts/calaos_text.ttf \ +fonts/Ubuntu-M.ttf \ +fonts/calaos_content-bold.ttf \ +fonts/RepetitionScrolling.ttf \ +fonts/Ubuntu-B.ttf + + +EXTRA_DIST = \ + $(IMG) \ + $(EDC) \ + $(FONT) + +default.edj: Makefile $(EXTRA_DIST) + $(AM_V_GEN)$(EDJE_CC) $(EDJE_VERB) $(EDJE_FLAGS) \ + $(top_srcdir)/data/themes/default/calaos_theme.edc \ + $(top_builddir)/data/themes/default/default.edj + +clean-local: + rm -f *.edj + diff --git a/data/themes/default/Makefile.in b/data/themes/default/Makefile.in new file mode 100644 index 00000000..1334f863 --- /dev/null +++ b/data/themes/default/Makefile.in @@ -0,0 +1,1320 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = data/themes/default +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 = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(defaultdir)" +DATA = $(default_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +MAINTAINERCLEANFILES = Makefile.in +EDJE_CC = edje_cc +EDJE_FLAGS = \ +-id $(top_srcdir)/data/themes/default/images \ +-id $(top_srcdir)/data/themes/default/images/buttons \ +-id $(top_srcdir)/data/themes/default/images/parts \ +-id $(top_srcdir)/data/themes/default/images/icons \ +-id $(top_srcdir)/data/themes/default/images/logo \ +-id $(top_srcdir)/data/themes/default/images/animations \ +-id $(top_srcdir)/data/themes/default/images/animations/glowed_556_line \ +-id $(top_srcdir)/data/themes/default/images/animations/room_touched \ +-id $(top_srcdir)/data/themes/default/images/animations/round_button \ +-id $(top_srcdir)/data/themes/default/images/animations/light_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/shutter_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/scenario_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/mini_circular_cooldown \ +-id $(top_srcdir)/data/themes/default/images/animations/micro_circular_cooldown \ +-id $(top_srcdir)/data/themes/default/images/animations/cd_player \ +-id $(top_srcdir)/data/themes/default/images/animations/bootsplash_logo \ +-id $(top_srcdir)/data/themes/default/images/animations/bootsplash_logo_reflect \ +-id $(top_srcdir)/data/themes/default/images/animations/bootsplash_notification_icone \ +-id $(top_srcdir)/data/themes/default/images/animations/tor_icon \ +-id $(top_srcdir)/data/themes/default/images/animations/volume_knob_leds \ +-id $(top_srcdir)/data/themes/default/images/boosplash \ +-id $(top_srcdir)/data/themes/default/images/adjust_pattern \ +-id $(top_srcdir)/data/themes/default/images/background \ +-id $(top_srcdir)/data/themes/default/images/scenario \ +-id $(top_srcdir)/data/themes/default/images/rooms \ +-id $(top_srcdir)/data/themes/default/images/rooms/lounge \ +-id $(top_srcdir)/data/themes/default/images/rooms/bedroom \ +-id $(top_srcdir)/data/themes/default/images/rooms/kitchen \ +-id $(top_srcdir)/data/themes/default/images/rooms/office \ +-id $(top_srcdir)/data/themes/default/images/rooms/diningroom \ +-id $(top_srcdir)/data/themes/default/images/rooms/various \ +-id $(top_srcdir)/data/themes/default/images/rooms/outside \ +-id $(top_srcdir)/data/themes/default/images/rooms/bathroom \ +-id $(top_srcdir)/data/themes/default/images/rooms/corridor \ +-id $(top_srcdir)/data/themes/default/images/rooms/cellar \ +-id $(top_srcdir)/data/themes/default/images/rooms/garage \ +-id $(top_srcdir)/data/themes/default/images/widgets \ +-fd $(top_srcdir)/data/themes/default/fonts + +EDJE_VERB = $(EDJE_VERB_$(V)) +EDJE_VERB_ = $(EDJE_VERB_$(AM_DEFAULT_VERBOSITY)) +EDJE_VERB_1 = -v +defaultdir = $(pkgdatadir) +default_DATA = default.edj +IMG = \ +images/buttons/button_list_up_glow.png \ +images/buttons/button_previous_glow.png \ +images/buttons/button_action_reboot_off.png \ +images/buttons/button_action_reload.png \ +images/buttons/button_action_scenario_play.png \ +images/buttons/button_action_popup_glow.png \ +images/buttons/button_widget_move_right.png \ +images/buttons/button_action_labeled.png \ +images/buttons/button_home_glow.png \ +images/buttons/button_rot_right_glow.png \ +images/buttons/button_scenarios.png \ +images/buttons/button_action_toggle.png \ +images/buttons/button_widget_list_end.png \ +images/buttons/button_rot_zoomout.png \ +images/buttons/button_action_select_unselected.png \ +images/buttons/button_rot_up_glow.png \ +images/buttons/button_scenarios_stop.png \ +images/buttons/button_action_on.png \ +images/buttons/button_action_pager_previous.png \ +images/buttons/button_action_fullscreen.png \ +images/buttons/button_home_bloom.png \ +images/buttons/button_down.png \ +images/buttons/button_action_left.png \ +images/buttons/button_scroll_glow.png \ +images/buttons/button_widget_move_left.png \ +images/buttons/button_previous.png \ +images/buttons/button_action_reboot.png \ +images/buttons/button_next.png \ +images/buttons/button_action_del_off.png \ +images/buttons/button_browser_glow.png \ +images/buttons/button_action_warming_up_glow.png \ +images/buttons/button_action_warming_up.png \ +images/buttons/button_action_on_glow.png \ +images/buttons/button_home_stop_on.png \ +images/buttons/button_action_glow_small.png \ +images/buttons/button_rot_centre_glow.png \ +images/buttons/button_rot_centre.png \ +images/buttons/menu_item.png \ +images/buttons/button_scenarios_glow.png \ +images/buttons/button_action_quit_off.png \ +images/buttons/button_configuration.png \ +images/buttons/button_rot_zoomout_glow.png \ +images/buttons/button_selected_neon.png \ +images/buttons/button_action_pager_next.png \ +images/buttons/button_action_labeled_small.png \ +images/buttons/button_action_plus_off.png \ +images/buttons/button_action_editor_glow.png \ +images/buttons/button_action_small_glow.png \ +images/buttons/button_home.png \ +images/buttons/button_element.png \ +images/buttons/button_list_down.png \ +images/buttons/button_configuration_bloom.png \ +images/buttons/button_action_big_glow.png \ +images/buttons/button_action_popup_valid.png \ +images/buttons/button_media_stop_on.png \ +images/buttons/button_action_back.png \ +images/buttons/button_configuration_stop_on.png \ +images/buttons/button_widget_move_left_big.png \ +images/buttons/button_action_neon.png \ +images/buttons/button_action_vertical_glow.png \ +images/buttons/button_rot_left.png \ +images/buttons/button_element_bevel.png \ +images/buttons/button_glow_down.png \ +images/buttons/button_widget_resize.png \ +images/buttons/button_scenarios_stop_on.png \ +images/buttons/button_action_clavier2.png \ +images/buttons/button_configuration_stop.png \ +images/buttons/button_element_cut_glow.png \ +images/buttons/button_home_stop.png \ +images/buttons/button_scenarios_bloom.png \ +images/buttons/button_action_glow.png \ +images/buttons/button_glow_up.png \ +images/buttons/button_media_glow.png \ +images/buttons/button_action_pause.png \ +images/buttons/button_rot_right.png \ +images/buttons/button_scroll.png \ +images/buttons/button_action_light_off.png \ +images/buttons/button_action_scenario_play_glow.png \ +images/buttons/button_widget_move_up.png \ +images/buttons/button_action_clavier_off.png \ +images/buttons/button_action_valid_off.png \ +images/buttons/button_feature_small.png \ +images/buttons/button_action_off.png \ +images/buttons/button_rot_down_glow.png \ +images/buttons/button_key_del.png \ +images/buttons/button_browser.png \ +images/buttons/button_action_impulse_glow.png \ +images/buttons/button_action_edit.png \ +images/buttons/button_action_rolll_up.png \ +images/buttons/button_action_small.png \ +images/buttons/button_media_bloom.png \ +images/buttons/button_action_quit.png \ +images/buttons/button_action_upper.png \ +images/buttons/menu_item_select2.png \ +images/buttons/button_action_del.png \ +images/buttons/button_action_home.png \ +images/buttons/button_action_actionstop_off.png \ +images/buttons/button_rot_down.png \ +images/buttons/button_slider_less.png \ +images/buttons/button_slider_more.png \ +images/buttons/button_action_less_vertical.png \ +images/buttons/button_rot_zoomin.png \ +images/buttons/button_rot_zoomin_glow.png \ +images/buttons/button_action_big.png \ +images/buttons/button_action_fullscreen_glow.png \ +images/buttons/button_previous_off.png \ +images/buttons/button_widget_list_begin.png \ +images/buttons/button_rot_up.png \ +images/buttons/button_action_downer.png \ +images/buttons/button_action_impulse.png \ +images/buttons/button_action_less.png \ +images/buttons/button_media_stop.png \ +images/buttons/button_keyboard_select.png \ +images/buttons/button_action_right.png \ +images/buttons/button_action_up.png \ +images/buttons/button_action_more.png \ +images/buttons/button_next_off.png \ +images/buttons/button_action_rolll_down.png \ +images/buttons/button_action_sync.png \ +images/buttons/button_media.png \ +images/buttons/button_next_glow.png \ +images/buttons/button_action_more_vertical.png \ +images/buttons/button_up.png \ +images/buttons/button_element_open.png \ +images/buttons/button_action_popup_back_glow.png \ +images/buttons/button_element_glow.png \ +images/buttons/button_action_valid.png \ +images/buttons/button_info.png \ +images/buttons/button_action_popup_back.png \ +images/buttons/button_widget_move_up_big.png \ +images/buttons/button_keyboard.png \ +images/buttons/button_action_plus.png \ +images/buttons/button_action_light_on.png \ +images/buttons/button_widget_move_down_big.png \ +images/buttons/button_action_previous.png \ +images/buttons/button_configuration_glow.png \ +images/buttons/button_action_impulse_up.png \ +images/buttons/button_action_pattern.png \ +images/buttons/button_round_stop.png \ +images/buttons/button_list_up.png \ +images/buttons/button_list_down_glow.png \ +images/buttons/button_action_labeled_glow.png \ +images/buttons/button_action_border.png \ +images/buttons/button_action_stop.png \ +images/buttons/button_action_play.png \ +images/buttons/button_widget_move_right_big.png \ +images/buttons/button_action_actionstop.png \ +images/buttons/button_action_next.png \ +images/buttons/button_widget_list_item.png \ +images/buttons/button_action_clavier.png \ +images/buttons/button_action_select_selected.png \ +images/buttons/button_widget_move_down.png \ +images/buttons/button_element_cut.png \ +images/buttons/button_action_down.png \ +images/buttons/button_rot_left_glow.png \ +images/buttons/button_action_impulse_down.png \ +images/buttons/menu_item_select.png \ +images/buttons/button_feature_big.png \ +images/buttons/button_action_warming_down.png \ +images/buttons/button_key_return.png \ +images/buttons/button_info_glow.png \ +images/buttons/button_action_editor.png \ +images/buttons/button_action_delete.png \ +images/progressbar/progressbar_background.png \ +images/progressbar/progressbar_niveau.png \ +images/progressbar/progressbar_ligne.png \ +images/adjust_pattern/elements_light.png \ +images/adjust_pattern/normal_room_bg.png \ +images/adjust_pattern/big_room_bg.png \ +images/adjust_pattern/elements.png \ +images/adjust_pattern/cover.png \ +images/adjust_pattern/elements_track.png \ +images/adjust_pattern/player.png \ +images/adjust_pattern/small_room_bg.png \ +images/widgets/widget_container_back_buttons.png \ +images/widgets/widget_back_edit.png \ +images/widgets/xmas_banner_right.png \ +images/widgets/flake_large.png \ +images/widgets/widget_container_back.png \ +images/widgets/flake_small.png \ +images/widgets/xmas_banner_left.png \ +images/widgets/flake_medium.png \ +images/parts/config_item.png \ +images/parts/slider_green.png \ +images/parts/footer_shadow.png \ +images/parts/loading_top.png \ +images/parts/menu_glowed_neon.png \ +images/parts/menu_media_item_separator.png \ +images/parts/slider_vertical.png \ +images/parts/camera_big_border.png \ +images/parts/module_footer_shadow.png \ +images/parts/player_line_decoration_top.png \ +images/parts/dialog_neon.png \ +images/parts/selector_on.png \ +images/parts/browser_list_decoration.png \ +images/parts/camera_border.png \ +images/parts/module_header_shadow.png \ +images/parts/keyboard_select_bar_right.png \ +images/parts/menu_media_icon_eskiss_back.png \ +images/parts/player_small_shadow.png \ +images/parts/calendar_back.png \ +images/parts/glow.png \ +images/parts/medium_list_decoration_left.png \ +images/parts/player_cover_front.png \ +images/parts/dialog_lines.png \ +images/parts/player_line_decoration_bottom.png \ +images/parts/slider_on.png \ +images/parts/calendar_holiday.png \ +images/parts/menu_back.png \ +images/parts/loading_bar.png \ +images/parts/slider_border_red.png \ +images/parts/calendar_select.png \ +images/parts/controls_sep.png \ +images/parts/keyboard_agenda_background.png \ +images/parts/slider_green_on.png \ +images/parts/menu_media_icon_web_back.png \ +images/parts/keyboard_select_separator.png \ +images/parts/window_border2.png \ +images/parts/shutter_arrows_deco.png \ +images/parts/volume_knob_move.png \ +images/parts/keyboard_cursor.png \ +images/parts/keyboard_select_bar_left.png \ +images/parts/shadow_photo.png \ +images/parts/menu_header_shadow.png \ +images/parts/slider_vertical_on.png \ +images/parts/middle_skyline.png \ +images/parts/keyboard_lines.png \ +images/parts/album_back.png \ +images/parts/top_skyline.png \ +images/parts/indicator_glow.png \ +images/parts/player_line_decoration_right.png \ +images/parts/top_skyline_neon.png \ +images/parts/player_glow.png \ +images/parts/vertical_level_indicator.png \ +images/parts/slider_red_on.png \ +images/parts/popup_arrow_down.png \ +images/parts/slider_border_green.png \ +images/parts/slider_border.png \ +images/parts/medium_list_decoration_right.png \ +images/parts/menu_media_icon_cd_back.png \ +images/parts/keyboard_key_glow.png \ +images/parts/standard_list_decoration_top.png \ +images/parts/slider_border_blue.png \ +images/parts/player_small_cover_back.png \ +images/parts/calendar_header.png \ +images/parts/standard_list_decoration_bottom.png \ +images/parts/slider_blue.png \ +images/parts/calendar_ring.png \ +images/parts/keyboard_key_selected.png \ +images/parts/player_cover_back.png \ +images/parts/keyboard_multiline_background.png \ +images/parts/selector_off.png \ +images/parts/menu_media_item_glow.png \ +images/parts/footer_kevlar.png \ +images/parts/popup_arrow_left.png \ +images/parts/camera_reflect.png \ +images/parts/menu_buttons_shadow_left.png \ +images/parts/list_message_border.png \ +images/parts/small_list_decoration.png \ +images/parts/player_line_decoration_cd.png \ +images/parts/medium_list_decoration_camera.png \ +images/parts/player_line_decoration_left.png \ +images/parts/camera_mire.png \ +images/parts/controls_bg.png \ +images/parts/menu_buttons_shadow_right.png \ +images/parts/slider_blue_on.png \ +images/parts/menu_media_item_shadow.png \ +images/parts/display_border.png \ +images/parts/menu_media_item_reflect.png \ +images/parts/popup_arrow_right.png \ +images/parts/menu_media_icon_camera_red.png \ +images/parts/cover_loading_border.png \ +images/parts/display_border2.png \ +images/parts/cursor.png \ +images/parts/small_scroll_list_decoration.png \ +images/parts/standard_list_decoration.png \ +images/parts/medium_scroll_list_decoration.png \ +images/parts/menu_media_item.png \ +images/parts/scenario_separator.png \ +images/parts/camera_medium_border.png \ +images/parts/popup_carbon.png \ +images/parts/separator.png \ +images/parts/menu_media_icon_camera_back.png \ +images/parts/player_small_cover_front.png \ +images/parts/keyboard_background.png \ +images/parts/volume_knob_ledsoff.png \ +images/parts/rgb_preview.png \ +images/parts/config_item_select.png \ +images/parts/popup_arrow_up.png \ +images/parts/menu_footer_shadow.png \ +images/parts/middle_skyline_neon.png \ +images/parts/dialog_background.png \ +images/parts/window_border.png \ +images/parts/popup_bg.png \ +images/parts/slider_red.png \ +images/parts/loading_bg.png \ +images/parts/player_shadow.png \ +images/parts/volume_knob.png \ +images/parts/window_shutter.png \ +images/parts/imageviewer_footer.png \ +images/parts/player_cd_shadow.png \ +images/parts/scenario_list_decoration.png \ +images/parts/slider.png \ +images/parts/camera_nocam.png \ +images/parts/album_cover.png \ +images/parts/small_list_decoration_left.png \ +images/parts/slider_border_vertical.png \ +images/parts/cover_border.png \ +images/bootsplash/neonlight.png \ +images/scenario/wizzard_4.png \ +images/scenario/wizzard_header.png \ +images/scenario/wizzard_3.png \ +images/scenario/wizzard_line_selected.png \ +images/scenario/wizzard_bg_selected.png \ +images/scenario/wizzard_1.png \ +images/scenario/wizzard_2.png \ +images/background/menu_footer_background_left.png \ +images/background/bootsplash.png \ +images/background/background_top.png \ +images/background/background_default_lighted.png \ +images/background/background_quad.png \ +images/background/background_bottom.png \ +images/background/module_footer.png \ +images/background/menu_header_background_version.png \ +images/background/background_default.png \ +images/background/menu_header_background.png \ +images/background/menu_footer_background.png \ +images/background/module_header.png \ +images/background/menu_footer_background_right.png \ +images/background/background_center.png \ +images/download_manager/download_disk.png \ +images/download_manager/download_shadow.png \ +images/download_manager/download_arrow.png \ +images/download_manager/download_fond.png \ +images/logo/final.png \ +images/logo/shadow.png \ +images/logo/logo_tittle.png \ +images/logo/calaos_about_logo.png \ +images/logo/menu_logo.png \ +images/logo/logo_mirror.png \ +images/logo/bloom.png \ +images/icons/icon_select_simple.png \ +images/icons/icon_groom.png \ +images/icons/icon_player.png \ +images/icons/icon_play.png \ +images/icons/icon_edit.png \ +images/icons/icon_analog.png \ +images/icons/icon_light_on.png \ +images/icons/icon_item_widget.png \ +images/icons/icon_scenario_big.png \ +images/icons/icon_item_screensaver.png \ +images/icons/icon_tor_on.png \ +images/icons/icon_config_widget.png \ +images/icons/icon_cd.png \ +images/icons/icon_cd_glow.png \ +images/icons/icon_string.png \ +images/icons/icon_plus.png \ +images/icons/icon_camera_on.png \ +images/icons/icon_config_info.png \ +images/icons/icon_camera.png \ +images/icons/icon_action.png \ +images/icons/icon_clock.png \ +images/icons/icon_light_simple.png \ +images/icons/icon_warming_up.png \ +images/icons/icon_sound.png \ +images/icons/icon_search.png \ +images/icons/icon_config_veille.png \ +images/icons/icon_temp.png \ +images/icons/icon_folder.png \ +images/icons/icon_myhome.png \ +images/icons/icon_room_on.png \ +images/icons/icon_disclosure.png \ +images/icons/icon_scenario_small.png \ +images/icons/icon_music.png \ +images/icons/icon_camera_title.png \ +images/icons/icon_action_simple.png \ +images/icons/icon_flickr.png \ +images/icons/icon_config_terminal.png \ +images/icons/icon_config_fw.png \ +images/icons/icon_bool_on.png \ +images/icons/icon_bool.png \ +images/icons/icon_int.png \ +images/icons/icon_light_off.png \ +images/icons/icon_play_simple.png \ +images/icons/icon_room.png \ +images/icons/icon_bool_scenario.png \ +images/icons/icon_config_l18n.png \ +images/icons/icon_config_clock.png \ +images/icons/icon_warming.png \ +images/icons/icon_stop_simple.png \ +images/icons/icon_action_blue.png \ +images/icons/icon_trash.png \ +images/icons/icon_camera_simple.png \ +images/icons/icon_warming_down.png \ +images/icons/icon_config_network.png \ +images/icons/icon_item_lock.png \ +images/icons/icon_light.png \ +images/icons/icon_playlist.png \ +images/icons/icon_note.png \ +images/icons/icon_config_security.png \ +images/icons/icon_item_reboot.png \ +images/icons/icon_tor.png \ +images/icons/icon_widget_unknown.png \ +images/icons/icon_shutter_on.png \ +images/icons/icon_note_on.png \ +images/icons/icon_shutter.png \ +images/icons/icon_moins.png \ +images/icons/icon_radio.png \ +images/animations/bootsplash_logo/0028.png \ +images/animations/bootsplash_logo/0002.png \ +images/animations/bootsplash_logo/0047.png \ +images/animations/bootsplash_logo/0006.png \ +images/animations/bootsplash_logo/0043.png \ +images/animations/bootsplash_logo/0021.png \ +images/animations/bootsplash_logo/0040.png \ +images/animations/bootsplash_logo/0056.png \ +images/animations/bootsplash_logo/0024.png \ +images/animations/bootsplash_logo/0053.png \ +images/animations/bootsplash_logo/0054.png \ +images/animations/bootsplash_logo/0012.png \ +images/animations/bootsplash_logo/0063.png \ +images/animations/bootsplash_logo/0051.png \ +images/animations/bootsplash_logo/0061.png \ +images/animations/bootsplash_logo/0031.png \ +images/animations/bootsplash_logo/0013.png \ +images/animations/bootsplash_logo/0019.png \ +images/animations/bootsplash_logo/0009.png \ +images/animations/bootsplash_logo/0060.png \ +images/animations/bootsplash_logo/0064.png \ +images/animations/bootsplash_logo/0001.png \ +images/animations/bootsplash_logo/0045.png \ +images/animations/bootsplash_logo/0033.png \ +images/animations/bootsplash_logo/0017.png \ +images/animations/bootsplash_logo/0029.png \ +images/animations/bootsplash_logo/0059.png \ +images/animations/bootsplash_logo/0057.png \ +images/animations/bootsplash_logo/0037.png \ +images/animations/bootsplash_logo/0039.png \ +images/animations/bootsplash_logo/0065.png \ +images/animations/bootsplash_logo/0014.png \ +images/animations/bootsplash_logo/0015.png \ +images/animations/bootsplash_logo/0003.png \ +images/animations/bootsplash_logo/0010.png \ +images/animations/bootsplash_logo/0050.png \ +images/animations/bootsplash_logo/0011.png \ +images/animations/bootsplash_logo/0008.png \ +images/animations/bootsplash_logo/0007.png \ +images/animations/bootsplash_logo/0038.png \ +images/animations/bootsplash_logo/0049.png \ +images/animations/bootsplash_logo/0058.png \ +images/animations/bootsplash_logo/0048.png \ +images/animations/bootsplash_logo/0035.png \ +images/animations/bootsplash_logo/0062.png \ +images/animations/bootsplash_logo/0005.png \ +images/animations/bootsplash_logo/0032.png \ +images/animations/bootsplash_logo/0027.png \ +images/animations/bootsplash_logo/0055.png \ +images/animations/bootsplash_logo/0025.png \ +images/animations/bootsplash_logo/0026.png \ +images/animations/bootsplash_logo/0052.png \ +images/animations/bootsplash_logo/0030.png \ +images/animations/bootsplash_logo/0036.png \ +images/animations/bootsplash_logo/0022.png \ +images/animations/bootsplash_logo/0020.png \ +images/animations/bootsplash_logo/0044.png \ +images/animations/bootsplash_logo/0046.png \ +images/animations/bootsplash_logo/0016.png \ +images/animations/bootsplash_logo/0042.png \ +images/animations/bootsplash_logo/0004.png \ +images/animations/bootsplash_logo/0041.png \ +images/animations/bootsplash_logo/0034.png \ +images/animations/bootsplash_logo/0018.png \ +images/animations/bootsplash_logo/0023.png \ +images/animations/shutter_icon/icon_shutter_000.png \ +images/animations/shutter_icon/icon_shutter_002.png \ +images/animations/shutter_icon/icon_shutter_006.png \ +images/animations/shutter_icon/icon_shutter_005.png \ +images/animations/shutter_icon/icon_shutter_001.png \ +images/animations/shutter_icon/icon_shutter_008.png \ +images/animations/shutter_icon/icon_shutter_007.png \ +images/animations/shutter_icon/icon_shutter_003.png \ +images/animations/shutter_icon/icon_shutter_009.png \ +images/animations/shutter_icon/icon_shutter_004.png \ +images/animations/round_button/round_button_006.png \ +images/animations/round_button/round_button_001.png \ +images/animations/round_button/round_button_010.png \ +images/animations/round_button/round_button_007.png \ +images/animations/round_button/round_button_009.png \ +images/animations/round_button/round_button_003.png \ +images/animations/round_button/round_button_002.png \ +images/animations/round_button/round_button_005.png \ +images/animations/round_button/round_button_008.png \ +images/animations/round_button/round_button_004.png \ +images/animations/tor_icon/icon_tor_003.png \ +images/animations/tor_icon/icon_tor_006.png \ +images/animations/tor_icon/icon_tor_001.png \ +images/animations/tor_icon/icon_tor_007.png \ +images/animations/tor_icon/icon_tor_000.png \ +images/animations/tor_icon/icon_tor_002.png \ +images/animations/tor_icon/icon_tor_004.png \ +images/animations/tor_icon/icon_tor_005.png \ +images/animations/tor_icon/icon_tor_008.png \ +images/animations/light_icon/icon_light_004.png \ +images/animations/light_icon/icon_light_009.png \ +images/animations/light_icon/icon_light_008.png \ +images/animations/light_icon/icon_light_003.png \ +images/animations/light_icon/icon_light_001.png \ +images/animations/light_icon/icon_light_002.png \ +images/animations/light_icon/icon_light_005.png \ +images/animations/light_icon/icon_light_007.png \ +images/animations/light_icon/icon_light_006.png \ +images/animations/mini_circular_cooldown/mini_circular_015.png \ +images/animations/mini_circular_cooldown/mini_circular_004.png \ +images/animations/mini_circular_cooldown/mini_circular_013.png \ +images/animations/mini_circular_cooldown/mini_circular_008.png \ +images/animations/mini_circular_cooldown/mini_circular_009.png \ +images/animations/mini_circular_cooldown/mini_circular_012.png \ +images/animations/mini_circular_cooldown/mini_circular_000.png \ +images/animations/mini_circular_cooldown/mini_circular_011.png \ +images/animations/mini_circular_cooldown/mini_circular_005.png \ +images/animations/mini_circular_cooldown/mini_circular_007.png \ +images/animations/mini_circular_cooldown/mini_circular_017.png \ +images/animations/mini_circular_cooldown/mini_circular_003.png \ +images/animations/mini_circular_cooldown/mini_circular_002.png \ +images/animations/mini_circular_cooldown/mini_circular_006.png \ +images/animations/mini_circular_cooldown/mini_circular_001.png \ +images/animations/mini_circular_cooldown/mini_circular_016.png \ +images/animations/mini_circular_cooldown/mini_circular_014.png \ +images/animations/mini_circular_cooldown/mini_circular_010.png \ +images/animations/room_touched/medium_room_touched_001.png \ +images/animations/room_touched/medium_room_touched_003.png \ +images/animations/room_touched/medium_room_touched_002.png \ +images/animations/cd_player/menu_media_icon_cd_01.png \ +images/animations/cd_player/cd_player_007.png \ +images/animations/cd_player/cd_player_003.png \ +images/animations/cd_player/menu_media_icon_cd_06.png \ +images/animations/cd_player/menu_media_icon_cd_07.png \ +images/animations/cd_player/menu_media_icon_cd_09.png \ +images/animations/cd_player/cd_player_006.png \ +images/animations/cd_player/mini_cd_player_001.png \ +images/animations/cd_player/menu_media_icon_cd_02.png \ +images/animations/cd_player/cd_player_008.png \ +images/animations/cd_player/menu_media_icon_cd_05.png \ +images/animations/cd_player/menu_media_icon_cd_04.png \ +images/animations/cd_player/cd_player_001.png \ +images/animations/cd_player/cd_player_002.png \ +images/animations/cd_player/cd_player_004.png \ +images/animations/cd_player/menu_media_icon_cd_03.png \ +images/animations/cd_player/cd_player_005.png \ +images/animations/cd_player/cd_player_009.png \ +images/animations/cd_player/menu_media_icon_cd_08.png \ +images/animations/scenario_icon/icon_scenario_035.png \ +images/animations/scenario_icon/icon_scenario_029.png \ +images/animations/scenario_icon/icon_scenario_011.png \ +images/animations/scenario_icon/icon_scenario_006.png \ +images/animations/scenario_icon/icon_scenario_027.png \ +images/animations/scenario_icon/icon_scenario_013.png \ +images/animations/scenario_icon/icon_scenario_009.png \ +images/animations/scenario_icon/icon_scenario_032.png \ +images/animations/scenario_icon/icon_scenario_038.png \ +images/animations/scenario_icon/icon_scenario_012.png \ +images/animations/scenario_icon/icon_scenario_019.png \ +images/animations/scenario_icon/icon_scenario_021.png \ +images/animations/scenario_icon/icon_scenario_015.png \ +images/animations/scenario_icon/icon_scenario_018.png \ +images/animations/scenario_icon/icon_scenario_025.png \ +images/animations/scenario_icon/icon_scenario_001.png \ +images/animations/scenario_icon/icon_scenario_024.png \ +images/animations/scenario_icon/icon_scenario_022.png \ +images/animations/scenario_icon/icon_scenario_008.png \ +images/animations/scenario_icon/icon_scenario_010.png \ +images/animations/scenario_icon/icon_scenario_004.png \ +images/animations/scenario_icon/icon_scenario_020.png \ +images/animations/scenario_icon/icon_scenario_036.png \ +images/animations/scenario_icon/icon_scenario_014.png \ +images/animations/scenario_icon/icon_scenario_028.png \ +images/animations/scenario_icon/icon_scenario_033.png \ +images/animations/scenario_icon/icon_scenario_023.png \ +images/animations/scenario_icon/icon_scenario_037.png \ +images/animations/scenario_icon/icon_scenario_040.png \ +images/animations/scenario_icon/icon_scenario_007.png \ +images/animations/scenario_icon/icon_scenario_002.png \ +images/animations/scenario_icon/icon_scenario_026.png \ +images/animations/scenario_icon/icon_scenario_030.png \ +images/animations/scenario_icon/icon_scenario_016.png \ +images/animations/scenario_icon/icon_scenario_039.png \ +images/animations/scenario_icon/icon_scenario_017.png \ +images/animations/scenario_icon/icon_scenario_034.png \ +images/animations/scenario_icon/icon_scenario_031.png \ +images/animations/scenario_icon/icon_scenario_005.png \ +images/animations/scenario_icon/icon_scenario_003.png \ +images/animations/bootsplash_logo_reflect/reflect_004.png \ +images/animations/bootsplash_logo_reflect/reflect_002.png \ +images/animations/bootsplash_logo_reflect/reflect_001.png \ +images/animations/bootsplash_logo_reflect/reflect_005.png \ +images/animations/bootsplash_logo_reflect/reflect_007.png \ +images/animations/bootsplash_logo_reflect/reflect_006.png \ +images/animations/bootsplash_logo_reflect/reflect_003.png \ +images/animations/bootsplash_notification_icone/loader_icon_0009.png \ +images/animations/bootsplash_notification_icone/loader_icon_0015.png \ +images/animations/bootsplash_notification_icone/loader_icon_0003.png \ +images/animations/bootsplash_notification_icone/loader_icon_0017.png \ +images/animations/bootsplash_notification_icone/loader_icon_0016.png \ +images/animations/bootsplash_notification_icone/loader_icon_0019.png \ +images/animations/bootsplash_notification_icone/loader_icon_0023.png \ +images/animations/bootsplash_notification_icone/loader_icon_0004.png \ +images/animations/bootsplash_notification_icone/loader_icon_0025.png \ +images/animations/bootsplash_notification_icone/loader_icon_0007.png \ +images/animations/bootsplash_notification_icone/loader_icon_0008.png \ +images/animations/bootsplash_notification_icone/loader_icon_0020.png \ +images/animations/bootsplash_notification_icone/loader_icon_0006.png \ +images/animations/bootsplash_notification_icone/loader_icon_0010.png \ +images/animations/bootsplash_notification_icone/loader_icon_0021.png \ +images/animations/bootsplash_notification_icone/loader_icon_0014.png \ +images/animations/bootsplash_notification_icone/loader_icon_0012.png \ +images/animations/bootsplash_notification_icone/loader_icon_0001.png \ +images/animations/bootsplash_notification_icone/loader_icon_0002.png \ +images/animations/bootsplash_notification_icone/loader_icon_bg.png \ +images/animations/bootsplash_notification_icone/loader_icon_0018.png \ +images/animations/bootsplash_notification_icone/loader_icon_0011.png \ +images/animations/bootsplash_notification_icone/loader_icon_0013.png \ +images/animations/bootsplash_notification_icone/loader_icon_0005.png \ +images/animations/bootsplash_notification_icone/loader_icon_0024.png \ +images/animations/bootsplash_notification_icone/loader_icon_0022.png \ +images/animations/micro_circular_cooldown/micro_circular_001.png \ +images/animations/micro_circular_cooldown/micro_circular_004.png \ +images/animations/micro_circular_cooldown/micro_circular_012.png \ +images/animations/micro_circular_cooldown/micro_circular_010.png \ +images/animations/micro_circular_cooldown/micro_circular_007.png \ +images/animations/micro_circular_cooldown/micro_circular_009.png \ +images/animations/micro_circular_cooldown/micro_circular_003.png \ +images/animations/micro_circular_cooldown/micro_circular_014.png \ +images/animations/micro_circular_cooldown/micro_circular_006.png \ +images/animations/micro_circular_cooldown/micro_circular_008.png \ +images/animations/micro_circular_cooldown/micro_circular_017.png \ +images/animations/micro_circular_cooldown/micro_circular_011.png \ +images/animations/micro_circular_cooldown/micro_circular_016.png \ +images/animations/micro_circular_cooldown/micro_circular_002.png \ +images/animations/micro_circular_cooldown/micro_circular_013.png \ +images/animations/micro_circular_cooldown/micro_circular_000.png \ +images/animations/micro_circular_cooldown/micro_circular_015.png \ +images/animations/micro_circular_cooldown/micro_circular_005.png \ +images/animations/volume_knob_leds/volume_led_32.png \ +images/animations/volume_knob_leds/volume_led_24.png \ +images/animations/volume_knob_leds/volume_led_25.png \ +images/animations/volume_knob_leds/volume_led_29.png \ +images/animations/volume_knob_leds/volume_led_43.png \ +images/animations/volume_knob_leds/volume_led_26.png \ +images/animations/volume_knob_leds/volume_led_27.png \ +images/animations/volume_knob_leds/volume_led_20.png \ +images/animations/volume_knob_leds/volume_led_31.png \ +images/animations/volume_knob_leds/volume_led_02.png \ +images/animations/volume_knob_leds/volume_led_35.png \ +images/animations/volume_knob_leds/volume_led_37.png \ +images/animations/volume_knob_leds/volume_led_41.png \ +images/animations/volume_knob_leds/volume_led_19.png \ +images/animations/volume_knob_leds/volume_led_28.png \ +images/animations/volume_knob_leds/volume_led_09.png \ +images/animations/volume_knob_leds/volume_led_17.png \ +images/animations/volume_knob_leds/volume_led_07.png \ +images/animations/volume_knob_leds/volume_led_01.png \ +images/animations/volume_knob_leds/volume_led_22.png \ +images/animations/volume_knob_leds/volume_led_30.png \ +images/animations/volume_knob_leds/volume_led_08.png \ +images/animations/volume_knob_leds/volume_led_06.png \ +images/animations/volume_knob_leds/volume_led_11.png \ +images/animations/volume_knob_leds/volume_led_14.png \ +images/animations/volume_knob_leds/volume_led_15.png \ +images/animations/volume_knob_leds/volume_led_10.png \ +images/animations/volume_knob_leds/volume_led_34.png \ +images/animations/volume_knob_leds/volume_led_42.png \ +images/animations/volume_knob_leds/volume_led_16.png \ +images/animations/volume_knob_leds/volume_led_39.png \ +images/animations/volume_knob_leds/volume_led_23.png \ +images/animations/volume_knob_leds/volume_led_03.png \ +images/animations/volume_knob_leds/volume_led_40.png \ +images/animations/volume_knob_leds/volume_led_45.png \ +images/animations/volume_knob_leds/volume_led_18.png \ +images/animations/volume_knob_leds/volume_led_21.png \ +images/animations/volume_knob_leds/volume_led_36.png \ +images/animations/volume_knob_leds/volume_led_33.png \ +images/animations/volume_knob_leds/volume_led_05.png \ +images/animations/volume_knob_leds/volume_led_38.png \ +images/animations/volume_knob_leds/volume_led_13.png \ +images/animations/volume_knob_leds/volume_led_04.png \ +images/animations/volume_knob_leds/volume_led_12.png \ +images/animations/volume_knob_leds/volume_led_44.png \ +images/animations/glowed_556_line/glowed_556_line_final.png \ +images/rooms/cellar/cellar_medium_bloom.png \ +images/rooms/cellar/cellar_small.png \ +images/rooms/cellar/cellar_medium.png \ +images/rooms/cellar/cellar_big.png \ +images/rooms/bathroom/bathroom_medium_bloom.png \ +images/rooms/bathroom/bathroom_small.png \ +images/rooms/bathroom/bathroom_medium.png \ +images/rooms/bathroom/bathroom_big.png \ +images/rooms/office/office_small.png \ +images/rooms/office/office_medium_bloom.png \ +images/rooms/office/office_medium.png \ +images/rooms/office/office_big.png \ +images/rooms/bedroom_small.png \ +images/rooms/lounge/lounge_medium.png \ +images/rooms/lounge/lounge_small.png \ +images/rooms/lounge/lounge_medium_bloom.png \ +images/rooms/lounge/lounge_big.png \ +images/rooms/bathroom_small.png \ +images/rooms/garage/garage_medium.png \ +images/rooms/garage/garage_big.png \ +images/rooms/garage/garage_medium_bloom.png \ +images/rooms/garage/garage_small.png \ +images/rooms/various/various_medium_bloom.png \ +images/rooms/various/various_big.png \ +images/rooms/various/various_medium.png \ +images/rooms/various/various_small.png \ +images/rooms/big_room_glow.png \ +images/rooms/diningroom_small.png \ +images/rooms/medium_room_neon.png \ +images/rooms/big_room_wire.png \ +images/rooms/diningroom/diningroom_small.png \ +images/rooms/diningroom/diningroom_big.png \ +images/rooms/diningroom/diningroom_medium.png \ +images/rooms/diningroom/diningroom_medium_bloom.png \ +images/rooms/small_room_shadow.png \ +images/rooms/medium_room_shadow.png \ +images/rooms/cellar_small.png \ +images/rooms/medium_room_glow.png \ +images/rooms/medium_room_touched.png \ +images/rooms/outside/outside_medium_bloom.png \ +images/rooms/outside/outside_big.png \ +images/rooms/outside/outside_small.png \ +images/rooms/outside/outside_medium.png \ +images/rooms/bedroom/bedroom_big.png \ +images/rooms/bedroom/bedroom_small.png \ +images/rooms/bedroom/bedroom_medium.png \ +images/rooms/bedroom/bedroom_medium_bloom.png \ +images/rooms/corridor/corridor_medium.png \ +images/rooms/corridor/corridor_big.png \ +images/rooms/corridor/corridor_medium_bloom.png \ +images/rooms/corridor/corridor_small.png \ +images/rooms/garage_small.png \ +images/rooms/corridor_small.png \ +images/rooms/kitchen/kitchen_medium_bloom.png \ +images/rooms/kitchen/kitchen_small.png \ +images/rooms/kitchen/kitchen_medium.png \ +images/rooms/kitchen/kitchen_big.png \ +images/rooms/big_room_shadow.png + +EDC = \ +calaos_theme.edc \ +elm/elm_genlist_item_internalstring.edc \ +elm/elm_ctxpopup.edc \ +elm/elm_genlist_item_internalbool.edc \ +elm/elm_calendar.edc \ +elm/elm_entry_keyboard.edc \ +elm/elm_list_base.edc \ +elm/elm_genlist_item_wovolet.edc \ +elm/elm_genlist_item_wovoletsmart.edc \ +elm/elm_genlist_item_woanalog.edc \ +elm/elm_button.edc \ +elm/elm_actionbutton.edc \ +elm/elm_list_homeboard.edc \ +elm/elm_genlist_item_wianalog.edc \ +elm/elm_genlist_item_simple.edc \ +elm/elm_genlist_item_scenario.edc \ +elm/elm_genlist_item_browser_album.edc \ +elm/elm_genlist_item_wodigital.edc \ +elm/elm_genlist_item_group_room.edc \ +elm/elm_genlist_item_wodalirvb.edc \ +elm/elm_genlist_item_internalint.edc \ +elm/elm_genlist_item_playlist.edc \ +elm/elm_pager.edc \ +elm/elm_genlist_item_wodali.edc \ +elm/elm_slider_knob.edc \ +elm/elm_list_home_room.edc \ +elm/elm_genlist_item_witemp.edc \ +elm/elm_genlist_item_scenario_schedule.edc \ +elm/elm_spinner.edc \ +structure/page_camera.edc \ +structure/room_prog_macro.edc \ +structure/page_config_panel.edc \ +structure/activity_header_footer.edc \ +structure/page_widgets.edc \ +structure/keyboard_macros.edc \ +structure/page_web.edc \ +structure/room_macro.edc \ +structure/main_layout.edc \ +structure/player_prog.edc \ +structure/styles.edc \ +structure/macro_menu_button.edc \ +structure/circular_spinner.edc \ +structure/page_scenarios.edc \ +structure/page_schedule.edc \ +structure/page_edit_scenario.edc \ +structure/main_menu.edc \ +structure/page_audio_list.edc \ +structure/popup_actions_pages.edc \ +structure/element_scenario_home.edc \ +structure/page_keyboard.edc \ +structure/player.edc \ +structure/slider_horizontal_macro.edc \ +structure/icons.edc \ +structure/utils.edc \ +structure/paging_view.edc \ +structure/slider_vertical_macro.edc \ +structure/rooms.edc \ +structure/page_home.edc \ +structure/activity_loading.edc \ +structure/scrolling_text.edc \ +structure/page_media.edc \ +structure/old_macros.edc \ +structure/slider.edc \ +structure/macro_round_button.edc \ +structure/amplifier_control.edc \ +structure/images.edc + +FONT = \ +fonts/calaos_logo.ttf \ +fonts/calaos_content.ttf \ +fonts/calaos_content-oblique.ttf \ +fonts/calaos_text_bold.ttf \ +fonts/Ubuntu-L.ttf \ +fonts/calaos_text.ttf \ +fonts/Ubuntu-M.ttf \ +fonts/calaos_content-bold.ttf \ +fonts/RepetitionScrolling.ttf \ +fonts/Ubuntu-B.ttf + +EXTRA_DIST = \ + $(IMG) \ + $(EDC) \ + $(FONT) + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/themes/default/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu data/themes/default/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-defaultDATA: $(default_DATA) + @$(NORMAL_INSTALL) + test -z "$(defaultdir)" || $(MKDIR_P) "$(DESTDIR)$(defaultdir)" + @list='$(default_DATA)'; test -n "$(defaultdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(defaultdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(defaultdir)" || exit $$?; \ + done + +uninstall-defaultDATA: + @$(NORMAL_UNINSTALL) + @list='$(default_DATA)'; test -n "$(defaultdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(defaultdir)'; $(am__uninstall_files_from_dir) +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(defaultdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-defaultDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-defaultDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + clean-local distclean distclean-generic distclean-libtool \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-defaultDATA \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am uninstall uninstall-am uninstall-defaultDATA + + +default.edj: Makefile $(EXTRA_DIST) + $(AM_V_GEN)$(EDJE_CC) $(EDJE_VERB) $(EDJE_FLAGS) \ + $(top_srcdir)/data/themes/default/calaos_theme.edc \ + $(top_builddir)/data/themes/default/default.edj + +clean-local: + rm -f *.edj + +# 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/data/themes/default/calaos_theme.edc b/data/themes/default/calaos_theme.edc new file mode 100644 index 00000000..b79e2144 --- /dev/null +++ b/data/themes/default/calaos_theme.edc @@ -0,0 +1,156 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#include "structure/styles.edc" +#include "structure/images.edc" + +#include "structure/macro_menu_button.edc" +#include "structure/macro_round_button.edc" + +#include "structure/old_macros.edc" + +externals +{ + external: "elm"; +} + +fonts +{ + font: "calaos_logo.ttf" "CalaosLogo"; + font: "calaos_text_bold.ttf" "CalaosVersion"; + //font: "calaos_content.ttf" "CalaosContent"; + //font: "calaos_content-bold.ttf" "CalaosContentBold"; + font: "RepetitionScrolling.ttf" "RepetitionScrolling"; + + font: "Ubuntu-L.ttf" "CalaosContent"; + font: "Ubuntu-B.ttf" "CalaosContentBold"; +} + +collections +{ + group + { + name: "calaos/cursor"; + min: 32 32; + max: 32 32; + parts + { + part + { + name: "cursor"; + description + { + state: "default" 0.0; + image.normal: "cursor.png"; + } + } + } + } + + #include "structure/utils.edc" + + // calaos/icons/** + #include "structure/icons.edc" + + ELM_BUTTON("button.quit", "Quitter", "calaos/icons/button/quit") + ELM_BUTTON("button.back", "Retour au menu", "calaos/icons/button/back") + ELM_BUTTON("button.audio.back", "Retour", "calaos/icons/button/back") + ELM_BUTTON("button.audio.more", "Editer la playlist", "calaos/icons/button/more") + ELM_BUTTON("button.save_room", "Sauvegarder l'état de la pièce", "calaos/icons/button/keyboard") + ELM_BUTTON("button.valid", "Valider", "calaos/icons/button/valid") + ELM_BUTTON("button.cleartext", "Effacer la saisie en cours", "calaos/icons/button/delete") + ELM_BUTTON("button.go", "Aller à...", "calaos/icons/button/valid") + ELM_BUTTON("button.reload", "Recharger", "calaos/icons/button/reload") + ELM_BUTTON("button.stop", "Stop", "calaos/icons/button/stop") + ELM_BUTTON("button.home", "Page d'accueil", "calaos/icons/button/home") + ELM_BUTTON("button.keyboard", "Clavier", "calaos/icons/button/keyboard") + ELM_BUTTON("button.bookmark", "Ajouter aux favoris", "calaos/icons/button/more") + ELM_BUTTON("button.scenario.create", "Créer un nouveau scénario", "calaos/icons/button/more") + ELM_BUTTON_STYLE("button.labeled.lights_off", "Tout éteindre", "calaos/action_button/label") + ELM_BUTTON_STYLE("button.labeled.shutters_down", "Tout descendre", "calaos/action_button/label") + ELM_BUTTON_STYLE("button.position.info", "Plus d'infos", "calaos/button/position") + ELM_BUTTON_STYLE("button.labeled.today", "Auj.", "calaos/action_button/label") + + //calaos helpers + #include "structure/scrolling_text.edc" + + // calaos/main/layout + #include "structure/main_layout.edc" + + // calaos/main/menu + #include "structure/main_menu.edc" + + // calaos/page/widgets + #include "structure/page_widgets.edc" + + // calaos/page/home + #include "structure/page_home.edc" + + // calaos/page/media + #include "structure/page_media.edc" + #include "structure/page_camera.edc" + #include "structure/page_audio_list.edc" + #include "structure/amplifier_control.edc" + + // calaos/page/scenarios + #include "structure/page_scenarios.edc" + #include "structure/page_edit_scenario.edc" + #include "structure/page_schedule.edc" + #include "structure/popup_actions_pages.edc" + + // calaos/page/config + #include "structure/page_config_panel.edc" + + // calaos/page/keyboard + #include "structure/page_keyboard.edc" + + // calaos/page/web + #include "structure/page_web.edc" + + // calaos/room/** + #include "structure/rooms.edc" + + // calaos/element/scenario_home + #include "structure/element_scenario_home.edc" + + // include all sliders (horizontal and vertical) + #include "structure/slider.edc" + + #include "structure/circular_spinner.edc" + + /* Elementary styles */ + #include "elm/elm_list_base.edc" + #include "elm/elm_list_homeboard.edc" + #include "elm/elm_pager.edc" + #include "elm/elm_button.edc" + #include "elm/elm_actionbutton.edc" + #include "elm/elm_list_home_room.edc" + #include "elm/elm_ctxpopup.edc" + + /* Genlist calaos item */ + #include "elm/elm_genlist_item_wodigital.edc" + #include "elm/elm_genlist_item_scenario.edc" + #include "elm/elm_genlist_item_wodali.edc" + #include "elm/elm_genlist_item_wodalirvb.edc" + #include "elm/elm_genlist_item_internalbool.edc" + #include "elm/elm_genlist_item_internalint.edc" + #include "elm/elm_genlist_item_internalstring.edc" + #include "elm/elm_genlist_item_wianalog.edc" + #include "elm/elm_genlist_item_woanalog.edc" + #include "elm/elm_genlist_item_witemp.edc" + #include "elm/elm_genlist_item_wovolet.edc" + #include "elm/elm_genlist_item_wovoletsmart.edc" + #include "elm/elm_genlist_item_group_room.edc" + #include "elm/elm_genlist_item_simple.edc" + #include "elm/elm_genlist_item_playlist.edc" + #include "elm/elm_genlist_item_browser_album.edc" + #include "elm/elm_genlist_item_scenario_schedule.edc" + #include "elm/elm_slider_knob.edc" + #include "elm/elm_entry_keyboard.edc" + #include "elm/elm_calendar.edc" + #include "elm/elm_spinner.edc" + + #include "structure/paging_view.edc" +} diff --git a/data/themes/default/elm/elm_actionbutton.edc b/data/themes/default/elm/elm_actionbutton.edc new file mode 100644 index 00000000..ac84f648 --- /dev/null +++ b/data/themes/default/elm/elm_actionbutton.edc @@ -0,0 +1,742 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/button/base/calaos/action_button/default"; + alias: "elm/button/base/calaos/action_button/blue"; + + parts + { + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_glow.png"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/yellow"; + + parts + { + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_on_glow.png"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/red"; + + parts + { + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_warming_up_glow.png"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/green"; + + parts + { + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_scenario_play_glow.png"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/pink"; + + parts + { + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_impulse_glow.png"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/label"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image.normal: "button_action_labeled_small.png"; + image.border: 7 7 5 5; + } + } + + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image.normal: "button_action_labeled_glow.png"; + image.border: 7 7 5 5; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "elm.text"; + type: TEXT; + description + { + state: "default" 0.0; + color: 231 231 231 180; + text { text: "Button"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.5 0.5; } + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/label/back"; + inherit: "elm/button/base/calaos/action_button/label"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image.normal: "button_action_popup_back.png"; + image.border: 35 35 5 5; + } + } + + part + { + name: "elm.text"; + type: TEXT; + description + { + state: "default" 0.0; + color: 231 231 231 180; + rel1.offset: 9 0; + text { text: "Button"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.5 0.5; } + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image.normal: "button_action_popup_back_glow.png"; + image.border: 35 35 5 5; + visible: 0; + color: 255 255 255 0; + rel1.offset: -3 -3; + rel2.offset: 2 2; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + } +} + +group +{ + name: "elm/button/base/calaos/action_button/small"; + inherit: "elm/button/base/calaos/action_button/default"; + + parts + { + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_glow_small.png"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + } +} diff --git a/data/themes/default/elm/elm_button.edc b/data/themes/default/elm/elm_button.edc new file mode 100644 index 00000000..2429d4b3 --- /dev/null +++ b/data/themes/default/elm/elm_button.edc @@ -0,0 +1,776 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/button/base/calaos/activity/footer"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_action_pattern.png"; } + fill { smooth: 1; size { relative: 0.0 1.0; offset: 4 0;} } + } + } + + part + { + name: "border"; + description + { + state: "default" 0.0; + image { normal: "button_action_border.png"; border: 5 5 16 16; } + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_neon.png"; border: 5 5 16 16; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + description + { + state: "default" 0.0; + visible: 0; + rel1.to_x: "elm.swallow.content"; + rel1 { relative: 1.0 0.0; offset: 0 4; } + rel2.offset: -5 -5; + color: 231 231 231 255; + text { font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + text.min: 1 1; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + } + } + + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 0; + visible: 0; + align: 0.0 0.5; + rel1.offset: 4 4; + rel2.offset: 3 -5; + rel2.relative: 0.0 1.0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + fixed: 1 0; + visible: 1; + aspect: 1.0 1.0; + // aspect_preference: VERTICAL; + rel2.offset: 4 -5; + } + description + { + state: "icononly" 0.0; + inherit: "default" 0.0; + fixed: 0 0; + visible: 1; + align: 0.5 0.5; + // aspect: 1.0 1.0; + rel2.offset: -5 -5; + rel2.relative: 1.0 1.0; + // aspect_preference: VERTICAL; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + target: "elm.text"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + after: "button_unclick_anim2"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + after: "button_unclick_anim2"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + } + program + { + name: "button_unclick_anim2"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.5; + target: "elm.text"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + + program + { + name: "text_show"; + signal: "elm,state,text,visible"; + source: "elm"; + script + { + new st[31]; + new Float:vl; + get_state(PART:"elm.swallow.content", st, 30, vl); + if (!strcmp(st, "icononly")) + set_state(PART:"elm.swallow.content", "visible", 0.0); + set_state(PART:"elm.text", "visible", 0.0); + } + } + program + { + name: "text_hide"; + signal: "elm,state,text,hidden"; + source: "elm"; + script + { + new st[31]; + new Float:vl; + get_state(PART:"elm.swallow.content", st, 30, vl); + if (!strcmp(st, "visible")) + set_state(PART:"elm.swallow.content", "icononly", 0.0); + set_state(PART:"elm.text", "default", 0.0); + } + } + + program + { + name: "icon_show"; + signal: "elm,state,icon,visible"; + source: "elm"; + script + { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + set_state(PART:"elm.swallow.content", "visible", 0.0); + else + set_state(PART:"elm.swallow.content", "icononly", 0.0); + } + } + program + { + name: "icon_hide"; + signal: "elm,state,icon,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_element.png"; border: 11 11 14 14; } + } + } + + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_element_glow.png"; border: 11 11 14 14; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "elm.text"; + type: TEXT; + description + { + state: "default" 0.0; + color: 231 231 231 127; + text { text: "Button"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.58; } + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + color: 231 231 231 255; + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + } + + programs + { + program + { + name: "button_click"; + signal: "mouse,down,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program + { + name: "button_click_anim"; + action: STATE_SET "touched" 0.0; + transition: ACCELERATE 0.00001; + target: "glow"; + target: "elm.text"; + } + program + { + name: "button_unclick"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program + { + name: "button_pressed_anim"; + signal: "elm,anim,activate"; + source: "elm"; + after: "button_click_anim"; + after: "button_unpressed_anim"; + } + program + { + name: "button_unpressed_anim"; + in: 0.6 0.0; + after: "button_unclick_anim"; + } + program + { + name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "glow"; + target: "elm.text"; + } + program + { + name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/left"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_left.png"; /*border: 6 34 4 33;*/ } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_left_glow.png"; /*border: 6 34 4 33;*/ } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/right"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_right.png"; /*border: 6 34 4 33;*/ } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_right_glow.png"; /*border: 6 34 4 33;*/ } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/up"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_up.png"; /*border: 6 34 4 33;*/ } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_up_glow.png"; /*border: 6 34 4 33;*/ } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/down"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_down.png"; /*border: 6 34 4 33;*/ } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_down_glow.png"; /*border: 6 34 4 33;*/ } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/zoom_in"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_zoomin.png"; border: 6 34 4 33; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_zoomin_glow.png"; border: 6 34 4 33; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/zoom_out"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_zoomout.png"; border: 6 34 4 33; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_zoomout_glow.png"; border: 6 34 4 33; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/center"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_rot_centre.png"; border: 6 34 4 33; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_rot_centre_glow.png"; border: 6 34 4 33; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/info"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_info.png"; border: 6 6 6 6; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_info_glow.png"; border: 6 6 6 6; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; visible: 0; } + description { state: "touched" 0.0; visible: 0; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/rolldown"; + inherit: "elm/button/base/calaos/button/position/info"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_action_rolll_down.png"; border: 6 6 6 6; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_glow.png"; border: 6 6 6 6; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + } +} + + +group +{ + name: "elm/button/base/calaos/button/position/browser"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_action_editor.png"; border: 6 6 6 6; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_editor_glow.png"; border: 6 6 6 6; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + } +} + +group +{ + name: "elm/button/base/calaos/button/position/browser_icon"; + inherit: "elm/button/base/calaos/button/position"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + image { normal: "button_action_editor.png"; border: 6 6 6 6; } + } + } + part + { + name: "elm.swallow.content"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 12 -9; } + rel2 { relative: 0.0 0.5; offset: 31 10; } + } + } + part + { + name: "glow"; + description + { + state: "default" 0.0; + image { normal: "button_action_editor_glow.png"; border: 6 6 6 6; } + } + description { state: "touched" 0.0; inherit: "default" 0.0; color: 255 255 255 255; visible: 1; } + } + part + { + name: "elm.text"; + description { state: "default" 0.0; rel1.to_x: "elm.swallow.content"; } + description { state: "touched" 0.0; rel1.to_x: "elm.swallow.content"; } + } + } +} diff --git a/data/themes/default/elm/elm_calendar.edc b/data/themes/default/elm/elm_calendar.edc new file mode 100644 index 00000000..2fc40c8b --- /dev/null +++ b/data/themes/default/elm/elm_calendar.edc @@ -0,0 +1,454 @@ +//Calaos Home Theme +//Copyright 2012 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/calendar/base/calaos"; + + parts + { + part + { + name: "event"; + type: RECT; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + part + { + name: "header"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "calendar_header.png"; + image.border: 35 35 19 2; + rel1 { relative: 0.0 0.0; offset: 0 12; } + rel2 { relative: 1.0 0.0; offset: -1 49; } + fixed: 0 1; + } + } + + part + { + name: "ring1"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "calendar_ring.png"; + rel1.to: "header"; + rel2.to: "header"; + rel1 { relative: 0.0 0.0; offset: 24 -12; } + rel2 { relative: 0.0 0.0; offset: 31 15; } + fixed: 1 1; + } + } + + part + { + name: "ring2"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "calendar_ring.png"; + rel1.to: "header"; + rel2.to: "header"; + rel1 { relative: 1.0 0.0; offset: -32 -12; } + rel2 { relative: 1.0 0.0; offset: -25 15; } + fixed: 1 1; + } + } + + part + { + name: "month_text"; + type: TEXT; + mouse_events: 0; + description + { + state: "default" 0.0; + rel1.to: "header"; + rel2.to: "header"; + color: 156 156 156 255; + text { font: "CalaosContent"; size: 14; min: 1 1; align: 0.5 0.5; } + } + } + + part + { + name: "button.next"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: -40-33 -14; to: "header"; } + rel2 { relative: 1.0 0.5; offset: -40 13; to: "header"; } + params + { +// string: "style" "calaos/action_button/default"; +// string: "icon" "calaos/icons/action_button/right_arrow"; + string: "style" "calaos/button/position/right"; + } + } + } + + part + { + name: "button.previous"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 40 -14; to: "header"; } + rel2 { relative: 0.0 0.5; offset: 40+33 13; to: "header"; } + params + { +// string: "style" "calaos/action_button/default"; +// string: "icon" "calaos/icons/action_button/left_arrow"; + string: "style" "calaos/button/position/left"; + } + } + } + + part + { + name: "bg_days"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + color: 36 36 36 255; + rel1.to: "header"; + rel2.to: "header"; + rel1 { relative: 0.0 1.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 20; } + fixed: 0 1; + } + } + + part + { + name: "back"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "calendar_back.png"; + image.border: 6 6 1 6; + rel1.to: "bg_days"; + rel1 { relative: 0.0 1.0; } + } + } + + //Some lines to separate days + + #define VSEP(_pos, _vis) \ + part \ + { \ + name: "vline_"#_pos; \ + type: RECT; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + color: 211 211 211 255; \ + rel1.to: "back"; \ + rel2.to: "back"; \ + visible: _vis; \ + rel1 { relative: (1 / 7 * _pos) 0.0; offset: 0 0; } \ + rel2 { relative: (1 / 7 * _pos) 1.0; offset: 0 -1; } \ + fixed: 1 0; \ + } \ + } + + VSEP(0, 0) VSEP(1, 1) VSEP(2, 1) VSEP(3, 1) VSEP(4, 1) VSEP(5, 1) VSEP(6, 1) VSEP(7, 0) + + #define HSEP(_pos, _vis) \ + part \ + { \ + name: "hline_"#_pos; \ + type: RECT; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + color: 211 211 211 255; \ + rel1.to: "back"; \ + rel2.to: "back"; \ + visible: _vis; \ + rel1 { relative: 0.0 (1 / 6 * _pos); offset: 0 0; } \ + rel2 { relative: 1.0 (1 / 6 * _pos); offset: -1 0; } \ + fixed: 0 1; \ + } \ + } + + HSEP(0, 0) HSEP(1, 1) HSEP(2, 1) HSEP(3, 1) HSEP(4, 1) HSEP(5, 1) HSEP(6, 0) + + #define CH(_pos, _pos2) \ + part \ + { \ + name: "ch_"#_pos".base"; \ + type: RECT; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + rel1.to_y: "bg_days"; \ + rel2.to_y: "bg_days"; \ + rel1.to_x: "vline_"#_pos; \ + rel2.to_x: "vline_"#_pos2; \ + rel1.relative: 1.0 0.0; \ + rel2.relative: 0.0 1.0; \ + } \ + } \ + part \ + { \ + name: "ch_"#_pos".clipper"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "ch_"#_pos".base"; \ + rel2.to: "ch_"#_pos".base"; \ + } \ + } \ + part \ + { \ + name: "ch_"#_pos".text"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "ch_"#_pos".clipper"; \ + description \ + { \ + state: "default" 0.0; \ + color: 12 222 10 160; \ + rel1.to: "ch_"#_pos".base"; \ + rel2.to: "ch_"#_pos".base"; \ + color: 231 231 231 255; \ + text { font: "CalaosContent"; size: 10; min: 1 1; align: 0.5 0.5; }; \ + } \ + } + + CH(0, 1) CH(1, 2) CH(2, 3) CH(3, 4) CH(4, 5) CH(5, 6) CH(6, 7) + + #define CIT(_num, _xpos, _xpos2, _ypos, _ypos2) \ + part \ + { \ + name: "cit_"#_num".base"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to_y: "hline_"#_ypos; \ + rel2.to_y: "hline_"#_ypos2; \ + rel1.to_x: "vline_"#_xpos; \ + rel2.to_x: "vline_"#_xpos2; \ + rel1.relative: 1.0 1.0; \ + rel2.relative: 0.0 0.0; \ + color: 0 0 0 0; \ + } \ + description \ + { \ + state: "today" 0.0; \ + inherit: "default" 0.0; \ + color: 207 237 246 145; \ + } \ + } \ + part \ + { \ + name: "cit_"#_num".clipper"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "cit_"#_num".base"; \ + rel2.to: "cit_"#_num".base"; \ + } \ + } \ + part \ + { \ + name: "cit_"#_num".check"; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "cit_"#_num".base"; \ + rel2.to: "cit_"#_num".base"; \ + color: 255 255 255 0; \ + image.normal: "calendar_holiday.png"; \ + rel1 { relative: 1.0 0.0; offset: -15 0; } \ + rel2 { relative: 1.0 0.0; offset: -1 14; } \ + visible: 0; \ + } \ + description \ + { \ + state: "checked" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + visible: 1; \ + } \ + } \ + part \ + { \ + name: "cit_"#_num".select"; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "cit_"#_num".base"; \ + rel2.to: "cit_"#_num".base"; \ + color: 255 255 255 0; \ + image.normal: "calendar_select.png"; \ + rel1 { relative: 0.5 0.5; offset: -23 -21; } \ + rel2 { relative: 0.5 0.5; offset: 23 20; } \ + visible: 0; \ + } \ + description \ + { \ + state: "selected" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 255; \ + visible: 1; \ + } \ + } \ + part \ + { \ + name: "cit_"#_num".text"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "cit_"#_num".clipper"; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "cit_"#_num".base"; \ + rel2.to: "cit_"#_num".base"; \ + color: 80 80 80 255; \ + text { font: "CalaosContent"; size: 12; min: 1 1; align: 0.5 0.5; }; \ + } \ + description \ + { \ + state: "selected" 0.0; \ + inherit: "default" 0.0; \ + color: 224 224 224 255; \ + } \ + } \ + programs \ + { \ + program \ + { \ + name: "cit_"#_num".go_active"; \ + signal: "cit_"#_num",selected"; \ + source: "elm"; \ + action: STATE_SET "selected" 0.0; \ + transition: ACCELERATE 0.1; \ + target: "cit_"#_num".select"; \ + target: "cit_"#_num".text"; \ + } \ + program \ + { \ + name: "cit_"#_num".go_passive"; \ + signal: "cit_"#_num",unselected"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.2; \ + target: "cit_"#_num".select"; \ + target: "cit_"#_num".text"; \ + } \ + program \ + { \ + name: "cit_"#_num".is_today"; \ + signal: "cit_"#_num",today"; \ + source: "elm"; \ + action: STATE_SET "today" 0.0; \ + transition: ACCELERATE 0.1; \ + target: "cit_"#_num".base"; \ + } \ + program \ + { \ + name: "cit_"#_num".not_today"; \ + signal: "cit_"#_num",not_today"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + transition: ACCELERATE 0.1; \ + target: "cit_"#_num".base"; \ + } \ + program \ + { \ + name: "cit_"#_num".clicked"; \ + signal: "mouse,clicked,1"; \ + source: "cit_"#_num".base"; \ + action: SIGNAL_EMIT "elm,action,selected" #_num; \ + } \ + program \ + { \ + name: "cit_"#_num".clear"; \ + signal: "cit_"#_num",clear"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + transition: ACCELERATE 0.1; \ + target: "cit_"#_num".check"; \ + } \ + program \ + { \ + name: "cit_"#_num".checked"; \ + signal: "cit_"#_num",checked"; \ + source: "elm"; \ + action: STATE_SET "checked" 0.0; \ + transition: ACCELERATE 0.1; \ + target: "cit_"#_num".check"; \ + } \ + } + + CIT(0, 0, 1, 0, 1) CIT(1, 1, 2, 0, 1) CIT(2, 2, 3, 0, 1) CIT(3, 3, 4, 0, 1) CIT(4, 4, 5, 0, 1) CIT(5, 5, 6, 0, 1) CIT(6, 6, 7, 0, 1) + CIT(7, 0, 1, 1, 2) CIT(8, 1, 2, 1, 2) CIT(9, 2, 3, 1, 2) CIT(10, 3, 4, 1, 2) CIT(11, 4, 5, 1, 2) CIT(12, 5, 6, 1, 2) CIT(13, 6, 7, 1, 2) + CIT(14, 0, 1, 2, 3) CIT(15, 1, 2, 2, 3) CIT(16, 2, 3, 2, 3) CIT(17, 3, 4, 2, 3) CIT(18, 4, 5, 2, 3) CIT(19, 5, 6, 2, 3) CIT(20, 6, 7, 2, 3) + CIT(21, 0, 1, 3, 4) CIT(22, 1, 2, 3, 4) CIT(23, 2, 3, 3, 4) CIT(24, 3, 4, 3, 4) CIT(25, 4, 5, 3, 4) CIT(26, 5, 6, 3, 4) CIT(27, 6, 7, 3, 4) + CIT(28, 0, 1, 4, 5) CIT(29, 1, 2, 4, 5) CIT(30, 2, 3, 4, 5) CIT(31, 3, 4, 4, 5) CIT(32, 4, 5, 4, 5) CIT(33, 5, 6, 4, 5) CIT(34, 6, 7, 4, 5) + CIT(35, 0, 1, 5, 6) CIT(36, 1, 2, 5, 6) CIT(37, 2, 3, 5, 6) CIT(38, 3, 4, 5, 6) CIT(39, 4, 5, 5, 6) CIT(40, 5, 6, 5, 6) CIT(41, 6, 7, 5, 6) + + } + + programs + { + program + { + name: "previous_press"; + signal: "pressed"; + source: "button.previous"; + action: SIGNAL_EMIT "elm,action,decrement,start" ""; + } + program + { + name: "previous_unpress"; + signal: "unpressed"; + source: "button.previous"; + action: SIGNAL_EMIT "elm,action,stop" ""; + } + program + { + name: "next_press"; + signal: "pressed"; + source: "button.next"; + action: SIGNAL_EMIT "elm,action,increment,start" ""; + } + program + { + name: "next_unpress"; + signal: "unpressed"; + source: "button.next"; + action: SIGNAL_EMIT "elm,action,stop" ""; + } + } +} \ No newline at end of file diff --git a/data/themes/default/elm/elm_ctxpopup.edc b/data/themes/default/elm/elm_ctxpopup.edc new file mode 100644 index 00000000..94199025 --- /dev/null +++ b/data/themes/default/elm/elm_ctxpopup.edc @@ -0,0 +1,428 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/ctxpopup/base/calaos"; + + parts + { + part + { + name: "arrow_area_left"; + type: RECT; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: -18 0; to: "content_clip"; } + rel2 { relative: 0.0 1.0; offset: 0 -1; to: "content_clip"; } + } + } + + part + { + name: "arrow_area_right"; + type: RECT; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 1.0 0.0; offset: -1 0; to: "content_clip"; } + rel2 { relative: 1.0 1.0; offset: 17 -1; to: "content_clip"; } + } + } + + part + { + name: "arrow_area_up"; + type: RECT; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 0 -18; to: "content_clip"; } + rel2 { relative: 1.0 0.0; offset: -1 0; to: "content_clip"; } + } + } + + part + { + name: "arrow_area_down"; + type: RECT; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 1.0; offset: 0 -1; to: "content_clip"; } + rel2 { relative: 1.0 1.0; offset: -1 17; to: "content_clip"; } + } + } + + part + { + name: "elm.swallow.arrow_up"; + type: SWALLOW; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + dragable + { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_up"; + } + description + { + state: "default" 0.0; + min: 30 17; + fixed: 1 1; + visible: 1; + } + } + + part + { + name: "elm.swallow.arrow_down"; + type: SWALLOW; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + dragable + { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_down"; + } + description + { + state: "default" 0.0; + min: 30 17; + fixed: 1 1; + visible: 1; + } + } + + part + { + name: "elm.swallow.arrow_left"; + type: SWALLOW; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + dragable + { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_left"; + } + description + { + state: "default" 0.0; + min: 17 30; + fixed: 1 1; + visible: 1; + } + } + + part + { + name: "elm.swallow.arrow_right"; + type: SWALLOW; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + dragable + { + x: 1 1 0; + y: 1 1 0; + confine: "arrow_area_right"; + } + description + { + state: "default" 0.0; + min: 17 30; + fixed: 1 1; + visible: 1; + } + } + + part + { + name: "ctxpopup_clip"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + color: 255 255 255 255; + } + } + + part + { + name: "content_clip"; + type: RECT; + mouse_events: 0; + clip_to: "ctxpopup_clip"; + description + { + state: "default" 0.0; + rel1 { to:"base"; offset: 5 6; } + rel2 { to:"base"; offset: -6 -7; } + } + } + + part + { + name: "bg"; + clip_to: "ctxpopup_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "popup_carbon.png"; + fill { smooth: 1; size { relative: 0.0 0.0; offset: 8 8;} } + rel1.to: "content_clip"; + rel2.to: "content_clip"; + } + } + + part + { + name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "content_clip"; + rel2.to: "content_clip"; + } + } + + part + { + name: "base"; + clip_to: "ctxpopup_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "popup_bg.png"; + image.border: 10 10 10 50; + rel1.offset: 12 12; + rel2.offset: -13 -13; + } + } + } + + programs + { + program + { + name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "visible" 0.0; +// transition: DECELERATE 0.85; + target: "ctxpopup_clip"; + } + program + { + name: "up"; + signal: "elm,state,show,up"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "ctxpopup_clip"; + } + program + { + name: "left"; + signal: "elm,state,show,left"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "ctxpopup_clip"; + } + program + { + name: "right"; + signal: "elm,state,show,right"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "ctxpopup_clip"; + } + program + { + name: "down"; + signal: "elm,state,show,down"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "ctxpopup_clip"; + } + + program + { + name: "hide"; + signal: "elm,state,hide*"; + source: "elm"; + action: STATE_SET "default" 0.0; +// transition: ACCELERATE 0.1; + target: "ctxpopup_clip"; + after: "hide_finished"; + } + + program + { + name: "hide_finished"; + action: SIGNAL_EMIT "elm,action,hide,finished" ""; + } + } +} + +group +{ + name: "elm/ctxpopup/bg/calaos"; + parts + { + part + { + name: "ctxpopup_bg"; + type: RECT; + mouse_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + color: 0 0 0 100; + } + } + } + + programs + { + program + { + name: "clicked_event"; + signal: "mouse,clicked,1"; + source: "ctxpopup_bg"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + program + { + name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "ctxpopup_bg"; + transition: DECELERATE 0.85; + } + program + { + name: "hide"; + signal: "elm,state,hide"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "ctxpopup_bg"; + } + } +} + +group +{ + name: "elm/ctxpopup/arrow/calaos"; + + parts + { + part + { + name: "ctxpopup_arrow"; + description + { + state: "default" 0.0; + min: 12 12; + image { normal: "popup_arrow_left.png"; } + } + description + { + state: "left" 0.0; + min: 10 12; + color: 255 255 255 200; + image { normal: "popup_arrow_left.png"; } + } + description + { + state: "right" 0.0; + min: 10 12; + color: 255 255 255 200; + image { normal: "popup_arrow_right.png"; } + } + description + { + state: "top" 0.0; + min: 12 10; + color: 255 255 255 200; + image { normal: "popup_arrow_up.png"; } + } + description + { + state: "bottom" 0.0; + min: 12 10; + color: 255 255 255 200; + image { normal: "popup_arrow_down.png"; } + } + } + } + + programs + { + program + { + name: "enable_left_arrow"; + signal: "elm,state,left"; + source: "elm"; + action: STATE_SET "left" 0.0; + target: "ctxpopup_arrow"; + } + program + { + name: "enable_right_arrow"; + signal: "elm,state,right"; + source: "elm"; + action: STATE_SET "right" 0.0; + target: "ctxpopup_arrow"; + } + program + { + name: "enable_top_arrow"; + signal: "elm,state,top"; + source: "elm"; + action: STATE_SET "top" 0.0; + target: "ctxpopup_arrow"; + } + program + { + name: "enable_bottom_arrow"; + signal: "elm,state,bottom"; + source: "elm"; + action: STATE_SET "bottom" 0.0; + target: "ctxpopup_arrow"; + } + } +} diff --git a/data/themes/default/elm/elm_entry_keyboard.edc b/data/themes/default/elm/elm_entry_keyboard.edc new file mode 100644 index 00000000..d6493b0a --- /dev/null +++ b/data/themes/default/elm/elm_entry_keyboard.edc @@ -0,0 +1,278 @@ +//Calaos Home Theme +//Copyright 2012 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/entry/base/calaos"; + + parts + { + part + { + name: "elm.guide"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description + { + state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + text + { + style: "KeyboardStyle"; + min: 0 1; + align: 0.0 0.0; + } + } + description + { + state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + + part + { + name: "elm.text"; + type: TEXTBLOCK; + mouse_events: 1; + scale: 1; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + multiline: 0; + source: "calaos/keyboard/selection_under"; // selection under + // source2: "calaos/keyboard/selection_over"; // selection over + // source3: "X"; // cursor under + source4: "calaos/keyboard/cursor_over"; // cursorover + source5: "calaos/keyboard/anchor_under"; // anchor under + // source6: "X"; // anchor over + + description + { + state: "default" 0.0; + /* we gotta use 0 0 here, because of scrolled entries */ + fixed: 0 0; + text + { + style: "KeyboardStyle"; + min: 0 1; + align: 0.0 0.0; + } + } + description + { + state: "disabled" 0.0; + inherit: "default" 0.0; + } + } + } + + programs + { + program + { + name: "focus"; + signal: "load"; + source: ""; + action: FOCUS_SET; + target: "elm.text"; + } + program + { + name: "onfocus"; + signal: "elm,action,focus"; + source: "elm"; + action: FOCUS_SET; + target: "elm.text"; + } + program + { + name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "elm.text"; + } + program + { + name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + } + program + { + name: "gdisable"; + signal: "elm,guide,disabled"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guide"; + } + program + { + name: "genable"; + signal: "elm,guide,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guide"; + } + } +} + +group +{ + name: "elm/entry/base/calaos/multiline"; + inherit: "elm/entry/base/calaos"; + + parts + { + part + { + name: "elm.text"; + multiline: 1; + } + } +} + +group +{ + name: "calaos/keyboard/selection_under"; + parts + { + part + { + name: "bg"; + type: RECT; + description + { + state: "default" 0.0; + color: 58 181 215 127; + } + description + { + state: "default" 1.0; + color: 58 181 215 187; + } + } + } + programs + { + program + { + name: "init"; + signal: "show"; + source: ""; + after: "loop1"; + } + program + { + name: "loop1"; + action: STATE_SET "default" 1.0; + transition: LINEAR 0.6; + target: "bg"; + after: "loop2"; + } + program + { + name: "loop2"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.6; + target: "bg"; + after: "loop1"; + } + } +} + +group +{ + name: "calaos/keyboard/cursor_over"; + + images + { + image: "keyboard_cursor.png" COMP; + } + parts + { + part + { + name: "clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 255 255 255 255; + rel1 { relative: 0.0 0.5; offset: -4 -19; } + rel2 { relative: 0.0 0.5; offset: 5 21; } + } + description + { + state: "default" 1.0; + inherit: "default" 0.0; + color: 180 180 180 120; + } + } + part + { + name: "img"; + clip_to: "clip"; + description + { + state: "default" 0.0; + image.normal: "keyboard_cursor.png"; + rel1 { relative: 0.0 0.5; offset: -4 -19; } + rel2 { relative: 0.0 0.5; offset: 5 21; } + } + } + } + programs + { + program + { + name: "init"; + signal: "show"; + source: ""; + after: "loop1"; + } + program + { + name: "loop1"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "clip"; + after: "loop2"; + } + program + { + name: "loop2"; + in: 0.8 0.0; + action: STATE_SET "default" 1.0; + transition: ACCELERATE 0.3; + target: "clip"; + after: "loop1"; + } + } +} + +group +{ + name: "calaos/keyboard/anchor_under"; + parts + { + part + { + name: "bg"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + color: 140 199 215 63; + } + } + } +} diff --git a/data/themes/default/elm/elm_genlist_item_browser_album.edc b/data/themes/default/elm/elm_genlist_item_browser_album.edc new file mode 100644 index 00000000..01f9f401 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_browser_album.edc @@ -0,0 +1,926 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/browser/playlist_header/default"; + + data.item: "texts" "text text.count"; + data.item: "contents" "calaos.button.del calaos.button.play calaos.button.add"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 80; + fixed: 0 0; + image { normal: "button_element_open.png"; border: 11 11 41 14; } + } + } + + part + { + name: "text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 10 12; } + rel2 { relative: 1.0 0.0; offset: -5 36 ; } + text { align: 0.0 0.5; style: "TabWidgetTitle"; text: "Titre de l'item Sous titre"; } + } + } + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 1.0; offset: -33-6 -38; } + rel2 { relative: 1.0 1.0; offset: -6 -11; } + } + } + + part + { + name: "calaos.button.add"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 1.0; offset: -33-3-33-6 -38; } + rel2 { relative: 1.0 1.0; offset: -6-33-3 -11; } + } + } + + /* + * This needs more testing. + * After playlist is deleted, we need to wait squeezcenter to notify us for the real deletion + * and be able to return to previous view and delete the playlist item in genlist. + part + { + name: "calaos.button.del"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 1.0; offset: -6-33-3-33-3-108 -38; } + rel2 { relative: 1.0 1.0; offset: -6-33-3-33-3 -11; } + } + } + */ + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT("player_count") + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,active,blue" "calaos"; + } + } +} + +group +{ + name: "elm/genlist/item/browser/default/noselect/default"; + alias: "elm/genlist/item_compress/browser/default/noselect/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.play calaos.button.add icon"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to: "icon"; + rel2.to: "calaos.button.add"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3 7; } + rel2 { relative: 1.0 0.0; offset: -3 34; } + } + } + + part + { + name: "calaos.button.add"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3-3-33 7; } + rel2 { relative: 1.0 0.0; offset: -33-3-3 34; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + } +} + +group +{ + name: "elm/genlist/item/browser/default/default"; + name: "elm/genlist/item_compress/browser/default/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.play calaos.button.add icon"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_select"; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + image { normal: "button_element_bevel.png"; border: 11 11 14 14; } + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to: "icon"; + rel2.to: "calaos.button.add"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3 7; } + rel2 { relative: 1.0 0.0; offset: -3 34; } + } + } + + part + { + name: "calaos.button.add"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3-3-33 7; } + rel2 { relative: 1.0 0.0; offset: -33-3-3 34; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + transition: ACCELERATE 0.00001; + target: "item_select"; + } + program + { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "item_select"; + } + } +} + +group +{ + name: "elm/genlist/item/browser/track/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.play calaos.button.add calaos.button.more"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "icon"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + image.normal: "icon_note_on.png"; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to: "icon"; + rel2.to: "calaos.button.more"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3 7; } + rel2 { relative: 1.0 0.0; offset: -3 34; } + } + } + + part + { + name: "calaos.button.add"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3-3-33 7; } + rel2 { relative: 1.0 0.0; offset: -33-3-3 34; } + } + } + + part + { + name: "calaos.button.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3-3-33-3-29 9; } + rel2 { relative: 1.0 0.0; offset: -33-3-3-3-33 32; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + } +} + +group +{ + name: "elm/genlist/item/browser/album_header/default"; + + data.item: "texts" "text text.artist text.album text.year text.count"; + data.item: "contents" "calaos.cover calaos.button.play calaos.button.add"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 166; + fixed: 0 0; + image { normal: "button_element_open.png"; border: 11 11 41 14; } + } + } + + part + { + name: "text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 10 12; } + rel2 { relative: 1.0 0.0; offset: -5 36 ; } + text { align: 0.0 0.5; style: "TabWidgetTitle"; text: "Titre de l'item Sous titre"; } + } + } + + #define LABEL_ALBUM_INFO(id, title, y1) \ + part \ + { \ + name: "label."id; \ + type: TEXT; \ + description \ + { \ + state: "default" 0.0; \ + color: 231 231 231 140; \ + rel1 { relative: 0.0 0.0; offset: 133-22 y1; } \ + rel2 { relative: 0.0 0.0; offset: 196-22 y1+12; } \ + text { text: title; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5; } \ + } \ + } \ + alias: "text."id "player_"id":text"; \ + part \ + { \ + name: "player_"id; \ + type: GROUP; \ + source: "calaos/text/scrolling/left"; \ + description \ + { \ + state: "default" 0.0; \ + color: 231 231 231 140; \ + rel1 { relative: 0.0 0.0; offset: 202-22 y1; } \ + rel2 { relative: 1.0 0.0; offset: -10 y1+12; } \ + } \ + } + + LABEL_ALBUM_INFO("artist", "Artiste :", 50) + LABEL_ALBUM_INFO("album", "Album :", 70) + LABEL_ALBUM_INFO("count", "Pistes :", 90) + LABEL_ALBUM_INFO("year", "Année :", 110) + //LABEL_ALBUM_INFO("duration", "Durée :", 130) + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 1.0; offset: -33-6 -38; } + rel2 { relative: 1.0 1.0; offset: -6 -11; } + } + } + + part + { + name: "calaos.button.add"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 1.0; offset: -33-6-3-77 -38; } + rel2 { relative: 1.0 1.0; offset: -6-33-3 -11; } + } + } + + part + { + name: "rotation_center"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0 0; offset: 5+25 42; } + rel2 { relative: 0 0; offset: 6+25 156; } + rel2.relative: 0.0 0.0; + } + } + + part + { + name: "rotation_perspective"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 0.6 0.5; offset: 5+25 42; } + rel2 { relative: 0.6 0.5; offset: 6+25 156; } + rel2.relative: 0.0 0.0; + perspective + { + zplane: 0; + focal: 500; + } + } + } + + part + { + name: "cover_back"; + description + { + state: "default" 0.0; + rel1 { relative: 0 0; offset: 5 42; } + rel2 { relative: 0 0; offset: 122 156; } + image.normal: "album_back.png"; + map + { + on: 1; + perspective_on: 1; + perspective: "rotation_perspective"; + rotation.y: 0; + rotation.center: "rotation_center"; + } + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + map { rotation.y: 45; } + } + description + { + state: "anim" 1.0; + inherit: "default" 0.0; + map { rotation.y: 35; } + } + } + part + { + name: "cover"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0; offset: 15 50; } + rel2 { relative: 0.0 0; offset: 112 147; } + image.normal: "menu_media_icon_cd_01.png"; + map + { + on: 1; + perspective_on: 1; + perspective: "rotation_perspective"; + rotation.y: 0; + rotation.center: "rotation_center"; + } + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + map { rotation.y: 45; } + } + description + { + state: "anim" 1.0; + inherit: "default" 0.0; + map { rotation.y: 35; } + } + } + part + { + name: "calaos.cover"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0; offset: 15 50; } + rel2 { relative: 0.0 0; offset: 112 147; } + map + { + on: 1; + perspective_on: 1; + perspective: "rotation_perspective"; + rotation.y: 0; + rotation.center: "rotation_center"; + } + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + map { rotation.y: 45; } + } + description + { + state: "anim" 1.0; + inherit: "default" 0.0; + map { rotation.y: 35; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT("player_artist") + SCROLLING_TEXT_SIGNAL_REPEAT("player_album") + SCROLLING_TEXT_SIGNAL_REPEAT("player_count") + SCROLLING_TEXT_SIGNAL_REPEAT("player_year") + + program + { + name: "on_show"; + in: 0.6 0.0; + signal: "show"; + action: SIGNAL_EMIT "text,active,blue" "calaos"; + after: "anim_start"; + } + + program + { + name: "anim_start"; + in: 0.2 0.0; + action: STATE_SET "anim" 0.0; + transition: DECELERATE 1.0; + target: "cover_back"; + target: "cover"; + target: "calaos.cover"; + after: "anim_loop"; + } + program + { + name: "anim_loop"; + in: 0.2 0.0; + action: STATE_SET "anim" 1.0; + transition: DECELERATE 1.0; + target: "cover_back"; + target: "cover"; + target: "calaos.cover"; + after: "anim_start"; + } + } +} + +group +{ + name: "elm/genlist/item/browser/album/default"; + alias: "elm/genlist/item_compress/browser/album/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "album.text artist.text year.text"; + data.item: "contents" "calaos.button.play calaos.button.add calaos.cover"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 60; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_select"; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + image { normal: "button_element_bevel.png"; border: 11 11 14 14; } + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "icon"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 16 8; } + rel2 { relative: 0.0 0.0; offset: 16+20 8+20; } + image.normal: "icon_cd_glow.png"; + } + } + + part + { + name: "cover_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 1.0; offset: 46 -10; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "calaos_cover_bg"; + type: RECT; + clip_to: "cover_clip"; + description + { + state: "default" 0.0; + color: 0 0 0 255; + rel1.to: "cover_clip"; + rel2.to: "cover_clip"; + } + } + + part + { + name: "calaos.cover"; + type: SWALLOW; + clip_to: "cover_clip"; + description + { + state: "default" 0.0; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel1.to: "cover_clip"; + rel2.to: "cover_clip"; + } + } + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3 9; } + rel2 { relative: 1.0 0.0; offset: -3 36; } + } + } + + part + { + name: "calaos.button.add"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -33-3-3-33 9; } + rel2 { relative: 1.0 0.0; offset: -33-3-3 36; } + } + } + + alias: "album.text" "album_text:text"; + part + { + name: "album_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: 6 8;} + rel2 { relative: 0.0 0.5; offset: -6 -1;} + rel1.to_x: "cover_clip"; + rel2.to_x: "year.text"; + } + } + + alias: "artist.text" "artist_text:text"; + part + { + name: "artist_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 6 0;} + rel2 { relative: 0.0 1.0; offset: -6 -9;} + rel1.to_x: "cover_clip"; + rel2.to_x: "year.text"; + } + } + + part + { + name: "year.text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 231 231 231 127; + rel1 { relative: 0.0 0.0; offset: -5-30 8; } + rel2 { relative: 0.0 0.5; offset: -5 -1; } + rel1.to_x: "calaos.button.add"; + rel2.to_x: "calaos.button.add"; + text { text: "2011"; font: "CalaosContent"; size: 10; min: 1 1; align: 0.5 0.5;} + } + } + } + + programs + { + program + { + name: "on_show_text_album"; + signal: "show"; + action: SIGNAL_EMIT "album_text:text,active,blue" "calaos"; + } + program + { + name: "on_show_text_artist"; + signal: "show"; + action: SIGNAL_EMIT "artist_text:text,inactive" "calaos"; + } + + program + { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + transition: ACCELERATE 0.00001; + target: "item_select"; + } + program + { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "item_select"; + } + + program + { + name: "show_cover"; + signal: "show,cover"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.6; + target: "cover_clip"; + } + + program + { + name: "on_hide_reset"; + signal: "hide"; + action: STATE_SET "default" 0.0; + target: "cover_clip"; + } + } +} diff --git a/data/themes/default/elm/elm_genlist_item_group_room.edc b/data/themes/default/elm/elm_genlist_item_group_room.edc new file mode 100644 index 00000000..2beedbc3 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_group_room.edc @@ -0,0 +1,133 @@ +//Calaos Home Theme +//Copyright 2012 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/group_room/default"; + alias: "elm/genlist/item_compress/group_room/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + + parts + { + part + { + name: "item_back"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + color: 255 255 255 0; + } + } + part + { + name: "bg"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "popup_carbon.png"; + fill { smooth: 1; size { relative: 0.0 0.0; offset: 8 8;} } + rel1 { relative: 0.0 0.0; offset: 0 0; }; + rel2 { relative: 1.0 1.0; offset: -1 -1; }; + } + } + + part + { + name: "sep"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 28; + rel1 { relative: 0.0 1.0; offset: 0 -2; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + } + } + + part + { + name: "elm.text"; + type: TEXT; + mouse_events: 0; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 10 -22; } + rel2 { relative: 1.0 1.0; offset: -5 -4; } + color: 231 231 231 204; + text { text: "Titre la pièce"; font: "CalaosContent"; size: 15; min: 1 1; align: 0.0 0.5; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } +} + +group +{ + name: "elm/genlist/item/group_room/icon/default"; + alias: "elm/genlist/item_compress/group_room/icon/default"; + inherit: "elm/genlist/item/group_room/default"; + + data.item: "contents" "icon"; + + parts + { + part + { + name: "elm.text"; + type: TEXT; + mouse_events: 0; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 60 0; } + rel2 { relative: 1.0 1.0; offset: -5 -1; } + color: 231 231 231 174; + text { text: "Titre la pièce"; font: "CalaosContentBold"; size: 15; min: 1 1; align: 0.0 0.5; } + } + } + + part + { + name: "icon"; + type: SWALLOW; + mouse_events: 0; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 7 2+5; } + rel2 { relative: 0.0 0.0; offset: 51 27+5; } + } + } + + part + { + name: "bg"; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 0; + } + } + } +} + diff --git a/data/themes/default/elm/elm_genlist_item_internalbool.edc b/data/themes/default/elm/elm_genlist_item_internalbool.edc new file mode 100644 index 00000000..2fa23afc --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_internalbool.edc @@ -0,0 +1,552 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/InternalBool_left/default"; + alias: "elm/genlist/item_compress/InternalBool_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon_off"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool.png"; + color: 255 255 255 180; + rel1 { relative: 0.0 0.5; offset: 6 -5; } + rel2 { relative: 0.0 0.5; offset: 14+6 5; } + } + } + + part + { + name: "item_icon"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool_on.png"; + rel1 { relative: 0.0 0.5; offset: 6 -7; } + rel2 { relative: 0.0 0.5; offset: 14+6 5; } + visible: 0; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item_icon"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "item_icon"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "item_icon"; + } + } + + +} + +group +{ + name: "elm/genlist/item/InternalBool_right/default"; + alias: "elm/genlist/item_compress/InternalBool_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon_off"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool.png"; + color: 255 255 255 180; + rel1 { relative: 1.0 0.5; offset: -6-14 -5; } + rel2 { relative: 1.0 0.5; offset: -6 5; } + } + } + + part + { + name: "item_icon"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool_on.png"; + rel1 { relative: 1.0 0.5; offset: -6-14 -7; } + rel2 { relative: 1.0 0.5; offset: -6 5; } + visible: 0; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel2.to_x: "item_icon"; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "item_icon"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "item_icon"; + } + } + +} + + +/////// Read/Write mode + +group +{ + name: "elm/genlist/item/InternalBool_left/rw/default"; + alias: "elm/genlist/item_compress/InternalBool_left/rw/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.on calaos.button.off"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon_off"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool.png"; + color: 255 255 255 180; + rel1 { relative: 0.0 0.5; offset: 6 -5; } + rel2 { relative: 0.0 0.5; offset: 14+6 5; } + } + } + + part + { + name: "item_icon"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool_on.png"; + rel1 { relative: 0.0 0.5; offset: 6 -7; } + rel2 { relative: 0.0 0.5; offset: 14+6 5; } + visible: 0; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.off"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "item_icon"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "item_icon"; + } + } + + +} + +group +{ + name: "elm/genlist/item/InternalBool_right/rw/default"; + alias: "elm/genlist/item_compress/InternalBool_right/rw/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.on calaos.button.off"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon_off"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool.png"; + color: 255 255 255 180; + rel1 { relative: 1.0 0.5; offset: -6-14 -5; } + rel2 { relative: 1.0 0.5; offset: -6 5; } + } + } + + part + { + name: "item_icon"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_bool_on.png"; + rel1 { relative: 1.0 0.5; offset: -6-14 -7; } + rel2 { relative: 1.0 0.5; offset: -6 5; } + visible: 0; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3+34+3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34+3+34 13; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.off"; + rel2.to_x: "item_icon"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "item_icon"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.4; + target: "item_icon"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "item_icon"; + } + } + +} + diff --git a/data/themes/default/elm/elm_genlist_item_internalint.edc b/data/themes/default/elm/elm_genlist_item_internalint.edc new file mode 100644 index 00000000..e82b1788 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_internalint.edc @@ -0,0 +1,317 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/InternalInt_left/default"; + alias: "elm/genlist/item_compress/InternalInt_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 24+3 13; } + text { text: "0"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item.value"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/InternalInt_right/default"; + alias: "elm/genlist/item_compress/InternalInt_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 1.0 0.5; offset: -3-24 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + text { text: "0"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel2.to_x: "item.value"; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} + + +/////// Read/Write mode + +group +{ + name: "elm/genlist/item/InternalInt_left/rw/default"; + alias: "elm/genlist/item_compress/InternalInt_left/rw/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" "calaos.button.plus calaos.button.moins"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 24+3 13; } + text { text: "0"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "calaos.button.plus"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + part + { + name: "calaos.button.moins"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item.value"; + rel2.to_x: "calaos.button.moins"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/InternalInt_right/rw/default"; + alias: "elm/genlist/item_compress/InternalInt_right/rw/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" "calaos.button.plus calaos.button.moins"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 1.0 0.5; offset: -3-24 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + text { text: "0"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "calaos.button.moins"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3+34+3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34+3+34 13; } + } + } + + part + { + name: "calaos.button.plus"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.moins"; + rel2.to_x: "item.value"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -5 13; } + } + } + } + + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} + diff --git a/data/themes/default/elm/elm_genlist_item_internalstring.edc b/data/themes/default/elm/elm_genlist_item_internalstring.edc new file mode 100644 index 00000000..6d4ab34d --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_internalstring.edc @@ -0,0 +1,227 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/InternalString_left/default"; + alias: "elm/genlist/item_compress/InternalString_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/InternalString_right/default"; + alias: "elm/genlist/item_compress/InternalString_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} + + +/////// Read/Write mode + +group +{ + name: "elm/genlist/item/InternalString_left/rw/default"; + alias: "elm/genlist/item_compress/InternalString_left/rw/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.text"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.text"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel2.to_x: "calaos.button.text"; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/InternalString_right/rw/default"; + alias: "elm/genlist/item_compress/InternalString_right/rw/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.text"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.text"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.text"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} + diff --git a/data/themes/default/elm/elm_genlist_item_playlist.edc b/data/themes/default/elm/elm_genlist_item_playlist.edc new file mode 100644 index 00000000..f3250674 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_playlist.edc @@ -0,0 +1,186 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/playlist/default"; + alias: "elm/genlist/item_compress/playlist/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.play calaos.button.more track.cover"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "track_icon_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "cover" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "track_icon"; + clip_to: "track_icon_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 6 -8; } + rel2 { relative: 0.0 0.5; offset: 6+21 7; } + image.normal: "icon_sound.png"; + } + } + + part + { + name: "track_cover_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "cover" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "cover_border"; + type: RECT; + clip_to: "track_cover_clip"; + description + { + state: "default" 0.0; + rel1 { offset: -1 -1; to: "track.cover"; } + rel2 { offset: 0 0; to: "track.cover"; } + color: 255 255 255 46; + } + } + + part + { + name: "track.cover"; + type: SWALLOW; + clip_to: "track_cover_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 6 -11; } + rel2 { relative: 0.0 0.5; offset: 6+23 11; } + } + } + + part + { + name: "calaos.button.play"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -33-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + part + { + name: "calaos.button.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-30 -12; } + rel2 { relative: 1.0 0.5; offset: -34-3-3 11; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + rel1.to_x: "cover_border"; + rel2.to_x: "calaos.button.more"; + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "show_icon"; + signal: "icon"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "track_cover_clip"; + target: "track_icon_clip"; + } + + program + { + name: "show_cover"; + signal: "cover"; + source: "calaos"; + action: STATE_SET "cover" 0.0; + transition: DECELERATE 0.5; + target: "track_cover_clip"; + target: "track_icon_clip"; + } + } +} diff --git a/data/themes/default/elm/elm_genlist_item_scenario.edc b/data/themes/default/elm/elm_genlist_item_scenario.edc new file mode 100644 index 00000000..b79f82a3 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_scenario.edc @@ -0,0 +1,160 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/scenario_left/default"; + alias: "elm/genlist/item_compress/scenario_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.go"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/scenario"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 6 -14; } + rel2 { relative: 0.0 0.5; offset: 21+6 13; } + } + } + + part + { + name: "calaos.button.go"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.go"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} + + +group +{ + name: "elm/genlist/item/scenario_right/default"; + alias: "elm/genlist/item_compress/scenario_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.go"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/scenario"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -6-21 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + } + } + + part + { + name: "calaos.button.go"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.go"; + rel2.to_x: "item_icon"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} + diff --git a/data/themes/default/elm/elm_genlist_item_scenario_schedule.edc b/data/themes/default/elm/elm_genlist_item_scenario_schedule.edc new file mode 100644 index 00000000..06e1c20d --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_scenario_schedule.edc @@ -0,0 +1,582 @@ +//Calaos Home Theme +//Copyright 2012 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/scenario/schedule/default"; + alias: "elm/genlist/item_compress/scenario/schedule/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text time actions.text"; + data.item: "contents" "calaos.button.more"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -6-34 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + } + } + + part + { + name: "time"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 10 -14; } + rel2 { relative: 0.0 0.5; offset: 10+35 13; } + text { font: "CalaosContent"; text: "12:00"; size: 12; min: 1 1; align: 0.0 0.5; } + color: 58 180 215 255; + } + } + + part + { + name: "actions.text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -6-30-8-80 0; } + rel2 { relative: 1.0 1.0; offset: -6-30-8 -1; } + color: 255 218 90 255; + align: 1.0 0.5; + text { font: "CalaosContent"; text: "Aucune actions!"; max: 1 0; size: 10; align: 1.0 0.5; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + rel1.to_x: "time"; + rel2.to_x: "actions.text"; + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + } +} + +group +{ + name: "elm/genlist/item/scenario/standard/default"; + alias: "elm/genlist/item_compress/scenario/standard/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text actions.text"; + data.item: "contents" "calaos.button.more"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -6-34 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + } + } + + part + { + name: "icon_schedule"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -6-30-3-22 -8; } + rel2 { relative: 1.0 0.5; offset: -6-30-4 7; } + image.normal: "icon_clock.png"; + color: 255 255 255 0; + } + description + { + state: "schedule" 0.0; + inherit: "default" 0.0; + color: 255 255 255 100; + } + } + + part + { + name: "actions.text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -6-30-8-80 0; } + rel2 { relative: 1.0 1.0; offset: -6-30-8 -1; } + color: 255 218 90 255; + align: 1.0 0.5; + text { font: "CalaosContent"; text: "Aucune actions!"; max: 1 0; size: 10; align: 1.0 0.5; } + } + description + { + state: "schedule" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -6-30-4-22-8-80 0; } + rel2 { relative: 1.0 1.0; offset: -6-30-4-22-8 -1; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 10 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + rel2.to_x: "actions.text"; + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "is_schedule"; + signal: "schedule,true"; + source: "calaos"; + action: STATE_SET "schedule" 0.0; + transition: DECELERATE 0.1; + target: "icon_schedule"; + target: "actions.text"; + } + program + { + name: "is_not_schedule"; + signal: "schedule,false"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.1; + target: "icon_schedule"; + target: "actions.text"; + } + } +} + + +group +{ + name: "elm/genlist/item/scenario/header/default"; + alias: "elm/genlist/item_compress/scenario/header/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + + parts + { + part + { + name: "item_back"; + type: RECT; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + color: 255 255 255 0; + } + } + + part + { + name: "sep"; + type: RECT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 28; + rel1 { relative: 0.0 1.0; offset: 0 -2; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + } + } + + part + { + name: "elm.text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 10 -22; } + rel2 { relative: 1.0 1.0; offset: -5 -4; } + color: 231 231 231 204; + text { text: "Titre de l'element'"; font: "CalaosContent"; size: 15; min: 1 1; align: 0.0 0.5; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } +} + + +group +{ + name: "elm/genlist/item/scenario/action/default"; + alias: "elm/genlist/item_compress/scenario/action/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text action.text"; + data.item: "contents" "calaos.button.edit icon"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 72; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "sep"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 58 180 215 20; + rel1 { relative: 0.0 0.5; offset: 10 -2; } + rel2 { relative: 1.0 0.5; offset: -10 -1; } + } + } + + part + { + name: "calaos.button.edit"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.70; offset: -6-34 -14; } + rel2 { relative: 1.0 0.70; offset: -6 13; } + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.25; offset: 10 -8; } + rel2 { relative: 0.0 0.25; offset: 10+21 7; } + } + } + + part + { + name: "icon_action"; + description + { + state: "default" 0.0; + fixed: 1 1; + image.normal: "icon_action_simple.png"; + rel1 { relative: 0.0 0.70; offset: 22 -8; } + rel2 { relative: 0.0 0.70; offset: 22+21 7; } + color: 255 255 255 110; + } + } + + alias: "action.text" "item_text_act:text"; + part + { + name: "item_text_act"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.70; offset: 10 -14; } + rel2 { relative: 0.0 0.70; offset: -8 13; } + rel1.to_x: "icon_action"; + rel2.to_x: "calaos.button.edit"; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.25; offset: 10 -14; } + rel2 { relative: 1.0 0.25; offset: -8 13; } + rel1.to_x: "icon"; + } + } + } + + programs + { + program + { + signal: "show"; + action: SIGNAL_EMIT "item_text:text,inactive" "calaos"; + } + + program + { + signal: "show"; + action: SIGNAL_EMIT "item_text_act:text,active,yellow" "calaos"; + } + } +} + +group +{ + name: "elm/genlist/item/scenario/schedule/time/default"; + alias: "elm/genlist/item_compress/scenario/schedule/time/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.edit calaos.button.delete icon"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42+15; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.edit"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -3-34-6-34 9; } + rel2 { relative: 1.0 0.0; offset: -3-6-35 36; } + } + } + + part + { + name: "calaos.button.delete"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -6-34 9; } + rel2 { relative: 1.0 0.0; offset: -7 36; } + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + rel1.to_y: "calaos.button.delete"; + rel2.to_y: "calaos.button.delete"; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + rel1.to_y: "calaos.button.delete"; + rel1.to_x: "icon"; + rel2.to: "calaos.button.edit"; + } + } + + #define SCHED_DAY(day, txt, px) \ + part \ + { \ + name: day; \ + type: TEXT; \ + description \ + { \ + state: "default" 0.0; \ + rel1 { to: "item_back"; relative: 0.5 1.0; offset: -94+px -17; } \ + rel2 { to: "item_back"; relative: 0.5 1.0; offset: -94+px+25 -7; } \ + text { font: "CalaosContent"; text: txt; size: "10"; align: 0.5 0.5; } \ + color: 231 231 231 67; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + color: 255 218 90 255; \ + } \ + } \ + program \ + { \ + name: day"_on"; \ + signal: day",active"; \ + source: "calaos"; \ + action: STATE_SET "active" 0.0; \ + target: day; \ + } \ + program \ + { \ + name: day"_off"; \ + signal: day",inactive"; \ + source: "calaos"; \ + action: STATE_SET "default" 0.0; \ + target: day; \ + } + + + SCHED_DAY("monday", "LUN", 0) + SCHED_DAY("tuesday", "MAR", 27) + SCHED_DAY("wednesday", "MER", 54) + SCHED_DAY("thursday", "JEU", 81) + SCHED_DAY("friday", "VEN", 108) + SCHED_DAY("saturday", "SAM", 135) + SCHED_DAY("sunday", "DIM", 162) + + #define SCHED_SEP(day) \ + part \ + { \ + name: "sep_"day; \ + type: RECT; \ + description \ + { \ + color: 166 204 215 53; \ + rel1 { to: day; relative: 1.0 0.0; offset: -1 0; } \ + rel2 { to: day; relative: 1.0 1.0; offset: 0 -1; } \ + } \ + } + + SCHED_SEP("monday") + SCHED_SEP("tuesday") + SCHED_SEP("wednesday") + SCHED_SEP("thursday") + SCHED_SEP("friday") + SCHED_SEP("saturday") + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + } +} + diff --git a/data/themes/default/elm/elm_genlist_item_simple.edc b/data/themes/default/elm/elm_genlist_item_simple.edc new file mode 100644 index 00000000..0c161ead --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_simple.edc @@ -0,0 +1,833 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/simple/default"; + alias: "elm/genlist/item_compress/simple/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "icon button"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 0 -8; } + rel2 { relative: 0.0 0.5; offset: 0 7; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + part + { + name: "button"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 0 -14; } + rel2 { relative: 1.0 0.5; offset: 0 13; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "icon"; + rel2.to_x: "button"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "show_icon"; + signal: "icon,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "icon"; + } + program + { + name: "hide_icon"; + signal: "icon,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "icon"; + } + + program + { + name: "show_button"; + signal: "button,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "button"; + } + program + { + name: "hide_button"; + signal: "button,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "button"; + } + } +} + +group +{ + name: "elm/genlist/item/simple_select/default"; + alias: "elm/genlist/item_compress/simple_select/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "icon button"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_select"; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + image { normal: "button_element_glow.png"; border: 11 11 14 14; } + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 0 -8; } + rel2 { relative: 0.0 0.5; offset: 0 7; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + part + { + name: "button"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 0 -14; } + rel2 { relative: 1.0 0.5; offset: 0 13; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to: "icon"; + rel2.to: "button"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + transition: ACCELERATE 0.00001; + target: "item_select"; + after: "sig_text_active_blue_item_text"; + } + program + { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "item_select"; + after: "sig_text_inactive_item_text"; + } + + program + { + name: "show_icon"; + signal: "icon,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "icon"; + } + program + { + name: "hide_icon"; + signal: "icon,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "icon"; + } + + program + { + name: "show_button"; + signal: "button,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "button"; + } + program + { + name: "hide_button"; + signal: "button,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "button"; + } + } +} + +group +{ + name: "elm/genlist/item/simple_select/check/default"; + alias: "elm/genlist/item_compress/simple_select/check/default"; + inherit: "elm/genlist/item/simple_select/default"; + + parts + { + part + { + name: "icon.end"; + description + { + state: "default" 0.0; + visible: 0; + image.normal: "icon_select_simple.png"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -10-21 -8; } + rel2 { relative: 1.0 0.5; offset: -10 7; } + color: 255 255 255 0; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to: "icon"; + rel2.to: "icon.end"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + } + + programs + { + program + { + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + transition: ACCELERATE 0.00001; + target: "icon.end"; + } + program + { + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "icon.end"; + } + } +} + + +group +{ + name: "elm/genlist/item/simple_select/disclosure/default"; + alias: "elm/genlist/item_compress/simple_select/disclosure/default"; + inherit: "elm/genlist/item/simple_select/default"; + + parts + { + part + { + name: "icon.end"; + description + { + state: "default" 0.0; + image.normal: "icon_disclosure.png"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -10-21 -8; } + rel2 { relative: 1.0 0.5; offset: -10 7; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to: "icon"; + rel2.to: "icon.end"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: -8 13; } + } + } + } +} + + +group +{ + name: "elm/genlist/item/simple_header/default"; + alias: "elm/genlist/item_compress/simple_header/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + + parts + { + part + { + name: "item_back"; + type: RECT; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + color: 255 255 255 0; + } + } + part + { + name: "bg"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "popup_carbon.png"; + fill { smooth: 1; size { relative: 0.0 0.0; offset: 8 8;} } + rel1 { relative: 0.0 0.0; offset: 0 0; }; + rel2 { relative: 1.0 1.0; offset: -1 -1; }; + } + } + + part + { + name: "sep"; + type: RECT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 28; + rel1 { relative: 0.0 1.0; offset: 0 -2; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + } + } + + part + { + name: "elm.text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 10 4; } + rel2 { relative: 1.0 1.0; offset: -5 -4; } + text { align: 0.0 1.0; style: "TabWidgetTitle"; text: "Titre de l'item
Sous titre"; } + } + } + } + + programs + { + } +} + +group +{ + name: "elm/genlist/item/simple_info/default"; + alias: "elm/genlist/item_compress/simple_info/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "value.text key.text"; + data.item: "contents" "icon"; + + parts + { + part + { + name: "item_back"; + type: RECT; + description + { + state: "default" 0.0; + min: 50 21; + fixed: 0 0; + color: 255 255 255 0; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 0 -8; } + rel2 { relative: 0.0 0.5; offset: 0 7; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + part + { + name: "key.text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "icon"; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 0.0 0.5; offset: 8+20 13; } + align: 0.0 0.5; + text { text: "Titre de l'element:"; font: "CalaosContent"; size: 12; min: 1 1; align: 0.0 0.5; } + color: 58 180 215 255; + } + } + + alias: "value.text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 8 -14; } + rel2 { relative: 1.0 0.5; offset: -8 13; } + rel1.to: "key.text"; + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "show_icon"; + signal: "icon,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "icon"; + } + program + { + name: "hide_icon"; + signal: "icon,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "icon"; + } + } +} + +group +{ + name: "elm/genlist/item/simple/multiline/default"; + name: "elm/genlist/item_odd/simple/multiline/default"; + name: "elm/genlist/item_compress/simple/multiline/default"; + name: "elm/genlist/item_compress_odd/simple/multiline/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "icon"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 1 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 0 -8; } + rel2 { relative: 0.0 0.5; offset: 0 7; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + part + { + name: "text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1.to_x: "icon"; + rel1 { relative: 1.0 0.0; offset: 8 12; } + rel2 { relative: 1.0 1.0; offset: -8 -12; } + text + { + style: "GenlistText"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "show_icon"; + signal: "icon,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "icon"; + } + program + { + name: "hide_icon"; + signal: "icon,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "icon"; + } + } +} + +group +{ + name: "elm/genlist/item/simple_select/multiline/default"; + name: "elm/genlist/item_odd/simple_select/multiline/default"; + name: "elm/genlist/item_compress/simple_select/multiline/default"; + name: "elm/genlist/item_compress_odd/simple_select/multiline/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "icon"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 1 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_select"; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + image { normal: "button_element_glow.png"; border: 11 11 14 14; } + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 0 -8; } + rel2 { relative: 0.0 0.5; offset: 0 7; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 10+21 7; } + } + } + + part + { + name: "text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1.to_x: "icon"; + rel1 { relative: 1.0 0.0; offset: 8 12; } + rel2 { relative: 1.0 1.0; offset: -8 -12; } + text + { + style: "GenlistText"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,inactive" "calaos"; + } + + program + { + name: "show_icon"; + signal: "icon,enabled"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + target: "icon"; + } + program + { + name: "hide_icon"; + signal: "icon,disabled"; + source: "calaos"; + action: STATE_SET "default" 0.0; + target: "icon"; + } + + program + { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + transition: ACCELERATE 0.00001; + target: "item_select"; + after: "sig_text_active_blue_item_text"; + } + program + { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "item_select"; + after: "sig_text_inactive_item_text"; + } + } +} + diff --git a/data/themes/default/elm/elm_genlist_item_wianalog.edc b/data/themes/default/elm/elm_genlist_item_wianalog.edc new file mode 100644 index 00000000..0d010f52 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_wianalog.edc @@ -0,0 +1,131 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/WIAnalog_left/default"; + alias: "elm/genlist/item_compress/WIAnalog_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 1.0 0.5; offset: -34-6-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + text { text: "00.00 Units"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel2.to_x: "item.value"; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -10 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/WIAnalog_right/default"; + alias: "elm/genlist/item_compress/WIAnalog_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 0.0 0.5; offset: 6 -14; } + rel2 { relative: 0.0 0.5; offset: 34+6+3+34 13; } + text { text: "00.00 Units"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.0 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item.value"; + rel1 { relative: 1.0 0.5; offset: 10 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} diff --git a/data/themes/default/elm/elm_genlist_item_witemp.edc b/data/themes/default/elm/elm_genlist_item_witemp.edc new file mode 100644 index 00000000..d13409c3 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_witemp.edc @@ -0,0 +1,131 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + + + +group +{ + name: "elm/genlist/item/WITemp_left/default"; + alias: "elm/genlist/item_compress/WITemp_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-6-3-34-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + text { text: "99.99 °C / 99.99 °C"; min: 0 0; style: "ElementTempValueLeft"; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel2.to_x: "item.value"; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -10 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/WITemp_right/default"; + alias: "elm/genlist/item_compress/WITemp_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" ""; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item.value"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 6 -14; } + rel2 { relative: 0.0 0.5; offset: 34+6+3+34+3+34 13; } + text { text: "99.99 °C / 99.99 °C"; min: 0 0; style: "ElementTempValueRight"; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item.value"; + rel1 { relative: 1.0 0.5; offset: 10 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} diff --git a/data/themes/default/elm/elm_genlist_item_woanalog.edc b/data/themes/default/elm/elm_genlist_item_woanalog.edc new file mode 100644 index 00000000..9c159fc1 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_woanalog.edc @@ -0,0 +1,183 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/WOAnalog_left/default"; + alias: "elm/genlist/item_compress/WOAnalog_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" "calaos.button.plus calaos.button.moins"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.plus"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + part + { + name: "calaos.button.moins"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3 13; } + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34-5-34-3-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3-34-5 13; } + text { text: "00.00 Units"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel2.to_x: "item.value"; + rel1 { relative: 0.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -10 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + + +} + +group +{ + name: "elm/genlist/item/WOAnalog_right/default"; + alias: "elm/genlist/item_compress/WOAnalog_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text item.value"; + data.item: "contents" "calaos.button.plus calaos.button.moins"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "calaos.button.moins"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3+34+3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34+3+34 13; } + } + } + + part + { + name: "calaos.button.plus"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + part + { + name: "item.value"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 218 90 255; + rel1 { relative: 0.0 0.5; offset: 34+3+3+34+5 -14; } + rel2 { relative: 0.0 0.5; offset: 34+3+3+34+5+34+3+3+34 13; } + text { text: "00.00 Units"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.0 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "item.value"; + rel1 { relative: 1.0 0.5; offset: 10 -14; } + rel2 { relative: 1.0 0.5; offset: -5 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + } + +} diff --git a/data/themes/default/elm/elm_genlist_item_wodali.edc b/data/themes/default/elm/elm_genlist_item_wodali.edc new file mode 100644 index 00000000..1bdcf913 --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_wodali.edc @@ -0,0 +1,292 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/WODali_left/default"; + alias: "elm/genlist/item_compress/WODali_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text text.value"; + data.item: "contents" "calaos.button.on calaos.button.off calaos.slider calaos.button.more calaos.button.less"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 75; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/light"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 6 9; } + rel2 { relative: 0.0 0.0; offset: 21+6 37; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3 9; } + rel2 { relative: 1.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34 9; } + rel2 { relative: 1.0 0.0; offset: -34-3-3 37; } + } + } + + part + { + name: "calaos.button.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34-3-34 39; } + rel2 { relative: 1.0 0.0; offset: -34-3-3-34-3 39+28; } + } + } + + part + { + name: "calaos.button.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 39; } + rel2 { relative: 0.0 0.0; offset: 3+34 39+28; } + } + } + + part + { + name: "calaos.slider"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39; } + rel2 { relative: 0.0 0.0; offset: -7 39+28; } + rel1.to_x: "calaos.button.less"; + rel2.to_x: "calaos.button.more"; + } + } + + part + { + name: "text.value"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -46 39;} + rel2 { relative: 1.0 0.0; offset: -3 39+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.off"; + rel1 { relative: 1.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 0.0; offset: -3 37; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } +} + +group +{ + name: "elm/genlist/item/WODali_right/default"; + alias: "elm/genlist/item_compress/WODali_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text text.value"; + data.item: "contents" "calaos.button.on calaos.button.off calaos.slider calaos.button.more calaos.button.less"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 75; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/light"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -6-21 9; } + rel2 { relative: 1.0 0.0; offset: -6 37; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3 9; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34 37; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 9; } + rel2 { relative: 0.0 0.0; offset: 3+34 37; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.off"; + rel2.to_x: "item_icon"; + rel1 { relative: 1.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.button.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -3-34 39; } + rel2 { relative: 1.0 0.0; offset: -3 39+28; } + } + } + + part + { + name: "calaos.button.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3+34+3 39; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34+3+34 39+28; } + } + } + + part + { + name: "calaos.slider"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39; } + rel2 { relative: 0.0 0.0; offset: -7 39+28; } + rel1.to_x: "calaos.button.less"; + rel2.to_x: "calaos.button.more"; + } + } + + part + { + name: "text.value"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 3 39;} + rel2 { relative: 0.0 0.0; offset: 46 39+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} diff --git a/data/themes/default/elm/elm_genlist_item_wodalirvb.edc b/data/themes/default/elm/elm_genlist_item_wodalirvb.edc new file mode 100644 index 00000000..24b1e0cd --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_wodalirvb.edc @@ -0,0 +1,559 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/WODaliRVB_left/default"; + alias: "elm/genlist/item_compress/WODaliRVB_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text text.value.red text.value.green text.value.blue"; + data.item: "contents" "calaos.button.on calaos.button.off calaos.slider.red calaos.button.red.more calaos.button.red.less calaos.slider.green calaos.button.green.more calaos.button.green.less calaos.slider.blue calaos.button.blue.more calaos.button.blue.less color.preview"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 172; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/light"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 6 9; } + rel2 { relative: 0.0 0.0; offset: 21+6 37; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.off"; + rel1 { relative: 1.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34 9; } + rel2 { relative: 1.0 0.0; offset: -34-3-3 37; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3 9; } + rel2 { relative: 1.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.button.red.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 39; } + rel2 { relative: 0.0 0.0; offset: 3+34 39+28; } + } + } + + part + { + name: "calaos.slider.red"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39; } + rel2 { relative: 0.0 0.0; offset: -7 39+28; } + rel1.to_x: "calaos.button.red.less"; + rel2.to_x: "calaos.button.red.more"; + } + } + + part + { + name: "calaos.button.red.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34-3-34 39; } + rel2 { relative: 1.0 0.0; offset: -34-3-3-34-3 39+28; } + } + } + + part + { + name: "text.value.red"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -46 39;} + rel2 { relative: 1.0 0.0; offset: -3 39+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "calaos.button.green.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 39+28+2; } + rel2 { relative: 0.0 0.0; offset: 3+34 39+28+2+28; } + } + } + + part + { + name: "calaos.slider.green"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39+28+2; } + rel2 { relative: 0.0 0.0; offset: -7 39+28+2+28; } + rel1.to_x: "calaos.button.green.less"; + rel2.to_x: "calaos.button.green.more"; + } + } + + part + { + name: "calaos.button.green.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34-3-34 39+28+2; } + rel2 { relative: 1.0 0.0; offset: -34-3-3-34-3 39+28+2+28; } + } + } + + part + { + name: "text.value.green"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -46 39+28+2;} + rel2 { relative: 1.0 0.0; offset: -3 39+28+2+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "calaos.button.blue.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 39+28+2+28+2; } + rel2 { relative: 0.0 0.0; offset: 3+34 39+28+2+28+2+28; } + } + } + + part + { + name: "calaos.slider.blue"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39+28+2+28+2; } + rel2 { relative: 0.0 0.0; offset: -7 39+28+2+28+2+28; } + rel1.to_x: "calaos.button.blue.less"; + rel2.to_x: "calaos.button.blue.more"; + } + } + + part + { + name: "calaos.button.blue.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34-3-34 39+28+2+28+2; } + rel2 { relative: 1.0 0.0; offset: -34-3-3-34-3 39+28+2+28+2+28; } + } + } + + part + { + name: "text.value.blue"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -46 39+28+2+28+2;} + rel2 { relative: 1.0 0.0; offset: -3 39+28+2+28+2+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "color.preview"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { to: "rgb_decoration"; offset: 12 3; } + rel2 { to: "rgb_decoration"; offset: -13 -2; } + } + } + + part + { + name: "rgb_decoration"; + description + { + state: "default" 0.0; + image { normal: "rgb_preview.png"; border: 20 20 10 10; } + rel1 { relative: 0.0 1.0; offset: 20 5; to_y: "text.value.blue"; } + rel2 { relative: 1.0 1.0; offset: -19 5+28; to_y: "text.value.blue"; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } +} + +group +{ + name: "elm/genlist/item/WODaliRVB_right/default"; + alias: "elm/genlist/item_compress/WODaliRVB_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text text.value.red text.value.green text.value.blue"; + data.item: "contents" "calaos.button.on calaos.button.off calaos.slider.red calaos.button.red.more calaos.button.red.less calaos.slider.green calaos.button.green.more calaos.button.green.less calaos.slider.blue calaos.button.blue.more calaos.button.blue.less color.preview"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 172; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/light"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -6-21 9; } + rel2 { relative: 1.0 0.0; offset: -6 37; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to_x: "calaos.button.off"; + rel2.to_x: "item_icon"; + rel1 { relative: 1.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3 9; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34 37; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 9; } + rel2 { relative: 0.0 0.0; offset: 3+34 37; } + } + } + + part + { + name: "calaos.button.red.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3+34+3 39; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34+3+34 39+28; } + } + } + + part + { + name: "calaos.slider.red"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39; } + rel2 { relative: 0.0 0.0; offset: -7 39+28; } + rel1.to_x: "calaos.button.red.less"; + rel2.to_x: "calaos.button.red.more"; + } + } + + part + { + name: "calaos.button.red.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -3-34 39; } + rel2 { relative: 1.0 0.0; offset: -3 39+28; } + } + } + + part + { + name: "text.value.red"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 3 39;} + rel2 { relative: 0.0 0.0; offset: 46 39+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "calaos.button.green.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3+34+3 39+28+2; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34+3+34 39+28+2+28; } + } + } + + part + { + name: "calaos.slider.green"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39+28+2; } + rel2 { relative: 0.0 0.0; offset: -7 39+28+2+28; } + rel1.to_x: "calaos.button.green.less"; + rel2.to_x: "calaos.button.green.more"; + } + } + + part + { + name: "calaos.button.green.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -3-34 39+28+2; } + rel2 { relative: 1.0 0.0; offset: -3 39+28+2+28; } + } + } + + part + { + name: "text.value.green"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 3 39+28+2;} + rel2 { relative: 0.0 0.0; offset: 46 39+28+2+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "calaos.button.blue.less"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3+34+3 39+28+2+28+2; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34+3+34 39+28+2+28+2+28; } + } + } + + part + { + name: "calaos.slider.blue"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 7 39+28+2+28+2; } + rel2 { relative: 0.0 0.0; offset: -7 39+28+2+28+2+28; } + rel1.to_x: "calaos.button.blue.less"; + rel2.to_x: "calaos.button.blue.more"; + } + } + + part + { + name: "calaos.button.blue.more"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -3-34 39+28+2+28+2; } + rel2 { relative: 1.0 0.0; offset: -3 39+28+2+28+2+28; } + } + } + + part + { + name: "text.value.blue"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 3 39+28+2+28+2;} + rel2 { relative: 0.0 0.0; offset: 46 39+28+2+28+2+28;} + color: 251 175 37 255; + text { text: "100%"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.5 0.5;} + } + } + + part + { + name: "color.preview"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { to: "rgb_decoration"; offset: 12 3; } + rel2 { to: "rgb_decoration"; offset: -13 -2; } + } + } + + part + { + name: "rgb_decoration"; + description + { + state: "default" 0.0; + image { normal: "rgb_preview.png"; border: 20 20 10 10; } + rel1 { relative: 0.0 1.0; offset: 20 5; to_y: "text.value.blue"; } + rel2 { relative: 1.0 1.0; offset: -19 5+28; to_y: "text.value.blue"; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } +} diff --git a/data/themes/default/elm/elm_genlist_item_wodigital.edc b/data/themes/default/elm/elm_genlist_item_wodigital.edc new file mode 100644 index 00000000..2f19392a --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_wodigital.edc @@ -0,0 +1,185 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/WODigital_left/default"; + alias: "elm/genlist/item_compress/WODigital_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.on calaos.button.off"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/light"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 6 -14; } + rel2 { relative: 0.0 0.5; offset: 21+6 13; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.off"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} + +group +{ + name: "elm/genlist/item/WODigital_right/default"; + alias: "elm/genlist/item_compress/WODigital_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.on calaos.button.off"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/light"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -6-21 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + } + } + + part + { + name: "calaos.button.off"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3+34+3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34+3+34 13; } + } + } + + part + { + name: "calaos.button.on"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.off"; + rel2.to_x: "item_icon"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} diff --git a/data/themes/default/elm/elm_genlist_item_wovolet.edc b/data/themes/default/elm/elm_genlist_item_wovolet.edc new file mode 100644 index 00000000..29e43f1e --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_wovolet.edc @@ -0,0 +1,211 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/genlist/item/WOVolet_left/default"; + alias: "elm/genlist/item_compress/WOVolet_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.up calaos.button.down calaos.button.stop"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/volet"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 6 -14; } + rel2 { relative: 0.0 0.5; offset: 21+6 13; } + } + } + + part + { + name: "calaos.button.up"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3 -14; } + rel2 { relative: 1.0 0.5; offset: -3 13; } + } + } + + part + { + name: "calaos.button.down"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3 13; } + } + } + + part + { + name: "calaos.button.stop"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -34-3-3-34-3-34 -14; } + rel2 { relative: 1.0 0.5; offset: -34-3-3-3-34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.stop"; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} + +group +{ + name: "elm/genlist/item/WOVolet_right/default"; + alias: "elm/genlist/item_compress/WOVolet_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text"; + data.item: "contents" "calaos.button.up calaos.button.down calaos.button.stop"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 42; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/volet"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.5; offset: -6-21 -14; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + } + } + + part + { + name: "calaos.button.stop"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3+34+3+3+34 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34+3+34+3+34 13; } + } + } + + part + { + name: "calaos.button.down"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3+34+3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34+3+34 13; } + } + } + + part + { + name: "calaos.button.up"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 3 -14; } + rel2 { relative: 0.0 0.5; offset: 3+34 13; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.stop"; + rel2.to_x: "item_icon"; + rel1 { relative: 1.0 0.5; offset: 5 -14; } + rel2 { relative: 0.0 0.5; offset: -3 13; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} diff --git a/data/themes/default/elm/elm_genlist_item_wovoletsmart.edc b/data/themes/default/elm/elm_genlist_item_wovoletsmart.edc new file mode 100644 index 00000000..642d745c --- /dev/null +++ b/data/themes/default/elm/elm_genlist_item_wovoletsmart.edc @@ -0,0 +1,513 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/shutter/slider"; + + parts + { + part + { + name: "shutter_move_clipper"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 49;} + rel2 { relative: 0.0 0.0; offset: 62 96;} + } + } + + part { + name: "shutter_move_confine"; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 0.0 0.0; offset: 62 96;} + } + } + + part + { + name: "object.shutter"; + clip_to: "shutter_move_clipper"; + dragable + { + confine: "shutter_move_confine"; + x: 0 0 0; y: 1 1 1; + } + description + { + state: "default" 0.0; + min: 63 48; max: 63 48; + image { normal: "window_shutter.png";} + } + } + } +} + +group +{ + name: "elm/genlist/item/WOVoletSmart_left/default"; + alias: "elm/genlist/item_compress/WOVoletSmart_left/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text shutter.state shutter.action"; + data.item: "contents" "calaos.button.up calaos.button.down calaos.button.stop calaos.button.impulse_up calaos.button.impulse_down calaos.button.50 calaos.button.25 calaos.button.75 calaos.window.slider"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 150; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/volet"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 6 9; } + rel2 { relative: 0.0 0.0; offset: 21+6 37; } + } + } + + part + { + name: "calaos.button.up"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3 9; } + rel2 { relative: 1.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.button.down"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34 9; } + rel2 { relative: 1.0 0.0; offset: -34-3-3 37; } + } + } + + part + { + name: "calaos.button.stop"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3-3-34-3-34 9; } + rel2 { relative: 1.0 0.0; offset: -34-3-3-3-34 37; } + } + } + + part + { + name: "calaos.button.impulse_up"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3 37+11; } + rel2 { relative: 1.0 0.0; offset: -3 37+11+28; } + } + } + + part + { + name: "calaos.button.impulse_down"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -34-3 37+11+28+10; } + rel2 { relative: 1.0 0.0; offset: -3 37+11+28+10+28; } + } + } + + part + { + name: "calaos.button.75"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -49-40 113; } + rel2 { relative: 1.0 0.0; offset: -49 141; } + } + } + + part + { + name: "calaos.button.50"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -49-40-6-40 113; } + rel2 { relative: 1.0 0.0; offset: -49-40-6 141; } + } + } + + part + { + name: "calaos.button.25"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -49-40-6-40-6-40 113; } + rel2 { relative: 1.0 0.0; offset: -49-40-6-40-6 141; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "item_icon"; + rel2.to_x: "calaos.button.stop"; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.window.slider"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 50-10 16;} + rel2 { relative: 0.0 0.0; offset: 112-10 112;} + } + } + + part + { + name: "button_shutter_border"; + description + { + state: "default" 0.0; + image { normal: "window_border.png";} + rel1 { relative: 0.0 0.0; offset: 33-10 48;} + rel2 { relative: 0.0 0.0; offset: 129-10 124;} + } + } + + part + { + name: "button_shutter_arrows"; + description + { + state: "default" 0.0; + image { normal: "shutter_arrows_deco.png";} + rel1 { relative: 0.0 0.0; offset: 19-10 57; } + rel2 { relative: 0.0 0.0; offset: 29-10 112; } + } + } + + part + { + name: "shutter.state"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 142 60; } + rel2 { relative: 0.0 0.0; offset: 274 74; } + text { style: "StandardText"; text: "Etat : 75% fermé."; } + } + } + + part + { + name: "shutter.action"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 142 82; } + rel2 { relative: 0.0 0.0; offset: 274 96; } + text { style: "StandardText"; text: "Action : fermeture"; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} + +group +{ + name: "elm/genlist/item/WOVoletSmart_right/default"; + alias: "elm/genlist/item_compress/WOVoletSmart_right/default"; + + data.item: "selectraise" "on"; + data.item: "texts" "text shutter.state shutter.action"; + data.item: "contents" "calaos.button.up calaos.button.down calaos.button.stop calaos.button.impulse_up calaos.button.impulse_down calaos.button.50 calaos.button.25 calaos.button.75 calaos.window.slider"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 50 150; + fixed: 0 0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_icon"; + type: GROUP; + source: "calaos/icons/element/volet"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -6-21 9; } + rel2 { relative: 1.0 0.0; offset: -6 37; } + } + } + + part + { + name: "calaos.button.stop"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3+3+34 9; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34+3+34 37; } + } + } + + part + { + name: "calaos.button.down"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3+34+3 9; } + rel2 { relative: 0.0 0.0; offset: 3+34+3+34 37; } + } + } + + part + { + name: "calaos.button.up"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 9; } + rel2 { relative: 0.0 0.0; offset: 3+34 37; } + } + } + + part + { + name: "calaos.button.impulse_up"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 37+11; } + rel2 { relative: 0.0 0.0; offset: 3+34 37+11+28; } + } + } + + part + { + name: "calaos.button.impulse_down"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 3 37+11+28+10; } + rel2 { relative: 0.0 0.0; offset: 3+34 37+11+28+10+28; } + } + } + + part + { + name: "calaos.button.25"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 49 113; } + rel2 { relative: 0.0 0.0; offset: 49+40 141; } + } + } + + part + { + name: "calaos.button.50"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 49+40+6 113; } + rel2 { relative: 0.0 0.0; offset: 49+40+6+40 141; } + } + } + + part + { + name: "calaos.button.75"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 49+40+6+40+6 113; } + rel2 { relative: 0.0 0.0; offset: 49+40+6+40+6+40 141; } + } + } + + alias: "text" "item_text:text"; + part + { + name: "item_text"; + type: GROUP; + source: "calaos/text/scrolling/right"; + description + { + state: "default" 0.0; + rel1.to_x: "calaos.button.stop"; + rel2.to_x: "item_icon"; + rel1 { relative: 1.0 0.0; offset: 5 9; } + rel2 { relative: 0.0 0.0; offset: -3 37; } + } + } + + part + { + name: "calaos.window.slider"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -112+10 16;} + rel2 { relative: 1.0 0.0; offset: -49+10 112;} + } + } + + part + { + name: "button_shutter_border"; + description + { + state: "default" 0.0; + image { normal: "window_border2.png";} + rel1 { relative: 1.0 0.0; offset: -129+10 48;} + rel2 { relative: 1.0 0.0; offset: -32+10 124;} + } + } + + part + { + name: "button_shutter_arrows"; + description + { + state: "default" 0.0; + image { normal: "shutter_arrows_deco.png";} + rel1 { relative: 1.0 0.0; offset: -29+10 57; } + rel2 { relative: 1.0 0.0; offset: -18+10 112; } + } + } + + part + { + name: "shutter.state"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -274+15 60; } + rel2 { relative: 1.0 0.0; offset: -141+15 74; } + text { style: "StandardText"; text: "Etat : 75% fermé."; } + } + } + + part + { + name: "shutter.action"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -274+15 82; } + rel2 { relative: 1.0 0.0; offset: -141+15 96; } + text { style: "StandardText"; text: "Action : fermeture"; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT(item_text) + ANIM_ICON_SIGNAL_REPEAT(item_icon) + } + + +} diff --git a/data/themes/default/elm/elm_list_base.edc b/data/themes/default/elm/elm_list_base.edc new file mode 100644 index 00000000..30f0ce56 --- /dev/null +++ b/data/themes/default/elm/elm_list_base.edc @@ -0,0 +1,803 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +// This is the modified base theme for elementary list/genlist/scroller/... + +group { name: "elm/scroller/base/calaos"; + + alias: "elm/list/base/menu/homeboard"; + alias: "elm/list/base/home/room_list"; + alias: "elm/list/base/calaos"; + alias: "elm/genlist/base/calaos"; + alias: "elm/carousel/base/calaos"; + alias: "elm/gengrid/base/calaos"; + alias: "elm/scroller/base/calaos"; + alias: "elm/genscroller/base/calaos"; + alias: "elm/scroller/entry/calaos"; + alias: "elm/scroller/entry/calaos/multiline"; + + data { + item: "focus_highlight" "on"; + } + + script { + public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; + public timer0(val) { + new v; + v = get_int(sbvis_v); + if (v) { + v = get_int(sbalways_v); + if (!v) { + emit("do-hide-vbar", ""); + set_int(sbvis_v, 0); + } + } + v = get_int(sbvis_h); + if (v) { + v = get_int(sbalways_h); + if (!v) { + emit("do-hide-hbar", ""); + set_int(sbvis_h, 0); + } + } + set_int(sbvis_timer, 0); + return 0; + } + } + images + { + image: "menu_item_select2.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + rel1.offset: 5 0; + rel2.offset: -6 -1; + color: 255 255 255 0; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + rel1.offset: 5 0; + rel2.offset: -6 -1; + } + } + part { name: "elm.swallow.content"; + clip_to: "clipper"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + rel1.offset: 5 0; + rel2.offset: -6 -1; + } + } + + part { name: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_vbar_clip"; + clip_to: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_vbar"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + min: 10 6; + align: 1.0 0.0; + rel1 { + relative: 1.0 0.0; + offset: 8 2; + to_y: "elm.swallow.content"; + to_x: "elm.swallow.content"; + } + rel2 { + relative: 1.0 0.0; + offset: 9 -1; + to_y: "sb_hbar"; + to_x: "elm.swallow.content"; + } + } + } + part { name: "elm.dragable.vbar"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + dragable { + x: 0 0 0; + y: 1 1 0; + confine: "sb_vbar"; + } + description { state: "default" 0.0; + fixed: 1 1; + min: 6 6; + max: 6 99999; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_vbar"; + } + rel2 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_vbar"; + } + image { normal: "menu_item_select2.png"; border: 2 2 2 2;} + } + } + + part { name: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_hbar_clip"; + clip_to: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_hbar"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + min: 6 10; + align: 0.0 1.0; + rel1 { + relative: 0.0 1.0; + offset: 2 0; + to_x: "elm.swallow.content"; + to_y: "elm.swallow.content"; + } + rel2 { + relative: 0.0 1.0; + offset: -1 -1; + to_x: "sb_vbar"; + to_y: "elm.swallow.content"; + } + } + } + part { name: "elm.dragable.hbar"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + dragable { + x: 1 1 0; + y: 0 0 0; + confine: "sb_hbar"; + } + description { state: "default" 0.0; + fixed: 1 1; + min: 6 6; + max: 99999 6; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_hbar"; + } + rel2 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_hbar"; + } + image { normal: "menu_item_select2.png"; border: 3 3 3 3;} + } + } + part { name: "disabler"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "clipper"; + rel2.to: "clipper"; + color: 0 0 0 0; + visible: 0; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 128 128 128 128; + } + } + } + programs { + program { name: "load"; + signal: "load"; + source: ""; + script { + set_state(PART:"sb_hbar_clip", "hidden", 0.0); + set_state(PART:"sb_vbar_clip", "hidden", 0.0); + set_int(sbvis_h, 0); + set_int(sbvis_v, 0); + set_int(sbalways_v, 0); + set_int(sbalways_h, 0); + set_int(sbvis_timer, 0); + } + } + + program { name: "vbar_show"; + signal: "elm,action,show,vbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_vbar_clip_master"; + } + program { name: "vbar_hide"; + signal: "elm,action,hide,vbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_vbar_clip_master"; + } + program { name: "vbar_show_always"; + signal: "elm,action,show_always,vbar"; + source: "elm"; + script { + new v; + v = get_int(sbvis_v); + v |= get_int(sbalways_v); + if (!v) { + set_int(sbalways_v, 1); + emit("do-show-vbar", ""); + set_int(sbvis_v, 1); + } + } + } + program { name: "vbar_show_notalways"; + signal: "elm,action,show_notalways,vbar"; + source: "elm"; + script { + new v; + v = get_int(sbalways_v); + if (v) { + set_int(sbalways_v, 0); + v = get_int(sbvis_v); + if (!v) { + emit("do-hide-vbar", ""); + set_int(sbvis_v, 0); + } + } + } + } + program { name: "sb_vbar_show"; + signal: "do-show-vbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "sb_vbar_clip"; + } + program { name: "sb_vbar_hide"; + signal: "do-hide-vbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 0.5; + target: "sb_vbar_clip"; + } + + program { name: "hbar_show"; + signal: "elm,action,show,hbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_hbar_clip_master"; + } + program { name: "hbar_hide"; + signal: "elm,action,hide,hbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_hbar_clip_master"; + } + program { name: "hbar_show_always"; + signal: "elm,action,show_always,hbar"; + source: "elm"; + script { + new v; + v = get_int(sbvis_h); + v |= get_int(sbalways_h); + if (!v) { + set_int(sbalways_h, 1); + emit("do-show-hbar", ""); + set_int(sbvis_h, 1); + } + } + } + program { name: "hbar_show_notalways"; + signal: "elm,action,show_notalways,hbar"; + source: "elm"; + script { + new v; + v = get_int(sbalways_h); + if (v) { + set_int(sbalways_h, 0); + v = get_int(sbvis_h); + if (!v) { + emit("do-hide-hbar", ""); + set_int(sbvis_h, 0); + } + } + } + } + program { name: "sb_hbar_show"; + signal: "do-show-hbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "sb_hbar_clip"; + } + program { name: "sb_hbar_hide"; + signal: "do-hide-hbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 0.5; + target: "sb_hbar_clip"; + } + + program { name: "scroll"; + signal: "elm,action,scroll"; + source: "elm"; + script { + new v; + v = get_int(sbvis_v); + v |= get_int(sbalways_v); + if (!v) { + emit("do-show-vbar", ""); + set_int(sbvis_v, 1); + } + v = get_int(sbvis_h); + v |= get_int(sbalways_h); + if (!v) { + emit("do-show-hbar", ""); + set_int(sbvis_h, 1); + } + v = get_int(sbvis_timer); + if (v > 0) cancel_timer(v); + v = timer(1.0, "timer0", 0); + set_int(sbvis_timer, v); + } + } + + program { name: "highlight_show"; + signal: "elm,action,focus_highlight,show"; + source: "elm"; + } + program { name: "highlight_hide"; + signal: "elm,action,focus_highlight,hide"; + source: "elm"; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disabler"; + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disabler"; + } + } + } + +group { name: "elm/scroller/base/calaos/pager"; + + data { + item: "focus_highlight" "on"; + } + + script { + public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; + public timer0(val) { + new v; + v = get_int(sbvis_v); + if (v) { + v = get_int(sbalways_v); + if (!v) { + emit("do-hide-vbar", ""); + set_int(sbvis_v, 0); + } + } + v = get_int(sbvis_h); + if (v) { + v = get_int(sbalways_h); + if (!v) { + emit("do-hide-hbar", ""); + set_int(sbvis_h, 0); + } + } + set_int(sbvis_timer, 0); + return 0; + } + } + images + { + image: "menu_item_select2.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + rel1.offset: 0 0; + rel2.offset: -1 -1; + color: 255 255 255 0; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + rel1.offset: 0 0; + rel2.offset: -1 -1; + } + } + part { name: "elm.swallow.content"; + clip_to: "clipper"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + rel1.offset: 0 0; + rel2.offset: -1 -1; + } + } + + part { name: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_vbar_clip"; + clip_to: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_vbar"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + min: 10 6; + align: 1.0 0.0; + rel1 { + relative: 1.0 0.0; + offset: 0 2; + to_y: "elm.swallow.content"; + to_x: "elm.swallow.content"; + } + rel2 { + relative: 1.0 0.0; + offset: -1 -1; + to_y: "sb_hbar"; + to_x: "elm.swallow.content"; + } + } + } + part { name: "elm.dragable.vbar"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + dragable { + x: 0 0 0; + y: 1 1 0; + confine: "sb_vbar"; + } + description { state: "default" 0.0; + fixed: 1 1; + min: 6 6; + max: 6 99999; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_vbar"; + } + rel2 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_vbar"; + } + image { normal: "menu_item_select2.png"; border: 2 2 2 2;} + } + } + + part { name: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_hbar_clip"; + clip_to: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_hbar"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + min: 6 10; + align: 0.0 1.0; + rel1 { + relative: 0.0 1.0; + offset: 2 0; + to_x: "elm.swallow.content"; + to_y: "elm.swallow.content"; + } + rel2 { + relative: 0.0 1.0; + offset: -1 -1; + to_x: "sb_vbar"; + to_y: "elm.swallow.content"; + } + } + } + part { name: "elm.dragable.hbar"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + dragable { + x: 1 1 0; + y: 0 0 0; + confine: "sb_hbar"; + } + description { state: "default" 0.0; + fixed: 1 1; + min: 6 6; + max: 99999 6; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_hbar"; + } + rel2 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_hbar"; + } + image { normal: "menu_item_select2.png"; border: 3 3 3 3;} + } + } + part { name: "disabler"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "clipper"; + rel2.to: "clipper"; + color: 0 0 0 0; + visible: 0; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 128 128 128 128; + } + } + } + programs { + program { name: "load"; + signal: "load"; + source: ""; + script { + set_state(PART:"sb_hbar_clip", "hidden", 0.0); + set_state(PART:"sb_vbar_clip", "hidden", 0.0); + set_int(sbvis_h, 0); + set_int(sbvis_v, 0); + set_int(sbalways_v, 0); + set_int(sbalways_h, 0); + set_int(sbvis_timer, 0); + } + } + + program { name: "vbar_show"; + signal: "elm,action,show,vbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_vbar_clip_master"; + } + program { name: "vbar_hide"; + signal: "elm,action,hide,vbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_vbar_clip_master"; + } + program { name: "vbar_show_always"; + signal: "elm,action,show_always,vbar"; + source: "elm"; + script { + new v; + v = get_int(sbvis_v); + v |= get_int(sbalways_v); + if (!v) { + set_int(sbalways_v, 1); + emit("do-show-vbar", ""); + set_int(sbvis_v, 1); + } + } + } + program { name: "vbar_show_notalways"; + signal: "elm,action,show_notalways,vbar"; + source: "elm"; + script { + new v; + v = get_int(sbalways_v); + if (v) { + set_int(sbalways_v, 0); + v = get_int(sbvis_v); + if (!v) { + emit("do-hide-vbar", ""); + set_int(sbvis_v, 0); + } + } + } + } + program { name: "sb_vbar_show"; + signal: "do-show-vbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "sb_vbar_clip"; + } + program { name: "sb_vbar_hide"; + signal: "do-hide-vbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 0.5; + target: "sb_vbar_clip"; + } + + program { name: "hbar_show"; + signal: "elm,action,show,hbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_hbar_clip_master"; + } + program { name: "hbar_hide"; + signal: "elm,action,hide,hbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_hbar_clip_master"; + } + program { name: "hbar_show_always"; + signal: "elm,action,show_always,hbar"; + source: "elm"; + script { + new v; + v = get_int(sbvis_h); + v |= get_int(sbalways_h); + if (!v) { + set_int(sbalways_h, 1); + emit("do-show-hbar", ""); + set_int(sbvis_h, 1); + } + } + } + program { name: "hbar_show_notalways"; + signal: "elm,action,show_notalways,hbar"; + source: "elm"; + script { + new v; + v = get_int(sbalways_h); + if (v) { + set_int(sbalways_h, 0); + v = get_int(sbvis_h); + if (!v) { + emit("do-hide-hbar", ""); + set_int(sbvis_h, 0); + } + } + } + } + program { name: "sb_hbar_show"; + signal: "do-show-hbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "sb_hbar_clip"; + } + program { name: "sb_hbar_hide"; + signal: "do-hide-hbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 0.5; + target: "sb_hbar_clip"; + } + + program { name: "scroll"; + signal: "elm,action,scroll"; + source: "elm"; + script { + new v; + v = get_int(sbvis_v); + v |= get_int(sbalways_v); + if (!v) { + emit("do-show-vbar", ""); + set_int(sbvis_v, 1); + } + v = get_int(sbvis_h); + v |= get_int(sbalways_h); + if (!v) { + emit("do-show-hbar", ""); + set_int(sbvis_h, 1); + } + v = get_int(sbvis_timer); + if (v > 0) cancel_timer(v); + v = timer(1.0, "timer0", 0); + set_int(sbvis_timer, v); + } + } + + program { name: "highlight_show"; + signal: "elm,action,focus_highlight,show"; + source: "elm"; + } + program { name: "highlight_hide"; + signal: "elm,action,focus_highlight,hide"; + source: "elm"; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disabler"; + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disabler"; + } + } + } \ No newline at end of file diff --git a/data/themes/default/elm/elm_list_home_room.edc b/data/themes/default/elm/elm_list_home_room.edc new file mode 100644 index 00000000..cdd1a951 --- /dev/null +++ b/data/themes/default/elm/elm_list_home_room.edc @@ -0,0 +1,152 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/list/item/home/room_list"; + alias: "elm/list/item_odd/home/room_list"; + + data.item: "stacking" "above"; + + parts + { + part + { + name: "item_back"; + description + { + state: "default" 0.0; + min: 0 42; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + } + } + + part + { + name: "item_select"; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + image { normal: "button_element_bevel.png"; border: 11 11 23 23; } + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + + part + { + name: "icon_room_off"; + description + { + state: "default" 0.0; + image { normal: "icon_room.png"; } + rel1 { relative: 0.0 0.5; offset: 10 -8; } + rel2 { relative: 0.0 0.5; offset: 21+10 7; } + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "icon_room_on"; + description + { + state: "default" 0.0; + image { normal: "icon_room_on.png"; } + rel1.to: "icon_room_off"; + rel2.to: "icon_room_off"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "elm.text" "label_clip:text"; + part + { + name: "label_clip"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1.to_x: "icon_room_off"; + rel1 { relative: 1.0 0.0; offset: 5 0; } + rel2 { relative: 1.0 1.0; offset: -5 -1; } + } + } + } + + programs + { + program + { + name: "on_show"; + signal: "show"; + after: "go_passive"; + } + + program + { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + transition: ACCELERATE 0.25; + target: "item_select"; + target: "icon_room_off"; + target: "icon_room_on"; + after: "sig_text_active"; + } + program + { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "item_select"; + target: "icon_room_off"; + target: "icon_room_on"; + after: "sig_text_inactive"; + } + + program + { + name: "sig_text_active"; + action: SIGNAL_EMIT "label_clip:text,active,blue" "calaos"; + } + + program + { + name: "sig_text_inactive"; + action: SIGNAL_EMIT "label_clip:text,inactive" "calaos"; + } + + } +} diff --git a/data/themes/default/elm/elm_list_homeboard.edc b/data/themes/default/elm/elm_list_homeboard.edc new file mode 100644 index 00000000..1c553407 --- /dev/null +++ b/data/themes/default/elm/elm_list_homeboard.edc @@ -0,0 +1,139 @@ + +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/list/item/menu/homeboard"; + alias: "elm/list/item_odd/menu/homeboard"; + + data.item: "stacking" "above"; + + parts + { + part + { + name: "homeboard_item_back"; + description + { + state: "default" 0.0; + min: 0 82; + image { normal: "menu_item.png"; border: 158 28 26 9;} + } + } + + part + { + name: "homeboard_item_back_select"; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + image { normal: "menu_item_select.png"; border: 158 28 26 9;} + } + description + { + state: "selected" 0.0; + visible: 1; + color: 255 255 255 255; + image { normal: "menu_item_select.png"; border: 158 28 26 9;} + } + } + + + part + { + name: "elm.swallow.icon"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 26 -64;} + rel2 { relative: 0.0 1.0; offset: 147 -9;} + } + } + + part + { + name: "elm.text"; + type: TEXT; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 175 35; } + rel2 { relative: 1.0 0.0; offset: -23 53; } + color: 58 180 215 255; + text { text: "Titre de l'objet"; font: "CalaosContent"; size: 15; min: 0 0; align: 0.0 0.5; } + } + } + + part + { + name: "object.description"; + type: TEXT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 176 55; } + rel2 { relative: 1.0 0.0; offset: -23 68; } + color: 231 231 231 140; + text { text: "Description de l'objet"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.0 0.5; } + } + } + + part + { + name: "object.more_infos"; + type: TEXT; + description + { + state, "default" 0.0; + visible: 1; + rel1 { relative: 1.0 0.0; offset: -174 42; } + rel2 { relative: 1.0 0.0; offset: -38 55; } + color: 255 218 90 255; + text { text: "Infos supplémentaires"; font: "CalaosContent"; size: 10; min: 0 0; align: 1.0 0.5; } + } + } + + part + { + name: "event"; + type: RECT; + repeat_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + } + + programs + { + program + { + name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "homeboard_item_back_select"; + transition: ACCELERATE 0.00001; + } + program + { + name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "homeboard_item_back_select"; + transition: DECELERATE 0.5; + } + } +} diff --git a/data/themes/default/elm/elm_pager.edc b/data/themes/default/elm/elm_pager.edc new file mode 100644 index 00000000..ba0d942c --- /dev/null +++ b/data/themes/default/elm/elm_pager.edc @@ -0,0 +1,247 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +// Same as elm/pager/base/fade_invisible but without padding + +group +{ + name: "elm/pager/base/calaos/fade_invisible"; + data.item: "onshow" "raise"; + + parts + { + part + { + name: "clip"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + rel1 { offset: -9999 -9999; } + rel2 { offset: 9999 9999; } + color: 255 255 255 255; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + } + description + { + state: "hidden" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "clip"; + description + { + state: "default" 0.0; + } + } + } + + programs + { + program + { + name: "push_start"; + signal: "elm,action,push"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "clip"; + after: "show_start2"; + } + + program + { + name: "show_start"; + signal: "elm,action,show"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "clip"; + after: "show_start2"; + } + program + { + name: "show_start2"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.5; + target: "clip"; + after: "show_end"; + } + + program + { + name: "show_end"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + + program + { + name: "pop_start"; + signal: "elm,action,pop"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "clip"; + after: "hide_start2"; + } + + program + { + name: "hide_start"; + signal: "elm,action,hide"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "clip"; + after: "hide_start2"; + } + + program + { + name: "hide_start2"; + action: STATE_SET "hidden" 0.0; + transition: DECELERATE 0.5; + target: "clip"; + after: "hide_end"; + } + + program + { + name: "hide_end"; + action: SIGNAL_EMIT "elm,action,hide,finished" ""; + } + + program + { + name: "reset"; + signal: "elm,action,reset"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "clip"; + } + } +} + +//elm naviframe + +group { name: "elm/naviframe/item/calaos/default"; + parts { + part { name: "content_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + clip_to: "content_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + description { state: "left" 0.0; + inherit: "default" 0.0; + rel1.relative: -1.0 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + rel1.relative: 1.0 0.0; + rel2.relative: 2.0 1.0; + } + } + } + programs { + program { name: "content_new_pusehd"; + signal: "elm,state,new,pushed,internal"; + source: ""; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "elm.swallow.content"; + after: "show_finished"; + } + program { name: "content_cur_pusehd"; + signal: "elm,state,cur,pushed,internal"; + source: ""; + action: STATE_SET "left" 0.0; + target: "elm.swallow.content"; + transition: DECELERATE 0.5; + after: "pushed_finished"; + } + program { name: "content_prev_popped"; + signal: "elm,state,prev,popped,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + transition: DECELERATE 0.5; + after: "show_finished"; + } + program { name: "content_cur_popped"; + signal: "elm,state,cur,popped,internal"; + source: ""; + action: STATE_SET "right" 0.0; + target: "elm.swallow.content"; + transition: DECELERATE 0.5; + after: "popped_finished"; + } + program { name: "cur_pushed"; + signal: "elm,state,cur,pushed"; + source: "elm"; + script { + set_state(PART:"elm.swallow.content", "default", 0.0); + emit("elm,state,cur,pushed,internal", ""); + } + } + program { name: "new_pushed"; + signal: "elm,state,new,pushed"; + source: "elm"; + script { + set_state(PART:"elm.swallow.content", "right", 0.0); + emit("elm,state,new,pushed,internal", ""); + } + } + program { name: "prev_popped"; + signal: "elm,state,prev,popped"; + source: "elm"; + script { + set_state(PART:"elm.swallow.content", "left", 0.0); + emit("elm,state,prev,popped,internal", ""); + } + } + program { name: "cur_popped"; + signal: "elm,state,cur,popped"; + source: "elm"; + script { + set_state(PART:"elm.swallow.content", "default", 0.0); + emit("elm,state,cur,popped,internal", ""); + } + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; + } + } +} diff --git a/data/themes/default/elm/elm_slider_knob.edc b/data/themes/default/elm/elm_slider_knob.edc new file mode 100644 index 00000000..d54553c7 --- /dev/null +++ b/data/themes/default/elm/elm_slider_knob.edc @@ -0,0 +1,430 @@ +//Calaos Home Theme +//Copyright 2012 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/slider/horizontal/calaos/volume"; + alias: "elm/slider/horizontal/calaos/volume"; + min: 200 200; + + images + { + image: "volume_knob.png" COMP; + image: "volume_knob_move.png" COMP; + image: "volume_knob_ledsoff.png" COMP; + + image: "volume_led_01.png" COMP; + image: "volume_led_02.png" COMP; + image: "volume_led_03.png" COMP; + image: "volume_led_04.png" COMP; + image: "volume_led_05.png" COMP; + image: "volume_led_06.png" COMP; + image: "volume_led_07.png" COMP; + image: "volume_led_08.png" COMP; + image: "volume_led_09.png" COMP; + image: "volume_led_10.png" COMP; + + image: "volume_led_11.png" COMP; + image: "volume_led_12.png" COMP; + image: "volume_led_13.png" COMP; + image: "volume_led_14.png" COMP; + image: "volume_led_15.png" COMP; + image: "volume_led_16.png" COMP; + image: "volume_led_17.png" COMP; + image: "volume_led_18.png" COMP; + image: "volume_led_19.png" COMP; + image: "volume_led_20.png" COMP; + + image: "volume_led_21.png" COMP; + image: "volume_led_22.png" COMP; + image: "volume_led_23.png" COMP; + image: "volume_led_24.png" COMP; + image: "volume_led_25.png" COMP; + image: "volume_led_26.png" COMP; + image: "volume_led_27.png" COMP; + image: "volume_led_28.png" COMP; + image: "volume_led_29.png" COMP; + image: "volume_led_30.png" COMP; + + image: "volume_led_31.png" COMP; + image: "volume_led_32.png" COMP; + image: "volume_led_33.png" COMP; + image: "volume_led_34.png" COMP; + image: "volume_led_35.png" COMP; + image: "volume_led_36.png" COMP; + image: "volume_led_37.png" COMP; + image: "volume_led_38.png" COMP; + image: "volume_led_39.png" COMP; + image: "volume_led_40.png" COMP; + + image: "volume_led_41.png" COMP; + image: "volume_led_42.png" COMP; + image: "volume_led_43.png" COMP; + image: "volume_led_44.png" COMP; + image: "volume_led_45.png" COMP; + } + + script + { + //#define VOLUME_MIN_ANGLE 42.0 + #define VOLUME_MIN_ANGLE 0.0 + #define VOLUME_MAX_ANGLE 264.0 + #define VOLUME_MAX_LEDS 45 + + public knob_angle; + public knob_offset; + public leds_on; + + public led_status; //edje list to keep track of each led status + + public Float:calc_angle(mx, my) + { + new px, py, pw, ph; + get_geometry(PART:"bg", px, py, pw, ph); + + new center_x, center_y; + center_x = px + pw / 2; + center_y = py + ph / 2; + + new dx, dy; + dx = center_x - mx; + dy = center_y - my; + + new Float:angle; + angle = atan2(-dx, dy) * 180.0 / PI + 180.0; + + return angle; + } + + public rotate_knob(Float:val) + { + custom_state(PART:"knob", "default", 0.0); + set_state_val(PART:"knob", STATE_MAP_ROT_Z, val); + set_state(PART:"knob", "custom", 0.0); + + //set needed leds on or off from current value + set_int(leds_on, round(val * VOLUME_MAX_LEDS / VOLUME_MAX_ANGLE)); + emit("leds,changed", "volume"); + } + } + + parts + { + part + { + name: "bg"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1.to: "leds_off"; + rel2.to: "leds_off"; + } + } + + part + { + name: "knob_back"; + mouse_events: 0; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -100 -100; } + rel2 { relative: 0.5 0.5; offset: 99 99; } + image.normal: "volume_knob.png"; + } + } + + part + { + name: "knob"; + mouse_events: 0; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -100 -100; } + rel2 { relative: 0.5 0.5; offset: 99 99; } + image.normal: "volume_knob_move.png"; + map.on: 1; + } + } + + part + { + name: "leds_off"; + mouse_events: 0; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -100 -100; } + rel2 { relative: 0.5 0.5; offset: 99 99; } + image.normal: "volume_knob_ledsoff.png"; + color: 255 255 255 50; + } + } + +#define VOLUME_LED_ON(num, inum) \ + part \ + { \ + name: "led_"num; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "leds_off"; \ + rel2.to: "leds_off"; \ + image.normal: "volume_led_"num".png"; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + } \ + program \ + { \ + name: "show_led_"num; \ + action: STATE_SET "visible" 0.0; \ + transition: DECELERATE 0.6 CURRENT; \ + target: "led_"num; \ + } \ + program \ + { \ + name: "hide_led_"num; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.6 CURRENT; \ + target: "led_"num; \ + } \ + program \ + { \ + name: "sig_led_changed_"num; \ + signal: "leds,changed"; \ + source: "volume"; \ + script \ + { \ + new current_status = fetch_int(led_status, inum - 1); \ + new new_status; \ + if (get_int(leds_on) >= inum) \ + new_status = 1; \ + else \ + new_status = 0; \ + \ + if (current_status != new_status) \ + { \ + if (new_status == 1) \ + run_program(PROGRAM:"show_led_"num); \ + else if (new_status == 0) \ + run_program(PROGRAM:"hide_led_"num); \ + \ + replace_int(led_status, inum - 1, new_status); \ + } \ + } \ + } + + VOLUME_LED_ON("01", 1) + VOLUME_LED_ON("02", 2) + VOLUME_LED_ON("03", 3) + VOLUME_LED_ON("04", 4) + VOLUME_LED_ON("05", 5) + VOLUME_LED_ON("06", 6) + VOLUME_LED_ON("07", 7) + VOLUME_LED_ON("08", 8) + VOLUME_LED_ON("09", 9) + VOLUME_LED_ON("10", 10) + + VOLUME_LED_ON("11", 11) + VOLUME_LED_ON("12", 12) + VOLUME_LED_ON("13", 13) + VOLUME_LED_ON("14", 14) + VOLUME_LED_ON("15", 15) + VOLUME_LED_ON("16", 16) + VOLUME_LED_ON("17", 17) + VOLUME_LED_ON("18", 18) + VOLUME_LED_ON("19", 19) + VOLUME_LED_ON("20", 20) + + VOLUME_LED_ON("21", 21) + VOLUME_LED_ON("22", 22) + VOLUME_LED_ON("23", 23) + VOLUME_LED_ON("24", 24) + VOLUME_LED_ON("25", 25) + VOLUME_LED_ON("26", 26) + VOLUME_LED_ON("27", 27) + VOLUME_LED_ON("28", 28) + VOLUME_LED_ON("29", 29) + VOLUME_LED_ON("30", 30) + + VOLUME_LED_ON("31", 31) + VOLUME_LED_ON("32", 32) + VOLUME_LED_ON("33", 33) + VOLUME_LED_ON("34", 34) + VOLUME_LED_ON("35", 35) + VOLUME_LED_ON("36", 36) + VOLUME_LED_ON("37", 37) + VOLUME_LED_ON("38", 38) + VOLUME_LED_ON("39", 39) + VOLUME_LED_ON("40", 40) + + VOLUME_LED_ON("41", 41) + VOLUME_LED_ON("42", 42) + VOLUME_LED_ON("43", 43) + VOLUME_LED_ON("44", 44) + VOLUME_LED_ON("45", 45) + + part + { + name: "volume_min"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.5 0.5; offset: -67 61; } + rel2 { relative: 0.5 0.5; offset: -1 82; } + color: 231 231 231 204; + text { text: "Min"; font: "CalaosContent"; size: 14; min: 1 1; align: 0.0 0.5; } + } + } + + part + { + name: "volume_max"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.5 0.5; offset: -1 61; } + rel2 { relative: 0.5 0.5; offset: 68 82; } + color: 231 231 231 204; + text { text: "Max"; font: "CalaosContent"; size: 14; min: 1 1; align: 1.0 0.5; } + } + } + + part + { + name: "event"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "knob"; + rel2.to: "knob"; + color: 0 0 0 0; + + } + dragable + { + x: 1 1 0; + y: 1 1 0; + } + } + + part + { + //The real slider for elm_slider + name: "elm.dragable.slider"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + + } + dragable + { + x: 1 1 0; + y: 0 0 0; + } + } + + } + + programs + { + program + { + name: "on_drag_start"; + signal: "drag,start"; + source: "event"; + script + { + new mx, my; + get_mouse(mx, my); + + set_float(knob_offset, calc_angle(mx, my) - get_float(knob_angle)); + } + } + + program + { + name: "on_drag_move"; + signal: "drag"; + source: "event"; + script + { + new mx, my; + get_mouse(mx, my); + + new Float:angle = calc_angle(mx, my) - get_float(knob_offset); + + //Limits the button range + if (angle < VOLUME_MIN_ANGLE) angle = VOLUME_MIN_ANGLE; + if (angle > VOLUME_MAX_ANGLE) angle = VOLUME_MAX_ANGLE; + + set_float(knob_angle, angle); + + rotate_knob(angle); + set_drag(PART:"elm.dragable.slider", + get_float(knob_angle) / VOLUME_MAX_ANGLE, 0.0); + } + } + + + program + { + name: "on_drag_stop"; + signal: "drag,stop"; + source: "event"; + script + { + set_drag(PART:"event", 0.0, 0.0); + } + } + + program + { + name: "on_slider_set"; + signal: "drag,set"; + source: "elm.dragable.slider"; + script + { + new Float:dx, Float:dy; + get_drag(PART:"elm.dragable.slider", dx, dy); + + new Float:angle = dx * VOLUME_MAX_ANGLE; + set_float(knob_angle, angle); + + rotate_knob(angle); + } + } + + program + { + name: "on_init"; + signal: "show"; + script + { + while (count(led_status) < VOLUME_MAX_LEDS) + append_int(led_status, 0); + } + } + } +} diff --git a/data/themes/default/elm/elm_spinner.edc b/data/themes/default/elm/elm_spinner.edc new file mode 100644 index 00000000..11ee9e7b --- /dev/null +++ b/data/themes/default/elm/elm_spinner.edc @@ -0,0 +1,83 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "elm/spinner/base/calaos/time/vertical"; + + parts + { + part + { + name: "button.up"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/up"; } + min: 43 37; + rel1 { relative: 0.5 0.0; offset: 0 0; } + rel2 { relative: 0.5 0.0; offset: 0 36; } + } + } + + part + { + name: "elm.text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 5 5; to_y: "button.up"; } + rel2 { relative: 1.0 0.0; offset: -5 -5; to_y: "button.down"; } + text { text: "5
Heures"; style: "TimerSpinnerStyle"; min: 1 1; } + } + } + + part + { + name: "button.down"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/down"; } + min: 43 37; + rel1 { relative: 0.5 1.0; offset: 0 -37; } + rel2 { relative: 0.5 1.0; offset: 0 -1; } + } + } + } + + programs + { + program + { + signal: "pressed"; + source: "button.down"; + action: SIGNAL_EMIT "elm,action,decrement,start" ""; + } + program + { + signal: "unpressed"; + source: "button.down"; + action: SIGNAL_EMIT "elm,action,decrement,stop" ""; + } + program + { + signal: "pressed"; + source: "button.up"; + action: SIGNAL_EMIT "elm,action,increment,start" ""; + } + program + { + signal: "unpressed"; + source: "button.up"; + action: SIGNAL_EMIT "elm,action,increment,stop" ""; + } + } +} diff --git a/data/themes/default/fonts/RepetitionScrolling.ttf b/data/themes/default/fonts/RepetitionScrolling.ttf new file mode 100644 index 00000000..dc124164 Binary files /dev/null and b/data/themes/default/fonts/RepetitionScrolling.ttf differ diff --git a/data/themes/default/fonts/Ubuntu-B.ttf b/data/themes/default/fonts/Ubuntu-B.ttf new file mode 100644 index 00000000..c0142fea Binary files /dev/null and b/data/themes/default/fonts/Ubuntu-B.ttf differ diff --git a/data/themes/default/fonts/Ubuntu-L.ttf b/data/themes/default/fonts/Ubuntu-L.ttf new file mode 100644 index 00000000..7b7ac7dd Binary files /dev/null and b/data/themes/default/fonts/Ubuntu-L.ttf differ diff --git a/data/themes/default/fonts/Ubuntu-M.ttf b/data/themes/default/fonts/Ubuntu-M.ttf new file mode 100644 index 00000000..443ec8b7 Binary files /dev/null and b/data/themes/default/fonts/Ubuntu-M.ttf differ diff --git a/data/themes/default/fonts/calaos_content-bold.ttf b/data/themes/default/fonts/calaos_content-bold.ttf new file mode 100644 index 00000000..49122c9e Binary files /dev/null and b/data/themes/default/fonts/calaos_content-bold.ttf differ diff --git a/data/themes/default/fonts/calaos_content-oblique.ttf b/data/themes/default/fonts/calaos_content-oblique.ttf new file mode 100644 index 00000000..1bbc7690 Binary files /dev/null and b/data/themes/default/fonts/calaos_content-oblique.ttf differ diff --git a/data/themes/default/fonts/calaos_content.ttf b/data/themes/default/fonts/calaos_content.ttf new file mode 100644 index 00000000..dfb49f60 Binary files /dev/null and b/data/themes/default/fonts/calaos_content.ttf differ diff --git a/data/themes/default/fonts/calaos_logo.ttf b/data/themes/default/fonts/calaos_logo.ttf new file mode 100644 index 00000000..7395ff09 Binary files /dev/null and b/data/themes/default/fonts/calaos_logo.ttf differ diff --git a/data/themes/default/fonts/calaos_text.ttf b/data/themes/default/fonts/calaos_text.ttf new file mode 100644 index 00000000..37b8f57f Binary files /dev/null and b/data/themes/default/fonts/calaos_text.ttf differ diff --git a/data/themes/default/fonts/calaos_text_bold.ttf b/data/themes/default/fonts/calaos_text_bold.ttf new file mode 100644 index 00000000..4fda67d4 Binary files /dev/null and b/data/themes/default/fonts/calaos_text_bold.ttf differ diff --git a/data/themes/default/images/adjust_pattern/big_room_bg.png b/data/themes/default/images/adjust_pattern/big_room_bg.png new file mode 100644 index 00000000..498c6ece Binary files /dev/null and b/data/themes/default/images/adjust_pattern/big_room_bg.png differ diff --git a/data/themes/default/images/adjust_pattern/cover.png b/data/themes/default/images/adjust_pattern/cover.png new file mode 100644 index 00000000..aff5a0bb Binary files /dev/null and b/data/themes/default/images/adjust_pattern/cover.png differ diff --git a/data/themes/default/images/adjust_pattern/elements.png b/data/themes/default/images/adjust_pattern/elements.png new file mode 100644 index 00000000..fc7f3be4 Binary files /dev/null and b/data/themes/default/images/adjust_pattern/elements.png differ diff --git a/data/themes/default/images/adjust_pattern/elements_light.png b/data/themes/default/images/adjust_pattern/elements_light.png new file mode 100644 index 00000000..50490479 Binary files /dev/null and b/data/themes/default/images/adjust_pattern/elements_light.png differ diff --git a/data/themes/default/images/adjust_pattern/elements_track.png b/data/themes/default/images/adjust_pattern/elements_track.png new file mode 100644 index 00000000..2cd2b6db Binary files /dev/null and b/data/themes/default/images/adjust_pattern/elements_track.png differ diff --git a/data/themes/default/images/adjust_pattern/normal_room_bg.png b/data/themes/default/images/adjust_pattern/normal_room_bg.png new file mode 100644 index 00000000..224b7cb9 Binary files /dev/null and b/data/themes/default/images/adjust_pattern/normal_room_bg.png differ diff --git a/data/themes/default/images/adjust_pattern/player.png b/data/themes/default/images/adjust_pattern/player.png new file mode 100644 index 00000000..a11b6a5e Binary files /dev/null and b/data/themes/default/images/adjust_pattern/player.png differ diff --git a/data/themes/default/images/adjust_pattern/small_room_bg.png b/data/themes/default/images/adjust_pattern/small_room_bg.png new file mode 100644 index 00000000..6f0dc0ea Binary files /dev/null and b/data/themes/default/images/adjust_pattern/small_room_bg.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0001.png b/data/themes/default/images/animations/bootsplash_logo/0001.png new file mode 100644 index 00000000..478e3a6f Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0001.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0002.png b/data/themes/default/images/animations/bootsplash_logo/0002.png new file mode 100644 index 00000000..cb5e7e95 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0002.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0003.png b/data/themes/default/images/animations/bootsplash_logo/0003.png new file mode 100644 index 00000000..2ffbec96 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0003.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0004.png b/data/themes/default/images/animations/bootsplash_logo/0004.png new file mode 100644 index 00000000..2dfe6186 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0004.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0005.png b/data/themes/default/images/animations/bootsplash_logo/0005.png new file mode 100644 index 00000000..3212120f8 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0005.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0006.png b/data/themes/default/images/animations/bootsplash_logo/0006.png new file mode 100644 index 00000000..85ee421e Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0006.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0007.png b/data/themes/default/images/animations/bootsplash_logo/0007.png new file mode 100644 index 00000000..bd868925 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0007.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0008.png b/data/themes/default/images/animations/bootsplash_logo/0008.png new file mode 100644 index 00000000..94ca82a2 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0008.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0009.png b/data/themes/default/images/animations/bootsplash_logo/0009.png new file mode 100644 index 00000000..7efb1b01 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0009.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0010.png b/data/themes/default/images/animations/bootsplash_logo/0010.png new file mode 100644 index 00000000..c1252188 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0010.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0011.png b/data/themes/default/images/animations/bootsplash_logo/0011.png new file mode 100644 index 00000000..4ee5594f Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0011.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0012.png b/data/themes/default/images/animations/bootsplash_logo/0012.png new file mode 100644 index 00000000..de5a9748 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0012.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0013.png b/data/themes/default/images/animations/bootsplash_logo/0013.png new file mode 100644 index 00000000..dbc1aa44 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0013.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0014.png b/data/themes/default/images/animations/bootsplash_logo/0014.png new file mode 100644 index 00000000..2c6cf7b4 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0014.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0015.png b/data/themes/default/images/animations/bootsplash_logo/0015.png new file mode 100644 index 00000000..02fcd4f7 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0015.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0016.png b/data/themes/default/images/animations/bootsplash_logo/0016.png new file mode 100644 index 00000000..c248e360 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0016.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0017.png b/data/themes/default/images/animations/bootsplash_logo/0017.png new file mode 100644 index 00000000..28a758ba Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0017.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0018.png b/data/themes/default/images/animations/bootsplash_logo/0018.png new file mode 100644 index 00000000..93682c0b Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0018.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0019.png b/data/themes/default/images/animations/bootsplash_logo/0019.png new file mode 100644 index 00000000..be92e3bd Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0019.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0020.png b/data/themes/default/images/animations/bootsplash_logo/0020.png new file mode 100644 index 00000000..435687be Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0020.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0021.png b/data/themes/default/images/animations/bootsplash_logo/0021.png new file mode 100644 index 00000000..fed0f60a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0021.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0022.png b/data/themes/default/images/animations/bootsplash_logo/0022.png new file mode 100644 index 00000000..79a5d7c7 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0022.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0023.png b/data/themes/default/images/animations/bootsplash_logo/0023.png new file mode 100644 index 00000000..1922f1af Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0023.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0024.png b/data/themes/default/images/animations/bootsplash_logo/0024.png new file mode 100644 index 00000000..441b8bc7 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0024.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0025.png b/data/themes/default/images/animations/bootsplash_logo/0025.png new file mode 100644 index 00000000..d83dfbfe Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0025.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0026.png b/data/themes/default/images/animations/bootsplash_logo/0026.png new file mode 100644 index 00000000..a25c3f74 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0026.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0027.png b/data/themes/default/images/animations/bootsplash_logo/0027.png new file mode 100644 index 00000000..9c81b954 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0027.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0028.png b/data/themes/default/images/animations/bootsplash_logo/0028.png new file mode 100644 index 00000000..9d935746 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0028.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0029.png b/data/themes/default/images/animations/bootsplash_logo/0029.png new file mode 100644 index 00000000..1f500f8d Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0029.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0030.png b/data/themes/default/images/animations/bootsplash_logo/0030.png new file mode 100644 index 00000000..aab98ec9 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0030.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0031.png b/data/themes/default/images/animations/bootsplash_logo/0031.png new file mode 100644 index 00000000..f185c298 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0031.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0032.png b/data/themes/default/images/animations/bootsplash_logo/0032.png new file mode 100644 index 00000000..1b6eec5d Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0032.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0033.png b/data/themes/default/images/animations/bootsplash_logo/0033.png new file mode 100644 index 00000000..2bd29947 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0033.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0034.png b/data/themes/default/images/animations/bootsplash_logo/0034.png new file mode 100644 index 00000000..81a869d3 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0034.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0035.png b/data/themes/default/images/animations/bootsplash_logo/0035.png new file mode 100644 index 00000000..d85aedf5 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0035.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0036.png b/data/themes/default/images/animations/bootsplash_logo/0036.png new file mode 100644 index 00000000..a9bb05ed Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0036.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0037.png b/data/themes/default/images/animations/bootsplash_logo/0037.png new file mode 100644 index 00000000..cf124cd2 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0037.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0038.png b/data/themes/default/images/animations/bootsplash_logo/0038.png new file mode 100644 index 00000000..968c5dd6 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0038.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0039.png b/data/themes/default/images/animations/bootsplash_logo/0039.png new file mode 100644 index 00000000..9ba06d4a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0039.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0040.png b/data/themes/default/images/animations/bootsplash_logo/0040.png new file mode 100644 index 00000000..a44e7d37 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0040.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0041.png b/data/themes/default/images/animations/bootsplash_logo/0041.png new file mode 100644 index 00000000..8be91a64 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0041.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0042.png b/data/themes/default/images/animations/bootsplash_logo/0042.png new file mode 100644 index 00000000..3b44713d Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0042.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0043.png b/data/themes/default/images/animations/bootsplash_logo/0043.png new file mode 100644 index 00000000..36ad6b2f Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0043.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0044.png b/data/themes/default/images/animations/bootsplash_logo/0044.png new file mode 100644 index 00000000..061410a0 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0044.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0045.png b/data/themes/default/images/animations/bootsplash_logo/0045.png new file mode 100644 index 00000000..77c60595 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0045.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0046.png b/data/themes/default/images/animations/bootsplash_logo/0046.png new file mode 100644 index 00000000..23ea12be Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0046.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0047.png b/data/themes/default/images/animations/bootsplash_logo/0047.png new file mode 100644 index 00000000..95425e78 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0047.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0048.png b/data/themes/default/images/animations/bootsplash_logo/0048.png new file mode 100644 index 00000000..3bcdd856 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0048.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0049.png b/data/themes/default/images/animations/bootsplash_logo/0049.png new file mode 100644 index 00000000..b2911dbb Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0049.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0050.png b/data/themes/default/images/animations/bootsplash_logo/0050.png new file mode 100644 index 00000000..ff43a974 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0050.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0051.png b/data/themes/default/images/animations/bootsplash_logo/0051.png new file mode 100644 index 00000000..b8993471 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0051.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0052.png b/data/themes/default/images/animations/bootsplash_logo/0052.png new file mode 100644 index 00000000..39e576de Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0052.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0053.png b/data/themes/default/images/animations/bootsplash_logo/0053.png new file mode 100644 index 00000000..62248db4 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0053.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0054.png b/data/themes/default/images/animations/bootsplash_logo/0054.png new file mode 100644 index 00000000..f286f81d Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0054.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0055.png b/data/themes/default/images/animations/bootsplash_logo/0055.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0055.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0056.png b/data/themes/default/images/animations/bootsplash_logo/0056.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0056.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0057.png b/data/themes/default/images/animations/bootsplash_logo/0057.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0057.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0058.png b/data/themes/default/images/animations/bootsplash_logo/0058.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0058.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0059.png b/data/themes/default/images/animations/bootsplash_logo/0059.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0059.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0060.png b/data/themes/default/images/animations/bootsplash_logo/0060.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0060.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0061.png b/data/themes/default/images/animations/bootsplash_logo/0061.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0061.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0062.png b/data/themes/default/images/animations/bootsplash_logo/0062.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0062.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0063.png b/data/themes/default/images/animations/bootsplash_logo/0063.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0063.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0064.png b/data/themes/default/images/animations/bootsplash_logo/0064.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0064.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo/0065.png b/data/themes/default/images/animations/bootsplash_logo/0065.png new file mode 100644 index 00000000..735c5e7a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo/0065.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_001.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_001.png new file mode 100644 index 00000000..fe0d4042 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_001.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_002.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_002.png new file mode 100644 index 00000000..feaafdaa Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_002.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_003.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_003.png new file mode 100644 index 00000000..35b673f7 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_003.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_004.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_004.png new file mode 100644 index 00000000..0a0d8378 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_004.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_005.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_005.png new file mode 100644 index 00000000..51db2728 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_005.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_006.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_006.png new file mode 100644 index 00000000..6c069afd Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_006.png differ diff --git a/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_007.png b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_007.png new file mode 100644 index 00000000..ddd5c038 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_logo_reflect/reflect_007.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0001.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0001.png new file mode 100644 index 00000000..138ddb47 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0001.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0002.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0002.png new file mode 100644 index 00000000..855c0f8e Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0002.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0003.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0003.png new file mode 100644 index 00000000..3082751c Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0003.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0004.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0004.png new file mode 100644 index 00000000..e50bc0d2 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0004.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0005.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0005.png new file mode 100644 index 00000000..54f16458 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0005.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0006.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0006.png new file mode 100644 index 00000000..6cf0bfbe Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0006.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0007.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0007.png new file mode 100644 index 00000000..1a48352b Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0007.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0008.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0008.png new file mode 100644 index 00000000..8220c462 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0008.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0009.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0009.png new file mode 100644 index 00000000..91558506 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0009.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0010.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0010.png new file mode 100644 index 00000000..e862ddb9 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0010.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0011.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0011.png new file mode 100644 index 00000000..ad687c93 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0011.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0012.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0012.png new file mode 100644 index 00000000..4f3f7546 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0012.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0013.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0013.png new file mode 100644 index 00000000..a3c0c44f Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0013.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0014.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0014.png new file mode 100644 index 00000000..168a91a2 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0014.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0015.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0015.png new file mode 100644 index 00000000..ad35bfff Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0015.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0016.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0016.png new file mode 100644 index 00000000..8d866958 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0016.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0017.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0017.png new file mode 100644 index 00000000..67ce8fac Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0017.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0018.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0018.png new file mode 100644 index 00000000..4f488f73 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0018.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0019.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0019.png new file mode 100644 index 00000000..45740fcd Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0019.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0020.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0020.png new file mode 100644 index 00000000..515f1f85 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0020.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0021.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0021.png new file mode 100644 index 00000000..7b5de186 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0021.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0022.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0022.png new file mode 100644 index 00000000..ab9f1e4a Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0022.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0023.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0023.png new file mode 100644 index 00000000..ed18caf6 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0023.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0024.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0024.png new file mode 100644 index 00000000..e130ad8b Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0024.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0025.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0025.png new file mode 100644 index 00000000..a4b220d4 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_0025.png differ diff --git a/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_bg.png b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_bg.png new file mode 100644 index 00000000..39fce956 Binary files /dev/null and b/data/themes/default/images/animations/bootsplash_notification_icone/loader_icon_bg.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_001.png b/data/themes/default/images/animations/cd_player/cd_player_001.png new file mode 100644 index 00000000..c98d01aa Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_001.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_002.png b/data/themes/default/images/animations/cd_player/cd_player_002.png new file mode 100644 index 00000000..2ab4deb2 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_002.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_003.png b/data/themes/default/images/animations/cd_player/cd_player_003.png new file mode 100644 index 00000000..fcce6bf7 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_003.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_004.png b/data/themes/default/images/animations/cd_player/cd_player_004.png new file mode 100644 index 00000000..8052b0fa Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_004.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_005.png b/data/themes/default/images/animations/cd_player/cd_player_005.png new file mode 100644 index 00000000..6942fc21 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_005.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_006.png b/data/themes/default/images/animations/cd_player/cd_player_006.png new file mode 100644 index 00000000..dad587d9 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_006.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_007.png b/data/themes/default/images/animations/cd_player/cd_player_007.png new file mode 100644 index 00000000..3eae9ab4 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_007.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_008.png b/data/themes/default/images/animations/cd_player/cd_player_008.png new file mode 100644 index 00000000..3693bd45 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_008.png differ diff --git a/data/themes/default/images/animations/cd_player/cd_player_009.png b/data/themes/default/images/animations/cd_player/cd_player_009.png new file mode 100644 index 00000000..9391a280 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/cd_player_009.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_01.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_01.png new file mode 100644 index 00000000..e7911f15 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_01.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_02.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_02.png new file mode 100644 index 00000000..c2655273 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_02.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_03.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_03.png new file mode 100644 index 00000000..021470cf Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_03.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_04.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_04.png new file mode 100644 index 00000000..9e68d797 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_04.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_05.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_05.png new file mode 100644 index 00000000..a6e889e5 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_05.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_06.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_06.png new file mode 100644 index 00000000..d736a247 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_06.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_07.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_07.png new file mode 100644 index 00000000..ff35ea0c Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_07.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_08.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_08.png new file mode 100644 index 00000000..d0e5654c Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_08.png differ diff --git a/data/themes/default/images/animations/cd_player/menu_media_icon_cd_09.png b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_09.png new file mode 100644 index 00000000..4e3cf282 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/menu_media_icon_cd_09.png differ diff --git a/data/themes/default/images/animations/cd_player/mini_cd_player_001.png b/data/themes/default/images/animations/cd_player/mini_cd_player_001.png new file mode 100644 index 00000000..658d7b62 Binary files /dev/null and b/data/themes/default/images/animations/cd_player/mini_cd_player_001.png differ diff --git a/data/themes/default/images/animations/glowed_556_line/glowed_556_line_final.png b/data/themes/default/images/animations/glowed_556_line/glowed_556_line_final.png new file mode 100644 index 00000000..5b20e9ee Binary files /dev/null and b/data/themes/default/images/animations/glowed_556_line/glowed_556_line_final.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_001.png b/data/themes/default/images/animations/light_icon/icon_light_001.png new file mode 100644 index 00000000..601a1eba Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_001.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_002.png b/data/themes/default/images/animations/light_icon/icon_light_002.png new file mode 100644 index 00000000..3a97c07f Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_002.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_003.png b/data/themes/default/images/animations/light_icon/icon_light_003.png new file mode 100644 index 00000000..f1f05835 Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_003.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_004.png b/data/themes/default/images/animations/light_icon/icon_light_004.png new file mode 100644 index 00000000..49104eb8 Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_004.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_005.png b/data/themes/default/images/animations/light_icon/icon_light_005.png new file mode 100644 index 00000000..dc71fe75 Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_005.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_006.png b/data/themes/default/images/animations/light_icon/icon_light_006.png new file mode 100644 index 00000000..5eb8bbac Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_006.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_007.png b/data/themes/default/images/animations/light_icon/icon_light_007.png new file mode 100644 index 00000000..d0d4b1f3 Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_007.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_008.png b/data/themes/default/images/animations/light_icon/icon_light_008.png new file mode 100644 index 00000000..89cfbd4a Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_008.png differ diff --git a/data/themes/default/images/animations/light_icon/icon_light_009.png b/data/themes/default/images/animations/light_icon/icon_light_009.png new file mode 100644 index 00000000..23a7fc83 Binary files /dev/null and b/data/themes/default/images/animations/light_icon/icon_light_009.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_000.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_000.png new file mode 100644 index 00000000..2b31423b Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_000.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_001.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_001.png new file mode 100644 index 00000000..5bf2e744 Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_001.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_002.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_002.png new file mode 100644 index 00000000..f15e659f Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_002.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_003.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_003.png new file mode 100644 index 00000000..12c6f623 Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_003.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_004.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_004.png new file mode 100644 index 00000000..20ccee7b Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_004.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_005.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_005.png new file mode 100644 index 00000000..22ed5bd1 Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_005.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_006.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_006.png new file mode 100644 index 00000000..32aeb1ae Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_006.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_007.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_007.png new file mode 100644 index 00000000..d4029231 Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_007.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_008.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_008.png new file mode 100644 index 00000000..d64413cf Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_008.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_009.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_009.png new file mode 100644 index 00000000..b24cb963 Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_009.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_010.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_010.png new file mode 100644 index 00000000..c4b0f58b Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_010.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_011.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_011.png new file mode 100644 index 00000000..db200a2a Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_011.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_012.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_012.png new file mode 100644 index 00000000..6a5ca17b Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_012.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_013.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_013.png new file mode 100644 index 00000000..5c4694fe Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_013.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_014.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_014.png new file mode 100644 index 00000000..4caf096c Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_014.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_015.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_015.png new file mode 100644 index 00000000..67a63f49 Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_015.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_016.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_016.png new file mode 100644 index 00000000..764024eb Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_016.png differ diff --git a/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_017.png b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_017.png new file mode 100644 index 00000000..158df37c Binary files /dev/null and b/data/themes/default/images/animations/micro_circular_cooldown/micro_circular_017.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_000.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_000.png new file mode 100644 index 00000000..b5d0aa79 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_000.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_001.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_001.png new file mode 100644 index 00000000..adf2a73e Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_001.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_002.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_002.png new file mode 100644 index 00000000..e28c86ef Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_002.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_003.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_003.png new file mode 100644 index 00000000..6c9425b2 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_003.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_004.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_004.png new file mode 100644 index 00000000..ef9d8eb3 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_004.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_005.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_005.png new file mode 100644 index 00000000..ddf86ba0 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_005.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_006.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_006.png new file mode 100644 index 00000000..4d104e1a Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_006.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_007.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_007.png new file mode 100644 index 00000000..f8b1de97 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_007.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_008.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_008.png new file mode 100644 index 00000000..e605a261 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_008.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_009.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_009.png new file mode 100644 index 00000000..8b48a2b8 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_009.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_010.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_010.png new file mode 100644 index 00000000..b6f73cd9 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_010.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_011.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_011.png new file mode 100644 index 00000000..ee800c38 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_011.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_012.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_012.png new file mode 100644 index 00000000..9f302ec1 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_012.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_013.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_013.png new file mode 100644 index 00000000..f8944e18 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_013.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_014.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_014.png new file mode 100644 index 00000000..ccccc9ca Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_014.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_015.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_015.png new file mode 100644 index 00000000..b63f5c36 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_015.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_016.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_016.png new file mode 100644 index 00000000..a732adf4 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_016.png differ diff --git a/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_017.png b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_017.png new file mode 100644 index 00000000..b45c0605 Binary files /dev/null and b/data/themes/default/images/animations/mini_circular_cooldown/mini_circular_017.png differ diff --git a/data/themes/default/images/animations/room_touched/medium_room_touched_001.png b/data/themes/default/images/animations/room_touched/medium_room_touched_001.png new file mode 100644 index 00000000..cba302c1 Binary files /dev/null and b/data/themes/default/images/animations/room_touched/medium_room_touched_001.png differ diff --git a/data/themes/default/images/animations/room_touched/medium_room_touched_002.png b/data/themes/default/images/animations/room_touched/medium_room_touched_002.png new file mode 100644 index 00000000..0d005086 Binary files /dev/null and b/data/themes/default/images/animations/room_touched/medium_room_touched_002.png differ diff --git a/data/themes/default/images/animations/room_touched/medium_room_touched_003.png b/data/themes/default/images/animations/room_touched/medium_room_touched_003.png new file mode 100644 index 00000000..409a5b97 Binary files /dev/null and b/data/themes/default/images/animations/room_touched/medium_room_touched_003.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_001.png b/data/themes/default/images/animations/round_button/round_button_001.png new file mode 100644 index 00000000..93f850ad Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_001.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_002.png b/data/themes/default/images/animations/round_button/round_button_002.png new file mode 100644 index 00000000..5816aab6 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_002.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_003.png b/data/themes/default/images/animations/round_button/round_button_003.png new file mode 100644 index 00000000..d1315ba8 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_003.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_004.png b/data/themes/default/images/animations/round_button/round_button_004.png new file mode 100644 index 00000000..4c70f649 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_004.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_005.png b/data/themes/default/images/animations/round_button/round_button_005.png new file mode 100644 index 00000000..abef6968 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_005.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_006.png b/data/themes/default/images/animations/round_button/round_button_006.png new file mode 100644 index 00000000..e38cf1ee Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_006.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_007.png b/data/themes/default/images/animations/round_button/round_button_007.png new file mode 100644 index 00000000..ab095ea5 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_007.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_008.png b/data/themes/default/images/animations/round_button/round_button_008.png new file mode 100644 index 00000000..57ae865c Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_008.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_009.png b/data/themes/default/images/animations/round_button/round_button_009.png new file mode 100644 index 00000000..5891f2f6 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_009.png differ diff --git a/data/themes/default/images/animations/round_button/round_button_010.png b/data/themes/default/images/animations/round_button/round_button_010.png new file mode 100644 index 00000000..38ad6751 Binary files /dev/null and b/data/themes/default/images/animations/round_button/round_button_010.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_001.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_001.png new file mode 100644 index 00000000..5e64859e Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_001.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_002.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_002.png new file mode 100644 index 00000000..40b92e03 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_002.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_003.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_003.png new file mode 100644 index 00000000..81e08554 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_003.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_004.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_004.png new file mode 100644 index 00000000..43e3928f Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_004.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_005.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_005.png new file mode 100644 index 00000000..abafabf8 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_005.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_006.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_006.png new file mode 100644 index 00000000..155f3b27 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_006.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_007.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_007.png new file mode 100644 index 00000000..8b760221 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_007.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_008.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_008.png new file mode 100644 index 00000000..15f852d4 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_008.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_009.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_009.png new file mode 100644 index 00000000..c7a8b199 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_009.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_010.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_010.png new file mode 100644 index 00000000..bfb4ceae Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_010.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_011.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_011.png new file mode 100644 index 00000000..94437f9d Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_011.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_012.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_012.png new file mode 100644 index 00000000..b540b20d Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_012.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_013.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_013.png new file mode 100644 index 00000000..39e23d34 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_013.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_014.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_014.png new file mode 100644 index 00000000..7215ba62 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_014.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_015.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_015.png new file mode 100644 index 00000000..27fb38a1 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_015.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_016.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_016.png new file mode 100644 index 00000000..db3417cd Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_016.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_017.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_017.png new file mode 100644 index 00000000..a496c4b7 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_017.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_018.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_018.png new file mode 100644 index 00000000..78d26f06 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_018.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_019.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_019.png new file mode 100644 index 00000000..a04e04c2 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_019.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_020.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_020.png new file mode 100644 index 00000000..b7f1f9f2 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_020.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_021.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_021.png new file mode 100644 index 00000000..cd8efbc9 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_021.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_022.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_022.png new file mode 100644 index 00000000..545031a6 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_022.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_023.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_023.png new file mode 100644 index 00000000..c04691c3 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_023.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_024.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_024.png new file mode 100644 index 00000000..cc658f48 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_024.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_025.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_025.png new file mode 100644 index 00000000..8c289949 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_025.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_026.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_026.png new file mode 100644 index 00000000..690f1aa5 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_026.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_027.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_027.png new file mode 100644 index 00000000..bc20f3d2 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_027.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_028.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_028.png new file mode 100644 index 00000000..0a5c2534 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_028.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_029.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_029.png new file mode 100644 index 00000000..e87a46af Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_029.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_030.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_030.png new file mode 100644 index 00000000..31aa5a87 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_030.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_031.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_031.png new file mode 100644 index 00000000..9222c1be Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_031.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_032.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_032.png new file mode 100644 index 00000000..1047018a Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_032.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_033.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_033.png new file mode 100644 index 00000000..10737a23 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_033.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_034.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_034.png new file mode 100644 index 00000000..c5f1cf98 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_034.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_035.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_035.png new file mode 100644 index 00000000..cd5e7adc Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_035.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_036.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_036.png new file mode 100644 index 00000000..2041c484 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_036.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_037.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_037.png new file mode 100644 index 00000000..5983c187 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_037.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_038.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_038.png new file mode 100644 index 00000000..722fa8f9 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_038.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_039.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_039.png new file mode 100644 index 00000000..9b6a0684 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_039.png differ diff --git a/data/themes/default/images/animations/scenario_icon/icon_scenario_040.png b/data/themes/default/images/animations/scenario_icon/icon_scenario_040.png new file mode 100644 index 00000000..de2c0600 Binary files /dev/null and b/data/themes/default/images/animations/scenario_icon/icon_scenario_040.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_000.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_000.png new file mode 100644 index 00000000..9fbd1337 Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_000.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_001.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_001.png new file mode 100644 index 00000000..875e0aaa Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_001.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_002.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_002.png new file mode 100644 index 00000000..a14168fa Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_002.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_003.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_003.png new file mode 100644 index 00000000..97635216 Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_003.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_004.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_004.png new file mode 100644 index 00000000..c1ab7621 Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_004.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_005.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_005.png new file mode 100644 index 00000000..fe660763 Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_005.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_006.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_006.png new file mode 100644 index 00000000..6e95a7d6 Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_006.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_007.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_007.png new file mode 100644 index 00000000..3ae3cd8e Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_007.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_008.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_008.png new file mode 100644 index 00000000..4925838f Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_008.png differ diff --git a/data/themes/default/images/animations/shutter_icon/icon_shutter_009.png b/data/themes/default/images/animations/shutter_icon/icon_shutter_009.png new file mode 100644 index 00000000..03df87b8 Binary files /dev/null and b/data/themes/default/images/animations/shutter_icon/icon_shutter_009.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_000.png b/data/themes/default/images/animations/tor_icon/icon_tor_000.png new file mode 100644 index 00000000..e363867a Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_000.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_001.png b/data/themes/default/images/animations/tor_icon/icon_tor_001.png new file mode 100644 index 00000000..40707450 Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_001.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_002.png b/data/themes/default/images/animations/tor_icon/icon_tor_002.png new file mode 100644 index 00000000..84ae4574 Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_002.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_003.png b/data/themes/default/images/animations/tor_icon/icon_tor_003.png new file mode 100644 index 00000000..23260c0e Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_003.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_004.png b/data/themes/default/images/animations/tor_icon/icon_tor_004.png new file mode 100644 index 00000000..7cca0d14 Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_004.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_005.png b/data/themes/default/images/animations/tor_icon/icon_tor_005.png new file mode 100644 index 00000000..03ac921b Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_005.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_006.png b/data/themes/default/images/animations/tor_icon/icon_tor_006.png new file mode 100644 index 00000000..90eaeb49 Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_006.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_007.png b/data/themes/default/images/animations/tor_icon/icon_tor_007.png new file mode 100644 index 00000000..d6cfe4cf Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_007.png differ diff --git a/data/themes/default/images/animations/tor_icon/icon_tor_008.png b/data/themes/default/images/animations/tor_icon/icon_tor_008.png new file mode 100644 index 00000000..c6b93932 Binary files /dev/null and b/data/themes/default/images/animations/tor_icon/icon_tor_008.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_01.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_01.png new file mode 100644 index 00000000..d62ed27e Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_01.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_02.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_02.png new file mode 100644 index 00000000..1b6ed351 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_02.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_03.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_03.png new file mode 100644 index 00000000..6f898508 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_03.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_04.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_04.png new file mode 100644 index 00000000..d81eea62 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_04.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_05.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_05.png new file mode 100644 index 00000000..6120ac73 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_05.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_06.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_06.png new file mode 100644 index 00000000..352e669d Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_06.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_07.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_07.png new file mode 100644 index 00000000..b98cc68f Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_07.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_08.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_08.png new file mode 100644 index 00000000..4de46190 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_08.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_09.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_09.png new file mode 100644 index 00000000..a0369d61 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_09.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_10.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_10.png new file mode 100644 index 00000000..86760041 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_10.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_11.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_11.png new file mode 100644 index 00000000..8db2b3ae Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_11.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_12.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_12.png new file mode 100644 index 00000000..232167f1 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_12.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_13.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_13.png new file mode 100644 index 00000000..72787812 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_13.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_14.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_14.png new file mode 100644 index 00000000..167253f0 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_14.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_15.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_15.png new file mode 100644 index 00000000..e0032e93 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_15.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_16.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_16.png new file mode 100644 index 00000000..1d86e3db Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_16.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_17.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_17.png new file mode 100644 index 00000000..3e5077bf Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_17.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_18.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_18.png new file mode 100644 index 00000000..f49645e2 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_18.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_19.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_19.png new file mode 100644 index 00000000..6796baa1 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_19.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_20.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_20.png new file mode 100644 index 00000000..d9d96104 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_20.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_21.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_21.png new file mode 100644 index 00000000..7a275e20 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_21.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_22.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_22.png new file mode 100644 index 00000000..fc1bfaea Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_22.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_23.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_23.png new file mode 100644 index 00000000..78bdc4db Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_23.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_24.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_24.png new file mode 100644 index 00000000..ef349ce4 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_24.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_25.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_25.png new file mode 100644 index 00000000..e7509cbd Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_25.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_26.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_26.png new file mode 100644 index 00000000..66d78501 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_26.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_27.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_27.png new file mode 100644 index 00000000..3881283c Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_27.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_28.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_28.png new file mode 100644 index 00000000..e2314dc0 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_28.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_29.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_29.png new file mode 100644 index 00000000..259c70f1 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_29.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_30.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_30.png new file mode 100644 index 00000000..67f1ad49 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_30.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_31.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_31.png new file mode 100644 index 00000000..0e089e62 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_31.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_32.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_32.png new file mode 100644 index 00000000..b6dbe048 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_32.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_33.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_33.png new file mode 100644 index 00000000..096d13a5 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_33.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_34.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_34.png new file mode 100644 index 00000000..7a3dcb90 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_34.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_35.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_35.png new file mode 100644 index 00000000..8770beeb Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_35.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_36.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_36.png new file mode 100644 index 00000000..c757f8c2 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_36.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_37.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_37.png new file mode 100644 index 00000000..038fd103 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_37.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_38.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_38.png new file mode 100644 index 00000000..9960ad01 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_38.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_39.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_39.png new file mode 100644 index 00000000..a98e37b4 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_39.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_40.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_40.png new file mode 100644 index 00000000..58abc19f Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_40.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_41.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_41.png new file mode 100644 index 00000000..d67371f9 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_41.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_42.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_42.png new file mode 100644 index 00000000..54346861 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_42.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_43.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_43.png new file mode 100644 index 00000000..a154387c Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_43.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_44.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_44.png new file mode 100644 index 00000000..238a6f47 Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_44.png differ diff --git a/data/themes/default/images/animations/volume_knob_leds/volume_led_45.png b/data/themes/default/images/animations/volume_knob_leds/volume_led_45.png new file mode 100644 index 00000000..505cd5bb Binary files /dev/null and b/data/themes/default/images/animations/volume_knob_leds/volume_led_45.png differ diff --git a/data/themes/default/images/background/background_bottom.png b/data/themes/default/images/background/background_bottom.png new file mode 100644 index 00000000..469023fd Binary files /dev/null and b/data/themes/default/images/background/background_bottom.png differ diff --git a/data/themes/default/images/background/background_center.png b/data/themes/default/images/background/background_center.png new file mode 100644 index 00000000..978822f4 Binary files /dev/null and b/data/themes/default/images/background/background_center.png differ diff --git a/data/themes/default/images/background/background_default.png b/data/themes/default/images/background/background_default.png new file mode 100644 index 00000000..abea625b Binary files /dev/null and b/data/themes/default/images/background/background_default.png differ diff --git a/data/themes/default/images/background/background_default_lighted.png b/data/themes/default/images/background/background_default_lighted.png new file mode 100644 index 00000000..df8d2965 Binary files /dev/null and b/data/themes/default/images/background/background_default_lighted.png differ diff --git a/data/themes/default/images/background/background_quad.png b/data/themes/default/images/background/background_quad.png new file mode 100644 index 00000000..d076dfa1 Binary files /dev/null and b/data/themes/default/images/background/background_quad.png differ diff --git a/data/themes/default/images/background/background_top.png b/data/themes/default/images/background/background_top.png new file mode 100644 index 00000000..5d867f43 Binary files /dev/null and b/data/themes/default/images/background/background_top.png differ diff --git a/data/themes/default/images/background/bootsplash.png b/data/themes/default/images/background/bootsplash.png new file mode 100644 index 00000000..dc92fc8b Binary files /dev/null and b/data/themes/default/images/background/bootsplash.png differ diff --git a/data/themes/default/images/background/menu_footer_background.png b/data/themes/default/images/background/menu_footer_background.png new file mode 100644 index 00000000..b49fb1f7 Binary files /dev/null and b/data/themes/default/images/background/menu_footer_background.png differ diff --git a/data/themes/default/images/background/menu_footer_background_left.png b/data/themes/default/images/background/menu_footer_background_left.png new file mode 100644 index 00000000..15e07419 Binary files /dev/null and b/data/themes/default/images/background/menu_footer_background_left.png differ diff --git a/data/themes/default/images/background/menu_footer_background_right.png b/data/themes/default/images/background/menu_footer_background_right.png new file mode 100644 index 00000000..c82375ae Binary files /dev/null and b/data/themes/default/images/background/menu_footer_background_right.png differ diff --git a/data/themes/default/images/background/menu_header_background.png b/data/themes/default/images/background/menu_header_background.png new file mode 100644 index 00000000..609bcedd Binary files /dev/null and b/data/themes/default/images/background/menu_header_background.png differ diff --git a/data/themes/default/images/background/menu_header_background_version.png b/data/themes/default/images/background/menu_header_background_version.png new file mode 100644 index 00000000..7b0c10f7 Binary files /dev/null and b/data/themes/default/images/background/menu_header_background_version.png differ diff --git a/data/themes/default/images/background/module_footer.png b/data/themes/default/images/background/module_footer.png new file mode 100644 index 00000000..73a377bb Binary files /dev/null and b/data/themes/default/images/background/module_footer.png differ diff --git a/data/themes/default/images/background/module_header.png b/data/themes/default/images/background/module_header.png new file mode 100644 index 00000000..90f41548 Binary files /dev/null and b/data/themes/default/images/background/module_header.png differ diff --git a/data/themes/default/images/bootsplash/neonlight.png b/data/themes/default/images/bootsplash/neonlight.png new file mode 100644 index 00000000..75220a99 Binary files /dev/null and b/data/themes/default/images/bootsplash/neonlight.png differ diff --git a/data/themes/default/images/buttons/button_action_actionstop.png b/data/themes/default/images/buttons/button_action_actionstop.png new file mode 100644 index 00000000..12439a86 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_actionstop.png differ diff --git a/data/themes/default/images/buttons/button_action_actionstop_off.png b/data/themes/default/images/buttons/button_action_actionstop_off.png new file mode 100644 index 00000000..ac450323 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_actionstop_off.png differ diff --git a/data/themes/default/images/buttons/button_action_back.png b/data/themes/default/images/buttons/button_action_back.png new file mode 100644 index 00000000..254e68df Binary files /dev/null and b/data/themes/default/images/buttons/button_action_back.png differ diff --git a/data/themes/default/images/buttons/button_action_big.png b/data/themes/default/images/buttons/button_action_big.png new file mode 100644 index 00000000..732e0fb9 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_big.png differ diff --git a/data/themes/default/images/buttons/button_action_big_glow.png b/data/themes/default/images/buttons/button_action_big_glow.png new file mode 100644 index 00000000..969e17f5 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_big_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_border.png b/data/themes/default/images/buttons/button_action_border.png new file mode 100644 index 00000000..2682dcb6 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_border.png differ diff --git a/data/themes/default/images/buttons/button_action_clavier.png b/data/themes/default/images/buttons/button_action_clavier.png new file mode 100644 index 00000000..43352b5f Binary files /dev/null and b/data/themes/default/images/buttons/button_action_clavier.png differ diff --git a/data/themes/default/images/buttons/button_action_clavier2.png b/data/themes/default/images/buttons/button_action_clavier2.png new file mode 100644 index 00000000..d1cd9ad0 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_clavier2.png differ diff --git a/data/themes/default/images/buttons/button_action_clavier_off.png b/data/themes/default/images/buttons/button_action_clavier_off.png new file mode 100644 index 00000000..f288ffe5 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_clavier_off.png differ diff --git a/data/themes/default/images/buttons/button_action_del.png b/data/themes/default/images/buttons/button_action_del.png new file mode 100644 index 00000000..83a9b6fc Binary files /dev/null and b/data/themes/default/images/buttons/button_action_del.png differ diff --git a/data/themes/default/images/buttons/button_action_del_off.png b/data/themes/default/images/buttons/button_action_del_off.png new file mode 100644 index 00000000..ad5949c9 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_del_off.png differ diff --git a/data/themes/default/images/buttons/button_action_delete.png b/data/themes/default/images/buttons/button_action_delete.png new file mode 100644 index 00000000..808ba76b Binary files /dev/null and b/data/themes/default/images/buttons/button_action_delete.png differ diff --git a/data/themes/default/images/buttons/button_action_down.png b/data/themes/default/images/buttons/button_action_down.png new file mode 100644 index 00000000..d0a1bce4 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_down.png differ diff --git a/data/themes/default/images/buttons/button_action_downer.png b/data/themes/default/images/buttons/button_action_downer.png new file mode 100644 index 00000000..4b7f49f5 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_downer.png differ diff --git a/data/themes/default/images/buttons/button_action_edit.png b/data/themes/default/images/buttons/button_action_edit.png new file mode 100644 index 00000000..49835aa6 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_edit.png differ diff --git a/data/themes/default/images/buttons/button_action_editor.png b/data/themes/default/images/buttons/button_action_editor.png new file mode 100644 index 00000000..b4dbb936 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_editor.png differ diff --git a/data/themes/default/images/buttons/button_action_editor_glow.png b/data/themes/default/images/buttons/button_action_editor_glow.png new file mode 100644 index 00000000..380a7ebc Binary files /dev/null and b/data/themes/default/images/buttons/button_action_editor_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_fullscreen.png b/data/themes/default/images/buttons/button_action_fullscreen.png new file mode 100644 index 00000000..6f28eebf Binary files /dev/null and b/data/themes/default/images/buttons/button_action_fullscreen.png differ diff --git a/data/themes/default/images/buttons/button_action_fullscreen_glow.png b/data/themes/default/images/buttons/button_action_fullscreen_glow.png new file mode 100644 index 00000000..3c67559c Binary files /dev/null and b/data/themes/default/images/buttons/button_action_fullscreen_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_glow.png b/data/themes/default/images/buttons/button_action_glow.png new file mode 100644 index 00000000..6fec3d40 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_glow_small.png b/data/themes/default/images/buttons/button_action_glow_small.png new file mode 100644 index 00000000..cc323996 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_glow_small.png differ diff --git a/data/themes/default/images/buttons/button_action_home.png b/data/themes/default/images/buttons/button_action_home.png new file mode 100644 index 00000000..f3997207 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_home.png differ diff --git a/data/themes/default/images/buttons/button_action_impulse.png b/data/themes/default/images/buttons/button_action_impulse.png new file mode 100644 index 00000000..46fdb564 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_impulse.png differ diff --git a/data/themes/default/images/buttons/button_action_impulse_down.png b/data/themes/default/images/buttons/button_action_impulse_down.png new file mode 100644 index 00000000..462abfc4 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_impulse_down.png differ diff --git a/data/themes/default/images/buttons/button_action_impulse_glow.png b/data/themes/default/images/buttons/button_action_impulse_glow.png new file mode 100644 index 00000000..1806197f Binary files /dev/null and b/data/themes/default/images/buttons/button_action_impulse_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_impulse_up.png b/data/themes/default/images/buttons/button_action_impulse_up.png new file mode 100644 index 00000000..fbfd3263 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_impulse_up.png differ diff --git a/data/themes/default/images/buttons/button_action_labeled.png b/data/themes/default/images/buttons/button_action_labeled.png new file mode 100644 index 00000000..261106e6 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_labeled.png differ diff --git a/data/themes/default/images/buttons/button_action_labeled_glow.png b/data/themes/default/images/buttons/button_action_labeled_glow.png new file mode 100644 index 00000000..2ba19d82 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_labeled_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_labeled_small.png b/data/themes/default/images/buttons/button_action_labeled_small.png new file mode 100644 index 00000000..64611cb7 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_labeled_small.png differ diff --git a/data/themes/default/images/buttons/button_action_left.png b/data/themes/default/images/buttons/button_action_left.png new file mode 100644 index 00000000..8bad2272 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_left.png differ diff --git a/data/themes/default/images/buttons/button_action_less.png b/data/themes/default/images/buttons/button_action_less.png new file mode 100644 index 00000000..f1c41971 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_less.png differ diff --git a/data/themes/default/images/buttons/button_action_less_vertical.png b/data/themes/default/images/buttons/button_action_less_vertical.png new file mode 100644 index 00000000..2417fd07 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_less_vertical.png differ diff --git a/data/themes/default/images/buttons/button_action_light_off.png b/data/themes/default/images/buttons/button_action_light_off.png new file mode 100644 index 00000000..972d0273 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_light_off.png differ diff --git a/data/themes/default/images/buttons/button_action_light_on.png b/data/themes/default/images/buttons/button_action_light_on.png new file mode 100644 index 00000000..62905f87 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_light_on.png differ diff --git a/data/themes/default/images/buttons/button_action_more.png b/data/themes/default/images/buttons/button_action_more.png new file mode 100644 index 00000000..9e8f6a9a Binary files /dev/null and b/data/themes/default/images/buttons/button_action_more.png differ diff --git a/data/themes/default/images/buttons/button_action_more_vertical.png b/data/themes/default/images/buttons/button_action_more_vertical.png new file mode 100644 index 00000000..d0019215 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_more_vertical.png differ diff --git a/data/themes/default/images/buttons/button_action_neon.png b/data/themes/default/images/buttons/button_action_neon.png new file mode 100644 index 00000000..7ed6d30a Binary files /dev/null and b/data/themes/default/images/buttons/button_action_neon.png differ diff --git a/data/themes/default/images/buttons/button_action_next.png b/data/themes/default/images/buttons/button_action_next.png new file mode 100644 index 00000000..4eed2668 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_next.png differ diff --git a/data/themes/default/images/buttons/button_action_off.png b/data/themes/default/images/buttons/button_action_off.png new file mode 100644 index 00000000..27cc4fb0 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_off.png differ diff --git a/data/themes/default/images/buttons/button_action_on.png b/data/themes/default/images/buttons/button_action_on.png new file mode 100644 index 00000000..87a0f69e Binary files /dev/null and b/data/themes/default/images/buttons/button_action_on.png differ diff --git a/data/themes/default/images/buttons/button_action_on_glow.png b/data/themes/default/images/buttons/button_action_on_glow.png new file mode 100644 index 00000000..d3822d83 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_on_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_pager_next.png b/data/themes/default/images/buttons/button_action_pager_next.png new file mode 100644 index 00000000..db7c7aaf Binary files /dev/null and b/data/themes/default/images/buttons/button_action_pager_next.png differ diff --git a/data/themes/default/images/buttons/button_action_pager_previous.png b/data/themes/default/images/buttons/button_action_pager_previous.png new file mode 100644 index 00000000..233918be Binary files /dev/null and b/data/themes/default/images/buttons/button_action_pager_previous.png differ diff --git a/data/themes/default/images/buttons/button_action_pattern.png b/data/themes/default/images/buttons/button_action_pattern.png new file mode 100644 index 00000000..63519947 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_pattern.png differ diff --git a/data/themes/default/images/buttons/button_action_pause.png b/data/themes/default/images/buttons/button_action_pause.png new file mode 100644 index 00000000..bedcdc45 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_pause.png differ diff --git a/data/themes/default/images/buttons/button_action_play.png b/data/themes/default/images/buttons/button_action_play.png new file mode 100644 index 00000000..7a600b70 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_play.png differ diff --git a/data/themes/default/images/buttons/button_action_plus.png b/data/themes/default/images/buttons/button_action_plus.png new file mode 100644 index 00000000..7074e5e7 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_plus.png differ diff --git a/data/themes/default/images/buttons/button_action_plus_off.png b/data/themes/default/images/buttons/button_action_plus_off.png new file mode 100644 index 00000000..52be1e6b Binary files /dev/null and b/data/themes/default/images/buttons/button_action_plus_off.png differ diff --git a/data/themes/default/images/buttons/button_action_popup_back.png b/data/themes/default/images/buttons/button_action_popup_back.png new file mode 100644 index 00000000..53a70429 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_popup_back.png differ diff --git a/data/themes/default/images/buttons/button_action_popup_back_glow.png b/data/themes/default/images/buttons/button_action_popup_back_glow.png new file mode 100644 index 00000000..056e6af6 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_popup_back_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_popup_glow.png b/data/themes/default/images/buttons/button_action_popup_glow.png new file mode 100644 index 00000000..acbd715f Binary files /dev/null and b/data/themes/default/images/buttons/button_action_popup_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_popup_valid.png b/data/themes/default/images/buttons/button_action_popup_valid.png new file mode 100644 index 00000000..496eb9bf Binary files /dev/null and b/data/themes/default/images/buttons/button_action_popup_valid.png differ diff --git a/data/themes/default/images/buttons/button_action_previous.png b/data/themes/default/images/buttons/button_action_previous.png new file mode 100644 index 00000000..8f97eab4 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_previous.png differ diff --git a/data/themes/default/images/buttons/button_action_quit.png b/data/themes/default/images/buttons/button_action_quit.png new file mode 100644 index 00000000..19f2a096 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_quit.png differ diff --git a/data/themes/default/images/buttons/button_action_quit_off.png b/data/themes/default/images/buttons/button_action_quit_off.png new file mode 100644 index 00000000..9bf1627c Binary files /dev/null and b/data/themes/default/images/buttons/button_action_quit_off.png differ diff --git a/data/themes/default/images/buttons/button_action_reboot.png b/data/themes/default/images/buttons/button_action_reboot.png new file mode 100644 index 00000000..8e1b7031 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_reboot.png differ diff --git a/data/themes/default/images/buttons/button_action_reboot_off.png b/data/themes/default/images/buttons/button_action_reboot_off.png new file mode 100644 index 00000000..7335d069 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_reboot_off.png differ diff --git a/data/themes/default/images/buttons/button_action_reload.png b/data/themes/default/images/buttons/button_action_reload.png new file mode 100644 index 00000000..557e9a54 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_reload.png differ diff --git a/data/themes/default/images/buttons/button_action_right.png b/data/themes/default/images/buttons/button_action_right.png new file mode 100644 index 00000000..1e6daa05 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_right.png differ diff --git a/data/themes/default/images/buttons/button_action_rolll_down.png b/data/themes/default/images/buttons/button_action_rolll_down.png new file mode 100644 index 00000000..3dcb0994 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_rolll_down.png differ diff --git a/data/themes/default/images/buttons/button_action_rolll_up.png b/data/themes/default/images/buttons/button_action_rolll_up.png new file mode 100644 index 00000000..b9dcec3a Binary files /dev/null and b/data/themes/default/images/buttons/button_action_rolll_up.png differ diff --git a/data/themes/default/images/buttons/button_action_scenario_play.png b/data/themes/default/images/buttons/button_action_scenario_play.png new file mode 100644 index 00000000..05d60fb9 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_scenario_play.png differ diff --git a/data/themes/default/images/buttons/button_action_scenario_play_glow.png b/data/themes/default/images/buttons/button_action_scenario_play_glow.png new file mode 100644 index 00000000..862e9a1e Binary files /dev/null and b/data/themes/default/images/buttons/button_action_scenario_play_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_select_selected.png b/data/themes/default/images/buttons/button_action_select_selected.png new file mode 100644 index 00000000..9fe272d1 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_select_selected.png differ diff --git a/data/themes/default/images/buttons/button_action_select_unselected.png b/data/themes/default/images/buttons/button_action_select_unselected.png new file mode 100644 index 00000000..af99c126 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_select_unselected.png differ diff --git a/data/themes/default/images/buttons/button_action_small.png b/data/themes/default/images/buttons/button_action_small.png new file mode 100644 index 00000000..c2619ae2 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_small.png differ diff --git a/data/themes/default/images/buttons/button_action_small_glow.png b/data/themes/default/images/buttons/button_action_small_glow.png new file mode 100644 index 00000000..68f0454e Binary files /dev/null and b/data/themes/default/images/buttons/button_action_small_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_stop.png b/data/themes/default/images/buttons/button_action_stop.png new file mode 100644 index 00000000..7938e671 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_stop.png differ diff --git a/data/themes/default/images/buttons/button_action_sync.png b/data/themes/default/images/buttons/button_action_sync.png new file mode 100644 index 00000000..5678866c Binary files /dev/null and b/data/themes/default/images/buttons/button_action_sync.png differ diff --git a/data/themes/default/images/buttons/button_action_toggle.png b/data/themes/default/images/buttons/button_action_toggle.png new file mode 100644 index 00000000..f547832b Binary files /dev/null and b/data/themes/default/images/buttons/button_action_toggle.png differ diff --git a/data/themes/default/images/buttons/button_action_up.png b/data/themes/default/images/buttons/button_action_up.png new file mode 100644 index 00000000..efe8473c Binary files /dev/null and b/data/themes/default/images/buttons/button_action_up.png differ diff --git a/data/themes/default/images/buttons/button_action_upper.png b/data/themes/default/images/buttons/button_action_upper.png new file mode 100644 index 00000000..5f3b5001 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_upper.png differ diff --git a/data/themes/default/images/buttons/button_action_valid.png b/data/themes/default/images/buttons/button_action_valid.png new file mode 100644 index 00000000..f675c4eb Binary files /dev/null and b/data/themes/default/images/buttons/button_action_valid.png differ diff --git a/data/themes/default/images/buttons/button_action_valid_off.png b/data/themes/default/images/buttons/button_action_valid_off.png new file mode 100644 index 00000000..42d3594c Binary files /dev/null and b/data/themes/default/images/buttons/button_action_valid_off.png differ diff --git a/data/themes/default/images/buttons/button_action_vertical_glow.png b/data/themes/default/images/buttons/button_action_vertical_glow.png new file mode 100644 index 00000000..9f70d84e Binary files /dev/null and b/data/themes/default/images/buttons/button_action_vertical_glow.png differ diff --git a/data/themes/default/images/buttons/button_action_warming_down.png b/data/themes/default/images/buttons/button_action_warming_down.png new file mode 100644 index 00000000..8e1791d2 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_warming_down.png differ diff --git a/data/themes/default/images/buttons/button_action_warming_up.png b/data/themes/default/images/buttons/button_action_warming_up.png new file mode 100644 index 00000000..1aff0d82 Binary files /dev/null and b/data/themes/default/images/buttons/button_action_warming_up.png differ diff --git a/data/themes/default/images/buttons/button_action_warming_up_glow.png b/data/themes/default/images/buttons/button_action_warming_up_glow.png new file mode 100644 index 00000000..169aabca Binary files /dev/null and b/data/themes/default/images/buttons/button_action_warming_up_glow.png differ diff --git a/data/themes/default/images/buttons/button_browser.png b/data/themes/default/images/buttons/button_browser.png new file mode 100644 index 00000000..1bbece31 Binary files /dev/null and b/data/themes/default/images/buttons/button_browser.png differ diff --git a/data/themes/default/images/buttons/button_browser_glow.png b/data/themes/default/images/buttons/button_browser_glow.png new file mode 100644 index 00000000..cb0f2c19 Binary files /dev/null and b/data/themes/default/images/buttons/button_browser_glow.png differ diff --git a/data/themes/default/images/buttons/button_configuration.png b/data/themes/default/images/buttons/button_configuration.png new file mode 100644 index 00000000..1f7d8a45 Binary files /dev/null and b/data/themes/default/images/buttons/button_configuration.png differ diff --git a/data/themes/default/images/buttons/button_configuration_bloom.png b/data/themes/default/images/buttons/button_configuration_bloom.png new file mode 100644 index 00000000..38d2113b Binary files /dev/null and b/data/themes/default/images/buttons/button_configuration_bloom.png differ diff --git a/data/themes/default/images/buttons/button_configuration_glow.png b/data/themes/default/images/buttons/button_configuration_glow.png new file mode 100644 index 00000000..92b0b0b1 Binary files /dev/null and b/data/themes/default/images/buttons/button_configuration_glow.png differ diff --git a/data/themes/default/images/buttons/button_configuration_stop.png b/data/themes/default/images/buttons/button_configuration_stop.png new file mode 100644 index 00000000..7a47743f Binary files /dev/null and b/data/themes/default/images/buttons/button_configuration_stop.png differ diff --git a/data/themes/default/images/buttons/button_configuration_stop_on.png b/data/themes/default/images/buttons/button_configuration_stop_on.png new file mode 100644 index 00000000..8808ed85 Binary files /dev/null and b/data/themes/default/images/buttons/button_configuration_stop_on.png differ diff --git a/data/themes/default/images/buttons/button_down.png b/data/themes/default/images/buttons/button_down.png new file mode 100644 index 00000000..546b71fa Binary files /dev/null and b/data/themes/default/images/buttons/button_down.png differ diff --git a/data/themes/default/images/buttons/button_element.png b/data/themes/default/images/buttons/button_element.png new file mode 100644 index 00000000..d76cee70 Binary files /dev/null and b/data/themes/default/images/buttons/button_element.png differ diff --git a/data/themes/default/images/buttons/button_element_bevel.png b/data/themes/default/images/buttons/button_element_bevel.png new file mode 100644 index 00000000..5f3cc819 Binary files /dev/null and b/data/themes/default/images/buttons/button_element_bevel.png differ diff --git a/data/themes/default/images/buttons/button_element_cut.png b/data/themes/default/images/buttons/button_element_cut.png new file mode 100644 index 00000000..e4b60db7 Binary files /dev/null and b/data/themes/default/images/buttons/button_element_cut.png differ diff --git a/data/themes/default/images/buttons/button_element_cut_glow.png b/data/themes/default/images/buttons/button_element_cut_glow.png new file mode 100644 index 00000000..2c26eb79 Binary files /dev/null and b/data/themes/default/images/buttons/button_element_cut_glow.png differ diff --git a/data/themes/default/images/buttons/button_element_glow.png b/data/themes/default/images/buttons/button_element_glow.png new file mode 100644 index 00000000..6b3c2c35 Binary files /dev/null and b/data/themes/default/images/buttons/button_element_glow.png differ diff --git a/data/themes/default/images/buttons/button_element_open.png b/data/themes/default/images/buttons/button_element_open.png new file mode 100644 index 00000000..d5b64ad6 Binary files /dev/null and b/data/themes/default/images/buttons/button_element_open.png differ diff --git a/data/themes/default/images/buttons/button_feature_big.png b/data/themes/default/images/buttons/button_feature_big.png new file mode 100644 index 00000000..75e80d53 Binary files /dev/null and b/data/themes/default/images/buttons/button_feature_big.png differ diff --git a/data/themes/default/images/buttons/button_feature_small.png b/data/themes/default/images/buttons/button_feature_small.png new file mode 100644 index 00000000..e6e7ae0e Binary files /dev/null and b/data/themes/default/images/buttons/button_feature_small.png differ diff --git a/data/themes/default/images/buttons/button_glow_down.png b/data/themes/default/images/buttons/button_glow_down.png new file mode 100644 index 00000000..b0832741 Binary files /dev/null and b/data/themes/default/images/buttons/button_glow_down.png differ diff --git a/data/themes/default/images/buttons/button_glow_up.png b/data/themes/default/images/buttons/button_glow_up.png new file mode 100644 index 00000000..3b3a775e Binary files /dev/null and b/data/themes/default/images/buttons/button_glow_up.png differ diff --git a/data/themes/default/images/buttons/button_home.png b/data/themes/default/images/buttons/button_home.png new file mode 100644 index 00000000..d6cda971 Binary files /dev/null and b/data/themes/default/images/buttons/button_home.png differ diff --git a/data/themes/default/images/buttons/button_home_bloom.png b/data/themes/default/images/buttons/button_home_bloom.png new file mode 100644 index 00000000..e49ce259 Binary files /dev/null and b/data/themes/default/images/buttons/button_home_bloom.png differ diff --git a/data/themes/default/images/buttons/button_home_glow.png b/data/themes/default/images/buttons/button_home_glow.png new file mode 100644 index 00000000..451da301 Binary files /dev/null and b/data/themes/default/images/buttons/button_home_glow.png differ diff --git a/data/themes/default/images/buttons/button_home_stop.png b/data/themes/default/images/buttons/button_home_stop.png new file mode 100644 index 00000000..9bc6dfc2 Binary files /dev/null and b/data/themes/default/images/buttons/button_home_stop.png differ diff --git a/data/themes/default/images/buttons/button_home_stop_on.png b/data/themes/default/images/buttons/button_home_stop_on.png new file mode 100644 index 00000000..ad241d85 Binary files /dev/null and b/data/themes/default/images/buttons/button_home_stop_on.png differ diff --git a/data/themes/default/images/buttons/button_info.png b/data/themes/default/images/buttons/button_info.png new file mode 100644 index 00000000..27f81b2f Binary files /dev/null and b/data/themes/default/images/buttons/button_info.png differ diff --git a/data/themes/default/images/buttons/button_info_glow.png b/data/themes/default/images/buttons/button_info_glow.png new file mode 100644 index 00000000..03f15d8a Binary files /dev/null and b/data/themes/default/images/buttons/button_info_glow.png differ diff --git a/data/themes/default/images/buttons/button_key_del.png b/data/themes/default/images/buttons/button_key_del.png new file mode 100644 index 00000000..10a9b080 Binary files /dev/null and b/data/themes/default/images/buttons/button_key_del.png differ diff --git a/data/themes/default/images/buttons/button_key_return.png b/data/themes/default/images/buttons/button_key_return.png new file mode 100644 index 00000000..c702aa17 Binary files /dev/null and b/data/themes/default/images/buttons/button_key_return.png differ diff --git a/data/themes/default/images/buttons/button_keyboard.png b/data/themes/default/images/buttons/button_keyboard.png new file mode 100644 index 00000000..22b801a7 Binary files /dev/null and b/data/themes/default/images/buttons/button_keyboard.png differ diff --git a/data/themes/default/images/buttons/button_keyboard_select.png b/data/themes/default/images/buttons/button_keyboard_select.png new file mode 100644 index 00000000..895d4f8e Binary files /dev/null and b/data/themes/default/images/buttons/button_keyboard_select.png differ diff --git a/data/themes/default/images/buttons/button_list_down.png b/data/themes/default/images/buttons/button_list_down.png new file mode 100644 index 00000000..6eecdb35 Binary files /dev/null and b/data/themes/default/images/buttons/button_list_down.png differ diff --git a/data/themes/default/images/buttons/button_list_down_glow.png b/data/themes/default/images/buttons/button_list_down_glow.png new file mode 100644 index 00000000..2a7abe47 Binary files /dev/null and b/data/themes/default/images/buttons/button_list_down_glow.png differ diff --git a/data/themes/default/images/buttons/button_list_up.png b/data/themes/default/images/buttons/button_list_up.png new file mode 100644 index 00000000..6a7644c3 Binary files /dev/null and b/data/themes/default/images/buttons/button_list_up.png differ diff --git a/data/themes/default/images/buttons/button_list_up_glow.png b/data/themes/default/images/buttons/button_list_up_glow.png new file mode 100644 index 00000000..beb9e244 Binary files /dev/null and b/data/themes/default/images/buttons/button_list_up_glow.png differ diff --git a/data/themes/default/images/buttons/button_media.png b/data/themes/default/images/buttons/button_media.png new file mode 100644 index 00000000..d5c75868 Binary files /dev/null and b/data/themes/default/images/buttons/button_media.png differ diff --git a/data/themes/default/images/buttons/button_media_bloom.png b/data/themes/default/images/buttons/button_media_bloom.png new file mode 100644 index 00000000..49e7e086 Binary files /dev/null and b/data/themes/default/images/buttons/button_media_bloom.png differ diff --git a/data/themes/default/images/buttons/button_media_glow.png b/data/themes/default/images/buttons/button_media_glow.png new file mode 100644 index 00000000..50c6b0e7 Binary files /dev/null and b/data/themes/default/images/buttons/button_media_glow.png differ diff --git a/data/themes/default/images/buttons/button_media_stop.png b/data/themes/default/images/buttons/button_media_stop.png new file mode 100644 index 00000000..adca0c0a Binary files /dev/null and b/data/themes/default/images/buttons/button_media_stop.png differ diff --git a/data/themes/default/images/buttons/button_media_stop_on.png b/data/themes/default/images/buttons/button_media_stop_on.png new file mode 100644 index 00000000..80d709a2 Binary files /dev/null and b/data/themes/default/images/buttons/button_media_stop_on.png differ diff --git a/data/themes/default/images/buttons/button_next.png b/data/themes/default/images/buttons/button_next.png new file mode 100644 index 00000000..62004c41 Binary files /dev/null and b/data/themes/default/images/buttons/button_next.png differ diff --git a/data/themes/default/images/buttons/button_next_glow.png b/data/themes/default/images/buttons/button_next_glow.png new file mode 100644 index 00000000..2d6d580c Binary files /dev/null and b/data/themes/default/images/buttons/button_next_glow.png differ diff --git a/data/themes/default/images/buttons/button_next_off.png b/data/themes/default/images/buttons/button_next_off.png new file mode 100644 index 00000000..83bdfa3e Binary files /dev/null and b/data/themes/default/images/buttons/button_next_off.png differ diff --git a/data/themes/default/images/buttons/button_previous.png b/data/themes/default/images/buttons/button_previous.png new file mode 100644 index 00000000..cb2b1cb6 Binary files /dev/null and b/data/themes/default/images/buttons/button_previous.png differ diff --git a/data/themes/default/images/buttons/button_previous_glow.png b/data/themes/default/images/buttons/button_previous_glow.png new file mode 100644 index 00000000..96274241 Binary files /dev/null and b/data/themes/default/images/buttons/button_previous_glow.png differ diff --git a/data/themes/default/images/buttons/button_previous_off.png b/data/themes/default/images/buttons/button_previous_off.png new file mode 100644 index 00000000..d4eea127 Binary files /dev/null and b/data/themes/default/images/buttons/button_previous_off.png differ diff --git a/data/themes/default/images/buttons/button_rot_centre.png b/data/themes/default/images/buttons/button_rot_centre.png new file mode 100644 index 00000000..531e90b6 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_centre.png differ diff --git a/data/themes/default/images/buttons/button_rot_centre_glow.png b/data/themes/default/images/buttons/button_rot_centre_glow.png new file mode 100644 index 00000000..6433bb27 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_centre_glow.png differ diff --git a/data/themes/default/images/buttons/button_rot_down.png b/data/themes/default/images/buttons/button_rot_down.png new file mode 100644 index 00000000..5d826a76 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_down.png differ diff --git a/data/themes/default/images/buttons/button_rot_down_glow.png b/data/themes/default/images/buttons/button_rot_down_glow.png new file mode 100644 index 00000000..c835dfba Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_down_glow.png differ diff --git a/data/themes/default/images/buttons/button_rot_left.png b/data/themes/default/images/buttons/button_rot_left.png new file mode 100644 index 00000000..636764d6 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_left.png differ diff --git a/data/themes/default/images/buttons/button_rot_left_glow.png b/data/themes/default/images/buttons/button_rot_left_glow.png new file mode 100644 index 00000000..2997344c Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_left_glow.png differ diff --git a/data/themes/default/images/buttons/button_rot_right.png b/data/themes/default/images/buttons/button_rot_right.png new file mode 100644 index 00000000..e206db0d Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_right.png differ diff --git a/data/themes/default/images/buttons/button_rot_right_glow.png b/data/themes/default/images/buttons/button_rot_right_glow.png new file mode 100644 index 00000000..6de03040 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_right_glow.png differ diff --git a/data/themes/default/images/buttons/button_rot_up.png b/data/themes/default/images/buttons/button_rot_up.png new file mode 100644 index 00000000..a641fde6 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_up.png differ diff --git a/data/themes/default/images/buttons/button_rot_up_glow.png b/data/themes/default/images/buttons/button_rot_up_glow.png new file mode 100644 index 00000000..ba3d743a Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_up_glow.png differ diff --git a/data/themes/default/images/buttons/button_rot_zoomin.png b/data/themes/default/images/buttons/button_rot_zoomin.png new file mode 100644 index 00000000..e44aca79 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_zoomin.png differ diff --git a/data/themes/default/images/buttons/button_rot_zoomin_glow.png b/data/themes/default/images/buttons/button_rot_zoomin_glow.png new file mode 100644 index 00000000..072442e5 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_zoomin_glow.png differ diff --git a/data/themes/default/images/buttons/button_rot_zoomout.png b/data/themes/default/images/buttons/button_rot_zoomout.png new file mode 100644 index 00000000..ed478fc4 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_zoomout.png differ diff --git a/data/themes/default/images/buttons/button_rot_zoomout_glow.png b/data/themes/default/images/buttons/button_rot_zoomout_glow.png new file mode 100644 index 00000000..07940030 Binary files /dev/null and b/data/themes/default/images/buttons/button_rot_zoomout_glow.png differ diff --git a/data/themes/default/images/buttons/button_round_stop.png b/data/themes/default/images/buttons/button_round_stop.png new file mode 100644 index 00000000..04e7d345 Binary files /dev/null and b/data/themes/default/images/buttons/button_round_stop.png differ diff --git a/data/themes/default/images/buttons/button_scenarios.png b/data/themes/default/images/buttons/button_scenarios.png new file mode 100644 index 00000000..ab850b4a Binary files /dev/null and b/data/themes/default/images/buttons/button_scenarios.png differ diff --git a/data/themes/default/images/buttons/button_scenarios_bloom.png b/data/themes/default/images/buttons/button_scenarios_bloom.png new file mode 100644 index 00000000..aaac58f3 Binary files /dev/null and b/data/themes/default/images/buttons/button_scenarios_bloom.png differ diff --git a/data/themes/default/images/buttons/button_scenarios_glow.png b/data/themes/default/images/buttons/button_scenarios_glow.png new file mode 100644 index 00000000..112d5cee Binary files /dev/null and b/data/themes/default/images/buttons/button_scenarios_glow.png differ diff --git a/data/themes/default/images/buttons/button_scenarios_stop.png b/data/themes/default/images/buttons/button_scenarios_stop.png new file mode 100644 index 00000000..886968d0 Binary files /dev/null and b/data/themes/default/images/buttons/button_scenarios_stop.png differ diff --git a/data/themes/default/images/buttons/button_scenarios_stop_on.png b/data/themes/default/images/buttons/button_scenarios_stop_on.png new file mode 100644 index 00000000..91c34d78 Binary files /dev/null and b/data/themes/default/images/buttons/button_scenarios_stop_on.png differ diff --git a/data/themes/default/images/buttons/button_scroll.png b/data/themes/default/images/buttons/button_scroll.png new file mode 100644 index 00000000..0b4d7a3d Binary files /dev/null and b/data/themes/default/images/buttons/button_scroll.png differ diff --git a/data/themes/default/images/buttons/button_scroll_glow.png b/data/themes/default/images/buttons/button_scroll_glow.png new file mode 100644 index 00000000..97c307a1 Binary files /dev/null and b/data/themes/default/images/buttons/button_scroll_glow.png differ diff --git a/data/themes/default/images/buttons/button_selected_neon.png b/data/themes/default/images/buttons/button_selected_neon.png new file mode 100644 index 00000000..7ca2f411 Binary files /dev/null and b/data/themes/default/images/buttons/button_selected_neon.png differ diff --git a/data/themes/default/images/buttons/button_slider_less.png b/data/themes/default/images/buttons/button_slider_less.png new file mode 100644 index 00000000..7ee6e176 Binary files /dev/null and b/data/themes/default/images/buttons/button_slider_less.png differ diff --git a/data/themes/default/images/buttons/button_slider_more.png b/data/themes/default/images/buttons/button_slider_more.png new file mode 100644 index 00000000..4b73e3fb Binary files /dev/null and b/data/themes/default/images/buttons/button_slider_more.png differ diff --git a/data/themes/default/images/buttons/button_up.png b/data/themes/default/images/buttons/button_up.png new file mode 100644 index 00000000..51198ec5 Binary files /dev/null and b/data/themes/default/images/buttons/button_up.png differ diff --git a/data/themes/default/images/buttons/button_widget_list_begin.png b/data/themes/default/images/buttons/button_widget_list_begin.png new file mode 100644 index 00000000..c7be9ec0 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_list_begin.png differ diff --git a/data/themes/default/images/buttons/button_widget_list_end.png b/data/themes/default/images/buttons/button_widget_list_end.png new file mode 100644 index 00000000..abf79c0b Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_list_end.png differ diff --git a/data/themes/default/images/buttons/button_widget_list_item.png b/data/themes/default/images/buttons/button_widget_list_item.png new file mode 100644 index 00000000..cb02ce16 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_list_item.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_down.png b/data/themes/default/images/buttons/button_widget_move_down.png new file mode 100644 index 00000000..c378253f Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_down.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_down_big.png b/data/themes/default/images/buttons/button_widget_move_down_big.png new file mode 100644 index 00000000..af72bd94 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_down_big.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_left.png b/data/themes/default/images/buttons/button_widget_move_left.png new file mode 100644 index 00000000..ef48f094 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_left.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_left_big.png b/data/themes/default/images/buttons/button_widget_move_left_big.png new file mode 100644 index 00000000..2cb2d307 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_left_big.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_right.png b/data/themes/default/images/buttons/button_widget_move_right.png new file mode 100644 index 00000000..11e624c9 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_right.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_right_big.png b/data/themes/default/images/buttons/button_widget_move_right_big.png new file mode 100644 index 00000000..38312e1e Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_right_big.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_up.png b/data/themes/default/images/buttons/button_widget_move_up.png new file mode 100644 index 00000000..af9268a5 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_up.png differ diff --git a/data/themes/default/images/buttons/button_widget_move_up_big.png b/data/themes/default/images/buttons/button_widget_move_up_big.png new file mode 100644 index 00000000..89e1b133 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_move_up_big.png differ diff --git a/data/themes/default/images/buttons/button_widget_resize.png b/data/themes/default/images/buttons/button_widget_resize.png new file mode 100644 index 00000000..fa543f60 Binary files /dev/null and b/data/themes/default/images/buttons/button_widget_resize.png differ diff --git a/data/themes/default/images/buttons/menu_item.png b/data/themes/default/images/buttons/menu_item.png new file mode 100644 index 00000000..5f769098 Binary files /dev/null and b/data/themes/default/images/buttons/menu_item.png differ diff --git a/data/themes/default/images/buttons/menu_item_select.png b/data/themes/default/images/buttons/menu_item_select.png new file mode 100644 index 00000000..2dade17f Binary files /dev/null and b/data/themes/default/images/buttons/menu_item_select.png differ diff --git a/data/themes/default/images/buttons/menu_item_select2.png b/data/themes/default/images/buttons/menu_item_select2.png new file mode 100644 index 00000000..b8f3e128 Binary files /dev/null and b/data/themes/default/images/buttons/menu_item_select2.png differ diff --git a/data/themes/default/images/download_manager/download_arrow.png b/data/themes/default/images/download_manager/download_arrow.png new file mode 100644 index 00000000..d3daa1f2 Binary files /dev/null and b/data/themes/default/images/download_manager/download_arrow.png differ diff --git a/data/themes/default/images/download_manager/download_disk.png b/data/themes/default/images/download_manager/download_disk.png new file mode 100644 index 00000000..53221842 Binary files /dev/null and b/data/themes/default/images/download_manager/download_disk.png differ diff --git a/data/themes/default/images/download_manager/download_fond.png b/data/themes/default/images/download_manager/download_fond.png new file mode 100644 index 00000000..9fc3f035 Binary files /dev/null and b/data/themes/default/images/download_manager/download_fond.png differ diff --git a/data/themes/default/images/download_manager/download_shadow.png b/data/themes/default/images/download_manager/download_shadow.png new file mode 100644 index 00000000..51702859 Binary files /dev/null and b/data/themes/default/images/download_manager/download_shadow.png differ diff --git a/data/themes/default/images/icons/icon_action.png b/data/themes/default/images/icons/icon_action.png new file mode 100644 index 00000000..ebe54044 Binary files /dev/null and b/data/themes/default/images/icons/icon_action.png differ diff --git a/data/themes/default/images/icons/icon_action_blue.png b/data/themes/default/images/icons/icon_action_blue.png new file mode 100644 index 00000000..14f44c34 Binary files /dev/null and b/data/themes/default/images/icons/icon_action_blue.png differ diff --git a/data/themes/default/images/icons/icon_action_simple.png b/data/themes/default/images/icons/icon_action_simple.png new file mode 100644 index 00000000..1e711882 Binary files /dev/null and b/data/themes/default/images/icons/icon_action_simple.png differ diff --git a/data/themes/default/images/icons/icon_analog.png b/data/themes/default/images/icons/icon_analog.png new file mode 100644 index 00000000..42075689 Binary files /dev/null and b/data/themes/default/images/icons/icon_analog.png differ diff --git a/data/themes/default/images/icons/icon_bool.png b/data/themes/default/images/icons/icon_bool.png new file mode 100644 index 00000000..de817213 Binary files /dev/null and b/data/themes/default/images/icons/icon_bool.png differ diff --git a/data/themes/default/images/icons/icon_bool_on.png b/data/themes/default/images/icons/icon_bool_on.png new file mode 100644 index 00000000..9ca24bc9 Binary files /dev/null and b/data/themes/default/images/icons/icon_bool_on.png differ diff --git a/data/themes/default/images/icons/icon_bool_scenario.png b/data/themes/default/images/icons/icon_bool_scenario.png new file mode 100644 index 00000000..3966a9ef Binary files /dev/null and b/data/themes/default/images/icons/icon_bool_scenario.png differ diff --git a/data/themes/default/images/icons/icon_camera.png b/data/themes/default/images/icons/icon_camera.png new file mode 100644 index 00000000..da96e8ae Binary files /dev/null and b/data/themes/default/images/icons/icon_camera.png differ diff --git a/data/themes/default/images/icons/icon_camera_on.png b/data/themes/default/images/icons/icon_camera_on.png new file mode 100644 index 00000000..8c96f23a Binary files /dev/null and b/data/themes/default/images/icons/icon_camera_on.png differ diff --git a/data/themes/default/images/icons/icon_camera_simple.png b/data/themes/default/images/icons/icon_camera_simple.png new file mode 100644 index 00000000..8e0f4842 Binary files /dev/null and b/data/themes/default/images/icons/icon_camera_simple.png differ diff --git a/data/themes/default/images/icons/icon_camera_title.png b/data/themes/default/images/icons/icon_camera_title.png new file mode 100644 index 00000000..e850a5c2 Binary files /dev/null and b/data/themes/default/images/icons/icon_camera_title.png differ diff --git a/data/themes/default/images/icons/icon_cd.png b/data/themes/default/images/icons/icon_cd.png new file mode 100644 index 00000000..0ae93a96 Binary files /dev/null and b/data/themes/default/images/icons/icon_cd.png differ diff --git a/data/themes/default/images/icons/icon_cd_glow.png b/data/themes/default/images/icons/icon_cd_glow.png new file mode 100644 index 00000000..810d0500 Binary files /dev/null and b/data/themes/default/images/icons/icon_cd_glow.png differ diff --git a/data/themes/default/images/icons/icon_clock.png b/data/themes/default/images/icons/icon_clock.png new file mode 100644 index 00000000..735c0082 Binary files /dev/null and b/data/themes/default/images/icons/icon_clock.png differ diff --git a/data/themes/default/images/icons/icon_config_clock.png b/data/themes/default/images/icons/icon_config_clock.png new file mode 100644 index 00000000..3f915dad Binary files /dev/null and b/data/themes/default/images/icons/icon_config_clock.png differ diff --git a/data/themes/default/images/icons/icon_config_fw.png b/data/themes/default/images/icons/icon_config_fw.png new file mode 100644 index 00000000..61a0a1c7 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_fw.png differ diff --git a/data/themes/default/images/icons/icon_config_info.png b/data/themes/default/images/icons/icon_config_info.png new file mode 100644 index 00000000..c15a0c91 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_info.png differ diff --git a/data/themes/default/images/icons/icon_config_l18n.png b/data/themes/default/images/icons/icon_config_l18n.png new file mode 100644 index 00000000..f73a54b4 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_l18n.png differ diff --git a/data/themes/default/images/icons/icon_config_network.png b/data/themes/default/images/icons/icon_config_network.png new file mode 100644 index 00000000..ee5ff8c7 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_network.png differ diff --git a/data/themes/default/images/icons/icon_config_security.png b/data/themes/default/images/icons/icon_config_security.png new file mode 100644 index 00000000..18d44261 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_security.png differ diff --git a/data/themes/default/images/icons/icon_config_terminal.png b/data/themes/default/images/icons/icon_config_terminal.png new file mode 100644 index 00000000..cf85a679 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_terminal.png differ diff --git a/data/themes/default/images/icons/icon_config_veille.png b/data/themes/default/images/icons/icon_config_veille.png new file mode 100644 index 00000000..3e66e3d5 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_veille.png differ diff --git a/data/themes/default/images/icons/icon_config_widget.png b/data/themes/default/images/icons/icon_config_widget.png new file mode 100644 index 00000000..67443753 Binary files /dev/null and b/data/themes/default/images/icons/icon_config_widget.png differ diff --git a/data/themes/default/images/icons/icon_disclosure.png b/data/themes/default/images/icons/icon_disclosure.png new file mode 100644 index 00000000..7c068c06 Binary files /dev/null and b/data/themes/default/images/icons/icon_disclosure.png differ diff --git a/data/themes/default/images/icons/icon_edit.png b/data/themes/default/images/icons/icon_edit.png new file mode 100644 index 00000000..46bf239f Binary files /dev/null and b/data/themes/default/images/icons/icon_edit.png differ diff --git a/data/themes/default/images/icons/icon_flickr.png b/data/themes/default/images/icons/icon_flickr.png new file mode 100644 index 00000000..86d14a34 Binary files /dev/null and b/data/themes/default/images/icons/icon_flickr.png differ diff --git a/data/themes/default/images/icons/icon_folder.png b/data/themes/default/images/icons/icon_folder.png new file mode 100644 index 00000000..1a904a29 Binary files /dev/null and b/data/themes/default/images/icons/icon_folder.png differ diff --git a/data/themes/default/images/icons/icon_groom.png b/data/themes/default/images/icons/icon_groom.png new file mode 100644 index 00000000..ab6120de Binary files /dev/null and b/data/themes/default/images/icons/icon_groom.png differ diff --git a/data/themes/default/images/icons/icon_int.png b/data/themes/default/images/icons/icon_int.png new file mode 100644 index 00000000..e4a9f7a7 Binary files /dev/null and b/data/themes/default/images/icons/icon_int.png differ diff --git a/data/themes/default/images/icons/icon_item_lock.png b/data/themes/default/images/icons/icon_item_lock.png new file mode 100644 index 00000000..4cc3ed93 Binary files /dev/null and b/data/themes/default/images/icons/icon_item_lock.png differ diff --git a/data/themes/default/images/icons/icon_item_reboot.png b/data/themes/default/images/icons/icon_item_reboot.png new file mode 100644 index 00000000..b2642f4d Binary files /dev/null and b/data/themes/default/images/icons/icon_item_reboot.png differ diff --git a/data/themes/default/images/icons/icon_item_screensaver.png b/data/themes/default/images/icons/icon_item_screensaver.png new file mode 100644 index 00000000..74b3e05a Binary files /dev/null and b/data/themes/default/images/icons/icon_item_screensaver.png differ diff --git a/data/themes/default/images/icons/icon_item_widget.png b/data/themes/default/images/icons/icon_item_widget.png new file mode 100644 index 00000000..e42ab008 Binary files /dev/null and b/data/themes/default/images/icons/icon_item_widget.png differ diff --git a/data/themes/default/images/icons/icon_light.png b/data/themes/default/images/icons/icon_light.png new file mode 100644 index 00000000..cbbd9a71 Binary files /dev/null and b/data/themes/default/images/icons/icon_light.png differ diff --git a/data/themes/default/images/icons/icon_light_off.png b/data/themes/default/images/icons/icon_light_off.png new file mode 100644 index 00000000..11dd0404 Binary files /dev/null and b/data/themes/default/images/icons/icon_light_off.png differ diff --git a/data/themes/default/images/icons/icon_light_on.png b/data/themes/default/images/icons/icon_light_on.png new file mode 100644 index 00000000..09560626 Binary files /dev/null and b/data/themes/default/images/icons/icon_light_on.png differ diff --git a/data/themes/default/images/icons/icon_light_simple.png b/data/themes/default/images/icons/icon_light_simple.png new file mode 100644 index 00000000..e914dd8a Binary files /dev/null and b/data/themes/default/images/icons/icon_light_simple.png differ diff --git a/data/themes/default/images/icons/icon_moins.png b/data/themes/default/images/icons/icon_moins.png new file mode 100644 index 00000000..e002e2f8 Binary files /dev/null and b/data/themes/default/images/icons/icon_moins.png differ diff --git a/data/themes/default/images/icons/icon_music.png b/data/themes/default/images/icons/icon_music.png new file mode 100644 index 00000000..7090f461 Binary files /dev/null and b/data/themes/default/images/icons/icon_music.png differ diff --git a/data/themes/default/images/icons/icon_myhome.png b/data/themes/default/images/icons/icon_myhome.png new file mode 100644 index 00000000..98c3afd1 Binary files /dev/null and b/data/themes/default/images/icons/icon_myhome.png differ diff --git a/data/themes/default/images/icons/icon_note.png b/data/themes/default/images/icons/icon_note.png new file mode 100644 index 00000000..4562560d Binary files /dev/null and b/data/themes/default/images/icons/icon_note.png differ diff --git a/data/themes/default/images/icons/icon_note_on.png b/data/themes/default/images/icons/icon_note_on.png new file mode 100644 index 00000000..3f509846 Binary files /dev/null and b/data/themes/default/images/icons/icon_note_on.png differ diff --git a/data/themes/default/images/icons/icon_play.png b/data/themes/default/images/icons/icon_play.png new file mode 100644 index 00000000..f3e8f548 Binary files /dev/null and b/data/themes/default/images/icons/icon_play.png differ diff --git a/data/themes/default/images/icons/icon_play_simple.png b/data/themes/default/images/icons/icon_play_simple.png new file mode 100644 index 00000000..7638505c Binary files /dev/null and b/data/themes/default/images/icons/icon_play_simple.png differ diff --git a/data/themes/default/images/icons/icon_player.png b/data/themes/default/images/icons/icon_player.png new file mode 100644 index 00000000..321a74ca Binary files /dev/null and b/data/themes/default/images/icons/icon_player.png differ diff --git a/data/themes/default/images/icons/icon_playlist.png b/data/themes/default/images/icons/icon_playlist.png new file mode 100644 index 00000000..14e6029e Binary files /dev/null and b/data/themes/default/images/icons/icon_playlist.png differ diff --git a/data/themes/default/images/icons/icon_plus.png b/data/themes/default/images/icons/icon_plus.png new file mode 100644 index 00000000..1dcc510a Binary files /dev/null and b/data/themes/default/images/icons/icon_plus.png differ diff --git a/data/themes/default/images/icons/icon_radio.png b/data/themes/default/images/icons/icon_radio.png new file mode 100644 index 00000000..d7bbbc67 Binary files /dev/null and b/data/themes/default/images/icons/icon_radio.png differ diff --git a/data/themes/default/images/icons/icon_room.png b/data/themes/default/images/icons/icon_room.png new file mode 100644 index 00000000..f8ac654b Binary files /dev/null and b/data/themes/default/images/icons/icon_room.png differ diff --git a/data/themes/default/images/icons/icon_room_on.png b/data/themes/default/images/icons/icon_room_on.png new file mode 100644 index 00000000..5f89e993 Binary files /dev/null and b/data/themes/default/images/icons/icon_room_on.png differ diff --git a/data/themes/default/images/icons/icon_scenario_big.png b/data/themes/default/images/icons/icon_scenario_big.png new file mode 100644 index 00000000..c0235bcf Binary files /dev/null and b/data/themes/default/images/icons/icon_scenario_big.png differ diff --git a/data/themes/default/images/icons/icon_scenario_small.png b/data/themes/default/images/icons/icon_scenario_small.png new file mode 100644 index 00000000..68e760b1 Binary files /dev/null and b/data/themes/default/images/icons/icon_scenario_small.png differ diff --git a/data/themes/default/images/icons/icon_search.png b/data/themes/default/images/icons/icon_search.png new file mode 100644 index 00000000..52ad6c5b Binary files /dev/null and b/data/themes/default/images/icons/icon_search.png differ diff --git a/data/themes/default/images/icons/icon_select_simple.png b/data/themes/default/images/icons/icon_select_simple.png new file mode 100644 index 00000000..2511b670 Binary files /dev/null and b/data/themes/default/images/icons/icon_select_simple.png differ diff --git a/data/themes/default/images/icons/icon_shutter.png b/data/themes/default/images/icons/icon_shutter.png new file mode 100644 index 00000000..3e2cef96 Binary files /dev/null and b/data/themes/default/images/icons/icon_shutter.png differ diff --git a/data/themes/default/images/icons/icon_shutter_on.png b/data/themes/default/images/icons/icon_shutter_on.png new file mode 100644 index 00000000..96658e0d Binary files /dev/null and b/data/themes/default/images/icons/icon_shutter_on.png differ diff --git a/data/themes/default/images/icons/icon_sound.png b/data/themes/default/images/icons/icon_sound.png new file mode 100644 index 00000000..9330f1bd Binary files /dev/null and b/data/themes/default/images/icons/icon_sound.png differ diff --git a/data/themes/default/images/icons/icon_stop_simple.png b/data/themes/default/images/icons/icon_stop_simple.png new file mode 100644 index 00000000..0f7ea696 Binary files /dev/null and b/data/themes/default/images/icons/icon_stop_simple.png differ diff --git a/data/themes/default/images/icons/icon_string.png b/data/themes/default/images/icons/icon_string.png new file mode 100644 index 00000000..fb76a58e Binary files /dev/null and b/data/themes/default/images/icons/icon_string.png differ diff --git a/data/themes/default/images/icons/icon_temp.png b/data/themes/default/images/icons/icon_temp.png new file mode 100644 index 00000000..39516d89 Binary files /dev/null and b/data/themes/default/images/icons/icon_temp.png differ diff --git a/data/themes/default/images/icons/icon_tor.png b/data/themes/default/images/icons/icon_tor.png new file mode 100644 index 00000000..8c15c480 Binary files /dev/null and b/data/themes/default/images/icons/icon_tor.png differ diff --git a/data/themes/default/images/icons/icon_tor_on.png b/data/themes/default/images/icons/icon_tor_on.png new file mode 100644 index 00000000..04a0c96d Binary files /dev/null and b/data/themes/default/images/icons/icon_tor_on.png differ diff --git a/data/themes/default/images/icons/icon_trash.png b/data/themes/default/images/icons/icon_trash.png new file mode 100644 index 00000000..12f7d347 Binary files /dev/null and b/data/themes/default/images/icons/icon_trash.png differ diff --git a/data/themes/default/images/icons/icon_warming.png b/data/themes/default/images/icons/icon_warming.png new file mode 100644 index 00000000..db0f1d5e Binary files /dev/null and b/data/themes/default/images/icons/icon_warming.png differ diff --git a/data/themes/default/images/icons/icon_warming_down.png b/data/themes/default/images/icons/icon_warming_down.png new file mode 100644 index 00000000..fecb3bfc Binary files /dev/null and b/data/themes/default/images/icons/icon_warming_down.png differ diff --git a/data/themes/default/images/icons/icon_warming_up.png b/data/themes/default/images/icons/icon_warming_up.png new file mode 100644 index 00000000..c130aa1e Binary files /dev/null and b/data/themes/default/images/icons/icon_warming_up.png differ diff --git a/data/themes/default/images/icons/icon_widget_unknown.png b/data/themes/default/images/icons/icon_widget_unknown.png new file mode 100644 index 00000000..ec993c2d Binary files /dev/null and b/data/themes/default/images/icons/icon_widget_unknown.png differ diff --git a/data/themes/default/images/logo/bloom.png b/data/themes/default/images/logo/bloom.png new file mode 100644 index 00000000..a7e9c6ba Binary files /dev/null and b/data/themes/default/images/logo/bloom.png differ diff --git a/data/themes/default/images/logo/calaos_about_logo.png b/data/themes/default/images/logo/calaos_about_logo.png new file mode 100644 index 00000000..966bb0c5 Binary files /dev/null and b/data/themes/default/images/logo/calaos_about_logo.png differ diff --git a/data/themes/default/images/logo/final.png b/data/themes/default/images/logo/final.png new file mode 100644 index 00000000..3158fea0 Binary files /dev/null and b/data/themes/default/images/logo/final.png differ diff --git a/data/themes/default/images/logo/logo_mirror.png b/data/themes/default/images/logo/logo_mirror.png new file mode 100644 index 00000000..494291b8 Binary files /dev/null and b/data/themes/default/images/logo/logo_mirror.png differ diff --git a/data/themes/default/images/logo/logo_tittle.png b/data/themes/default/images/logo/logo_tittle.png new file mode 100644 index 00000000..ba993218 Binary files /dev/null and b/data/themes/default/images/logo/logo_tittle.png differ diff --git a/data/themes/default/images/logo/menu_logo.png b/data/themes/default/images/logo/menu_logo.png new file mode 100644 index 00000000..435bf7e5 Binary files /dev/null and b/data/themes/default/images/logo/menu_logo.png differ diff --git a/data/themes/default/images/logo/shadow.png b/data/themes/default/images/logo/shadow.png new file mode 100644 index 00000000..169a2c6c Binary files /dev/null and b/data/themes/default/images/logo/shadow.png differ diff --git a/data/themes/default/images/parts/album_back.png b/data/themes/default/images/parts/album_back.png new file mode 100644 index 00000000..3a81d137 Binary files /dev/null and b/data/themes/default/images/parts/album_back.png differ diff --git a/data/themes/default/images/parts/album_cover.png b/data/themes/default/images/parts/album_cover.png new file mode 100644 index 00000000..5eb4923e Binary files /dev/null and b/data/themes/default/images/parts/album_cover.png differ diff --git a/data/themes/default/images/parts/browser_list_decoration.png b/data/themes/default/images/parts/browser_list_decoration.png new file mode 100644 index 00000000..d978615d Binary files /dev/null and b/data/themes/default/images/parts/browser_list_decoration.png differ diff --git a/data/themes/default/images/parts/calendar_back.png b/data/themes/default/images/parts/calendar_back.png new file mode 100644 index 00000000..a6d33eb4 Binary files /dev/null and b/data/themes/default/images/parts/calendar_back.png differ diff --git a/data/themes/default/images/parts/calendar_header.png b/data/themes/default/images/parts/calendar_header.png new file mode 100644 index 00000000..0b4ec6cb Binary files /dev/null and b/data/themes/default/images/parts/calendar_header.png differ diff --git a/data/themes/default/images/parts/calendar_holiday.png b/data/themes/default/images/parts/calendar_holiday.png new file mode 100644 index 00000000..00523418 Binary files /dev/null and b/data/themes/default/images/parts/calendar_holiday.png differ diff --git a/data/themes/default/images/parts/calendar_ring.png b/data/themes/default/images/parts/calendar_ring.png new file mode 100644 index 00000000..9260025e Binary files /dev/null and b/data/themes/default/images/parts/calendar_ring.png differ diff --git a/data/themes/default/images/parts/calendar_select.png b/data/themes/default/images/parts/calendar_select.png new file mode 100644 index 00000000..28f8f51a Binary files /dev/null and b/data/themes/default/images/parts/calendar_select.png differ diff --git a/data/themes/default/images/parts/camera_big_border.png b/data/themes/default/images/parts/camera_big_border.png new file mode 100644 index 00000000..35e59c17 Binary files /dev/null and b/data/themes/default/images/parts/camera_big_border.png differ diff --git a/data/themes/default/images/parts/camera_border.png b/data/themes/default/images/parts/camera_border.png new file mode 100644 index 00000000..f952ba7d Binary files /dev/null and b/data/themes/default/images/parts/camera_border.png differ diff --git a/data/themes/default/images/parts/camera_medium_border.png b/data/themes/default/images/parts/camera_medium_border.png new file mode 100644 index 00000000..b7342631 Binary files /dev/null and b/data/themes/default/images/parts/camera_medium_border.png differ diff --git a/data/themes/default/images/parts/camera_mire.png b/data/themes/default/images/parts/camera_mire.png new file mode 100644 index 00000000..8646fa68 Binary files /dev/null and b/data/themes/default/images/parts/camera_mire.png differ diff --git a/data/themes/default/images/parts/camera_nocam.png b/data/themes/default/images/parts/camera_nocam.png new file mode 100644 index 00000000..1fe4dece Binary files /dev/null and b/data/themes/default/images/parts/camera_nocam.png differ diff --git a/data/themes/default/images/parts/camera_reflect.png b/data/themes/default/images/parts/camera_reflect.png new file mode 100644 index 00000000..28e73179 Binary files /dev/null and b/data/themes/default/images/parts/camera_reflect.png differ diff --git a/data/themes/default/images/parts/config_item.png b/data/themes/default/images/parts/config_item.png new file mode 100644 index 00000000..9e10e5d4 Binary files /dev/null and b/data/themes/default/images/parts/config_item.png differ diff --git a/data/themes/default/images/parts/config_item_select.png b/data/themes/default/images/parts/config_item_select.png new file mode 100644 index 00000000..2a850333 Binary files /dev/null and b/data/themes/default/images/parts/config_item_select.png differ diff --git a/data/themes/default/images/parts/controls_bg.png b/data/themes/default/images/parts/controls_bg.png new file mode 100644 index 00000000..5952b10d Binary files /dev/null and b/data/themes/default/images/parts/controls_bg.png differ diff --git a/data/themes/default/images/parts/controls_sep.png b/data/themes/default/images/parts/controls_sep.png new file mode 100644 index 00000000..13c8f2bf Binary files /dev/null and b/data/themes/default/images/parts/controls_sep.png differ diff --git a/data/themes/default/images/parts/cover_border.png b/data/themes/default/images/parts/cover_border.png new file mode 100644 index 00000000..ecadd26a Binary files /dev/null and b/data/themes/default/images/parts/cover_border.png differ diff --git a/data/themes/default/images/parts/cover_loading_border.png b/data/themes/default/images/parts/cover_loading_border.png new file mode 100644 index 00000000..bd7c07d8 Binary files /dev/null and b/data/themes/default/images/parts/cover_loading_border.png differ diff --git a/data/themes/default/images/parts/cursor.png b/data/themes/default/images/parts/cursor.png new file mode 100644 index 00000000..af72978e Binary files /dev/null and b/data/themes/default/images/parts/cursor.png differ diff --git a/data/themes/default/images/parts/dialog_background.png b/data/themes/default/images/parts/dialog_background.png new file mode 100644 index 00000000..c0aeaaad Binary files /dev/null and b/data/themes/default/images/parts/dialog_background.png differ diff --git a/data/themes/default/images/parts/dialog_lines.png b/data/themes/default/images/parts/dialog_lines.png new file mode 100644 index 00000000..3c8b19d3 Binary files /dev/null and b/data/themes/default/images/parts/dialog_lines.png differ diff --git a/data/themes/default/images/parts/dialog_neon.png b/data/themes/default/images/parts/dialog_neon.png new file mode 100644 index 00000000..a78e0a54 Binary files /dev/null and b/data/themes/default/images/parts/dialog_neon.png differ diff --git a/data/themes/default/images/parts/display_border.png b/data/themes/default/images/parts/display_border.png new file mode 100644 index 00000000..8784e460 Binary files /dev/null and b/data/themes/default/images/parts/display_border.png differ diff --git a/data/themes/default/images/parts/display_border2.png b/data/themes/default/images/parts/display_border2.png new file mode 100644 index 00000000..f9cb8035 Binary files /dev/null and b/data/themes/default/images/parts/display_border2.png differ diff --git a/data/themes/default/images/parts/footer_kevlar.png b/data/themes/default/images/parts/footer_kevlar.png new file mode 100644 index 00000000..649b5ae4 Binary files /dev/null and b/data/themes/default/images/parts/footer_kevlar.png differ diff --git a/data/themes/default/images/parts/footer_shadow.png b/data/themes/default/images/parts/footer_shadow.png new file mode 100644 index 00000000..4cffaffc Binary files /dev/null and b/data/themes/default/images/parts/footer_shadow.png differ diff --git a/data/themes/default/images/parts/glow.png b/data/themes/default/images/parts/glow.png new file mode 100644 index 00000000..466872dc Binary files /dev/null and b/data/themes/default/images/parts/glow.png differ diff --git a/data/themes/default/images/parts/imageviewer_footer.png b/data/themes/default/images/parts/imageviewer_footer.png new file mode 100644 index 00000000..d795e642 Binary files /dev/null and b/data/themes/default/images/parts/imageviewer_footer.png differ diff --git a/data/themes/default/images/parts/indicator_glow.png b/data/themes/default/images/parts/indicator_glow.png new file mode 100644 index 00000000..9aad2bb7 Binary files /dev/null and b/data/themes/default/images/parts/indicator_glow.png differ diff --git a/data/themes/default/images/parts/keyboard_agenda_background.png b/data/themes/default/images/parts/keyboard_agenda_background.png new file mode 100644 index 00000000..f04f5da0 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_agenda_background.png differ diff --git a/data/themes/default/images/parts/keyboard_background.png b/data/themes/default/images/parts/keyboard_background.png new file mode 100644 index 00000000..72566dc4 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_background.png differ diff --git a/data/themes/default/images/parts/keyboard_cursor.png b/data/themes/default/images/parts/keyboard_cursor.png new file mode 100644 index 00000000..b8353e39 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_cursor.png differ diff --git a/data/themes/default/images/parts/keyboard_key_glow.png b/data/themes/default/images/parts/keyboard_key_glow.png new file mode 100644 index 00000000..b928d600 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_key_glow.png differ diff --git a/data/themes/default/images/parts/keyboard_key_selected.png b/data/themes/default/images/parts/keyboard_key_selected.png new file mode 100644 index 00000000..f2d2df25 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_key_selected.png differ diff --git a/data/themes/default/images/parts/keyboard_lines.png b/data/themes/default/images/parts/keyboard_lines.png new file mode 100644 index 00000000..83629ef6 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_lines.png differ diff --git a/data/themes/default/images/parts/keyboard_multiline_background.png b/data/themes/default/images/parts/keyboard_multiline_background.png new file mode 100644 index 00000000..efa2554d Binary files /dev/null and b/data/themes/default/images/parts/keyboard_multiline_background.png differ diff --git a/data/themes/default/images/parts/keyboard_select_bar_left.png b/data/themes/default/images/parts/keyboard_select_bar_left.png new file mode 100644 index 00000000..28900c76 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_select_bar_left.png differ diff --git a/data/themes/default/images/parts/keyboard_select_bar_right.png b/data/themes/default/images/parts/keyboard_select_bar_right.png new file mode 100644 index 00000000..34436699 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_select_bar_right.png differ diff --git a/data/themes/default/images/parts/keyboard_select_separator.png b/data/themes/default/images/parts/keyboard_select_separator.png new file mode 100644 index 00000000..31b07d88 Binary files /dev/null and b/data/themes/default/images/parts/keyboard_select_separator.png differ diff --git a/data/themes/default/images/parts/list_message_border.png b/data/themes/default/images/parts/list_message_border.png new file mode 100644 index 00000000..5e34760d Binary files /dev/null and b/data/themes/default/images/parts/list_message_border.png differ diff --git a/data/themes/default/images/parts/loading_bar.png b/data/themes/default/images/parts/loading_bar.png new file mode 100644 index 00000000..9598521c Binary files /dev/null and b/data/themes/default/images/parts/loading_bar.png differ diff --git a/data/themes/default/images/parts/loading_bg.png b/data/themes/default/images/parts/loading_bg.png new file mode 100644 index 00000000..d8ccd3ca Binary files /dev/null and b/data/themes/default/images/parts/loading_bg.png differ diff --git a/data/themes/default/images/parts/loading_top.png b/data/themes/default/images/parts/loading_top.png new file mode 100644 index 00000000..3e346a72 Binary files /dev/null and b/data/themes/default/images/parts/loading_top.png differ diff --git a/data/themes/default/images/parts/medium_list_decoration_camera.png b/data/themes/default/images/parts/medium_list_decoration_camera.png new file mode 100644 index 00000000..bc79f0e8 Binary files /dev/null and b/data/themes/default/images/parts/medium_list_decoration_camera.png differ diff --git a/data/themes/default/images/parts/medium_list_decoration_left.png b/data/themes/default/images/parts/medium_list_decoration_left.png new file mode 100644 index 00000000..c770b7e7 Binary files /dev/null and b/data/themes/default/images/parts/medium_list_decoration_left.png differ diff --git a/data/themes/default/images/parts/medium_list_decoration_right.png b/data/themes/default/images/parts/medium_list_decoration_right.png new file mode 100644 index 00000000..3608d874 Binary files /dev/null and b/data/themes/default/images/parts/medium_list_decoration_right.png differ diff --git a/data/themes/default/images/parts/medium_scroll_list_decoration.png b/data/themes/default/images/parts/medium_scroll_list_decoration.png new file mode 100644 index 00000000..63ed0787 Binary files /dev/null and b/data/themes/default/images/parts/medium_scroll_list_decoration.png differ diff --git a/data/themes/default/images/parts/menu_back.png b/data/themes/default/images/parts/menu_back.png new file mode 100644 index 00000000..3e5cc242 Binary files /dev/null and b/data/themes/default/images/parts/menu_back.png differ diff --git a/data/themes/default/images/parts/menu_buttons_shadow_left.png b/data/themes/default/images/parts/menu_buttons_shadow_left.png new file mode 100644 index 00000000..f7993fe9 Binary files /dev/null and b/data/themes/default/images/parts/menu_buttons_shadow_left.png differ diff --git a/data/themes/default/images/parts/menu_buttons_shadow_right.png b/data/themes/default/images/parts/menu_buttons_shadow_right.png new file mode 100644 index 00000000..ba56c094 Binary files /dev/null and b/data/themes/default/images/parts/menu_buttons_shadow_right.png differ diff --git a/data/themes/default/images/parts/menu_footer_shadow.png b/data/themes/default/images/parts/menu_footer_shadow.png new file mode 100644 index 00000000..225f45cb Binary files /dev/null and b/data/themes/default/images/parts/menu_footer_shadow.png differ diff --git a/data/themes/default/images/parts/menu_glowed_neon.png b/data/themes/default/images/parts/menu_glowed_neon.png new file mode 100644 index 00000000..bcc802d8 Binary files /dev/null and b/data/themes/default/images/parts/menu_glowed_neon.png differ diff --git a/data/themes/default/images/parts/menu_header_shadow.png b/data/themes/default/images/parts/menu_header_shadow.png new file mode 100644 index 00000000..7c0aa8be Binary files /dev/null and b/data/themes/default/images/parts/menu_header_shadow.png differ diff --git a/data/themes/default/images/parts/menu_media_icon_camera_back.png b/data/themes/default/images/parts/menu_media_icon_camera_back.png new file mode 100644 index 00000000..1a1263b8 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_icon_camera_back.png differ diff --git a/data/themes/default/images/parts/menu_media_icon_camera_red.png b/data/themes/default/images/parts/menu_media_icon_camera_red.png new file mode 100644 index 00000000..50ea43d4 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_icon_camera_red.png differ diff --git a/data/themes/default/images/parts/menu_media_icon_cd_back.png b/data/themes/default/images/parts/menu_media_icon_cd_back.png new file mode 100644 index 00000000..79854d94 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_icon_cd_back.png differ diff --git a/data/themes/default/images/parts/menu_media_icon_eskiss_back.png b/data/themes/default/images/parts/menu_media_icon_eskiss_back.png new file mode 100644 index 00000000..245e7f4d Binary files /dev/null and b/data/themes/default/images/parts/menu_media_icon_eskiss_back.png differ diff --git a/data/themes/default/images/parts/menu_media_icon_web_back.png b/data/themes/default/images/parts/menu_media_icon_web_back.png new file mode 100644 index 00000000..2b2abacc Binary files /dev/null and b/data/themes/default/images/parts/menu_media_icon_web_back.png differ diff --git a/data/themes/default/images/parts/menu_media_item.png b/data/themes/default/images/parts/menu_media_item.png new file mode 100644 index 00000000..9cfcd5f5 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_item.png differ diff --git a/data/themes/default/images/parts/menu_media_item_glow.png b/data/themes/default/images/parts/menu_media_item_glow.png new file mode 100644 index 00000000..1653dab0 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_item_glow.png differ diff --git a/data/themes/default/images/parts/menu_media_item_reflect.png b/data/themes/default/images/parts/menu_media_item_reflect.png new file mode 100644 index 00000000..17f4e662 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_item_reflect.png differ diff --git a/data/themes/default/images/parts/menu_media_item_separator.png b/data/themes/default/images/parts/menu_media_item_separator.png new file mode 100644 index 00000000..caf1fa74 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_item_separator.png differ diff --git a/data/themes/default/images/parts/menu_media_item_shadow.png b/data/themes/default/images/parts/menu_media_item_shadow.png new file mode 100644 index 00000000..de88a820 Binary files /dev/null and b/data/themes/default/images/parts/menu_media_item_shadow.png differ diff --git a/data/themes/default/images/parts/middle_skyline.png b/data/themes/default/images/parts/middle_skyline.png new file mode 100644 index 00000000..0fbe93c6 Binary files /dev/null and b/data/themes/default/images/parts/middle_skyline.png differ diff --git a/data/themes/default/images/parts/middle_skyline_neon.png b/data/themes/default/images/parts/middle_skyline_neon.png new file mode 100644 index 00000000..5baedebf Binary files /dev/null and b/data/themes/default/images/parts/middle_skyline_neon.png differ diff --git a/data/themes/default/images/parts/module_footer_shadow.png b/data/themes/default/images/parts/module_footer_shadow.png new file mode 100644 index 00000000..d85a0a90 Binary files /dev/null and b/data/themes/default/images/parts/module_footer_shadow.png differ diff --git a/data/themes/default/images/parts/module_header_shadow.png b/data/themes/default/images/parts/module_header_shadow.png new file mode 100644 index 00000000..76cdcd53 Binary files /dev/null and b/data/themes/default/images/parts/module_header_shadow.png differ diff --git a/data/themes/default/images/parts/player_cd_shadow.png b/data/themes/default/images/parts/player_cd_shadow.png new file mode 100644 index 00000000..73fcd068 Binary files /dev/null and b/data/themes/default/images/parts/player_cd_shadow.png differ diff --git a/data/themes/default/images/parts/player_cover_back.png b/data/themes/default/images/parts/player_cover_back.png new file mode 100644 index 00000000..72e15eb7 Binary files /dev/null and b/data/themes/default/images/parts/player_cover_back.png differ diff --git a/data/themes/default/images/parts/player_cover_front.png b/data/themes/default/images/parts/player_cover_front.png new file mode 100644 index 00000000..f6d45e98 Binary files /dev/null and b/data/themes/default/images/parts/player_cover_front.png differ diff --git a/data/themes/default/images/parts/player_glow.png b/data/themes/default/images/parts/player_glow.png new file mode 100644 index 00000000..184e119c Binary files /dev/null and b/data/themes/default/images/parts/player_glow.png differ diff --git a/data/themes/default/images/parts/player_line_decoration_bottom.png b/data/themes/default/images/parts/player_line_decoration_bottom.png new file mode 100644 index 00000000..3cf312e8 Binary files /dev/null and b/data/themes/default/images/parts/player_line_decoration_bottom.png differ diff --git a/data/themes/default/images/parts/player_line_decoration_cd.png b/data/themes/default/images/parts/player_line_decoration_cd.png new file mode 100644 index 00000000..d1519da9 Binary files /dev/null and b/data/themes/default/images/parts/player_line_decoration_cd.png differ diff --git a/data/themes/default/images/parts/player_line_decoration_left.png b/data/themes/default/images/parts/player_line_decoration_left.png new file mode 100644 index 00000000..3a5ece7a Binary files /dev/null and b/data/themes/default/images/parts/player_line_decoration_left.png differ diff --git a/data/themes/default/images/parts/player_line_decoration_right.png b/data/themes/default/images/parts/player_line_decoration_right.png new file mode 100644 index 00000000..e2b71a55 Binary files /dev/null and b/data/themes/default/images/parts/player_line_decoration_right.png differ diff --git a/data/themes/default/images/parts/player_line_decoration_top.png b/data/themes/default/images/parts/player_line_decoration_top.png new file mode 100644 index 00000000..83e926d1 Binary files /dev/null and b/data/themes/default/images/parts/player_line_decoration_top.png differ diff --git a/data/themes/default/images/parts/player_shadow.png b/data/themes/default/images/parts/player_shadow.png new file mode 100644 index 00000000..b4f4a232 Binary files /dev/null and b/data/themes/default/images/parts/player_shadow.png differ diff --git a/data/themes/default/images/parts/player_small_cover_back.png b/data/themes/default/images/parts/player_small_cover_back.png new file mode 100644 index 00000000..99b1409d Binary files /dev/null and b/data/themes/default/images/parts/player_small_cover_back.png differ diff --git a/data/themes/default/images/parts/player_small_cover_front.png b/data/themes/default/images/parts/player_small_cover_front.png new file mode 100644 index 00000000..d6a02794 Binary files /dev/null and b/data/themes/default/images/parts/player_small_cover_front.png differ diff --git a/data/themes/default/images/parts/player_small_shadow.png b/data/themes/default/images/parts/player_small_shadow.png new file mode 100644 index 00000000..9a821f50 Binary files /dev/null and b/data/themes/default/images/parts/player_small_shadow.png differ diff --git a/data/themes/default/images/parts/popup_arrow_down.png b/data/themes/default/images/parts/popup_arrow_down.png new file mode 100644 index 00000000..711a096c Binary files /dev/null and b/data/themes/default/images/parts/popup_arrow_down.png differ diff --git a/data/themes/default/images/parts/popup_arrow_left.png b/data/themes/default/images/parts/popup_arrow_left.png new file mode 100644 index 00000000..f029597e Binary files /dev/null and b/data/themes/default/images/parts/popup_arrow_left.png differ diff --git a/data/themes/default/images/parts/popup_arrow_right.png b/data/themes/default/images/parts/popup_arrow_right.png new file mode 100644 index 00000000..9994c223 Binary files /dev/null and b/data/themes/default/images/parts/popup_arrow_right.png differ diff --git a/data/themes/default/images/parts/popup_arrow_up.png b/data/themes/default/images/parts/popup_arrow_up.png new file mode 100644 index 00000000..4b4c0a8f Binary files /dev/null and b/data/themes/default/images/parts/popup_arrow_up.png differ diff --git a/data/themes/default/images/parts/popup_bg.png b/data/themes/default/images/parts/popup_bg.png new file mode 100644 index 00000000..b1ce492f Binary files /dev/null and b/data/themes/default/images/parts/popup_bg.png differ diff --git a/data/themes/default/images/parts/popup_carbon.png b/data/themes/default/images/parts/popup_carbon.png new file mode 100644 index 00000000..81f1cf99 Binary files /dev/null and b/data/themes/default/images/parts/popup_carbon.png differ diff --git a/data/themes/default/images/parts/rgb_preview.png b/data/themes/default/images/parts/rgb_preview.png new file mode 100644 index 00000000..40445a0c Binary files /dev/null and b/data/themes/default/images/parts/rgb_preview.png differ diff --git a/data/themes/default/images/parts/scenario_list_decoration.png b/data/themes/default/images/parts/scenario_list_decoration.png new file mode 100644 index 00000000..f6ff55ce Binary files /dev/null and b/data/themes/default/images/parts/scenario_list_decoration.png differ diff --git a/data/themes/default/images/parts/scenario_separator.png b/data/themes/default/images/parts/scenario_separator.png new file mode 100644 index 00000000..69f91395 Binary files /dev/null and b/data/themes/default/images/parts/scenario_separator.png differ diff --git a/data/themes/default/images/parts/selector_off.png b/data/themes/default/images/parts/selector_off.png new file mode 100644 index 00000000..91f161e5 Binary files /dev/null and b/data/themes/default/images/parts/selector_off.png differ diff --git a/data/themes/default/images/parts/selector_on.png b/data/themes/default/images/parts/selector_on.png new file mode 100644 index 00000000..64d5347f Binary files /dev/null and b/data/themes/default/images/parts/selector_on.png differ diff --git a/data/themes/default/images/parts/separator.png b/data/themes/default/images/parts/separator.png new file mode 100644 index 00000000..d652ea4e Binary files /dev/null and b/data/themes/default/images/parts/separator.png differ diff --git a/data/themes/default/images/parts/shadow_photo.png b/data/themes/default/images/parts/shadow_photo.png new file mode 100644 index 00000000..5dc92ccf Binary files /dev/null and b/data/themes/default/images/parts/shadow_photo.png differ diff --git a/data/themes/default/images/parts/shutter_arrows_deco.png b/data/themes/default/images/parts/shutter_arrows_deco.png new file mode 100644 index 00000000..30399778 Binary files /dev/null and b/data/themes/default/images/parts/shutter_arrows_deco.png differ diff --git a/data/themes/default/images/parts/slider.png b/data/themes/default/images/parts/slider.png new file mode 100644 index 00000000..d1477830 Binary files /dev/null and b/data/themes/default/images/parts/slider.png differ diff --git a/data/themes/default/images/parts/slider_blue.png b/data/themes/default/images/parts/slider_blue.png new file mode 100644 index 00000000..063b2782 Binary files /dev/null and b/data/themes/default/images/parts/slider_blue.png differ diff --git a/data/themes/default/images/parts/slider_blue_on.png b/data/themes/default/images/parts/slider_blue_on.png new file mode 100644 index 00000000..60a8afbb Binary files /dev/null and b/data/themes/default/images/parts/slider_blue_on.png differ diff --git a/data/themes/default/images/parts/slider_border.png b/data/themes/default/images/parts/slider_border.png new file mode 100644 index 00000000..a8e3d4b3 Binary files /dev/null and b/data/themes/default/images/parts/slider_border.png differ diff --git a/data/themes/default/images/parts/slider_border_blue.png b/data/themes/default/images/parts/slider_border_blue.png new file mode 100644 index 00000000..ad450801 Binary files /dev/null and b/data/themes/default/images/parts/slider_border_blue.png differ diff --git a/data/themes/default/images/parts/slider_border_green.png b/data/themes/default/images/parts/slider_border_green.png new file mode 100644 index 00000000..b8144468 Binary files /dev/null and b/data/themes/default/images/parts/slider_border_green.png differ diff --git a/data/themes/default/images/parts/slider_border_red.png b/data/themes/default/images/parts/slider_border_red.png new file mode 100644 index 00000000..354768d8 Binary files /dev/null and b/data/themes/default/images/parts/slider_border_red.png differ diff --git a/data/themes/default/images/parts/slider_border_vertical.png b/data/themes/default/images/parts/slider_border_vertical.png new file mode 100644 index 00000000..34d34963 Binary files /dev/null and b/data/themes/default/images/parts/slider_border_vertical.png differ diff --git a/data/themes/default/images/parts/slider_green.png b/data/themes/default/images/parts/slider_green.png new file mode 100644 index 00000000..8fed38df Binary files /dev/null and b/data/themes/default/images/parts/slider_green.png differ diff --git a/data/themes/default/images/parts/slider_green_on.png b/data/themes/default/images/parts/slider_green_on.png new file mode 100644 index 00000000..e7e23429 Binary files /dev/null and b/data/themes/default/images/parts/slider_green_on.png differ diff --git a/data/themes/default/images/parts/slider_on.png b/data/themes/default/images/parts/slider_on.png new file mode 100644 index 00000000..30ea8f4b Binary files /dev/null and b/data/themes/default/images/parts/slider_on.png differ diff --git a/data/themes/default/images/parts/slider_red.png b/data/themes/default/images/parts/slider_red.png new file mode 100644 index 00000000..f24b3d71 Binary files /dev/null and b/data/themes/default/images/parts/slider_red.png differ diff --git a/data/themes/default/images/parts/slider_red_on.png b/data/themes/default/images/parts/slider_red_on.png new file mode 100644 index 00000000..3bea421a Binary files /dev/null and b/data/themes/default/images/parts/slider_red_on.png differ diff --git a/data/themes/default/images/parts/slider_vertical.png b/data/themes/default/images/parts/slider_vertical.png new file mode 100644 index 00000000..74f71c55 Binary files /dev/null and b/data/themes/default/images/parts/slider_vertical.png differ diff --git a/data/themes/default/images/parts/slider_vertical_on.png b/data/themes/default/images/parts/slider_vertical_on.png new file mode 100644 index 00000000..7d06f3d4 Binary files /dev/null and b/data/themes/default/images/parts/slider_vertical_on.png differ diff --git a/data/themes/default/images/parts/small_list_decoration.png b/data/themes/default/images/parts/small_list_decoration.png new file mode 100644 index 00000000..fd7f0bd7 Binary files /dev/null and b/data/themes/default/images/parts/small_list_decoration.png differ diff --git a/data/themes/default/images/parts/small_list_decoration_left.png b/data/themes/default/images/parts/small_list_decoration_left.png new file mode 100644 index 00000000..572bd282 Binary files /dev/null and b/data/themes/default/images/parts/small_list_decoration_left.png differ diff --git a/data/themes/default/images/parts/small_scroll_list_decoration.png b/data/themes/default/images/parts/small_scroll_list_decoration.png new file mode 100644 index 00000000..8b242376 Binary files /dev/null and b/data/themes/default/images/parts/small_scroll_list_decoration.png differ diff --git a/data/themes/default/images/parts/standard_list_decoration.png b/data/themes/default/images/parts/standard_list_decoration.png new file mode 100644 index 00000000..4e319104 Binary files /dev/null and b/data/themes/default/images/parts/standard_list_decoration.png differ diff --git a/data/themes/default/images/parts/standard_list_decoration_bottom.png b/data/themes/default/images/parts/standard_list_decoration_bottom.png new file mode 100644 index 00000000..0445a912 Binary files /dev/null and b/data/themes/default/images/parts/standard_list_decoration_bottom.png differ diff --git a/data/themes/default/images/parts/standard_list_decoration_top.png b/data/themes/default/images/parts/standard_list_decoration_top.png new file mode 100644 index 00000000..7a2b6837 Binary files /dev/null and b/data/themes/default/images/parts/standard_list_decoration_top.png differ diff --git a/data/themes/default/images/parts/top_skyline.png b/data/themes/default/images/parts/top_skyline.png new file mode 100644 index 00000000..885c6cd6 Binary files /dev/null and b/data/themes/default/images/parts/top_skyline.png differ diff --git a/data/themes/default/images/parts/top_skyline_neon.png b/data/themes/default/images/parts/top_skyline_neon.png new file mode 100644 index 00000000..eddb3c0f Binary files /dev/null and b/data/themes/default/images/parts/top_skyline_neon.png differ diff --git a/data/themes/default/images/parts/vertical_level_indicator.png b/data/themes/default/images/parts/vertical_level_indicator.png new file mode 100644 index 00000000..d50f3a95 Binary files /dev/null and b/data/themes/default/images/parts/vertical_level_indicator.png differ diff --git a/data/themes/default/images/parts/volume_knob.png b/data/themes/default/images/parts/volume_knob.png new file mode 100644 index 00000000..4a2dc8d4 Binary files /dev/null and b/data/themes/default/images/parts/volume_knob.png differ diff --git a/data/themes/default/images/parts/volume_knob_ledsoff.png b/data/themes/default/images/parts/volume_knob_ledsoff.png new file mode 100644 index 00000000..a721abdd Binary files /dev/null and b/data/themes/default/images/parts/volume_knob_ledsoff.png differ diff --git a/data/themes/default/images/parts/volume_knob_move.png b/data/themes/default/images/parts/volume_knob_move.png new file mode 100644 index 00000000..c13e93ef Binary files /dev/null and b/data/themes/default/images/parts/volume_knob_move.png differ diff --git a/data/themes/default/images/parts/window_border.png b/data/themes/default/images/parts/window_border.png new file mode 100644 index 00000000..73ea4212 Binary files /dev/null and b/data/themes/default/images/parts/window_border.png differ diff --git a/data/themes/default/images/parts/window_border2.png b/data/themes/default/images/parts/window_border2.png new file mode 100644 index 00000000..6e5f45e9 Binary files /dev/null and b/data/themes/default/images/parts/window_border2.png differ diff --git a/data/themes/default/images/parts/window_shutter.png b/data/themes/default/images/parts/window_shutter.png new file mode 100644 index 00000000..a608229f Binary files /dev/null and b/data/themes/default/images/parts/window_shutter.png differ diff --git a/data/themes/default/images/progressbar/progressbar_background.png b/data/themes/default/images/progressbar/progressbar_background.png new file mode 100644 index 00000000..252909e5 Binary files /dev/null and b/data/themes/default/images/progressbar/progressbar_background.png differ diff --git a/data/themes/default/images/progressbar/progressbar_ligne.png b/data/themes/default/images/progressbar/progressbar_ligne.png new file mode 100644 index 00000000..192af30f Binary files /dev/null and b/data/themes/default/images/progressbar/progressbar_ligne.png differ diff --git a/data/themes/default/images/progressbar/progressbar_niveau.png b/data/themes/default/images/progressbar/progressbar_niveau.png new file mode 100644 index 00000000..e9d87541 Binary files /dev/null and b/data/themes/default/images/progressbar/progressbar_niveau.png differ diff --git a/data/themes/default/images/rooms/bathroom/bathroom_big.png b/data/themes/default/images/rooms/bathroom/bathroom_big.png new file mode 100644 index 00000000..16b73669 Binary files /dev/null and b/data/themes/default/images/rooms/bathroom/bathroom_big.png differ diff --git a/data/themes/default/images/rooms/bathroom/bathroom_medium.png b/data/themes/default/images/rooms/bathroom/bathroom_medium.png new file mode 100644 index 00000000..3bd899bc Binary files /dev/null and b/data/themes/default/images/rooms/bathroom/bathroom_medium.png differ diff --git a/data/themes/default/images/rooms/bathroom/bathroom_medium_bloom.png b/data/themes/default/images/rooms/bathroom/bathroom_medium_bloom.png new file mode 100644 index 00000000..d34607c0 Binary files /dev/null and b/data/themes/default/images/rooms/bathroom/bathroom_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/bathroom/bathroom_small.png b/data/themes/default/images/rooms/bathroom/bathroom_small.png new file mode 100644 index 00000000..f8ed9211 Binary files /dev/null and b/data/themes/default/images/rooms/bathroom/bathroom_small.png differ diff --git a/data/themes/default/images/rooms/bathroom_small.png b/data/themes/default/images/rooms/bathroom_small.png new file mode 100644 index 00000000..f8ed9211 Binary files /dev/null and b/data/themes/default/images/rooms/bathroom_small.png differ diff --git a/data/themes/default/images/rooms/bedroom/bedroom_big.png b/data/themes/default/images/rooms/bedroom/bedroom_big.png new file mode 100644 index 00000000..13583f4b Binary files /dev/null and b/data/themes/default/images/rooms/bedroom/bedroom_big.png differ diff --git a/data/themes/default/images/rooms/bedroom/bedroom_medium.png b/data/themes/default/images/rooms/bedroom/bedroom_medium.png new file mode 100644 index 00000000..71707fb7 Binary files /dev/null and b/data/themes/default/images/rooms/bedroom/bedroom_medium.png differ diff --git a/data/themes/default/images/rooms/bedroom/bedroom_medium_bloom.png b/data/themes/default/images/rooms/bedroom/bedroom_medium_bloom.png new file mode 100644 index 00000000..994518b3 Binary files /dev/null and b/data/themes/default/images/rooms/bedroom/bedroom_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/bedroom/bedroom_small.png b/data/themes/default/images/rooms/bedroom/bedroom_small.png new file mode 100644 index 00000000..a0b0828e Binary files /dev/null and b/data/themes/default/images/rooms/bedroom/bedroom_small.png differ diff --git a/data/themes/default/images/rooms/bedroom_small.png b/data/themes/default/images/rooms/bedroom_small.png new file mode 100644 index 00000000..a0b0828e Binary files /dev/null and b/data/themes/default/images/rooms/bedroom_small.png differ diff --git a/data/themes/default/images/rooms/big_room_glow.png b/data/themes/default/images/rooms/big_room_glow.png new file mode 100644 index 00000000..20e29c7f Binary files /dev/null and b/data/themes/default/images/rooms/big_room_glow.png differ diff --git a/data/themes/default/images/rooms/big_room_shadow.png b/data/themes/default/images/rooms/big_room_shadow.png new file mode 100644 index 00000000..0ab5465e Binary files /dev/null and b/data/themes/default/images/rooms/big_room_shadow.png differ diff --git a/data/themes/default/images/rooms/big_room_wire.png b/data/themes/default/images/rooms/big_room_wire.png new file mode 100644 index 00000000..64e589fb Binary files /dev/null and b/data/themes/default/images/rooms/big_room_wire.png differ diff --git a/data/themes/default/images/rooms/cellar/cellar_big.png b/data/themes/default/images/rooms/cellar/cellar_big.png new file mode 100644 index 00000000..1566013b Binary files /dev/null and b/data/themes/default/images/rooms/cellar/cellar_big.png differ diff --git a/data/themes/default/images/rooms/cellar/cellar_medium.png b/data/themes/default/images/rooms/cellar/cellar_medium.png new file mode 100644 index 00000000..04bfae8c Binary files /dev/null and b/data/themes/default/images/rooms/cellar/cellar_medium.png differ diff --git a/data/themes/default/images/rooms/cellar/cellar_medium_bloom.png b/data/themes/default/images/rooms/cellar/cellar_medium_bloom.png new file mode 100644 index 00000000..b090bf1f Binary files /dev/null and b/data/themes/default/images/rooms/cellar/cellar_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/cellar/cellar_small.png b/data/themes/default/images/rooms/cellar/cellar_small.png new file mode 100644 index 00000000..f0fdfe06 Binary files /dev/null and b/data/themes/default/images/rooms/cellar/cellar_small.png differ diff --git a/data/themes/default/images/rooms/cellar_small.png b/data/themes/default/images/rooms/cellar_small.png new file mode 100644 index 00000000..f0fdfe06 Binary files /dev/null and b/data/themes/default/images/rooms/cellar_small.png differ diff --git a/data/themes/default/images/rooms/corridor/corridor_big.png b/data/themes/default/images/rooms/corridor/corridor_big.png new file mode 100644 index 00000000..b6b5ea6b Binary files /dev/null and b/data/themes/default/images/rooms/corridor/corridor_big.png differ diff --git a/data/themes/default/images/rooms/corridor/corridor_medium.png b/data/themes/default/images/rooms/corridor/corridor_medium.png new file mode 100644 index 00000000..04c761ee Binary files /dev/null and b/data/themes/default/images/rooms/corridor/corridor_medium.png differ diff --git a/data/themes/default/images/rooms/corridor/corridor_medium_bloom.png b/data/themes/default/images/rooms/corridor/corridor_medium_bloom.png new file mode 100644 index 00000000..8be14542 Binary files /dev/null and b/data/themes/default/images/rooms/corridor/corridor_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/corridor/corridor_small.png b/data/themes/default/images/rooms/corridor/corridor_small.png new file mode 100644 index 00000000..be905e95 Binary files /dev/null and b/data/themes/default/images/rooms/corridor/corridor_small.png differ diff --git a/data/themes/default/images/rooms/corridor_small.png b/data/themes/default/images/rooms/corridor_small.png new file mode 100644 index 00000000..be905e95 Binary files /dev/null and b/data/themes/default/images/rooms/corridor_small.png differ diff --git a/data/themes/default/images/rooms/diningroom/diningroom_big.png b/data/themes/default/images/rooms/diningroom/diningroom_big.png new file mode 100644 index 00000000..f7e71baa Binary files /dev/null and b/data/themes/default/images/rooms/diningroom/diningroom_big.png differ diff --git a/data/themes/default/images/rooms/diningroom/diningroom_medium.png b/data/themes/default/images/rooms/diningroom/diningroom_medium.png new file mode 100644 index 00000000..04f15b8c Binary files /dev/null and b/data/themes/default/images/rooms/diningroom/diningroom_medium.png differ diff --git a/data/themes/default/images/rooms/diningroom/diningroom_medium_bloom.png b/data/themes/default/images/rooms/diningroom/diningroom_medium_bloom.png new file mode 100644 index 00000000..d415d801 Binary files /dev/null and b/data/themes/default/images/rooms/diningroom/diningroom_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/diningroom/diningroom_small.png b/data/themes/default/images/rooms/diningroom/diningroom_small.png new file mode 100644 index 00000000..cfffa6f4 Binary files /dev/null and b/data/themes/default/images/rooms/diningroom/diningroom_small.png differ diff --git a/data/themes/default/images/rooms/diningroom_small.png b/data/themes/default/images/rooms/diningroom_small.png new file mode 100644 index 00000000..cfffa6f4 Binary files /dev/null and b/data/themes/default/images/rooms/diningroom_small.png differ diff --git a/data/themes/default/images/rooms/garage/garage_big.png b/data/themes/default/images/rooms/garage/garage_big.png new file mode 100644 index 00000000..a27b434f Binary files /dev/null and b/data/themes/default/images/rooms/garage/garage_big.png differ diff --git a/data/themes/default/images/rooms/garage/garage_medium.png b/data/themes/default/images/rooms/garage/garage_medium.png new file mode 100644 index 00000000..e635b0e3 Binary files /dev/null and b/data/themes/default/images/rooms/garage/garage_medium.png differ diff --git a/data/themes/default/images/rooms/garage/garage_medium_bloom.png b/data/themes/default/images/rooms/garage/garage_medium_bloom.png new file mode 100644 index 00000000..97e63c61 Binary files /dev/null and b/data/themes/default/images/rooms/garage/garage_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/garage/garage_small.png b/data/themes/default/images/rooms/garage/garage_small.png new file mode 100644 index 00000000..d3bb4c2d Binary files /dev/null and b/data/themes/default/images/rooms/garage/garage_small.png differ diff --git a/data/themes/default/images/rooms/garage_small.png b/data/themes/default/images/rooms/garage_small.png new file mode 100644 index 00000000..d3bb4c2d Binary files /dev/null and b/data/themes/default/images/rooms/garage_small.png differ diff --git a/data/themes/default/images/rooms/kitchen/kitchen_big.png b/data/themes/default/images/rooms/kitchen/kitchen_big.png new file mode 100644 index 00000000..c461de64 Binary files /dev/null and b/data/themes/default/images/rooms/kitchen/kitchen_big.png differ diff --git a/data/themes/default/images/rooms/kitchen/kitchen_medium.png b/data/themes/default/images/rooms/kitchen/kitchen_medium.png new file mode 100644 index 00000000..47188e7f Binary files /dev/null and b/data/themes/default/images/rooms/kitchen/kitchen_medium.png differ diff --git a/data/themes/default/images/rooms/kitchen/kitchen_medium_bloom.png b/data/themes/default/images/rooms/kitchen/kitchen_medium_bloom.png new file mode 100644 index 00000000..6f818459 Binary files /dev/null and b/data/themes/default/images/rooms/kitchen/kitchen_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/kitchen/kitchen_small.png b/data/themes/default/images/rooms/kitchen/kitchen_small.png new file mode 100644 index 00000000..0b03d9b1 Binary files /dev/null and b/data/themes/default/images/rooms/kitchen/kitchen_small.png differ diff --git a/data/themes/default/images/rooms/lounge/lounge_big.png b/data/themes/default/images/rooms/lounge/lounge_big.png new file mode 100644 index 00000000..969f67e8 Binary files /dev/null and b/data/themes/default/images/rooms/lounge/lounge_big.png differ diff --git a/data/themes/default/images/rooms/lounge/lounge_medium.png b/data/themes/default/images/rooms/lounge/lounge_medium.png new file mode 100644 index 00000000..022c9ee0 Binary files /dev/null and b/data/themes/default/images/rooms/lounge/lounge_medium.png differ diff --git a/data/themes/default/images/rooms/lounge/lounge_medium_bloom.png b/data/themes/default/images/rooms/lounge/lounge_medium_bloom.png new file mode 100644 index 00000000..cb12ca56 Binary files /dev/null and b/data/themes/default/images/rooms/lounge/lounge_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/lounge/lounge_small.png b/data/themes/default/images/rooms/lounge/lounge_small.png new file mode 100644 index 00000000..5c3be37e Binary files /dev/null and b/data/themes/default/images/rooms/lounge/lounge_small.png differ diff --git a/data/themes/default/images/rooms/medium_room_glow.png b/data/themes/default/images/rooms/medium_room_glow.png new file mode 100644 index 00000000..91382043 Binary files /dev/null and b/data/themes/default/images/rooms/medium_room_glow.png differ diff --git a/data/themes/default/images/rooms/medium_room_neon.png b/data/themes/default/images/rooms/medium_room_neon.png new file mode 100644 index 00000000..37e487a8 Binary files /dev/null and b/data/themes/default/images/rooms/medium_room_neon.png differ diff --git a/data/themes/default/images/rooms/medium_room_shadow.png b/data/themes/default/images/rooms/medium_room_shadow.png new file mode 100644 index 00000000..419440a7 Binary files /dev/null and b/data/themes/default/images/rooms/medium_room_shadow.png differ diff --git a/data/themes/default/images/rooms/medium_room_touched.png b/data/themes/default/images/rooms/medium_room_touched.png new file mode 100644 index 00000000..db9c2b22 Binary files /dev/null and b/data/themes/default/images/rooms/medium_room_touched.png differ diff --git a/data/themes/default/images/rooms/office/office_big.png b/data/themes/default/images/rooms/office/office_big.png new file mode 100644 index 00000000..391b147d Binary files /dev/null and b/data/themes/default/images/rooms/office/office_big.png differ diff --git a/data/themes/default/images/rooms/office/office_medium.png b/data/themes/default/images/rooms/office/office_medium.png new file mode 100644 index 00000000..9fcda82d Binary files /dev/null and b/data/themes/default/images/rooms/office/office_medium.png differ diff --git a/data/themes/default/images/rooms/office/office_medium_bloom.png b/data/themes/default/images/rooms/office/office_medium_bloom.png new file mode 100644 index 00000000..61079600 Binary files /dev/null and b/data/themes/default/images/rooms/office/office_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/office/office_small.png b/data/themes/default/images/rooms/office/office_small.png new file mode 100644 index 00000000..9caa905e Binary files /dev/null and b/data/themes/default/images/rooms/office/office_small.png differ diff --git a/data/themes/default/images/rooms/outside/outside_big.png b/data/themes/default/images/rooms/outside/outside_big.png new file mode 100644 index 00000000..385f1c08 Binary files /dev/null and b/data/themes/default/images/rooms/outside/outside_big.png differ diff --git a/data/themes/default/images/rooms/outside/outside_medium.png b/data/themes/default/images/rooms/outside/outside_medium.png new file mode 100644 index 00000000..bb8d807c Binary files /dev/null and b/data/themes/default/images/rooms/outside/outside_medium.png differ diff --git a/data/themes/default/images/rooms/outside/outside_medium_bloom.png b/data/themes/default/images/rooms/outside/outside_medium_bloom.png new file mode 100644 index 00000000..6f0e9311 Binary files /dev/null and b/data/themes/default/images/rooms/outside/outside_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/outside/outside_small.png b/data/themes/default/images/rooms/outside/outside_small.png new file mode 100644 index 00000000..3fc07570 Binary files /dev/null and b/data/themes/default/images/rooms/outside/outside_small.png differ diff --git a/data/themes/default/images/rooms/small_room_shadow.png b/data/themes/default/images/rooms/small_room_shadow.png new file mode 100644 index 00000000..c8592dc9 Binary files /dev/null and b/data/themes/default/images/rooms/small_room_shadow.png differ diff --git a/data/themes/default/images/rooms/various/various_big.png b/data/themes/default/images/rooms/various/various_big.png new file mode 100644 index 00000000..e07db25d Binary files /dev/null and b/data/themes/default/images/rooms/various/various_big.png differ diff --git a/data/themes/default/images/rooms/various/various_medium.png b/data/themes/default/images/rooms/various/various_medium.png new file mode 100644 index 00000000..de7acc53 Binary files /dev/null and b/data/themes/default/images/rooms/various/various_medium.png differ diff --git a/data/themes/default/images/rooms/various/various_medium_bloom.png b/data/themes/default/images/rooms/various/various_medium_bloom.png new file mode 100644 index 00000000..bd74d7c8 Binary files /dev/null and b/data/themes/default/images/rooms/various/various_medium_bloom.png differ diff --git a/data/themes/default/images/rooms/various/various_small.png b/data/themes/default/images/rooms/various/various_small.png new file mode 100644 index 00000000..8d9a070f Binary files /dev/null and b/data/themes/default/images/rooms/various/various_small.png differ diff --git a/data/themes/default/images/scenario/wizzard_1.png b/data/themes/default/images/scenario/wizzard_1.png new file mode 100644 index 00000000..b3cf6e93 Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_1.png differ diff --git a/data/themes/default/images/scenario/wizzard_2.png b/data/themes/default/images/scenario/wizzard_2.png new file mode 100644 index 00000000..5f051f1a Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_2.png differ diff --git a/data/themes/default/images/scenario/wizzard_3.png b/data/themes/default/images/scenario/wizzard_3.png new file mode 100644 index 00000000..3de45188 Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_3.png differ diff --git a/data/themes/default/images/scenario/wizzard_4.png b/data/themes/default/images/scenario/wizzard_4.png new file mode 100644 index 00000000..ab7aec2b Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_4.png differ diff --git a/data/themes/default/images/scenario/wizzard_bg_selected.png b/data/themes/default/images/scenario/wizzard_bg_selected.png new file mode 100644 index 00000000..696b7eb0 Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_bg_selected.png differ diff --git a/data/themes/default/images/scenario/wizzard_header.png b/data/themes/default/images/scenario/wizzard_header.png new file mode 100644 index 00000000..d5a3bafb Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_header.png differ diff --git a/data/themes/default/images/scenario/wizzard_line_selected.png b/data/themes/default/images/scenario/wizzard_line_selected.png new file mode 100644 index 00000000..f5f02f5e Binary files /dev/null and b/data/themes/default/images/scenario/wizzard_line_selected.png differ diff --git a/data/themes/default/images/widgets/flake_large.png b/data/themes/default/images/widgets/flake_large.png new file mode 100644 index 00000000..1886ac6e Binary files /dev/null and b/data/themes/default/images/widgets/flake_large.png differ diff --git a/data/themes/default/images/widgets/flake_medium.png b/data/themes/default/images/widgets/flake_medium.png new file mode 100644 index 00000000..9b27d295 Binary files /dev/null and b/data/themes/default/images/widgets/flake_medium.png differ diff --git a/data/themes/default/images/widgets/flake_small.png b/data/themes/default/images/widgets/flake_small.png new file mode 100644 index 00000000..ab2a555d Binary files /dev/null and b/data/themes/default/images/widgets/flake_small.png differ diff --git a/data/themes/default/images/widgets/widget_back_edit.png b/data/themes/default/images/widgets/widget_back_edit.png new file mode 100644 index 00000000..8036fd55 Binary files /dev/null and b/data/themes/default/images/widgets/widget_back_edit.png differ diff --git a/data/themes/default/images/widgets/widget_container_back.png b/data/themes/default/images/widgets/widget_container_back.png new file mode 100644 index 00000000..37eaea55 Binary files /dev/null and b/data/themes/default/images/widgets/widget_container_back.png differ diff --git a/data/themes/default/images/widgets/widget_container_back_buttons.png b/data/themes/default/images/widgets/widget_container_back_buttons.png new file mode 100644 index 00000000..1f425bd8 Binary files /dev/null and b/data/themes/default/images/widgets/widget_container_back_buttons.png differ diff --git a/data/themes/default/images/widgets/xmas_banner_left.png b/data/themes/default/images/widgets/xmas_banner_left.png new file mode 100644 index 00000000..870f1201 Binary files /dev/null and b/data/themes/default/images/widgets/xmas_banner_left.png differ diff --git a/data/themes/default/images/widgets/xmas_banner_right.png b/data/themes/default/images/widgets/xmas_banner_right.png new file mode 100644 index 00000000..d6ff0c61 Binary files /dev/null and b/data/themes/default/images/widgets/xmas_banner_right.png differ diff --git a/data/themes/default/structure/activity_header_footer.edc b/data/themes/default/structure/activity_header_footer.edc new file mode 100644 index 00000000..6788b6f7 --- /dev/null +++ b/data/themes/default/structure/activity_header_footer.edc @@ -0,0 +1,158 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +alias: "button.quit" "button_quit:button.quit"; + +part +{ + name: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part +{ + name: "header_img"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "module_header.png"; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 0.0; offset: -1 63; } + } + description + { + state: "visible" 0.0; + image.normal: "module_header.png"; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 0.0; offset: -1 53; } + } +} + +part +{ + name: "module_header_shadows"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "module_header_shadow.png"; } + rel1 { relative: 0.0 1.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 9;} + rel1.to: "header_img"; + rel2.to: "header_img"; + color: 255 255 255 150; + } +} + +part +{ + name, "header.label"; + clip_to: "content_clip"; + type: TEXT; + description + { + state, "default" 0.0; + align: 0.5 0.5; + rel1.to: "header_img"; + rel2.to: "header_img"; + color: 231 231 231 255; + text { text: "Module name"; font: "CalaosContent"; size: 20; min: 1 1; } + } +} + +part +{ + name: "module_footer_shadows"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "module_footer_shadow.png"; } + rel1 { relative: 0.0 0.0; offset: 0 -11;} + rel2 { relative: 1.0 0.0; offset: -1 -1;} + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + color: 255 255 255 150; + } +} + +part +{ + name: "module_footer_background"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "module_footer.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -65;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -55;} + rel2 { relative: 1.0 1.0; offset: -1 0;} + } +} + +part +{ + name: "button_quit"; + clip_to: "content_clip"; + type: GROUP; + source: "button.quit"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125 10; } + rel2 { relative: 1.0 0.0; offset: -10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } +} + +part +{ + name: "content_size"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 1.0; offset: 0 -1; } + rel2 { relative: 1.0 0.0; offset: -1 0; } + rel1.to_y: "header_img"; + rel2.to_y: "module_footer_background"; + } +} + +program +{ + name: "on_show_footer_header"; + signal: "show"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.35; + target: "header_img"; + target: "module_footer_background"; +} + +program +{ + name: "on_hide_footer_header"; + signal: "hide"; + action: STATE_SET "default" 0.0; + target: "header_img"; + target: "module_footer_background"; +} + diff --git a/data/themes/default/structure/activity_loading.edc b/data/themes/default/structure/activity_loading.edc new file mode 100644 index 00000000..d23cb68e --- /dev/null +++ b/data/themes/default/structure/activity_loading.edc @@ -0,0 +1,137 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +part +{ + name: "loading_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "content_size"; + rel2.to: "content_size"; + visible: 0; + color: 0 0 0 0; + + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part +{ + name: "loading_back"; + type: RECT; + clip_to: "loading_clip"; + description + { + state: "default" 0.0; + rel1.to: "loading_clip"; + rel2.to: "loading_clip"; + color: 20 20 20 180; + } +} + +part +{ + name: "loading_bg"; + clip_to: "loading_clip"; + description + { + state: "default" 0.0; + image.normal: "loading_bg.png"; + rel1 { relative: 0.5 0.5; offset: -101 -101; } + rel2 { relative: 0.5 0.5; offset: 101 101; } + } +} + +part +{ + name: "loading_top"; + clip_to: "loading_clip"; + description + { + state: "default" 0.0; + image.normal: "loading_top.png"; + map { on: 1; smooth: 1; } + rel1.to: "loading_bg"; + rel2.to: "loading_bg"; + } + description + { + state: "spin" 0.0; + inherit: "default" 0.0; + map.rotation.z: 360.0; + } +} + +part +{ + name: "text"; + clip_to: "loading_clip"; + type: TEXT; + description + { + state, "default" 0.0; + visible: 1; + text { text: "Chargement..."; font: "CalaosContentBold"; size: 20; min: 0 0; align: 0.5 0.65; } + color: 95 95 95 255; + } +} + +program +{ + signal: "show,loading"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.25; + target: "loading_clip"; +} + +program +{ + signal: "show,loading"; + source: "calaos"; + after: "anim_loader"; +} + +program +{ + signal: "hide,loading"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.25; + target: "loading_clip"; +} + +program +{ + signal: "hide,loading"; + source: "calaos"; + action: ACTION_STOP; + target: "anim_loader"; + target: "anim_loop"; +} + +program { + name: "anim_loader"; + action: STATE_SET "spin" 0.0; + transition: LINEAR 0.8; + target: "loading_top"; + after: "anim_loop"; +} + +program { + name: "anim_loop"; + action: STATE_SET "default" 0.0; + target: "loading_top"; + after: "anim_loader"; +} diff --git a/data/themes/default/structure/amplifier_control.edc b/data/themes/default/structure/amplifier_control.edc new file mode 100644 index 00000000..d06079e7 --- /dev/null +++ b/data/themes/default/structure/amplifier_control.edc @@ -0,0 +1,229 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/audio/amplifier"; + min: 420 400; + + parts + { + part + { + name: "sep_title"; + type: RECT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 28; + rel1 { relative: 0.0 0.0; offset: 0 35; } + rel2 { relative: 1.0 0.0; offset: -1 36; } + } + } + + part + { + name: "title"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 10 0; } + rel2 { relative: 1.0 0.0; offset: -5 35; } + color: 231 231 231 204; + text { text: "Titre l'ampli"; font: "CalaosContent"; size: 15; min: 1 1; align: 0.0 0.5; } + } + } + + part + { + name: "input_source_deco"; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + rel1 { relative: 0.0 0.0; offset: 16 57; } + rel2 { relative: 0.0 0.0; offset: 191 278; } + } + } + + part + { + name: "inputs.swallow"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to: "input_source_deco"; + rel2.to: "input_source_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "sep_volume"; + type: RECT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 28; + rel1 { relative: 0.0 0.0; offset: 16 316; } + rel2 { relative: 0.0 0.0; offset: 213 317; } + } + } + + part + { + name: "volume.title"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 10 287; } + rel2 { relative: 0.0 0.0; offset: 198 315; } + color: 231 231 231 204; + text { text: "Volume"; font: "CalaosContent"; size: 14; min: 1 1; align: 1.0 0.5; } + } + } + +// part +// { +// name: "volume.text"; +// type: TEXT; +// description +// { +// state: "default" 0.0; +// fixed: 1 1; +// rel1 { relative: 0.0 0.0; offset: 10 322; } +// rel2 { relative: 0.0 0.0; offset: 198 350; } +// color: 58 180 215 255; +// text { text: "-0.00 dB"; font: "CalaosContent"; size: 14; min: 1 1; align: 1.0 0.5; } +// } +// } + + part + { + name: "display_border_1"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 203 52; } + rel2 { relative: 0.0 0.0; offset: 403 52+52; } + image.normal: "display_border.png"; + image.border: 12 12 12 12; + } + } + + part + { + name: "display_border_2"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "display_border_1"; + rel2.to: "display_border_1"; + rel1.offset: 9 9; + rel2.offset: -10 -11; + image.normal: "display_border2.png"; + image.border: 6 6 6 6; + } + } + + part + { + name: "display.text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "display_border_2"; + rel2.to: "display_border_2"; + color: 58 180 215 255; + text { text: "AZERTYUIOPQSDF"; font: "RepetitionScrolling"; size: 20; min: 1 1; align: 0.5 0.5; } + } + } + + part + { + name: "volume.slider"; + type: EXTERNAL; + source: "elm/slider"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.0; offset: 201 211; } + rel2 { relative: 0.0 0.0; offset: 400 410; } + params { string: "style" "calaos/volume"; } + } + } + + part + { + name: "power_text"; + type: TEXT; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 8 10; to: "display_border_1"; } + rel2 { relative: 1.0 1.0; offset: -1 30; to: "display_border_1"; } + color: 231 231 231 204; + text { text: "Power:"; font: "CalaosContent"; size: 14; min: 1 1; align: 0.0 0.5; } + } + } + + part + { + name: "button.poweron"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "label" "Allumer"; + string: "style" "calaos/action_button/label"; + } + rel1 { relative: 0.0 1.0; offset: 65 4; to: "display_border_1"; } + rel2 { relative: 0.0 1.0; offset: 65+60 36; to: "display_border_1"; } + } + } + + part + { + name: "button.poweroff"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "label" "Eteindre"; + string: "style" "calaos/action_button/label"; + } + rel1 { relative: 0.0 1.0; offset: 65+60+4 4; to: "display_border_1"; } + rel2 { relative: 0.0 1.0; offset: 65+60+4+63 36; to: "display_border_1"; } + } + } + } + programs + { + + } +} diff --git a/data/themes/default/structure/circular_spinner.edc b/data/themes/default/structure/circular_spinner.edc new file mode 100644 index 00000000..cda14d66 --- /dev/null +++ b/data/themes/default/structure/circular_spinner.edc @@ -0,0 +1,138 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/spinner/mini"; + + parts + { + part + { + name: "spinner"; + description + { + state: "default" 0.0; + image.normal: "mini_circular_000.png"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + description + { + state: "animation" 0.0; + inherit: "active" 0.0; + image + { + normal: "mini_circular_000.png"; + tween: "mini_circular_001.png"; + tween: "mini_circular_002.png"; + tween: "mini_circular_003.png"; + tween: "mini_circular_004.png"; + tween: "mini_circular_005.png"; + tween: "mini_circular_006.png"; + tween: "mini_circular_007.png"; + tween: "mini_circular_008.png"; + tween: "mini_circular_009.png"; + tween: "mini_circular_010.png"; + tween: "mini_circular_011.png"; + tween: "mini_circular_012.png"; + tween: "mini_circular_013.png"; + tween: "mini_circular_014.png"; + tween: "mini_circular_015.png"; + tween: "mini_circular_016.png"; + tween: "mini_circular_017.png"; + } + } + } + } + + programs + { + program + { + name: "init"; + signal: "show"; + action: STATE_SET "active" 0.0; + transition: DECELERATE 0.2; + target: "spinner"; + after: "animation_start"; + } + + program + { + name: "animation_start"; + action: STATE_SET "animation" 0.0; + transition: LINEAR 0.6; + target: "spinner"; + after: "animation_start"; + } + + program + { + name: "uninit"; + signal: "hide"; + action: ACTION_STOP; + target: "animation_start"; + } + } +} + +group +{ + name: "calaos/spinner/micro"; + inherit: "calaos/spinner/mini"; + + parts + { + part + { + name: "spinner"; + description + { + state: "default" 0.0; + image.normal: "micro_circular_000.png"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + description + { + state: "animation" 0.0; + inherit: "active" 0.0; + image + { + normal: "micro_circular_000.png"; + tween: "micro_circular_001.png"; + tween: "micro_circular_002.png"; + tween: "micro_circular_003.png"; + tween: "micro_circular_004.png"; + tween: "micro_circular_005.png"; + tween: "micro_circular_006.png"; + tween: "micro_circular_007.png"; + tween: "micro_circular_008.png"; + tween: "micro_circular_009.png"; + tween: "micro_circular_010.png"; + tween: "micro_circular_011.png"; + tween: "micro_circular_012.png"; + tween: "micro_circular_013.png"; + tween: "micro_circular_014.png"; + tween: "micro_circular_015.png"; + tween: "micro_circular_016.png"; + tween: "micro_circular_017.png"; + } + } + } + } +} + diff --git a/data/themes/default/structure/element_scenario_home.edc b/data/themes/default/structure/element_scenario_home.edc new file mode 100644 index 00000000..a2abd9b8 --- /dev/null +++ b/data/themes/default/structure/element_scenario_home.edc @@ -0,0 +1,246 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/element/scenario_home"; + + parts + { + + part + { + name: "button_back"; + description + { + state: "default" 0.0; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 80; + } + description + { + state: "normal" 0.0; + inherit: "default" 0.0; + color: 255 255 255 105; + } + description + { + state: "empty" 0.0; + inherit: "default" 0.0; + color: 255 255 255 80; + } + } + + part + { + name: "button_glow"; + description + { + state: "default" 0.0; + visible: 0; + image { normal: "button_element_glow.png"; border: 11 11 14 14; } + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "icon"; + description + { + state: "default" 0.0; + visible: 0; + image { normal: "icon_scenario_big.png"; } + rel1 { relative: 0.0 0.52; offset: -1 -8; } + rel2 { relative: 0.0 0.52; offset: -1 7; } + color: 255 255 255 0; + } + description + { + state: "empty" 0.0; + inherit: "default" 0.0; + } + description + { + state: "normal" 0.0; + inherit: "default" 0.0; + color: 255 255 255 127; + visible: 1; + rel1 { relative: 0.0 0.52; offset: 11 -8; } + rel2 { relative: 0.0 0.52; offset: 32 7; } + } + } + + part + { + name: "button_label"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 1.0 0.0; offset: 5 0; } + rel2 { relative: 1.0 1.0; offset: -5 0; } + rel1.to_x: "icon"; + color: 255 255 255 255; + } + } + + part + { + name: "object.text"; + type: TEXT; + repeat_events: 1; + clip_to: "button_label"; + description + { + state: "default" 0.0; + visible: 1; + rel1.to: "button_label"; + rel2.to: "button_label"; + color: 255 255 255 0; + text { text: "Emplacement libre"; font: "CalaosContent"; size: 12; min: 1 1; align: 0.5 0.53; } + } + description + { + state: "empty" 0.0; + inherit: "default" 0.0; + color: 231 231 231 60; + } + description + { + state: "normal" 0.0; + inherit: "default" 0.0; + color: 231 231 231 127; + align: 0.0 0.0; + text.align: 0.0 0.53; + } + description + { + state: "normal" 1.0; + inherit: "default" 0.0; + color: 231 231 231 127; + align: 1.0 0.0; + text.align: 0.0 0.53; + } + } + + part + { + name: "event"; + type: RECT; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + } + + programs + { + program + { + name: "button_empty"; + signal: "show,empty"; + source: "calaos"; + action: STATE_SET "empty" 0.0; + transition: DECELERATE 0.2; + target: "button_back"; + target: "icon"; + target: "object.text"; + } + + program + { + name: "button_normal"; + signal: "show,normal"; + source: "calaos"; + action: STATE_SET "normal" 0.0; + transition: DECELERATE 0.2; + after: "start_text_slide"; + target: "button_back"; + target: "icon"; + target: "object.text"; + } + + program + { + name: "start_text_slide"; + action: STATE_SET "normal" 0.0; + transition: DECELERATE 0.4; + target: "object.text"; + after: "text_slide"; + } + + program + { + name: "text_slide"; + in: 0.5 0.0; + action: STATE_SET "normal" 1.0; + transition: SINUSOIDAL 3.0; + target: "object.text"; + after: "text_slide2"; + } + + program + { + name: "text_slide2"; + in: 1.0 0.0; + action: STATE_SET "normal" 0.0; + transition: ACCELERATE 0.5; + target: "object.text"; + after: "text_slide"; + } + + program + { + name: "click"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "go" "object"; + } + + program + { + name: "set_touched_button_scenario"; + action: STATE_SET "active" 0.0; + transition: ACCELERATE 0.00001; + target: "button_glow"; + } + + program + { + name: "set_untouched_button_scenario"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 1.0; + target: "button_glow"; + } + + program + { + name: "button_on"; + signal: "scenario,true"; + source: "calaos"; + after: "set_touched_button_scenario"; + } + + program + { + name: "button_off"; + signal: "scenario,false"; + source: "calaos"; + after: "set_untouched_button_scenario"; + } + } + +} \ No newline at end of file diff --git a/data/themes/default/structure/icons.edc b/data/themes/default/structure/icons.edc new file mode 100644 index 00000000..0664b006 --- /dev/null +++ b/data/themes/default/structure/icons.edc @@ -0,0 +1,598 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define ICON_GROUP(_name, _icon) \ +group \ +{ \ + name: _name; \ + parts { \ + part \ + { \ + name: "icon"; \ + description \ + { \ + state: "default" 0.0; \ + image { normal: _icon;} \ + } \ + } \ + } \ +} + +#define ICON_GROUP_ALPHA(_name, _icon, _alpha) \ +group \ +{ \ + name: _name; \ + parts { \ + part \ + { \ + name: "icon"; \ + description \ + { \ + state: "default" 0.0; \ + image { normal: _icon;} \ + color: 255 255 255 _alpha; \ + } \ + } \ + } \ +} + +ICON_GROUP("calaos/icons/screensaver", "icon_item_screensaver.png") +ICON_GROUP("calaos/icons/widget", "icon_item_widget.png") +ICON_GROUP("calaos/icons/reboot", "icon_item_reboot.png") +ICON_GROUP("calaos/icons/lock", "icon_item_lock.png") + +ICON_GROUP("calaos/icons/config/clock", "icon_config_clock.png") +ICON_GROUP("calaos/icons/config/firmware", "icon_config_fw.png") +ICON_GROUP("calaos/icons/config/infos", "icon_config_info.png") +ICON_GROUP("calaos/icons/config/l18n", "icon_config_l18n.png") +ICON_GROUP("calaos/icons/config/network", "icon_config_network.png") +ICON_GROUP("calaos/icons/config/security", "icon_config_security.png") +ICON_GROUP("calaos/icons/config/terminal", "icon_config_terminal.png") +ICON_GROUP("calaos/icons/config/energy", "icon_config_veille.png") +ICON_GROUP("calaos/icons/config/widget", "icon_config_widget.png") +ICON_GROUP("calaos/icons/config/info", "icon_config_info.png") +ICON_GROUP("calaos/icons/widget/unknown", "icon_widget_unknown.png") + +ICON_GROUP("calaos/icons/button/quit", "button_action_quit.png") +ICON_GROUP("calaos/icons/button/reboot", "button_action_reboot.png") +ICON_GROUP("calaos/icons/button/reload", "button_action_reload.png") +ICON_GROUP("calaos/icons/button/more", "button_action_plus.png") +ICON_GROUP("calaos/icons/button/valid", "button_action_valid.png") +ICON_GROUP("calaos/icons/button/home", "button_action_home.png") +ICON_GROUP("calaos/icons/button/delete", "button_action_del.png") +ICON_GROUP("calaos/icons/button/keyboard", "button_action_clavier.png") +ICON_GROUP("calaos/icons/button/back", "button_action_back.png") +ICON_GROUP("calaos/icons/button/stop", "button_action_actionstop.png") + +//Action button +ICON_GROUP("calaos/icons/action_button/light_on", "button_action_light_on.png") +ICON_GROUP("calaos/icons/action_button/light_off", "button_action_light_off.png") +ICON_GROUP("calaos/icons/action_button/keyboard", "button_action_clavier2.png") +ICON_GROUP("calaos/icons/action_button/delete", "button_action_delete.png") +ICON_GROUP("calaos/icons/action_button/down_arrow", "button_action_down.png") +ICON_GROUP("calaos/icons/action_button/down", "button_action_downer.png") +ICON_GROUP("calaos/icons/action_button/edit", "button_action_edit.png") +ICON_GROUP("calaos/icons/action_button/fullscreen", "button_action_fullscreen.png") +ICON_GROUP("calaos/icons/action_button/impulse", "button_action_impulse.png") +ICON_GROUP("calaos/icons/action_button/left_arrow", "button_action_left.png") +ICON_GROUP("calaos/icons/action_button/less", "button_action_less.png") +ICON_GROUP("calaos/icons/action_button/more", "button_action_more.png") +ICON_GROUP("calaos/icons/action_button/next", "button_action_next.png") +ICON_GROUP("calaos/icons/action_button/off", "button_action_off.png") +ICON_GROUP("calaos/icons/action_button/on", "button_action_on.png") +ICON_GROUP("calaos/icons/action_button/pause", "button_action_pause.png") +ICON_GROUP("calaos/icons/action_button/play", "button_action_play.png") +ICON_GROUP("calaos/icons/action_button/previous", "button_action_previous.png") +ICON_GROUP("calaos/icons/action_button/right_arrow", "button_action_right.png") +ICON_GROUP("calaos/icons/action_button/select", "button_action_select_selected.png") +ICON_GROUP("calaos/icons/action_button/unselect", "button_action_select_unselected.png") +ICON_GROUP("calaos/icons/action_button/stop", "button_action_stop.png") +ICON_GROUP("calaos/icons/action_button/sync", "button_action_sync.png") +ICON_GROUP("calaos/icons/action_button/toggle", "button_action_toggle.png") +ICON_GROUP("calaos/icons/action_button/up_arrow", "button_action_up.png") +ICON_GROUP("calaos/icons/action_button/up", "button_action_upper.png") +ICON_GROUP("calaos/icons/action_button/warming_up", "button_action_warming_up.png") +ICON_GROUP("calaos/icons/action_button/warming_down", "button_action_warming_down.png") +ICON_GROUP("calaos/icons/action_button/slider_more", "button_slider_more.png") +ICON_GROUP("calaos/icons/action_button/slider_less", "button_slider_less.png") +ICON_GROUP("calaos/icons/action_button/impulse_up", "button_action_impulse_up.png") +ICON_GROUP("calaos/icons/action_button/impulse_down", "button_action_impulse_down.png") +ICON_GROUP("calaos/icons/action_button/label", "button_action_labeled_small.png") +ICON_GROUP("calaos/icons/action_button/popup/valid", "button_action_popup_valid.png") +ICON_GROUP("calaos/icons/position_button/album", "icon_cd.png") +ICON_GROUP("calaos/icons/position_button/scenario", "icon_scenario_small.png") + +ICON_GROUP("calaos/icons/genlist/note", "icon_note_on.png") +ICON_GROUP("calaos/icons/genlist/note_off", "icon_note.png") +ICON_GROUP("calaos/icons/genlist/playlist", "icon_playlist.png") +ICON_GROUP("calaos/icons/genlist/folder", "icon_folder.png") +ICON_GROUP("calaos/icons/genlist/radio", "icon_radio.png") +ICON_GROUP("calaos/icons/genlist/search", "icon_search.png") +ICON_GROUP("calaos/icons/genlist/trash", "icon_trash.png") +ICON_GROUP("calaos/icons/genlist/edit", "icon_edit.png") +ICON_GROUP("calaos/icons/genlist/play", "icon_play.png") +ICON_GROUP("calaos/icons/genlist/clock", "icon_clock.png") +ICON_GROUP("calaos/icons/genlist/plus", "icon_plus.png") +ICON_GROUP("calaos/icons/genlist/moins", "icon_moins.png") +ICON_GROUP("calaos/icons/genlist/action", "icon_action.png") +ICON_GROUP("calaos/icons/genlist/room", "icon_groom.png") + +ICON_GROUP("calaos/icons/room/lounge", "lounge_small.png") +ICON_GROUP("calaos/icons/room/bedroom", "bedroom_small.png") +ICON_GROUP("calaos/icons/room/kitchen", "kitchen_small.png") +ICON_GROUP("calaos/icons/room/office", "office_small.png") +ICON_GROUP("calaos/icons/room/diningroom", "diningroom_small.png") +ICON_GROUP("calaos/icons/room/cellar", "cellar_small.png") +ICON_GROUP("calaos/icons/room/various", "various_small.png") +ICON_GROUP("calaos/icons/room/outside", "outside_small.png") +ICON_GROUP("calaos/icons/room/bathroom", "bathroom_small.png") +ICON_GROUP("calaos/icons/room/corridor", "corridor_small.png") + +#ifdef ICON_ALPHA +#undef ICON_ALPHA +#endif +#define ICON_ALPHA 150 +ICON_GROUP_ALPHA("calaos/icons/element/simple/light", "icon_light_simple.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/scenario", "icon_scenario_small.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/internal_bool", "icon_bool_scenario.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/internal_int", "icon_int.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/internal_string", "icon_string.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/volet", "icon_shutter.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/temp", "icon_temp.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/analog", "icon_analog.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/music", "icon_music.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/camera", "icon_camera_simple.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/play", "icon_play_simple.png", ICON_ALPHA) +ICON_GROUP_ALPHA("calaos/icons/element/simple/stop", "icon_stop_simple.png", ICON_ALPHA) +#undef ICON_ALPHA + +#define ANIM_ICON_SIGNAL_REPEAT(icon_part) \ + program \ + { \ + name: "sig_icon_on_anim"; \ + signal: "on,anim"; \ + source: "calaos"; \ + action: SIGNAL_EMIT icon_part":on,anim" "calaos"; \ + } \ + \ + program \ + { \ + name: "sig_icon_on_normal"; \ + signal: "on,normal"; \ + source: "calaos"; \ + action: SIGNAL_EMIT icon_part":on,normal" "calaos"; \ + } \ + \ + program \ + { \ + name: "sig_icon_off_anim"; \ + signal: "off,anim"; \ + source: "calaos"; \ + action: SIGNAL_EMIT icon_part":off,anim" "calaos"; \ + } \ + \ + program \ + { \ + name: "sig_icon_off_normal"; \ + signal: "off,normal"; \ + source: "calaos"; \ + action: SIGNAL_EMIT icon_part":off,normal" "calaos"; \ + } + +group +{ + name: "calaos/icons/element/light"; + parts + { + part + { + name: "light_off"; + description + { + state: "default" 0.0; + image { normal: "icon_light_off.png";} + rel1 { relative: 0.5 0.5; offset: -11 -8;} + rel2 { relative: 0.5 0.5; offset: 10 7;} + visible: 0; + color: 255 255 255 0; + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 127; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + } + } + + part + { + name: "light_on"; + description + { + state: "default" 0.0; + image { normal: "icon_light_on.png";} + rel1 { relative: 0.5 0.5; offset: -11 -8;} + rel2 { relative: 0.5 0.5; offset: 10 7;} + visible: 0; + color: 255 255 255 0; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + image { normal: "icon_light_009.png";} + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + image + { + normal: "icon_light_009.png"; + tween: "icon_light_001.png"; + tween: "icon_light_002.png"; + tween: "icon_light_003.png"; + tween: "icon_light_004.png"; + tween: "icon_light_005.png"; + tween: "icon_light_006.png"; + tween: "icon_light_007.png"; + tween: "icon_light_008.png"; + tween: "icon_light_009.png"; + } + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + } + } + } + + programs + { + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "anim" 0.0; + transition: LINEAR 0.4; + target: "light_on"; + target: "light_off"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "on" 0.0; + target: "light_on"; + target: "light_off"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "off" 0.0; + transition: LINEAR 0.4; + target: "light_on"; + target: "light_off"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "off" 0.0; + target: "light_on"; + target: "light_off"; + } + } +} + +group +{ + name: "calaos/icons/element/scenario"; + parts + { + part + { + name: "icon_off"; + description + { + state: "default" 0.0; + image { normal: "icon_scenario_small.png";} + rel1 { relative: 0.5 0.5; offset: -11 -7; } + rel2 { relative: 0.5 0.5; offset: 10 8; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 127; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + } + } + + part + { + name: "icon_on"; + description + { + state: "default" 0.0; + image { normal: "icon_scenario_040.png"; } + rel1 { relative: 0.5 0.5; offset: -11 -7; } + rel2 { relative: 0.5 0.5; offset: 10 8; } + color: 255 255 255 0; + visible: 0; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + image { normal: "icon_scenario_040.png";} + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + visible: 1; + image + { + normal: "icon_scenario_040.png"; + tween: "icon_scenario_001.png"; + tween: "icon_scenario_002.png"; + tween: "icon_scenario_003.png"; + tween: "icon_scenario_004.png"; + tween: "icon_scenario_005.png"; + tween: "icon_scenario_006.png"; + tween: "icon_scenario_007.png"; + tween: "icon_scenario_008.png"; + tween: "icon_scenario_009.png"; + tween: "icon_scenario_010.png"; + tween: "icon_scenario_011.png"; + tween: "icon_scenario_012.png"; + tween: "icon_scenario_013.png"; + tween: "icon_scenario_014.png"; + tween: "icon_scenario_015.png"; + tween: "icon_scenario_016.png"; + tween: "icon_scenario_017.png"; + tween: "icon_scenario_018.png"; + tween: "icon_scenario_019.png"; + tween: "icon_scenario_020.png"; + tween: "icon_scenario_021.png"; + tween: "icon_scenario_022.png"; + tween: "icon_scenario_023.png"; + tween: "icon_scenario_024.png"; + tween: "icon_scenario_025.png"; + tween: "icon_scenario_026.png"; + tween: "icon_scenario_027.png"; + tween: "icon_scenario_028.png"; + tween: "icon_scenario_029.png"; + tween: "icon_scenario_030.png"; + tween: "icon_scenario_031.png"; + tween: "icon_scenario_032.png"; + tween: "icon_scenario_033.png"; + tween: "icon_scenario_034.png"; + tween: "icon_scenario_035.png"; + tween: "icon_scenario_036.png"; + tween: "icon_scenario_037.png"; + tween: "icon_scenario_038.png"; + tween: "icon_scenario_039.png"; + tween: "icon_scenario_040.png"; + } + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + } + } + } + + programs + { + program + { + name: "onshow"; + signal: "show"; + after: "show_off_anim"; + } + + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "anim" 0.0; + transition: LINEAR 0.5; + target: "icon_on"; + target: "icon_off"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "on" 0.0; + target: "icon_on"; + target: "icon_off"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "off" 0.0; + transition: LINEAR 0.5; + target: "icon_on"; + target: "icon_off"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "off" 0.0; + target: "icon_on"; + target: "icon_off"; + } + } +} + + +group +{ + name: "calaos/icons/element/volet"; + parts + { + part + { + name: "volet_up"; + description + { + state: "default" 0.0; + image { normal: "icon_shutter.png";} + rel1 { relative: 0.5 0.5; offset: -11 -8;} + rel2 { relative: 0.5 0.5; offset: 10 7;} + visible: 0; + color: 255 255 255 0; + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 127; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + } + } + + part + { + name: "volet_down"; + description + { + state: "default" 0.0; + image { normal: "icon_shutter_on.png";} + rel1 { relative: 0.5 0.5; offset: -11 -8;} + rel2 { relative: 0.5 0.5; offset: 10 7;} + visible: 0; + color: 255 255 255 0; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + image { normal: "icon_shutter_009.png";} + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + image + { + normal: "icon_shutter_009.png"; + tween: "icon_shutter_000.png"; + tween: "icon_shutter_001.png"; + tween: "icon_shutter_002.png"; + tween: "icon_shutter_003.png"; + tween: "icon_shutter_004.png"; + tween: "icon_shutter_005.png"; + tween: "icon_shutter_006.png"; + tween: "icon_shutter_007.png"; + tween: "icon_shutter_008.png"; + tween: "icon_shutter_009.png"; + } + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + } + } + } + + programs + { + program + { + name: "show_on_anim"; + signal: "on,anim"; + source: "calaos"; + action: STATE_SET "anim" 0.0; + transition: LINEAR 0.4; + target: "volet_down"; + target: "volet_up"; + } + + program + { + name: "show_on"; + signal: "on,normal"; + source: "calaos"; + action: STATE_SET "on" 0.0; + target: "volet_up"; + target: "volet_down"; + } + + program + { + name: "show_off_anim"; + signal: "off,anim"; + source: "calaos"; + action: STATE_SET "off" 0.0; + transition: LINEAR 0.4; + target: "volet_down"; + target: "volet_up"; + } + + program + { + name: "show_off"; + signal: "off,normal"; + source: "calaos"; + action: STATE_SET "off" 0.0; + target: "volet_down"; + target: "volet_up"; + } + } +} + diff --git a/data/themes/default/structure/images.edc b/data/themes/default/structure/images.edc new file mode 100644 index 00000000..6ecb15c4 --- /dev/null +++ b/data/themes/default/structure/images.edc @@ -0,0 +1,713 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +images +{ + // Backgrounds Images + image: "menu_footer_background.png" COMP; + image: "menu_header_background.png" COMP; + image: "background_default.png" COMP; + image: "background_center.png" COMP; + image: "background_bottom.png" COMP; + image: "background_top.png" COMP; + image: "background_quad.png" COMP; + image: "menu_header_background_version.png" COMP; + image: "menu_footer_background_left.png" COMP; + image: "menu_footer_background_right.png" COMP; + image: "module_header.png" COMP; + image: "module_footer.png" COMP; + image: "imageviewer_footer.png" COMP; + image: "footer_shadow.png" COMP; + image: "footer_kevlar.png" COMP; + image: "separator.png" COMP; + // End backgrounds Images + + // Buttons Images + image: "button_action_neon.png" COMP; + image: "button_action_reload.png" COMP; + image: "button_action_home.png" COMP; + image: "button_action_border.png" COMP; + image: "button_action_pattern.png" COMP; + image: "button_action_editor.png" COMP; + image: "button_action_editor_glow.png" COMP; + image: "button_previous.png" COMP; + image: "button_previous_glow.png" COMP; + image: "button_previous_off.png" COMP; + image: "button_browser.png" COMP; + image: "button_browser_glow.png" COMP; + image: "button_next.png" COMP; + image: "button_next_glow.png" COMP; + image: "button_next_off.png" COMP; + image: "button_scroll.png" COMP; + image: "button_scroll_glow.png" COMP; + image: "button_home.png" COMP; + image: "button_home_glow.png" COMP; + image: "button_home_bloom.png" COMP; + image: "button_home_stop.png" COMP; + image: "button_home_stop_on.png" COMP; + image: "button_media.png" COMP; + image: "button_media_glow.png" COMP; + image: "button_media_stop.png" COMP; + image: "button_media_stop_on.png" COMP; + image: "button_media_bloom.png" COMP; + image: "button_round_stop.png" COMP; + image: "button_scenarios.png" COMP; + image: "button_scenarios_glow.png" COMP; + image: "button_scenarios_stop.png" COMP; + image: "button_scenarios_stop_on.png" COMP; + image: "button_scenarios_bloom.png" COMP; + image: "button_configuration.png" COMP; + image: "button_configuration_glow.png" COMP; + image: "button_configuration_stop.png" COMP; + image: "button_configuration_stop_on.png" COMP; + image: "button_configuration_bloom.png" COMP; + image: "button_selected_neon.png" COMP; + image: "button_glow_up.png" COMP; + image: "button_glow_down.png" COMP; + image: "button_feature_small.png" COMP; + image: "button_action_small.png" COMP; + image: "button_action_small_glow.png" COMP; + image: "button_action_big.png" COMP; + image: "button_feature_big.png" COMP; + image: "button_action_big_glow.png" COMP; + image: "button_action_glow.png" COMP; + image: "button_action_glow_small.png" COMP; + image: "button_action_warming_up.png" COMP; + image: "button_action_warming_up_glow.png" COMP; + image: "button_action_warming_down.png" COMP; + image: "button_element.png" COMP; + image: "button_element_cut.png" COMP; + image: "button_element_bevel.png" COMP; + image: "button_element_open.png" COMP; + image: "button_element_glow.png" COMP; + image: "button_element_cut_glow.png" COMP; + image: "button_action_scenario_play.png" COMP; + image: "button_action_scenario_play_glow.png" COMP; + image: "button_action_pager_next.png" COMP; + image: "button_action_pager_previous.png" COMP; + image: "button_action_on.png" COMP; + image: "button_action_light_on.png" COMP; + image: "button_action_on_glow.png" COMP; + image: "button_action_off.png" COMP; + image: "button_action_light_off.png" COMP; + image: "button_list_up.png" COMP; + image: "button_list_up_glow.png" COMP; + image: "button_list_down.png" COMP; + image: "button_list_down_glow.png" COMP; + image: "button_action_less.png" COMP; + image: "button_action_more.png" COMP; + image: "button_action_up.png" COMP; + image: "button_action_down.png" COMP; + image: "button_action_toggle.png" COMP; + image: "button_action_stop.png" COMP; + image: "button_action_impulse.png" COMP; + image: "button_action_impulse_glow.png" COMP; + image: "button_action_fullscreen.png" COMP; + image: "button_action_fullscreen_glow.png" COMP; + image: "button_action_downer.png" COMP; + image: "button_action_upper.png" COMP; + image: "button_action_right.png" COMP; + image: "button_action_left.png" COMP; + image: "button_action_delete.png" COMP; + image: "button_action_edit.png" COMP; + image: "button_action_labeled.png" COMP; + image: "button_action_labeled_small.png" COMP; + image: "button_action_labeled_glow.png" COMP; + image: "button_rot_left.png" COMP; + image: "button_rot_left_glow.png" COMP; + image: "button_rot_right.png" COMP; + image: "button_rot_right_glow.png" COMP; + image: "button_rot_up.png" COMP; + image: "button_rot_up_glow.png" COMP; + image: "button_rot_centre.png" COMP; + image: "button_rot_centre_glow.png" COMP; + image: "button_rot_zoomin.png" COMP; + image: "button_rot_zoomin_glow.png" COMP; + image: "button_rot_zoomout.png" COMP; + image: "button_rot_zoomout_glow.png" COMP; + image: "button_rot_down.png" COMP; + image: "button_rot_down_glow.png" COMP; + image: "button_action_rolll_down.png" COMP; + image: "button_action_rolll_up.png" COMP; + image: "button_slider_more.png" COMP; + image: "button_slider_less.png" COMP; + image: "button_action_play.png" COMP; + image: "button_action_stop.png" COMP; + image: "button_action_next.png" COMP; + image: "button_action_previous.png" COMP; + image: "button_action_pause.png" COMP; + image: "button_action_vertical_glow.png" COMP; + image: "button_action_more_vertical.png" COMP; + image: "button_action_less_vertical.png" COMP; + image: "button_action_back.png" COMP; + image: "button_action_select_selected.png" COMP; + image: "button_action_select_unselected.png" COMP; + image: "button_up.png" COMP; + image: "button_down.png" COMP; + image: "button_action_sync.png" COMP; + image: "button_action_impulse_up.png" COMP; + image: "button_action_impulse_down.png" COMP; + image: "button_info.png" COMP; + image: "button_info_glow.png" COMP; + image: "button_action_popup_valid.png" COMP; + image: "button_action_popup_back.png" COMP; + image: "button_action_popup_back_glow.png" COMP; + // End buttons Images + + // Buttons actions module + image: "button_action_quit.png" COMP; + image: "button_action_del.png" COMP; + image: "button_action_clavier.png" COMP; + image: "button_action_clavier2.png" COMP; + image: "button_action_plus.png" COMP; + image: "button_action_valid.png" COMP; + image: "button_action_actionstop.png" COMP; + image: "button_action_reboot.png" COMP; + image: "button_action_quit_off.png" COMP; + image: "button_action_del_off.png" COMP; + image: "button_action_clavier_off.png" COMP; + image: "button_action_plus_off.png" COMP; + image: "button_action_valid_off.png" COMP; + image: "button_action_actionstop_off.png" COMP; + image: "button_action_reboot_off.png" COMP; + // Ende actions buttons module + + // Logos Images + image: "menu_logo.png" COMP; + // End logos Images + + // Parts Images + image: "menu_glowed_neon.png" COMP; + image: "menu_footer_shadow.png" COMP; + image: "menu_buttons_shadow_right.png" COMP; + image: "menu_buttons_shadow_left.png" COMP; + image: "menu_header_shadow.png" COMP; + image: "glowed_556_line_final.png" COMP; + image: "module_header_shadow.png" COMP; + image: "module_footer_shadow.png" COMP; + image: "middle_skyline.png" COMP; + image: "middle_skyline_neon.png" COMP; + image: "top_skyline.png" COMP; + image: "top_skyline_neon.png" COMP; + image: "small_scroll_list_decoration.png" COMP; + image: "medium_scroll_list_decoration.png" COMP; + image: "small_list_decoration.png" COMP; + image: "small_list_decoration_left.png" COMP; + image: "medium_list_decoration_left.png" COMP; + image: "medium_list_decoration_right.png" COMP; + image: "medium_list_decoration_camera.png" COMP; + image: "standard_list_decoration.png" COMP; + image: "list_message_border.png" COMP; + image: "browser_list_decoration.png" COMP; + image: "scenario_list_decoration.png" COMP; + image: "slider_border.png" COMP; + image: "slider.png" COMP; + image: "slider_on.png" COMP; + image: "slider_border_vertical.png" COMP; + image: "slider_vertical.png" COMP; + image: "slider_vertical_on.png" COMP; + image: "slider_blue.png" COMP; + image: "slider_blue_on.png" COMP; + image: "slider_border_blue.png" COMP; + image: "slider_red.png" COMP; + image: "slider_red_on.png" COMP; + image: "slider_border_red.png" COMP; + image: "slider_green.png" COMP; + image: "slider_green_on.png" COMP; + image: "slider_border_green.png" COMP; + image: "rgb_preview.png" COMP; + image: "vertical_level_indicator.png" COMP; + image: "indicator_glow.png" COMP; + image: "shutter_arrows_deco.png" COMP; + image: "window_border.png" COMP; + image: "window_border2.png" COMP; + image: "window_shutter.png" COMP; + image: "display_border.png" COMP; + image: "display_border2.png" COMP; + // End Parts Images + + // Icons Images + image: "icon_scenario_big.png" COMP; + image: "icon_scenario_small.png" COMP; + image: "icon_room.png" COMP; + image: "icon_room_on.png" COMP; + image: "icon_camera.png" COMP; + image: "icon_camera_on.png" COMP; + image: "icon_light.png" COMP; + image: "icon_light_on.png" COMP; + image: "icon_light_off.png" COMP; + image: "icon_shutter.png" COMP; + image: "icon_shutter_on.png" COMP; + image: "icon_tor.png" COMP; + image: "icon_tor_on.png" COMP; + image: "icon_warming.png" COMP; + image: "icon_warming_up.png" COMP; + image: "icon_warming_down.png" COMP; + image: "icon_item_lock.png" COMP; + image: "icon_item_screensaver.png" COMP; + image: "icon_item_reboot.png" COMP; + image: "icon_item_widget.png" COMP; + image: "icon_bool.png" COMP; + image: "icon_bool_on.png" COMP; + image: "icon_note.png" COMP; + image: "icon_note_on.png" COMP; + image: "icon_sound.png" COMP; + image: "icon_playlist.png" COMP; + image: "icon_folder.png" COMP; + image: "icon_radio.png" COMP; + image: "icon_search.png" COMP; + image: "icon_trash.png" COMP; + image: "icon_edit.png" COMP; + image: "icon_play.png" COMP; + image: "icon_clock.png" COMP; + image: "icon_plus.png" COMP; + image: "icon_moins.png" COMP; + image: "icon_action.png" COMP; + image: "icon_groom.png" COMP; + image: "icon_disclosure.png" COMP; + + image: "icon_bool_scenario.png" COMP; + image: "icon_int.png" COMP; + image: "icon_string.png" COMP; + image: "icon_temp.png" COMP; + image: "icon_analog.png" COMP; + image: "icon_music.png" COMP; + image: "icon_camera_simple.png" COMP; + image: "icon_light_simple.png" COMP; + image: "icon_light_simple.png" COMP; + image: "icon_action_simple.png" COMP; + image: "icon_action_blue.png" COMP; + + image: "icon_play_simple.png" COMP; + image: "icon_stop_simple.png" COMP; + image: "icon_select_simple.png" COMP; + // End Icons Images + + // Home link menu + image: "menu_back.png" COMP; + image: "menu_item.png" COMP; + image: "menu_item_select.png" COMP; + // End Home link menu + + // Configuration icons + image: "icon_config_clock.png" COMP; + image: "icon_config_fw.png" COMP; + image: "icon_config_info.png" COMP; + image: "icon_config_l18n.png" COMP; + image: "icon_config_network.png" COMP; + image: "icon_config_security.png" COMP; + image: "icon_config_terminal.png" COMP; + image: "icon_config_veille.png" COMP; + image: "icon_config_widget.png" COMP; + image: "icon_widget_unknown.png" COMP; + // End Configuration icons + + //Keyboard parts + image: "keyboard_background.png" COMP; + image: "keyboard_agenda_background.png" COMP; + image: "glow.png" COMP; + image: "keyboard_multiline_background.png" COMP; + image: "keyboard_lines.png" COMP; + image: "button_keyboard.png" COMP; + image: "button_keyboard_select.png" COMP; + image: "keyboard_key_selected.png" COMP; + image: "keyboard_key_glow.png" COMP; + image: "button_key_del.png" COMP; + image: "button_key_return.png" COMP; + + //Dialog parts + image: "dialog_background.png" COMP; + image: "dialog_lines.png" COMP; + image: "dialog_neon.png" COMP; + + //scenario - wizzard + image: "wizzard_header.png" COMP; + image: "wizzard_1.png" COMP; + image: "wizzard_2.png" COMP; + image: "wizzard_3.png" COMP; + image: "wizzard_4.png" COMP; + image: "wizzard_bg_selected.png" COMP; + image: "wizzard_line_selected.png" COMP; + image: "scenario_separator.png" COMP; + image: "icon_myhome.png" COMP; + + //download manager + image: "download_arrow.png" COMP; + image: "download_disk.png" COMP; + image: "download_fond.png" COMP; + image: "download_shadow.png" COMP; + + //progressbar + image: "progressbar_background.png" COMP; + image: "progressbar_niveau.png" COMP; + image: "progressbar_ligne.png" COMP; + + //flickr + image: "shadow_photo.png" COMP; + + //Mouse cursor + image: "cursor.png" COMP; + + //Rooms + image: "big_room_bg.png" COMP; + image: "normal_room_bg.png" COMP; + image: "small_room_bg.png" COMP; + image: "elements.png" COMP; + // End temp adjust pattern + + // Room generic Images + image: "big_room_wire.png" COMP; + image: "big_room_shadow.png" COMP; + image: "big_room_glow.png" COMP; + image: "medium_room_glow.png" COMP; + image: "medium_room_neon.png" COMP; + image: "medium_room_touched.png" COMP; + image: "medium_room_shadow.png" COMP; + image: "small_room_shadow.png" COMP; + // End Room generic Images + + // Room Images + image: "lounge_big.png" COMP; + image: "lounge_medium.png" COMP; + image: "lounge_medium_bloom.png" COMP; + image: "lounge_small.png" COMP; + + // Bedroom room Images + image: "bedroom_big.png" COMP; + image: "bedroom_medium.png" COMP; + image: "bedroom_medium_bloom.png" COMP; + image: "bedroom_small.png" COMP; + + // kitchen room Images + image: "kitchen_big.png" COMP; + image: "kitchen_medium.png" COMP; + image: "kitchen_medium_bloom.png" COMP; + image: "kitchen_small.png" COMP; + + // 0ffice room Images + image: "office_big.png" COMP; + image: "office_medium.png" COMP; + image: "office_medium_bloom.png" COMP; + image: "office_small.png" COMP; + + // Diningroom room Images + image: "diningroom_big.png" COMP; + image: "diningroom_medium.png" COMP; + image: "diningroom_medium_bloom.png" COMP; + image: "diningroom_small.png" COMP; + + // Cellar room Images + image: "cellar_big.png" COMP; + image: "cellar_medium.png" COMP; + image: "cellar_medium_bloom.png" COMP; + image: "cellar_small.png" COMP; + + // Various room Images + image: "various_big.png" COMP; + image: "various_medium.png" COMP; + image: "various_medium_bloom.png" COMP; + image: "various_small.png" COMP; + + // Garage room Images + image: "garage_big.png" COMP; + image: "garage_medium.png" COMP; + image: "garage_medium_bloom.png" COMP; + image: "garage_small.png" COMP; + + // Outside room Images + image: "outside_big.png" COMP; + image: "outside_medium.png" COMP; + image: "outside_medium_bloom.png" COMP; + image: "outside_small.png" COMP; + + // Bathroom room Images + image: "bathroom_big.png" COMP; + image: "bathroom_medium.png" COMP; + image: "bathroom_medium_bloom.png" COMP; + image: "bathroom_small.png" COMP; + + // Corridor room Images + image: "corridor_big.png" COMP; + image: "corridor_medium.png" COMP; + image: "corridor_medium_bloom.png" COMP; + image: "corridor_small.png" COMP; + + + // Room select image + image: "medium_room_touched_001.png" COMP; + image: "medium_room_touched_002.png" COMP; + image: "medium_room_touched_003.png" COMP; + // End Room select image + + // Round button + image: "round_button_001.png" COMP; + image: "round_button_002.png" COMP; + image: "round_button_003.png" COMP; + image: "round_button_004.png" COMP; + image: "round_button_005.png" COMP; + image: "round_button_006.png" COMP; + image: "round_button_007.png" COMP; + image: "round_button_008.png" COMP; + image: "round_button_009.png" COMP; + image: "round_button_010.png" COMP; + // End Round button + + // Light Icon images + image: "icon_light_001.png" COMP; + image: "icon_light_002.png" COMP; + image: "icon_light_003.png" COMP; + image: "icon_light_004.png" COMP; + image: "icon_light_005.png" COMP; + image: "icon_light_006.png" COMP; + image: "icon_light_007.png" COMP; + image: "icon_light_008.png" COMP; + image: "icon_light_009.png" COMP; + // End Light Icon images + + // Shutter Icon images + image: "icon_shutter_000.png" COMP; + image: "icon_shutter_001.png" COMP; + image: "icon_shutter_002.png" COMP; + image: "icon_shutter_003.png" COMP; + image: "icon_shutter_004.png" COMP; + image: "icon_shutter_005.png" COMP; + image: "icon_shutter_006.png" COMP; + image: "icon_shutter_007.png" COMP; + image: "icon_shutter_008.png" COMP; + image: "icon_shutter_009.png" COMP; + // End Shutter Icon images + + // Tor Icon images + image: "icon_tor_000.png" COMP; + image: "icon_tor_001.png" COMP; + image: "icon_tor_002.png" COMP; + image: "icon_tor_003.png" COMP; + image: "icon_tor_004.png" COMP; + image: "icon_tor_005.png" COMP; + image: "icon_tor_006.png" COMP; + image: "icon_tor_007.png" COMP; + image: "icon_tor_008.png" COMP; + // End Tor Icon images + + // Scenario Icon images + image: "icon_scenario_001.png" COMP; + image: "icon_scenario_002.png" COMP; + image: "icon_scenario_003.png" COMP; + image: "icon_scenario_004.png" COMP; + image: "icon_scenario_005.png" COMP; + image: "icon_scenario_006.png" COMP; + image: "icon_scenario_007.png" COMP; + image: "icon_scenario_008.png" COMP; + image: "icon_scenario_009.png" COMP; + image: "icon_scenario_010.png" COMP; + image: "icon_scenario_011.png" COMP; + image: "icon_scenario_012.png" COMP; + image: "icon_scenario_013.png" COMP; + image: "icon_scenario_014.png" COMP; + image: "icon_scenario_015.png" COMP; + image: "icon_scenario_016.png" COMP; + image: "icon_scenario_017.png" COMP; + image: "icon_scenario_018.png" COMP; + image: "icon_scenario_019.png" COMP; + image: "icon_scenario_020.png" COMP; + image: "icon_scenario_021.png" COMP; + image: "icon_scenario_022.png" COMP; + image: "icon_scenario_023.png" COMP; + image: "icon_scenario_024.png" COMP; + image: "icon_scenario_025.png" COMP; + image: "icon_scenario_026.png" COMP; + image: "icon_scenario_027.png" COMP; + image: "icon_scenario_028.png" COMP; + image: "icon_scenario_029.png" COMP; + image: "icon_scenario_030.png" COMP; + image: "icon_scenario_031.png" COMP; + image: "icon_scenario_032.png" COMP; + image: "icon_scenario_033.png" COMP; + image: "icon_scenario_034.png" COMP; + image: "icon_scenario_035.png" COMP; + image: "icon_scenario_036.png" COMP; + image: "icon_scenario_037.png" COMP; + image: "icon_scenario_038.png" COMP; + image: "icon_scenario_039.png" COMP; + image: "icon_scenario_040.png" COMP; + // End Scenario Icon images + + // Mini cooldown image + image: "mini_circular_000.png" COMP; + image: "mini_circular_001.png" COMP; + image: "mini_circular_002.png" COMP; + image: "mini_circular_003.png" COMP; + image: "mini_circular_004.png" COMP; + image: "mini_circular_005.png" COMP; + image: "mini_circular_006.png" COMP; + image: "mini_circular_007.png" COMP; + image: "mini_circular_008.png" COMP; + image: "mini_circular_009.png" COMP; + image: "mini_circular_010.png" COMP; + image: "mini_circular_011.png" COMP; + image: "mini_circular_012.png" COMP; + image: "mini_circular_013.png" COMP; + image: "mini_circular_014.png" COMP; + image: "mini_circular_015.png" COMP; + image: "mini_circular_016.png" COMP; + image: "mini_circular_017.png" COMP; + // End mini cooldown image + + // Micro cooldown image + image: "micro_circular_000.png" COMP; + image: "micro_circular_001.png" COMP; + image: "micro_circular_002.png" COMP; + image: "micro_circular_003.png" COMP; + image: "micro_circular_004.png" COMP; + image: "micro_circular_005.png" COMP; + image: "micro_circular_006.png" COMP; + image: "micro_circular_007.png" COMP; + image: "micro_circular_008.png" COMP; + image: "micro_circular_009.png" COMP; + image: "micro_circular_010.png" COMP; + image: "micro_circular_011.png" COMP; + image: "micro_circular_012.png" COMP; + image: "micro_circular_013.png" COMP; + image: "micro_circular_014.png" COMP; + image: "micro_circular_015.png" COMP; + image: "micro_circular_016.png" COMP; + image: "micro_circular_017.png" COMP; + // End micro cooldown image + + image: "selector_on.png" COMP; + image: "selector_off.png" COMP; + + // Image for config base + image: "controls_bg.png" COMP; + image: "controls_sep.png" COMP; + image: "calaos_about_logo.png" COMP; + + image: "config_item.png" COMP; + image: "config_item_select.png" COMP; + + //Popup + image: "popup_bg.png" COMP; + image: "popup_carbon.png" COMP; + image: "popup_arrow_up.png" COMP; + image: "popup_arrow_down.png" COMP; + image: "popup_arrow_left.png" COMP; + image: "popup_arrow_right.png" COMP; + + // Adjust patterns + image: "player.png" COMP; + image: "cover.png" COMP; + image: "elements_track.png" COMP; + // Adjust patterns + + // Camera images + image: "camera_border.png" COMP; + image: "camera_medium_border.png" COMP; + image: "camera_big_border.png" COMP; + image: "camera_reflect.png" COMP; + image: "icon_camera_title.png" COMP; + image: "camera_mire.png" COMP; + image: "camera_nocam.png" COMP; + // End Camera images + + // PLayers images + image: "player_shadow.png" COMP; + image: "player_small_shadow.png" COMP; + image: "player_glow.png" COMP; + image: "player_cover_back.png" COMP; + image: "player_cover_front.png" COMP; + image: "player_small_cover_back.png" COMP; + image: "player_small_cover_front.png" COMP; + image: "player_cd_shadow.png" COMP; + image: "player_line_decoration_cd.png" COMP; + image: "player_line_decoration_top.png" COMP; + image: "player_line_decoration_bottom.png" COMP; + image: "player_line_decoration_left.png" COMP; + image: "player_line_decoration_right.png" COMP; + image: "icon_player.png" COMP; + image: "icon_cd.png" COMP; + image: "icon_cd_glow.png" COMP; + image: "cover_loading_border.png" COMP; + image: "cover_border.png" COMP; + // End PLayers images + + //Menu media + image: "menu_media_item.png" COMP; + image: "menu_media_item_glow.png" COMP; + image: "menu_media_item_reflect.png" COMP; + image: "menu_media_item_separator.png" COMP; + image: "menu_media_item_shadow.png" COMP; + image: "menu_media_icon_camera_back.png" COMP; + image: "menu_media_icon_camera_red.png" COMP; + image: "menu_media_icon_cd_back.png" COMP; + image: "menu_media_icon_cd_01.png" COMP; + image: "menu_media_icon_cd_02.png" COMP; + image: "menu_media_icon_cd_03.png" COMP; + image: "menu_media_icon_cd_04.png" COMP; + image: "menu_media_icon_cd_05.png" COMP; + image: "menu_media_icon_cd_06.png" COMP; + image: "menu_media_icon_cd_07.png" COMP; + image: "menu_media_icon_cd_08.png" COMP; + image: "menu_media_icon_cd_09.png" COMP; + image: "icon_flickr.png" COMP; + image: "menu_media_icon_web_back.png" COMP; + image: "menu_media_icon_eskiss_back.png" COMP; + + image: "loading_bar.png" COMP; + + // Cd player animation + image: "cd_player_001.png" COMP; + image: "cd_player_002.png" COMP; + image: "cd_player_003.png" COMP; + image: "cd_player_004.png" COMP; + image: "cd_player_005.png" COMP; + image: "cd_player_006.png" COMP; + image: "cd_player_007.png" COMP; + image: "cd_player_008.png" COMP; + image: "cd_player_009.png" COMP; + // End cd player animation + + // Mini cd player animation + image: "mini_cd_player_001.png" COMP; + // End mini cd player animation + + image: "album_back.png" COMP; + image: "album_cover.png" COMP; + + //Calendar + image: "calendar_header.png" COMP; + image: "calendar_back.png" COMP; + image: "calendar_holiday.png" COMP; + image: "calendar_ring.png" COMP; + image: "calendar_select.png" COMP; + + //Load animation + image: "loading_bg.png" COMP; + image: "loading_top.png" COMP; + + //widgets + image: "button_widget_move_up.png" COMP; + image: "button_widget_move_up_big.png" COMP; + image: "button_widget_move_down.png" COMP; + image: "button_widget_move_down_big.png" COMP; + image: "button_widget_move_left.png" COMP; + image: "button_widget_move_left_big.png" COMP; + image: "button_widget_move_right.png" COMP; + image: "button_widget_move_right_big.png" COMP; + image: "button_widget_resize.png" COMP; + + image: "widget_back_edit.png" COMP; + image: "widget_container_back.png" COMP; + image: "widget_container_back_buttons.png" COMP; + + image: "button_widget_list_begin.png" COMP; + image: "button_widget_list_item.png" COMP; + image: "button_widget_list_end.png" COMP; + + image: "xmas_banner_left.png" COMP; + image: "xmas_banner_right.png" COMP; + image: "flake_large.png" COMP; + image: "flake_medium.png" COMP; + image: "flake_small.png" COMP; +} \ No newline at end of file diff --git a/data/themes/default/structure/keyboard_macros.edc b/data/themes/default/structure/keyboard_macros.edc new file mode 100644 index 00000000..ef969c46 --- /dev/null +++ b/data/themes/default/structure/keyboard_macros.edc @@ -0,0 +1,1444 @@ +#define KEY_ALPHA(key_min, key_maj, clipper, rel1_x, rel1_y, offset1_x, offset1_y, rel1_to, rel2_x, rel2_y, offset2_x, offset2_y, rel2_to) \ +part { \ + name: "key_"key_min; \ + clip_to: clipper; \ + mouse_events: 0; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y; } \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y; } \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_min"_back"; \ + clip_to: "key_"key_min; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard.png"; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + } \ +} \ +part { \ + name: "key_"key_min"_letter"; \ + clip_to: "key_"key_min; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + text { text: key_min; font: "CalaosContentBold"; size: 16; min: 0 0; align: 0.25 1.0;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + text.align: 0.25 0.25; \ + visible: 1; \ + color: 231 231 231 127; \ + } \ +} \ +part { \ + name: "key_"key_min"_letter_maj"; \ + clip_to: "key_"key_min; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + text { text: key_maj; font: "CalaosContentBold"; size: 16; min: 0 0; align: 1.0 0.25;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + text.align: 0.25 0.25; \ + visible: 1; \ + color: 231 231 231 127; \ + } \ +} \ +part { \ + name: "key_"key_min"_selected_glow"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "keyboard_key_glow.png"; } \ + rel1 { relative: 0.0 0.0; offset: -13 -76; } \ + rel2 { relative: 1.0 1.0; offset: 13 4; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "visible2" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +} \ +part { \ + name: "key_"key_min"_selected_back"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "keyboard_key_selected.png"; } \ + rel1 { relative: 0.0 0.0; offset: -13 -71; } \ + rel2 { relative: 1.0 1.0; offset: 13 9; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: -13 -76; } \ + rel2 { relative: 1.0 1.0; offset: 13 4; } \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_min"_valid_clip"; \ + type: RECT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state, "add" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + rel1 { relative: 0.4 0.0; offset: 0 -29; } \ + rel2 { relative: 0.4 0.0; offset: 45 0; } \ + rel1.to: KMODULE_TEXT; \ + rel2.to: KMODULE_TEXT; \ + } \ +} \ +part { \ + name: "key_"key_min"_valid_letter_min"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_min"_valid_clip"; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_min"_valid_clip"; \ + rel2.to: "key_"key_min"_valid_clip"; \ + text { text: key_min; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_min"_valid_letter_maj"; \ + clip_to: "key_"key_min; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_min"_valid_clip"; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_min"_valid_clip"; \ + rel2.to: "key_"key_min"_valid_clip"; \ + text { text: key_maj; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_min"_select_clip"; \ + type: RECT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state, "add" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + rel1 { relative: 0.4 1.0; offset: 0 0; } \ + rel2 { relative: 0.4 1.0; offset: 45 29; } \ + rel1.to: KMODULE_TEXT; \ + rel2.to: KMODULE_TEXT; \ + } \ +} \ +part { \ + name: "key_"key_min"_select_letter_min"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_min"_select_clip"; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + text { text: key_min; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_min"_select_letter_maj"; \ + clip_to: "key_"key_min; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_min"_select_clip"; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + text { text: key_maj; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_min"_mouse_mask"; \ + clip_to: "module_keyboard"; \ + pointer_mode: NOGRAB; \ + mouse_events: 1; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: -7 -7; } \ + rel2 { relative: 1.0 1.0; offset: 7 7; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 1; \ + color: 0 0 0 0; \ + } \ +} \ + \ +program { \ + name, "show_key_"key_min; \ + in: 0.2 0.0; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.4; \ + target, "key_"key_min; \ + target, "key_"key_min"_letter"; \ + target, "key_"key_min"_select_letter_min"; \ + target, "key_"key_min"_valid_letter_min"; \ +} \ +program { \ + name, "hide_key_"key_min; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.4; \ + target, "key_"key_min; \ + target, "key_"key_min"_letter"; \ + target, "key_"key_min"_select_letter_min"; \ + target, "key_"key_min"_valid_letter_min"; \ +} \ +program { \ + name, "show_upper_"key_min; \ + signal, "keyboard,upper"; \ + source, "calaos"; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.2; \ + target, "key_"key_min"_letter_maj"; \ + target, "key_"key_min"_select_letter_maj"; \ + target, "key_"key_min"_valid_letter_maj"; \ +} \ +program { \ + name, "show_upper2_"key_min; \ + signal, "keyboard,upper"; \ + source, "calaos"; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.2; \ + target, "key_"key_min"_letter"; \ + target, "key_"key_min"_select_letter_min"; \ + target, "key_"key_min"_valid_letter_min"; \ +} \ +program { \ + name, "show_lower_"key_min; \ + signal, "keyboard,lower"; \ + source, "calaos"; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.2; \ + target, "key_"key_min"_letter"; \ + target, "key_"key_min"_select_letter_min"; \ + target, "key_"key_min"_valid_letter_min"; \ +} \ +program { \ + name, "show_lower2_"key_min; \ + signal, "keyboard,lower"; \ + source, "calaos"; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.2; \ + target, "key_"key_min"_letter_maj"; \ + target, "key_"key_min"_select_letter_maj"; \ + target, "key_"key_min"_valid_letter_maj"; \ +} \ +program { \ + name, key_min"_mouse_down"; \ + signal, "mouse,down,1*"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + set_int(is_clicked, 1); \ + run_program(PROGRAM:"show_key_"key_min"_select"); \ + run_program(PROGRAM:"hide_key_"key_min"_normal"); \ + } \ +} \ +program { \ + name, key_min"_mouse_in"; \ + signal, "mouse,in"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"show_key_"key_min"_select"); \ + run_program(PROGRAM:"hide_key_"key_min"_normal"); \ + } \ + } \ +} \ +program { \ + name, key_min"_mouse_out"; \ + signal, "mouse,out"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"stop_"key_min"_glow_anim"); \ + run_program(PROGRAM:"hide_key_"key_min"_select"); \ + run_program(PROGRAM:"show_key_"key_min"_normal"); \ + } \ + } \ +} \ +program { \ + name, key_min"_mouse_up"; \ + signal, "mouse,up,1*"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"stop_"key_min"_glow_anim"); \ + run_program(PROGRAM:"hide_key_"key_min"_select"); \ + run_program(PROGRAM:"show_key_"key_min"_normal"); \ + run_program(PROGRAM:"add_"key_min); \ + set_int(is_clicked, 0); \ + emit("key,"key_min, "keyboard"); \ + } \ + } \ +} \ +program { \ + name, "show_key_"key_min"_select"; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.12; \ + target, "key_"key_min"_selected_back"; \ + target, "key_"key_min"_select_clip"; \ + after, "start_"key_min"_glow_anim1"; \ +} \ +program { \ + name, "hide_key_"key_min"_select"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_min"_selected_back"; \ + target, "key_"key_min"_select_clip"; \ + target, "key_"key_min"_selected_glow"; \ +} \ +program { \ + name, "show_key_"key_min"_normal"; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.12; \ + target, "key_"key_min; \ +} \ +program { \ + name, "hide_key_"key_min"_normal"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_min; \ +} \ +program { \ + name, "start_"key_min"_glow_anim1"; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_min"_selected_glow"; \ + after, "start_"key_min"_glow_anim2"; \ +} \ +program { \ + name, "start_"key_min"_glow_anim2"; \ + in: 0.8 0.0; \ + action, STATE_SET "visible2" 0.0; \ + transition, ACCELERATE 0.18; \ + target, "key_"key_min"_selected_glow"; \ + after, "start_"key_min"_glow_anim1"; \ +} \ +program { \ + name, "stop_"key_min"_glow_anim"; \ + action, ACTION_STOP; \ + target, "start_"key_min"_glow_anim1"; \ + target, "start_"key_min"_glow_anim2"; \ +} \ +program { \ + name, "add_"key_min; \ + action, STATE_SET "visible" 0.0; \ + target, "key_"key_min"_valid_clip"; \ + after, "add2_"key_min; \ +} \ +program { \ + name, "add2_"key_min; \ + action, STATE_SET "add" 0.0; \ + transition, ACCELERATE 0.18; \ + target, "key_"key_min"_valid_clip"; \ + after, "reset_add_"key_min; \ +} \ +program { \ + name, "reset_add_"key_min; \ + action, STATE_SET "default" 0.0; \ + target, "key_"key_min"_valid_clip"; \ +} + + +#define KEY_NORMAL(key_min, clipper, rel1_x, rel1_y, offset1_x, offset1_y, rel1_to, rel2_x, rel2_y, offset2_x, offset2_y, rel2_to) \ +part { \ + name: "key_"key_min; \ + clip_to: clipper; \ + mouse_events: 0; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y; } \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y; } \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_min"_back"; \ + clip_to: "key_"key_min; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard.png"; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + } \ +} \ +part { \ + name: "key_"key_min"_letter"; \ + clip_to: "key_"key_min; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + text { text: key_min; font: "CalaosContentBold"; size: 16; min: 0 0; align: 0.25 1.0;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + text.align: 0.25 0.25; \ + visible: 1; \ + color: 231 231 231 127; \ + } \ +} \ +part { \ + name: "key_"key_min"_selected_glow"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "keyboard_key_glow.png"; } \ + rel1 { relative: 0.0 0.0; offset: -13 -76; } \ + rel2 { relative: 1.0 1.0; offset: 13 4; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "visible2" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +} \ +part { \ + name: "key_"key_min"_selected_back"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "keyboard_key_selected.png"; } \ + rel1 { relative: 0.0 0.0; offset: -13 -71; } \ + rel2 { relative: 1.0 1.0; offset: 13 9; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: -13 -76; } \ + rel2 { relative: 1.0 1.0; offset: 13 4; } \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_min"_valid_clip"; \ + type: RECT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state, "add" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + rel1 { relative: 0.4 0.0; offset: 0 -29; } \ + rel2 { relative: 0.4 0.0; offset: 45 0; } \ + rel1.to: KMODULE_TEXT; \ + rel2.to: KMODULE_TEXT; \ + } \ +} \ +part { \ + name: "key_"key_min"_valid_letter_min"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_min"_valid_clip"; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_min"_valid_clip"; \ + rel2.to: "key_"key_min"_valid_clip"; \ + text { text: key_min; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_min"_select_clip"; \ + type: RECT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state, "add" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + rel1 { relative: 0.4 1.0; offset: 0 0; } \ + rel2 { relative: 0.4 1.0; offset: 45 29; } \ + rel1.to: KMODULE_TEXT; \ + rel2.to: KMODULE_TEXT; \ + } \ +} \ +part { \ + name: "key_"key_min"_select_letter_min"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_min"_select_clip"; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + text { text: key_min; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_min"_mouse_mask"; \ + clip_to: "module_keyboard"; \ + pointer_mode: NOGRAB; \ + mouse_events: 1; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: -7 -7; } \ + rel2 { relative: 1.0 1.0; offset: 7 7; } \ + rel1.to: "key_"key_min; \ + rel2.to: "key_"key_min; \ + visible: 1; \ + color: 0 0 0 0; \ + } \ +} \ + \ +program { \ + name, "show_key_"key_min; \ + in: 0.2 0.0; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.4; \ + target, "key_"key_min; \ + target, "key_"key_min"_letter"; \ + target, "key_"key_min"_select_letter_min"; \ + target, "key_"key_min"_valid_letter_min"; \ +} \ +program { \ + name, "hide_key_"key_min; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.4; \ + target, "key_"key_min; \ + target, "key_"key_min"_letter"; \ + target, "key_"key_min"_select_letter_min"; \ + target, "key_"key_min"_valid_letter_min"; \ +} \ +program { \ + name, key_min"_mouse_down"; \ + signal, "mouse,down,1*"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + set_int(is_clicked, 1); \ + run_program(PROGRAM:"show_key_"key_min"_select"); \ + run_program(PROGRAM:"hide_key_"key_min"_normal"); \ + } \ +} \ +program { \ + name, key_min"_mouse_in"; \ + signal, "mouse,in"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"show_key_"key_min"_select"); \ + run_program(PROGRAM:"hide_key_"key_min"_normal"); \ + } \ + } \ +} \ +program { \ + name, key_min"_mouse_out"; \ + signal, "mouse,out"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"stop_"key_min"_glow_anim"); \ + run_program(PROGRAM:"hide_key_"key_min"_select"); \ + run_program(PROGRAM:"show_key_"key_min"_normal"); \ + } \ + } \ +} \ +program { \ + name, key_min"_mouse_up"; \ + signal, "mouse,up,1*"; \ + source, "key_"key_min"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"stop_"key_min"_glow_anim"); \ + run_program(PROGRAM:"hide_key_"key_min"_select"); \ + run_program(PROGRAM:"show_key_"key_min"_normal"); \ + run_program(PROGRAM:"add_"key_min); \ + set_int(is_clicked, 0); \ + emit("key,"key_min, "keyboard"); \ + } \ + } \ +} \ +program { \ + name, "show_key_"key_min"_select"; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.12; \ + target, "key_"key_min"_selected_back"; \ + target, "key_"key_min"_select_clip"; \ + after, "start_"key_min"_glow_anim1"; \ +} \ +program { \ + name, "hide_key_"key_min"_select"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_min"_selected_back"; \ + target, "key_"key_min"_select_clip"; \ + target, "key_"key_min"_selected_glow"; \ +} \ +program { \ + name, "show_key_"key_min"_normal"; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.12; \ + target, "key_"key_min; \ +} \ +program { \ + name, "hide_key_"key_min"_normal"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_min; \ +} \ +program { \ + name, "start_"key_min"_glow_anim1"; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_min"_selected_glow"; \ + after, "start_"key_min"_glow_anim2"; \ +} \ +program { \ + name, "start_"key_min"_glow_anim2"; \ + in: 0.8 0.0; \ + action, STATE_SET "visible2" 0.0; \ + transition, ACCELERATE 0.18; \ + target, "key_"key_min"_selected_glow"; \ + after, "start_"key_min"_glow_anim1"; \ +} \ +program { \ + name, "stop_"key_min"_glow_anim"; \ + action, ACTION_STOP; \ + target, "start_"key_min"_glow_anim1"; \ + target, "start_"key_min"_glow_anim2"; \ +} \ +program { \ + name, "add_"key_min; \ + action, STATE_SET "visible" 0.0; \ + target, "key_"key_min"_valid_clip"; \ + after, "add2_"key_min; \ +} \ +program { \ + name, "add2_"key_min; \ + action, STATE_SET "add" 0.0; \ + transition, ACCELERATE 0.18; \ + target, "key_"key_min"_valid_clip"; \ + after, "reset_add_"key_min; \ +} \ +program { \ + name, "reset_add_"key_min; \ + action, STATE_SET "default" 0.0; \ + target, "key_"key_min"_valid_clip"; \ +} + + +//This macro is for some special characters only +#define KEY_NORMAL_SPECIAL(key_name, key_min, clipper, rel1_x, rel1_y, offset1_x, offset1_y, rel1_to, rel2_x, rel2_y, offset2_x, offset2_y, rel2_to) \ +part { \ + name: "key_"key_name; \ + clip_to: clipper; \ + mouse_events: 0; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y; } \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y; } \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_name"_back"; \ + clip_to: "key_"key_name; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard.png"; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + } \ +} \ +part { \ + name: "key_"key_name"_letter"; \ + clip_to: "key_"key_name; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + text { text: key_min; font: "CalaosContentBold"; size: 16; min: 0 0; align: 0.25 1.0;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + text.align: 0.25 0.25; \ + visible: 1; \ + color: 231 231 231 127; \ + } \ +} \ +part { \ + name: "key_"key_name"_selected_glow"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "keyboard_key_glow.png"; } \ + rel1 { relative: 0.0 0.0; offset: -13 -76; } \ + rel2 { relative: 1.0 1.0; offset: 13 4; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "visible2" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +} \ +part { \ + name: "key_"key_name"_selected_back"; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "keyboard_key_selected.png"; } \ + rel1 { relative: 0.0 0.0; offset: -13 -71; } \ + rel2 { relative: 1.0 1.0; offset: 13 9; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: -13 -76; } \ + rel2 { relative: 1.0 1.0; offset: 13 4; } \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_name"_valid_clip"; \ + type: RECT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state, "add" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + rel1 { relative: 0.4 0.0; offset: 0 -29; } \ + rel2 { relative: 0.4 0.0; offset: 45 0; } \ + rel1.to: KMODULE_TEXT; \ + rel2.to: KMODULE_TEXT; \ + } \ +} \ +part { \ + name: "key_"key_name"_valid_letter_min"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_name"_valid_clip"; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_name"_valid_clip"; \ + rel2.to: "key_"key_name"_valid_clip"; \ + text { text: key_min; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_name"_select_clip"; \ + type: RECT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state, "add" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 0 0 0 0; \ + rel1 { relative: 0.4 1.0; offset: 0 0; } \ + rel2 { relative: 0.4 1.0; offset: 45 29; } \ + rel1.to: KMODULE_TEXT; \ + rel2.to: KMODULE_TEXT; \ + } \ +} \ +part { \ + name: "key_"key_name"_select_letter_min"; \ + type: TEXT; \ + mouse_events: 0; \ + clip_to: "key_"key_name"_select_clip"; \ + description { \ + state, "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 -57; } \ + rel2 { relative: 1.0 0.0; offset: -1 -28; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + text { text: key_min; font: "CalaosContentBold"; size: 24; min: 0 0; align: 0.5 0.5;} \ + visible: 0; \ + color: 231 231 231 0; \ + } \ + description { \ + state, "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 231 231 231 230; \ + } \ +} \ +part { \ + name: "key_"key_name"_mouse_mask"; \ + clip_to: "module_keyboard"; \ + pointer_mode: NOGRAB; \ + mouse_events: 1; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: -7 -7; } \ + rel2 { relative: 1.0 1.0; offset: 7 7; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 1; \ + color: 0 0 0 0; \ + } \ +} \ + \ +program { \ + name, "show_key_"key_name; \ + in: 0.2 0.0; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.4; \ + target, "key_"key_name; \ + target, "key_"key_name"_letter"; \ + target, "key_"key_name"_select_letter_min"; \ + target, "key_"key_name"_valid_letter_min"; \ +} \ +program { \ + name, "hide_key_"key_name; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.4; \ + target, "key_"key_name; \ + target, "key_"key_name"_letter"; \ + target, "key_"key_name"_select_letter_min"; \ + target, "key_"key_name"_valid_letter_min"; \ +} \ +program { \ + name, key_name"_mouse_down"; \ + signal, "mouse,down,1*"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + set_int(is_clicked, 1); \ + run_program(PROGRAM:"show_key_"key_name"_select"); \ + run_program(PROGRAM:"hide_key_"key_name"_normal"); \ + } \ +} \ +program { \ + name, key_name"_mouse_in"; \ + signal, "mouse,in"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"show_key_"key_name"_select"); \ + run_program(PROGRAM:"hide_key_"key_name"_normal"); \ + } \ + } \ +} \ +program { \ + name, key_name"_mouse_out"; \ + signal, "mouse,out"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"stop_"key_name"_glow_anim"); \ + run_program(PROGRAM:"hide_key_"key_name"_select"); \ + run_program(PROGRAM:"show_key_"key_name"_normal"); \ + } \ + } \ +} \ +program { \ + name, key_name"_mouse_up"; \ + signal, "mouse,up,1*"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + run_program(PROGRAM:"stop_"key_name"_glow_anim"); \ + run_program(PROGRAM:"hide_key_"key_name"_select"); \ + run_program(PROGRAM:"show_key_"key_name"_normal"); \ + run_program(PROGRAM:"add_"key_name); \ + set_int(is_clicked, 0); \ + emit("key,"key_name, "keyboard"); \ + } \ + } \ +} \ +program { \ + name, "show_key_"key_name"_select"; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.12; \ + target, "key_"key_name"_selected_back"; \ + target, "key_"key_name"_select_clip"; \ + after, "start_"key_name"_glow_anim1"; \ +} \ +program { \ + name, "hide_key_"key_name"_select"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_name"_selected_back"; \ + target, "key_"key_name"_select_clip"; \ + target, "key_"key_name"_selected_glow"; \ +} \ +program { \ + name, "show_key_"key_name"_normal"; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.12; \ + target, "key_"key_name; \ +} \ +program { \ + name, "hide_key_"key_name"_normal"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_name; \ +} \ +program { \ + name, "start_"key_name"_glow_anim1"; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.35; \ + target, "key_"key_name"_selected_glow"; \ + after, "start_"key_name"_glow_anim2"; \ +} \ +program { \ + name, "start_"key_name"_glow_anim2"; \ + in: 0.8 0.0; \ + action, STATE_SET "visible2" 0.0; \ + transition, ACCELERATE 0.18; \ + target, "key_"key_name"_selected_glow"; \ + after, "start_"key_name"_glow_anim1"; \ +} \ +program { \ + name, "stop_"key_name"_glow_anim"; \ + action, ACTION_STOP; \ + target, "start_"key_name"_glow_anim1"; \ + target, "start_"key_name"_glow_anim2"; \ +} \ +program { \ + name, "add_"key_name; \ + action, STATE_SET "visible" 0.0; \ + target, "key_"key_name"_valid_clip"; \ + after, "add2_"key_name; \ +} \ +program { \ + name, "add2_"key_name; \ + action, STATE_SET "add" 0.0; \ + transition, ACCELERATE 0.18; \ + target, "key_"key_name"_valid_clip"; \ + after, "reset_add_"key_name; \ +} \ +program { \ + name, "reset_add_"key_name; \ + action, STATE_SET "default" 0.0; \ + target, "key_"key_name"_valid_clip"; \ +} + + +#define KEY_SPECIAL_TOGGLE(key_name, key_text, clipper, rel1_x, rel1_y, offset1_x, offset1_y, rel1_to, rel2_x, rel2_y, offset2_x, offset2_y, rel2_to) \ +part { \ + name: "key_"key_name; \ + clip_to: clipper; \ + mouse_events: 0; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y; } \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y; } \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_name"_back"; \ + clip_to: "key_"key_name; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard.png"; border: 9 9 9 9; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + } \ +} \ +part { \ + name: "key_"key_name"_select"; \ + clip_to: "key_"key_name; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard_select.png"; border: 9 9 9 9; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_name"_text"; \ + clip_to: "key_"key_name; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + text { text: key_text; font: "CalaosContentBold"; size: 16; min: 0 0; align: 0.25 0.25;} \ + visible: 1; \ + color: 231 231 231 127; \ + } \ +} \ +part { \ + name: "key_"key_name"_mouse_mask"; \ + clip_to: "module_keyboard"; \ + pointer_mode: NOGRAB; \ + mouse_events: 1; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 1; \ + color: 0 0 0 0; \ + } \ +} \ + \ +program { \ + name, "show_key_"key_name; \ + in: 0.2 0.0; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.4; \ + target, "key_"key_name; \ +} \ +program { \ + name, "hide_key_"key_name; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.4; \ + target, "key_"key_name; \ +} \ +program { \ + name, key_name"_mouse_down"; \ + signal, "mouse,down,1*"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + set_int(is_clicked, 1); \ + } \ +} \ +program { \ + name, key_name"_mouse_up"; \ + signal, "mouse,up,1*"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + set_int(is_clicked, 0); \ + emit("key,"key_name, "keyboard"); \ + } \ + } \ +} + + + +#define KEY_SPECIAL(key_name, key_text, clipper, rel1_x, rel1_y, offset1_x, offset1_y, rel1_to, rel2_x, rel2_y, offset2_x, offset2_y, rel2_to) \ +part { \ + name: "key_"key_name; \ + clip_to: clipper; \ + mouse_events: 0; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y; } \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y; } \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + visible: 0; \ + color: 0 0 0 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_name"_back"; \ + clip_to: "key_"key_name; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard.png"; border: 9 9 9 9; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + } \ +} \ +part { \ + name: "key_"key_name"_select"; \ + clip_to: "key_"key_name; \ + mouse_events: 0; \ + description { \ + state: "default" 0.0; \ + image { normal: "button_keyboard_select.png"; border: 9 9 9 9; } \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "key_"key_name"_text"; \ + clip_to: "key_"key_name; \ + type: TEXT; \ + mouse_events: 0; \ + description { \ + state, "default" 0.0; \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + text { text: key_text; font: "CalaosContentBold"; size: 16; min: 0 0; align: 0.25 0.25;} \ + visible: 1; \ + color: 231 231 231 127; \ + } \ +} \ +part { \ + name: "key_"key_name"_mouse_mask"; \ + clip_to: "module_keyboard"; \ + pointer_mode: NOGRAB; \ + mouse_events: 1; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + rel1.to: "key_"key_name; \ + rel2.to: "key_"key_name; \ + visible: 1; \ + color: 0 0 0 0; \ + } \ +} \ + \ +program { \ + name, "show_key_"key_name; \ + in: 0.2 0.0; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "visible" 0.0; \ + transition, DECELERATE 0.4; \ + target, "key_"key_name; \ +} \ +program { \ + name, key_name"_mouse_down"; \ + signal, "mouse,down,1*"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + set_int(is_clicked, 1); \ + run_program(PROGRAM:"click_"key_name); \ + } \ +} \ +program { \ + name, key_name"_mouse_up"; \ + signal, "mouse,up,1*"; \ + source, "key_"key_name"_mouse_mask"; \ + script { \ + if (get_int(is_clicked) == 1) \ + { \ + set_int(is_clicked, 0); \ + emit("key,"key_name, "keyboard"); \ + run_program(PROGRAM:"click_release_"key_name); \ + } \ + } \ +} \ +program { \ + name, "click_"key_name; \ + action, STATE_SET "visible" 0.0; \ + transition, ACCELERATE 0.07; \ + target, "key_"key_name"_select"; \ +} \ +program { \ + name, "click_release_"key_name; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.4; \ + target, "key_"key_name"_select"; \ +} + diff --git a/data/themes/default/structure/macro_menu_button.edc b/data/themes/default/structure/macro_menu_button.edc new file mode 100644 index 00000000..e7cf8b86 --- /dev/null +++ b/data/themes/default/structure/macro_menu_button.edc @@ -0,0 +1,377 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define MENU_BUTTON(id, label, rel1_x, rel1_y, offset1_x, offset1_y, rel2_x, rel2_y, offset2_x, offset2_y) \ +part \ +{ \ + name: "menu_buttons_"id; \ + clip_to: "menu_footer"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: "menu_footer"; \ + rel2.to: "menu_footer"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_default"; \ + clip_to: "menu_buttons_"id; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: "button_"id".png"; } \ + rel1.to: "menu_buttons_"id; \ + rel2.to: "menu_buttons_"id; \ + color: 255 255 255 255; \ + } \ + description \ + { \ + state: "inactive" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 100; \ + } \ + description \ + { \ + state: "off" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 0; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_stop_image"; \ + clip_to: "menu_footer"; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: "button_"id"_stop.png"; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: "menu_footer"; \ + rel2.to: "menu_footer"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +}\ +\ +part \ +{ \ + name: "menu_buttons_"id"_stop_image_on"; \ + clip_to: "menu_footer"; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "button_"id"_stop_on.png"; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: "menu_footer"; \ + rel2.to: "menu_footer"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +}\ +\ +part \ +{ \ + name: "menu_buttons_"id"_glow"; \ + clip_to: "menu_buttons_"id; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "button_"id"_glow.png"; } \ + rel1.to: "menu_buttons_"id; \ + rel2.to: "menu_buttons_"id; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_bloom"; \ + clip_to: "menu_buttons_"id; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "button_"id"_bloom.png"; } \ + rel1.to: "menu_buttons_"id; \ + rel2.to: "menu_buttons_"id; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_label"; \ + clip_to: "menu_buttons_"id; \ + type: TEXT; \ + description \ + { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.51 0.78;} \ + rel2 { relative: 0.51 0.78;} \ + rel1.to: "menu_buttons_"id; \ + rel2.to: "menu_buttons_"id; \ + color: 231 231 231 255; \ + text { text: label; font: "CalaosContent"; size: 15; min: 1 1; } \ + } \ + description \ + { \ + state, "active" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 100; \ + } \ + description \ + { \ + state, "inactive" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 100; \ + } \ + description \ + { \ + state, "off" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 100; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_neon"; \ + clip_to: "menu_footer"; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "button_selected_neon.png"; } \ + rel1 { relative: rel1_x 0.09; offset: -98 0;} \ + rel2 { relative: rel1_x 0.09; offset: 97 5;} \ + rel1.to_x: "menu_buttons_"id; \ + rel2.to_x: "menu_buttons_"id; \ + rel1.to_y: "menu_footer"; \ + rel2.to_y: "menu_footer"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description \ + { \ + state: "translucient" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 60; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_click_area"; \ + clip_to: "menu_footer"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: "menu_footer"; \ + rel2.to: "menu_footer"; \ + color: 255 255 255 0; \ + } \ +} \ +\ +part \ +{ \ + name: "menu_buttons_"id"_stop_area"; \ + clip_to: "menu_footer"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: "menu_footer"; \ + rel2.to: "menu_footer"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 0; \ + } \ +} +// End menu button object + +// Define menu button program +#define MENU_BUTTON_PROG(id, sig) \ +program \ +{ \ + name: "set_buttons_"id"_active"; \ + signal: "mouse,down,1"; \ + source: "menu_buttons_"id"_click_area"; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.5; \ + target: "menu_buttons_"id"_glow"; \ + target: "menu_buttons_"id"_neon"; \ + target: "menu_neon_glowed"; \ + after: "menu_buttons_"id"_neon_animation_out"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_bloom_in"; \ + signal: "mouse,down,1"; \ + source: "menu_buttons_"id"_click_area"; \ + action: STATE_SET "active" 0.0; \ + transition: ACCELERATE 0.22; \ + target: "menu_buttons_"id"_bloom"; \ + after: "set_buttons_"id"_bloom_out"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_bloom_out"; \ + signal: "mouse,down,1"; \ + source: "menu_buttons_"id"_click_area"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.8; \ + target: "menu_buttons_"id"_bloom"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_text_in"; \ + signal: "mouse,down,1"; \ + source: "menu_buttons_"id"_click_area"; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.6; \ + target: "menu_buttons_"id"_label"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_inactive"; \ + action: STATE_SET "inactive" 0.0; \ + transition: ACCELERATE 0.3; \ + target: "menu_buttons_"id"_default"; \ + target: "menu_buttons_"id"_label"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_off"; \ + action: STATE_SET "off" 0.0; \ + transition: ACCELERATE 0.3; \ + target: "menu_buttons_"id"_default"; \ + target: "menu_buttons_"id"_label"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_stop_over"; \ + signal: "mouse,down,1"; \ + source: "menu_buttons_"id"_stop_area"; \ + action: STATE_SET "active" 0.0; \ + transition: ACCELERATE 0.00001; \ + target: "menu_buttons_"id"_stop_image_on"; \ + after: "set_buttons_"id"_stop_out"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_stop_out"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 3.0; \ + target: "menu_buttons_"id"_stop_image_on"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_stop_on"; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.5; \ + target: "menu_buttons_"id"_stop_image"; \ +} \ +\ +program \ +{ \ + name: "set_buttons_"id"_stop_off"; \ + action: STATE_SET "default" 0.0; \ + transition: ACCELERATE 0.3; \ + target: "menu_buttons_"id"_stop_image"; \ +} \ +\ +program \ +{ \ + name: "menu_buttons_"id"_neon_animation_out"; \ + action: STATE_SET "translucient" 0.0; \ + transition: ACCELERATE 1.7; \ + target: "menu_buttons_"id"_neon"; \ + after: "menu_buttons_"id"_neon_animation_in"; \ +} \ +\ +program \ +{ \ + name: "menu_buttons_"id"_neon_animation_in"; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 2.5; \ + target: "menu_buttons_"id"_neon"; \ + after: "menu_buttons_"id"_neon_animation_out"; \ +} +// End menu button program \ No newline at end of file diff --git a/data/themes/default/structure/macro_round_button.edc b/data/themes/default/structure/macro_round_button.edc new file mode 100644 index 00000000..7e92282b --- /dev/null +++ b/data/themes/default/structure/macro_round_button.edc @@ -0,0 +1,249 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define ROUND_BUTTON(id, clipper, rel1_to, rel2_to, img, img_glow, img_off, send_sig, send_src, rec_sig, rel1_x, rel1_y, offset1_x, offset1_y, rel2_x, rel2_y, offset2_x, offset2_y) \ +part { \ + name: id"_animation"; \ + clip_to: clipper; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "round_button_001.png"; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 255; \ + image { \ + normal: "round_button_010.png"; \ + tween: "round_button_001.png"; \ + tween: "round_button_002.png"; \ + tween: "round_button_003.png"; \ + tween: "round_button_004.png"; \ + tween: "round_button_005.png"; \ + tween: "round_button_006.png"; \ + tween: "round_button_007.png"; \ + tween: "round_button_008.png"; \ + tween: "round_button_009.png"; \ + tween: "round_button_010.png"; \ + } \ + } \ +} \ +\ +part { \ + name: id; \ + clip_to: clipper; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: img; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "inactive" 0.0; \ + inherit: "active" 0.0; \ + visible: 1; \ + image { normal: img; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + color: 255 255 255 0; \ + } \ +} \ +\ +part { \ + name: id"_glow"; \ + clip_to: clipper; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: img_glow; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +}\ +part { \ + name: id"_off"; \ + clip_to: clipper; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: img_off; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "inactive" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ +}\ +\ +part { \ + name: id"_stop"; \ + clip_to: clipper; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: "button_round_stop.png"; } \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 180; \ + } \ +}\ +\ +part { \ + name: "selection_area_"id; \ + clip_to: clipper; \ + type: RECT; \ + description { \ + state: "active" 0.0; \ + visible: 0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y;} \ + rel1.to: rel1_to; \ + rel2.to: rel2_to; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "inactive" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 0; \ + } \ +}\ +\ +program { \ + name: "init_"id; \ + signal: "show,"rec_sig; \ + source: ""; \ + action: STATE_SET "active" 0.0; \ + transition: LINEAR 0.25; \ + target: id"_animation"; \ + after: "init_"id"_show"; \ +} \ +\ +program { \ + name: "init_"id"_show"; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.2; \ + target: id; \ +} \ +\ +program { \ + name: "set_touched_"id; \ + signal: "mouse,down,1"; \ + source: id"*"; \ + action: STATE_SET "touched" 0.0; \ + transition: ACCELERATE 0.00001; \ + target: id"_glow"; \ + after: "set_untouched_"id; \ +} \ +\ +program { \ + name: "set_touched_"id"_stop"; \ + signal: "mouse,down,1"; \ + source: "selection_area_"id; \ + action: STATE_SET "touched" 0.0; \ + transition: ACCELERATE 0.00001; \ + target: id"_stop"; \ + after: "set_untouched_"id"_stop"; \ +} \ +\ +program { \ + name: "send_"id"_signal"; \ + signal: "mouse,down,1"; \ + source: id"*"; \ + action: SIGNAL_EMIT send_sig send_src; \ +} \ +\ +program { \ + name: "set_untouched_"id; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.5; \ + target: id"_glow"; \ +} \ +\ +program { \ + name: "set_untouched_"id"_stop"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 3.0; \ + target: id"_stop"; \ +} \ +\ +program { \ + name: "set_"id"_active"; \ + in: 0.25 0.0;\ + signal: "enable,"rec_sig; \ + source: "calaos"; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.2; \ + target: id; \ + target: id"_off"; \ + target: "selection_area_"id; \ +}\ +\ +program { \ + name: "set_"id"_inactive"; \ + in: 0.25 0.0;\ + signal: "disable,"rec_sig; \ + source: "calaos"; \ + action: STATE_SET "inactive" 0.0; \ + transition: ACCELERATE 0.2; \ + target: id; \ + target: id"_off"; \ + target: "selection_area_"id; \ +} diff --git a/data/themes/default/structure/main_layout.edc b/data/themes/default/structure/main_layout.edc new file mode 100644 index 00000000..f66b7b1f --- /dev/null +++ b/data/themes/default/structure/main_layout.edc @@ -0,0 +1,187 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/main/layout"; + min: 300 300; + + parts + { + part + { + name: "bg_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + + part + { + name: "bg_rect_color"; + type: RECT; + clip_to: "bg_clip"; + description + { + state: "default" 0.0; + color: 39 39 39 255; + } + } + + part + { + name: "bg_rect_black"; + type: RECT; + clip_to: "bg_clip"; + description + { + state: "default" 0.0; + color: 0 0 0 102; + } + } + + part + { + name: "bg_center"; + clip_to: "bg_clip"; + description + { + state: "default" 0.0; + color: 255 255 255 76; + image.normal: "background_center.png"; + image.border: 510 512 2 0;//327 326;//364 288; + rel1 { relative: 0.0 0.0; offset: 0 0; }; + rel2 { relative: 1.0 1.0; offset: -1 -98; }; + } + } + + part + { + name: "bg_bottom"; + clip_to: "bg_clip"; + description + { + state: "default" 0.0; + color: 255 255 255 127; + image.normal: "background_bottom.png"; + image.border: 510 512 364 288; + rel1 { relative: 0.0 0.0; offset: 0 0; }; + rel2 { relative: 1.0 1.0; offset: -1 -98; }; + } + } + + part + { + name: "bg_top"; + clip_to: "bg_clip"; + description + { + state: "default" 0.0; + color: 255 255 255 76; + image.normal: "background_top.png"; + image.border: 510 512 364 288; + rel1 { relative: 0.0 0.0; offset: 0 0; }; + rel2 { relative: 1.0 1.0; offset: -1 -98; }; + } + } + + part + { + name: "bg_quad"; + clip_to: "bg_clip"; + description + { + state: "default" 0.0; + color: 255 255 255 255; + image.normal: "background_quad.png"; + rel1 { relative: 0.0 0.0; offset: 0 0; }; + rel2 { relative: 1.0 1.0; offset: -1 -98; }; + fill { smooth: 1; size { relative: 0.0 0.0; offset: 144 152;} } + } + } + + part + { + name: "calaos.main.content"; + clip_to: "bg_clip"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 22; }; + rel2 { relative: 1.0 1.0; offset: -1 -98; }; + } + description + { + state: "hidden" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 22; }; + rel2 { relative: 1.0 1.0; offset: -1 -1; }; + } + } + + part + { + name: "calaos.main.menu"; + clip_to: "bg_clip"; + type: SWALLOW; + description + { + state: "default" 0.0; + visible: 1; + } + } + + } + + programs + { + program + { + name: "init"; + signal: "show"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 1.0; + target: "bg_clip"; + } + + program + { + name: "uninit"; + signal: "hide"; + action: STATE_SET "default" 0.0; + target: "bg_clip"; + } + + program + { + name: "show_menu"; + signal: "show,menu"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.3; + target: "calaos.main.content"; + } + + program + { + name: "hide_footer"; + signal: "hide,menu"; + source: "calaos"; + action: STATE_SET "hidden" 0.0; + transition: ACCELERATE 0.2; + target: "calaos.main.content"; + } + } +} diff --git a/data/themes/default/structure/main_menu.edc b/data/themes/default/structure/main_menu.edc new file mode 100644 index 00000000..f50570f2 --- /dev/null +++ b/data/themes/default/structure/main_menu.edc @@ -0,0 +1,1358 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/main/menu"; + + script { public menu_mode; } + + parts + { + part + { + name: "menu_header"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 -31; } + rel2 { relative: 1.0 0.0; offset: -1 -1; } + color: 255 255 255 255; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 0.0; offset: -1 31; } + } + } + + part + { + name: "menu_footer"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 1.0; offset: 0 -1; } + rel2 { relative: 1.0 1.0; offset: -1 108; } + color: 255 255 255 255; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -108; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + } + } + + part + { + name: "widget_container_back"; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + image { normal: "widget_container_back.png"; border: 207 207 5 14; } + rel1 { relative: 0.0 0.0; offset: 13 37; } + rel2 { relative: 1.0 1.0; offset: -14 -113; } + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "widget_container_back_buttons"; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + image { normal: "widget_container_back_buttons.png"; } + rel1 { relative: 0.5 1.0; offset: -283 -57; to: "widget_container_back"; } + rel2 { relative: 0.5 1.0; offset: 281 -1; to: "widget_container_back"; } + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "widget_container_buttons_clip"; + type: RECT; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "edit" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "button.valid"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "widget_container_buttons_clip"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "label" "Valider position"; + string: "icon" "calaos/icons/button/valid"; + string: "style" "calaos/activity/footer"; + } + rel1 { relative: 0.5 0.0; offset: -133 11; to: "widget_container_back_buttons"; } + rel2 { relative: 0.5 0.0; offset: 12 44; to: "widget_container_back_buttons"; } + } + } + + part + { + name: "button.cancel"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "widget_container_buttons_clip"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "label" "Annuler"; + string: "icon" "calaos/icons/button/delete"; + string: "style" "calaos/activity/footer"; + } + rel1 { relative: 0.5 0.0; offset: 23 11; to: "widget_container_back_buttons"; } + rel2 { relative: 0.5 0.0; offset: 132 44; to: "widget_container_back_buttons"; } + } + } + + part + { + name: "menu_header_shadow"; + clip_to: "menu_header"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_header_shadow.png"; } + fill { smooth: 1; size { relative: 0.0 0.0; offset: 1024 10; } } + rel1 { relative: 0.0 0.71; offset: 0 0; } + rel2 { relative: 1.0 0.71; offset: -1 9; } + rel1.to: "menu_header"; + rel2.to: "menu_header"; + color: 255 255 255 150; + } + } + + part + { + name: "menu_header_background"; + clip_to: "menu_header"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_header_background.png"; } + fill { smooth: 1; size { relative: 0.0 0.0; offset: 1024 22; } } + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 0.0; offset: -1 21; } + rel1.to: "menu_header"; + rel2.to: "menu_header"; + color: 255 255 255 255; + } + } + + part + { + name: "menu_header_background_version"; + clip_to: "menu_header"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_header_background_version.png"; } + rel1 { relative: 1.0 0.0; offset: -64 0; } + rel2 { relative: 1.0 0.0; offset: -1 21; } + rel1.to: "menu_header"; + rel2.to: "menu_header"; + color: 255 255 255 255; + } + } + + part + { + name: "calaos.version"; + clip_to: "menu_header"; + type: TEXT; + description + { + state, "default" 0.0; + visible: 1; + rel1 { relative: 1.0 0.0; offset: -64 0; } + rel2 { relative: 1.0 0.0; offset: -1 21; } + rel1.to: "menu_header"; + rel2.to: "menu_header"; + text { text: "00.00.00"; font: "CalaosVersion"; size: 10; min: 0 0; align: 0.5 0.6; } + color: 95 95 95 255; + } + } + + part + { + name: "menu_header_logo"; + clip_to: "menu_header"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_logo.png"; } + rel1 { relative: 0.0 0.0; offset: 8 3; } + rel2 { relative: 0.0 0.0; offset: 8+151 3+11; } + rel1.to: "menu_header"; + rel2.to: "menu_header"; + color: 255 255 255 255; + } + } + + + part + { + name: "menu_homeboard_events"; + type: RECT; + mouse_events: 1; + description + { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "menu_open" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 0; + } + } + + part + { + name: "menu_homeboard_link"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.0; offset: -284 -37;} + rel2 { relative: 0.5 0.0; offset: 283 10;} + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + } + description + { + state: "menu_open" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.0; offset: -284 -37-412;} + rel2 { relative: 0.5 0.0; offset: 283 10-412;} + color: 255 255 255 255; + } + } + + part + { + name: "menu_buttons_homeboard_link_open"; + clip_to: "menu_homeboard_link"; + description + { + state: "default" 0.0; + image { normal: "button_glow_up.png"; } + rel1 { relative: 0.5 0.7; offset: -23 -16;} + rel2 { relative: 0.5 0.7; offset: 22 15;} + rel1.to: "menu_homeboard_link"; + rel2.to: "menu_homeboard_link"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.4; offset: -23 -16;} + rel2 { relative: 0.5 0.4; offset: 22 15;} + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "menu_buttons_homeboard_link_close"; + clip_to: "menu_homeboard_link"; + description + { + state: "default" 0.0; + image { normal: "button_glow_down.png"; } + rel1 { relative: 0.5 0.4; offset: -23 -16;} + rel2 { relative: 0.5 0.4; offset: 22 15;} + rel1.to: "menu_homeboard_link"; + rel2.to: "menu_homeboard_link"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "menu_homeboard_link_glowed"; + clip_to: "menu_homeboard_link"; + description + { + state: "default" 0.0; + image { normal: "glowed_556_line_final.png"; } + rel1 { relative: 0.5 0.75; offset: -284 -1;} + rel2 { relative: 0.5 0.75; offset: 283 0;} + rel1.to: "menu_homeboard_link"; + rel2.to: "menu_homeboard_link"; + } + } + + part + { + name: "menu_homeboard_link_menu_back_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 1.0; offset: -283 6; } + rel2 { relative: 0.5 1.0; offset: 282 417; } + rel1.to_x: "menu_homeboard_link"; + rel2.to_x: "menu_homeboard_link"; + rel1.to_y: "menu_homeboard_link_glowed"; + rel2.to_y: "menu_homeboard_link_glowed"; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "menu_homeboard_link_menu_back_img"; + clip_to: "menu_homeboard_link_menu_back_clip"; + description + { + state: "default" 0.0; + image { normal: "menu_back.png"; } + rel1.to: "menu_homeboard_link_menu_back_clip"; + rel2.to: "menu_homeboard_link_menu_back_clip"; + } + } + + part + { + name: "menu_homeboard_link_menu_list_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1.to: "menu_homeboard_link_menu_back_clip"; + rel2.to: "menu_homeboard_link_menu_back_clip"; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "menu.homeboard"; + clip_to: "menu_homeboard_link_menu_list_clip"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to: "menu_homeboard_link_menu_list_clip"; + rel2.to: "menu_homeboard_link_menu_list_clip"; + } + } + + + part + { + name: "menu_footer_shadow"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_footer_shadow.png"; } + fill { smooth: 1; size { relative: 0.0 0.0; offset: 1024 11; } } + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 0.0; offset: -1 10; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 150; + } + } + + part + { + name: "menu_footer_background"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + visible: 1; + fill { smooth: 1; size { relative: 0.0 0.0; offset: 8 98; } } + image { normal: "menu_footer_background.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -98; } + rel2 { relative: 1.0 1.0; offset: -1 1; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 255; + } + } + + part + { + name: "menu_footer_background_left"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_footer_background_left.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -98; } + rel2 { relative: 0.0 1.0; offset: 1 1; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 255; + } + } + + part + { + name: "menu_footer_background_right"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + visible: 1; + image { normal: "menu_footer_background_right.png"; } + rel1 { relative: 1.0 1.0; offset: -2 -98; } + rel2 { relative: 1.0 1.0; offset: -1 1; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 255; + } + } + + part + { + name: "menu_buttons_shadow_left"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + image { normal: "menu_buttons_shadow_left.png"; } + rel1 { relative: 0.5 0.0; offset: -284-10 13; } + rel2 { relative: 0.5 1.0; offset: -284 -1; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 150; + } + } + + part + { + name: "menu_buttons_shadow_right"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + image { normal: "menu_buttons_shadow_right.png"; } + rel1 { relative: 0.5 0.0; offset: 284 13; } + rel2 { relative: 0.5 1.0; offset: 284+10 -1; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 150; + } + } + + part + { + name: "menu_footer_background_back_button"; + clip_to: "menu_footer"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.0; offset: -284 13; } + rel2 { relative: 0.5 1.0; offset: 284 -1; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 48 48 48 255; + } + } + + part + { + name: "menu_neon_glowed"; + clip_to: "menu_footer"; + description + { + state: "default" 0.0; + image { normal: "menu_glowed_neon.png"; } + rel1 { relative: 0.0 0.0; offset: 0 8; } + rel2 { relative: 1.0 0.0; offset: -1 13; } + rel1.to: "menu_footer"; + rel2.to: "menu_footer"; + color: 255 255 255 200; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + } + } + + MENU_BUTTON("home", "Ma maison", 0.5, 1.0, -284, -94, + 0.5, 1.0, -143, -1) + MENU_BUTTON("media", "Medias", 0.5, 1.0, -142, -94, + 0.5, 1.0, -1, -1) + MENU_BUTTON("scenarios", "Scénarios", 0.5, 1.0, 0, -94, + 0.5, 1.0, 141, -1) + MENU_BUTTON("configuration", "Configuration", 0.5, 1.0, 142, -94, + 0.5, 1.0, 283, -1) + + } + + + programs + { + MENU_BUTTON_PROG("home", "home") + MENU_BUTTON_PROG("media", "multi") + MENU_BUTTON_PROG("scenarios", "scenario") + MENU_BUTTON_PROG("configuration", "config") + + program + { + name: "on_show"; + signal: "show"; + after: "show_header"; + after: "show_footer"; + after: "show_buttons"; + } + + program + { + name: "show_header"; + in: 0.3 0.0; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.4; + target: "menu_header"; + } + + program + { + name: "hide_header"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.4; + target: "menu_header"; + } + + program + { + name: "show_footer"; + in: 0.15 0.0; + signal: "show,menu"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.3; + target: "menu_footer"; + } + + program + { + name: "hide_footer"; + signal: "hide,menu"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "menu_footer"; + } + + program + { + name: "show_buttons"; + action, STATE_SET "visible" 0.0; + transition, DECELERATE 1.0; + target: "menu_buttons_home"; + target: "menu_buttons_media"; + target: "menu_buttons_scenarios"; + target: "menu_buttons_configuration"; + target: "menu_homeboard_link"; + target: "menu_buttons_homeboard_link_open"; + } + + program + { + name: "set_homeboard_link_startstate"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 1.45; + target: "menu_homeboard_link"; + } + + program + { + name: "set_homeboard_link_default_state"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.2; + target: "menu_homeboard_link"; + } + + program + { + name: "link_menu_open_sig"; + signal: "menu,link,open"; + source: "calaos"; + after: "open_menu"; + } + + program + { + name: "link_menu_close_sig"; + signal: "menu,link,close"; + source: "calaos"; + after: "close_menu"; + } + + program + { + name: "link_menu_open"; + signal: "mouse,down,1"; + source: "menu_buttons_homeboard_link_open"; + after: "open_menu"; + } + + program + { + name: "link_menu_close"; + signal: "mouse,down,1"; + source: "menu_buttons_homeboard_link_close"; + after: "close_menu"; + } + + program + { + name: "link_menu_close2"; + signal: "mouse,down,1"; + source: "menu_homeboard_events"; + after: "close_menu"; + } + + program + { + name: "open_menu"; + signal: "menu,open"; + source: "calaos"; + after: "open_menu_1"; + after: "open_menu_2"; + after: "open_menu_3"; + after: "set_disable_buttons_mode"; + after: "signal_open"; + } + + program + { + name: "signal_open"; + action: SIGNAL_EMIT "homeboard,open" "menu"; + } + + program + { + name: "signal_close"; + action: SIGNAL_EMIT "homeboard,close" "menu"; + } + + program + { + name: "open_menu_1"; + action: STATE_SET "menu_open" 0.0; + transition: DECELERATE 0.4; + target: "menu_homeboard_link"; + target: "menu_homeboard_events"; + } + + program + { + name: "open_menu_2"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.4; + target: "menu_buttons_homeboard_link_close"; + target: "menu_homeboard_link_menu_back_clip"; + target: "menu_homeboard_link_menu_list_clip"; + } + + program + { + name: "open_menu_3"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.4; + target: "menu_buttons_homeboard_link_open"; + } + + program + { + name: "close_menu"; + signal: "close,open"; + source: "calaos"; + after: "close_menu_1"; + after: "close_menu_2"; + after: "close_menu_3"; + after: "set_enable_buttons_mode"; + after: "signal_close"; + } + + program + { + name: "close_menu_1"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 0.2; + target: "menu_homeboard_link"; + } + + program + { + name: "close_menu_2"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.2; + target: "menu_buttons_homeboard_link_close"; + target: "menu_homeboard_link_menu_back_clip"; + target: "menu_homeboard_link_menu_list_clip"; + target: "menu_homeboard_events"; + } + + program + { + name: "close_menu_3"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 0.2; + target: "menu_buttons_homeboard_link_open"; + } + + program + { + name: "set_disable_buttons_mode"; + signal: "disable"; + source: "calaos"; + script + { + if (get_int(menu_mode) == 0) + { + run_program(PROGRAM:"set_unselectable_buttons"); + run_program(PROGRAM:"set_buttons_home_off"); + run_program(PROGRAM:"set_buttons_home_stop_on"); + run_program(PROGRAM:"set_buttons_media_off"); + run_program(PROGRAM:"set_buttons_media_stop_on"); + run_program(PROGRAM:"set_buttons_scenarios_off"); + run_program(PROGRAM:"set_buttons_scenarios_stop_on"); + run_program(PROGRAM:"set_buttons_configuration_off"); + run_program(PROGRAM:"set_buttons_configuration_stop_on"); + } + else if (get_int(menu_mode) == 1) + { + run_program(PROGRAM:"set_unselectable_buttons"); + run_program(PROGRAM:"set_selectable_home"); + run_program(PROGRAM:"set_buttons_media_off"); + run_program(PROGRAM:"set_buttons_media_stop_on"); + run_program(PROGRAM:"set_buttons_scenarios_off"); + run_program(PROGRAM:"set_buttons_scenarios_stop_on"); + run_program(PROGRAM:"set_buttons_configuration_off"); + run_program(PROGRAM:"set_buttons_configuration_stop_on"); + } + else if (get_int(menu_mode) == 2) + { + run_program(PROGRAM:"set_unselectable_buttons"); + run_program(PROGRAM:"set_selectable_media"); + run_program(PROGRAM:"set_buttons_home_off"); + run_program(PROGRAM:"set_buttons_home_stop_on"); + run_program(PROGRAM:"set_buttons_scenarios_off"); + run_program(PROGRAM:"set_buttons_scenarios_stop_on"); + run_program(PROGRAM:"set_buttons_configuration_off"); + run_program(PROGRAM:"set_buttons_configuration_stop_on"); + } + else if (get_int(menu_mode) == 3) + { + run_program(PROGRAM:"set_unselectable_buttons"); + run_program(PROGRAM:"set_selectable_scenarios"); + run_program(PROGRAM:"set_buttons_home_off"); + run_program(PROGRAM:"set_buttons_home_stop_on"); + run_program(PROGRAM:"set_buttons_media_off"); + run_program(PROGRAM:"set_buttons_media_stop_on"); + run_program(PROGRAM:"set_buttons_configuration_off"); + run_program(PROGRAM:"set_buttons_configuration_stop_on"); + } + else if (get_int(menu_mode) == 4) + { + run_program(PROGRAM:"set_unselectable_buttons"); + run_program(PROGRAM:"set_selectable_configuration"); + run_program(PROGRAM:"set_buttons_home_off"); + run_program(PROGRAM:"set_buttons_home_stop_on"); + run_program(PROGRAM:"set_buttons_media_off"); + run_program(PROGRAM:"set_buttons_media_stop_on"); + run_program(PROGRAM:"set_buttons_scenarios_off"); + run_program(PROGRAM:"set_buttons_scenarios_stop_on"); + } + } + } + + program + { + name: "set_enable_buttons_mode"; + signal: "enable"; + source: "calaos"; + script + { + if (get_int(menu_mode) == 0) + { + run_program(PROGRAM:"set_selectable_buttons"); + run_program(PROGRAM:"set_all_buttons_default_state"); + run_program(PROGRAM:"set_buttons_home_stop_off"); + run_program(PROGRAM:"set_buttons_media_stop_off"); + run_program(PROGRAM:"set_buttons_scenarios_stop_off"); + run_program(PROGRAM:"set_buttons_configuration_stop_off"); + } + else if (get_int(menu_mode) == 1) + { + run_program(PROGRAM:"set_selectable_buttons"); + run_program(PROGRAM:"set_buttons_media_stop_off"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_buttons_scenarios_stop_off"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_buttons_configuration_stop_off"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + } + else if (get_int(menu_mode) == 2) + { + run_program(PROGRAM:"set_selectable_buttons"); + run_program(PROGRAM:"set_buttons_home_stop_off"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_buttons_scenarios_stop_off"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_buttons_configuration_stop_off"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + } + else if (get_int(menu_mode) == 3) + { + run_program(PROGRAM:"set_selectable_buttons"); + run_program(PROGRAM:"set_buttons_home_stop_off"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_buttons_media_stop_off"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_buttons_configuration_stop_off"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + } + else if (get_int(menu_mode) == 4) + { + run_program(PROGRAM:"set_selectable_buttons"); + run_program(PROGRAM:"set_buttons_home_stop_off"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_buttons_media_stop_off"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_buttons_scenarios_stop_off"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + } + } + } + + program + { + name: "set_unselectable_buttons"; + action: STATE_SET "active" 0.0; + target: "menu_buttons_home_stop_area"; + target: "menu_buttons_media_stop_area"; + target: "menu_buttons_scenarios_stop_area"; + target: "menu_buttons_configuration_stop_area"; + } + + program + { + name: "set_selectable_buttons"; + action: STATE_SET "default" 0.0; + target: "menu_buttons_home_stop_area"; + target: "menu_buttons_media_stop_area"; + target: "menu_buttons_scenarios_stop_area"; + target: "menu_buttons_configuration_stop_area"; + } + + program + { + name: "set_unselectable_home"; + action: STATE_SET "active" 0.0; + target: "menu_buttons_home_stop_area"; + } + + program + { + name: "set_selectable_home"; + action: STATE_SET "default" 0.0; + target: "menu_buttons_home_stop_area"; + } + + program + { + name: "set_unselectable_media"; + action: STATE_SET "active" 0.0; + target: "menu_buttons_media_stop_area"; + } + + program + { + name: "set_selectable_media"; + action: STATE_SET "default" 0.0; + target: "menu_buttons_media_stop_area"; + } + + program + { + name: "set_unselectable_scenarios"; + action: STATE_SET "active" 0.0; + target: "menu_buttons_scenarios_stop_area"; + } + + program + { + name: "set_selectable_scenarios"; + action: STATE_SET "default" 0.0; + target: "menu_buttons_scenarios_stop_area"; + } + + program + { + name: "set_unselectable_configuration"; + action: STATE_SET "active" 0.0; + target: "menu_buttons_configuration_stop_area"; + } + + program + { + name: "set_selectable_configuration"; + action: STATE_SET "default" 0.0; + target: "menu_buttons_configuration_stop_area"; + } + + // All buttons set default state + program + { + name: "set_all_buttons_default_state"; + signal: "unselect,all"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "menu_buttons_home_default"; + target: "menu_buttons_media_default"; + target: "menu_buttons_scenarios_default"; + target: "menu_buttons_configuration_default"; + target: "menu_buttons_home_glow"; + target: "menu_buttons_media_glow"; + target: "menu_buttons_scenarios_glow"; + target: "menu_buttons_configuration_glow"; + target: "menu_buttons_home_neon"; + target: "menu_buttons_media_neon"; + target: "menu_buttons_scenarios_neon"; + target: "menu_buttons_configuration_neon"; + target: "menu_buttons_home_label"; + target: "menu_buttons_media_label"; + target: "menu_buttons_scenarios_label"; + target: "menu_buttons_configuration_label"; + target: "menu_neon_glowed"; + } + + program + { + name: "set_all_buttons_stop_default_state"; + signal: "unselect,all"; + source: "calaos"; + script + { + set_int(menu_mode, 0); + run_program(PROGRAM:"set_buttons_home_stop_off"); + run_program(PROGRAM:"set_buttons_media_stop_off"); + run_program(PROGRAM:"set_buttons_scenarios_stop_off"); + run_program(PROGRAM:"set_buttons_configuration_stop_off"); + run_program(PROGRAM:"show_neon"); + } + } + + program + { + name: "uninit_menu"; + signal: "hide"; + action: STATE_SET "default" 0.0; + target: "menu_buttons_home"; + target: "menu_buttons_media"; + target: "menu_buttons_scenarios"; + target: "menu_buttons_configuration"; + target: "menu_buttons_home_default"; + target: "menu_buttons_media_default"; + target: "menu_buttons_scenarios_default"; + target: "menu_buttons_configuration_default"; + target: "menu_buttons_home_glow"; + target: "menu_buttons_media_glow"; + target: "menu_buttons_scenarios_glow"; + target: "menu_buttons_configuration_glow"; + target: "menu_buttons_home_neon"; + target: "menu_buttons_media_neon"; + target: "menu_buttons_scenarios_neon"; + target: "menu_buttons_configuration_neon"; + target: "menu_buttons_home_label"; + target: "menu_buttons_media_label"; + target: "menu_buttons_scenarios_label"; + target: "menu_buttons_configuration_label"; + target: "menu_neon_glowed"; + target: "menu_buttons_shadow_left"; + target: "menu_buttons_shadow_right"; + target: "menu_buttons_homeboard_link_open"; + target: "menu_buttons_homeboard_link_close"; + target: "menu_homeboard_link"; + } + + program + { + name: "set_unselect_buttons_home"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "menu_buttons_home_glow"; + target: "menu_buttons_home_neon"; + } + + program + { + name: "set_unselect_buttons_media"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "menu_buttons_media_glow"; + target: "menu_buttons_media_neon"; + } + + program + { + name: "set_unselect_buttons_scenarios"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "menu_buttons_scenarios_glow"; + target: "menu_buttons_scenarios_neon"; + } + + program + { + name: "set_unselect_buttons_configuration"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "menu_buttons_configuration_glow"; + target: "menu_buttons_configuration_neon"; + } + + program + { + name: "hide_glow"; + action: STATE_SET "active" 0.0; + transition: ACCELERATE 0.3; + target: "menu_neon_glowed"; + target: "menu_homeboard_link"; + } + + program + { + name: "show_neon"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.3; + target: "menu_neon_glowed"; + target: "menu_homeboard_link"; + } + + program + { + name: "on_home_signal"; + signal: "select,home"; + source: "calaos"; + script + { + if (get_int(menu_mode) != 1) + { + set_int(menu_mode, 1); + run_program(PROGRAM:"set_unselect_buttons_media"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_unselect_buttons_scenarios"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_unselect_buttons_configuration"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + name: "sig_buttons_home_emit"; + signal: "mouse,down,1"; + source: "menu_buttons_home_click_area"; + script + { + emit("home", "menu"); + + if (get_int(menu_mode) != 1) + { + set_int(menu_mode, 1); + run_program(PROGRAM:"set_unselect_buttons_media"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_unselect_buttons_scenarios"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_unselect_buttons_configuration"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + + program + { + name: "on_media_signal"; + signal: "select,media"; + source: "calaos"; + script + { + if (get_int(menu_mode) != 2) + { + set_int(menu_mode, 2); + run_program(PROGRAM:"set_unselect_buttons_home"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_unselect_buttons_scenarios"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_unselect_buttons_configuration"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + name: "sig_buttons_media_emit"; + signal: "mouse,down,1"; + source: "menu_buttons_media_click_area"; + script + { + emit("media", "menu"); + + if (get_int(menu_mode) != 2) + { + set_int(menu_mode, 2); + run_program(PROGRAM:"set_unselect_buttons_home"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_unselect_buttons_scenarios"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_unselect_buttons_configuration"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + name: "on_scenario_signal"; + signal: "select,scenario"; + source: "calaos"; + script + { + if (get_int(menu_mode) != 3) + { + set_int(menu_mode, 3); + run_program(PROGRAM:"set_unselect_buttons_media"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_unselect_buttons_home"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_unselect_buttons_configuration"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + name: "sig_buttons_scenarios_emit"; + signal: "mouse,down,1"; + source: "menu_buttons_scenarios_click_area"; + script + { + emit("scenario", "menu"); + + if (get_int(menu_mode) != 3) + { + set_int(menu_mode, 3); + run_program(PROGRAM:"set_unselect_buttons_media"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_unselect_buttons_home"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"set_unselect_buttons_configuration"); + run_program(PROGRAM:"set_buttons_configuration_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + name: "sig_buttons_configuration_emit"; + signal: "mouse,down,1"; + source: "menu_buttons_configuration_click_area"; + script + { + emit("config", "menu"); + + if (get_int(menu_mode) != 4) + { + set_int(menu_mode, 4); + run_program(PROGRAM:"set_unselect_buttons_media"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_unselect_buttons_scenarios"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_unselect_buttons_home"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + name: "on_config_signal"; + signal: "select,config"; + source: "calaos"; + script + { + if (get_int(menu_mode) != 4) + { + set_int(menu_mode, 4); + run_program(PROGRAM:"set_unselect_buttons_media"); + run_program(PROGRAM:"set_buttons_media_inactive"); + run_program(PROGRAM:"set_unselect_buttons_scenarios"); + run_program(PROGRAM:"set_buttons_scenarios_inactive"); + run_program(PROGRAM:"set_unselect_buttons_home"); + run_program(PROGRAM:"set_buttons_home_inactive"); + run_program(PROGRAM:"hide_glow"); + } + } + } + + program + { + in: 0.2 0.0; + name: "widget_edit_start"; + signal: "widget,edit"; + source: "calaos"; + action: STATE_SET "edit" 0.0; + transition: DECELERATE 0.8; + target: "widget_container_back"; + target: "widget_container_back_buttons"; + target: "widget_container_buttons_clip"; + } + + program + { + in: 0.2001 0.0; + signal: "widget,edit"; + source: "calaos"; + after: "set_homeboard_link_default_state"; + } + + program + { + name: "widget_edit_stop"; + signal: "widget,normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "widget_container_back"; + target: "widget_container_back_buttons"; + target: "widget_container_buttons_clip"; + after: "set_homeboard_link_startstate"; + } + } +} diff --git a/data/themes/default/structure/old_macros.edc b/data/themes/default/structure/old_macros.edc new file mode 100644 index 00000000..fee43090 --- /dev/null +++ b/data/themes/default/structure/old_macros.edc @@ -0,0 +1,849 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define LEVEL(_name, clipper, rel1x, rel1y, off1x, off1y, to1, rel2x, rel2y, off2x, off2y, to2) \ +part { \ + name: _name; \ + type: RECT; \ + clip_to: clipper; \ + description { \ + state: "default" 0.0; \ + rel1 { relative: rel1x rel1y; offset: off1x off1y; to: to1; } \ + rel2 { relative: rel2x rel2y; offset: off2x off2y; to: to2; } \ + } \ +} + +#define LEVEL_CLIP(id, rel1x, rel1y, off1x, off1y, to1, rel2x, rel2y, off2x, off2y, to2) \ +description { \ + state: "default" id; \ + visible: 1; \ + color: 255 255 255 30; \ + rel1 { relative: rel1x rel1y; offset: off1x off1y; to: to1; } \ + rel2 { relative: rel2x rel2y; offset: off2x off2y; to: to2; } \ +} + +#define FALL_BACK_PROG(line) \ +program { \ + name: "fall_back_"line; \ + action: STATE_SET "default" 0.0; \ + transition: LINEAR 0.3; \ + target: line"_clip"; \ +} + +#define TIMER_PROG(line) \ + new Float:state; \ + stop_program(PROGRAM:"fall_back_"line); \ + state = randf(); \ + \ + if (get_int(stop_anim) == 0) \ + timer(state, "randomize_"line, 0); \ + \ + set_state(PART:line"_clip", "default", state); \ + run_program(PROGRAM:"fall_back_"line); + + + +#define ELEMENT_ACTION_BUTTON_NORMAL(id, clipper, rel1_to, rel2_to, img, img_glow, src, sig, rel1_x, rel1_y, offset1_x, offset1_y, rel2_x, rel2_y, offset2_x, offset2_y) \ +part { \ + name: id; \ + clip_to: clipper; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: rel1_x rel1_y; offset: offset1_x offset1_y; to: rel1_to;} \ + rel2 { relative: rel2_x rel2_y; offset: offset2_x offset2_y; to: rel2_to;} \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_img"; \ + clip_to: id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: img; } \ + rel1.to: id; \ + rel2.to: id; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_img_glow"; \ + clip_to: id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: img_glow; } \ + rel1.to: id; \ + rel2.to: id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +program { \ + name, "init_"id; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "active" 0.0; \ + transition, DECELERATE 0.5; \ + target, id; \ +} \ + \ +program { \ + name, "set_touched_"id; \ + signal, "mouse,up,1"; \ + source, id"*"; \ + action, STATE_SET "touched" 0.0; \ + transition, ACCELERATE 0.00001; \ + target, id"_img_glow"; \ + after, "send_signal_"id; \ + after, "set_untouched_"id; \ +} \ + \ +program { \ + name, "send_signal_"id; \ + script { \ + emit(sig, src); \ + } \ +} \ + \ +program { \ + name, "set_untouched_"id; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.5; \ + target, id"_img_glow"; \ +} \ + \ +program { \ + name, "uninit_"id; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + target, id; \ + target, id"_img"; \ + target, id"_img_glow"; \ +} + + +#define VERTI_SLIDER(id, clipper, ref_r, ref_g, ref_b, slider_img, slider_on_img, slider_border_image, src, sig, srcin1, sigin1, srcin2, sigin2) \ +part { \ + name: id"_main"; \ + clip_to: clipper; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1.to: clipper; \ + rel2.to: clipper; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_border_whole"; \ + clip_to: id"_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.5 0.0; offset: -2 2;} \ + rel2 { relative: 0.5 1.0; offset: 1 -2;} \ + rel1.to: id"_main"; \ + rel2.to: id"_main"; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_move_confine"; \ + clip_to: id"_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.5 0.0; offset: -14 -1;} \ + rel2 { relative: 0.5 1.0; offset: 13 2;} \ + rel1.to: id"_main"; \ + rel2.to: id"_main"; \ + color: 0 0 0 0; \ + } \ +} \ + \ +part { \ + name: id"_border_decoration"; \ + clip_to: id"_border_whole"; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_border_image; border: 1 1 1 1;} \ + rel1.to: id"_border_whole"; \ + rel2.to: id"_border_whole"; \ + color: 255 255 255 80; \ + } \ +} \ + \ +part { \ + name: id"_level"; \ + clip_to: id"_border_whole"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + color: ref_r ref_g ref_b 255; \ + rel1 { relative: 0.5 0.0; offset: -1 24;} \ + rel2 { relative: 0.5 1.0; offset: 0 -3;} \ + rel1.to: id; \ + rel2.to: id"_main"; \ + } \ + description { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 150; \ + } \ + description { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 250; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: id"_slider_decoration"; \ + clip_to: id"_main"; \ + mouse_events: 0; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_img;} \ + rel1 { relative: 0.5 0.5; offset: -14 -16;} \ + rel2 { relative: 0.5 0.5; offset: 13 15;} \ + rel1.to: id; \ + rel2.to: id; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: id"_slider_decoration_touched"; \ + mouse_events: 0; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: slider_on_img;} \ + rel1 { relative: 0.5 0.5; offset: -14 -15;} \ + rel2 { relative: 0.5 0.5; offset: 13 15;} \ + rel1.to: id; \ + rel2.to: id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ + description { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: id; \ + clip_to: id"_main"; \ + mouse_events: 1; \ + type: RECT; \ + dragable { \ + confine: id"_move_confine"; \ + x: 0 0 0; y: 1 1 1; \ + } \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + min: 28 34; max: 28 34; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +program { \ + name, id"_init"; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "active" 0.0; \ + transition, DECELERATE 0.2; \ + target, id"_main"; \ +} \ + \ +program { \ + name: id"_signal"; \ + signal: "drag,stop"; \ + source: id; \ + action: SIGNAL_EMIT sig src; \ +} \ +program { \ + name: id"_signal_drag"; \ + signal: "drag"; \ + source: id; \ + action: SIGNAL_EMIT sig",move" src; \ +} \ +program { \ + name: id"_signal_start"; \ + signal: "drag,start"; \ + source: id; \ + action: SIGNAL_EMIT "slider,start" src; \ +} \ + \ +program { \ + name: id"_slider_touched"; \ + signal: "mouse,down,1"; \ + source: id; \ + action, STATE_SET "touched" 0.0; \ + transition, DECELERATE 0.2; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name: id"_slider_untouched"; \ + signal: "mouse,up,1"; \ + source: id; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 1.2; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name: id"_slider_animations_set_default"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 1.2; \ + target: id"_level"; \ +} \ + \ +program { \ + name: id"_level_animation_out"; \ + signal: "mouse,down,1"; \ + source: id; \ + action, STATE_SET "out" 0.0; \ + transition, DECELERATE 0.5; \ + target: id"_level"; \ + after: id"_level_animation_in"; \ +} \ + \ +program { \ + name: id"_level_animation_in"; \ + action, STATE_SET "in" 0.0; \ + transition, DECELERATE 1.0; \ + target: id"_level"; \ + after: id"_level_animation_out"; \ +} \ + \ +program { \ + name: id"_slider_animation_out"; \ + signal: "mouse,down,1"; \ + source: id; \ + action, STATE_SET "out" 0.0; \ + transition, DECELERATE 0.5; \ + target: id"_slider_decoration_touched"; \ + after: id"_slider_animation_in"; \ +} \ + \ +program { \ + name: id"_slider_animation_in"; \ + action, STATE_SET "in" 0.0; \ + transition, DECELERATE 1.0; \ + target: id"_slider_decoration_touched"; \ + after: id"_slider_animation_out"; \ +} \ + \ +program { \ + name: id"_level_stop_animation"; \ + signal: "mouse,up,1"; \ + source: id; \ + action, ACTION_STOP; \ + target: id"_level_animation_in"; \ + target: id"_level_animation_out"; \ + target: id"_slider_animation_in"; \ + target: id"_slider_animation_out"; \ + after: id"_slider_animations_set_default"; \ +} \ + \ +program { \ + name: id"_desactivate_slider"; \ + signal: sigin1; \ + source: srcin1; \ + action, STATE_SET "desactivate" 0.0; \ + transition, ACCELERATE 0.2; \ + target: id; \ + target: id"_level"; \ + target: id"_slider_decoration"; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name: id"_activate_slider"; \ + signal: sigin2; \ + source: srcin2; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.2; \ + target: id; \ + target: id"_level"; \ + target: id"_slider_decoration"; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name, id"_uninit"; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + target, id"_main"; \ +} + + + +#define HORIZ_SLIDER(id, clipper, part_message, message, part_value, value, ref_r, ref_g, ref_b, slider_img, slider_on_img, slider_border_image, src, sig, srcin1, sigin1, srcin2, sigin2) \ +part { \ + name: id"_main"; \ + clip_to: clipper; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1.to: clipper; \ + rel2.to: clipper; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_border_whole"; \ + clip_to: id"_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.5; offset: 2 -2;} \ + rel2 { relative: 1.0 0.5; offset: -3 1;} \ + rel1.to: id"_main"; \ + rel2.to: id"_main"; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_message_label"; \ + mouse_events: 0; \ + clip_to: id"_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.5; offset: 2 -18;} \ + rel2 { relative: 1.0 0.5; offset: -40 -4;} \ + rel1.to: id"_main"; \ + rel2.to: id"_main"; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_level_label"; \ + mouse_events: 0; \ + clip_to: id"_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 1.0 0.5; offset: -60 -18;} \ + rel2 { relative: 1.0 0.5; offset: -4 -4;} \ + rel1.to: id"_main"; \ + rel2.to: id"_main"; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: id"_move_confine"; \ + clip_to: id"_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.0 0.5; offset: 0 -14;} \ + rel2 { relative: 1.0 0.5; offset: -1 13;} \ + rel1.to: id"_main"; \ + rel2.to: id"_main"; \ + color: 0 0 0 0; \ + } \ +} \ + \ +part { \ + name: id"_border_decoration"; \ + clip_to: id"_border_whole"; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_border_image; border: 1 1 1 1;} \ + rel1.to: id"_border_whole"; \ + rel2.to: id"_border_whole"; \ + color: 255 255 255 80; \ + } \ +} \ + \ +part { \ + name: id"_level"; \ + clip_to: id"_border_whole"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + color: ref_r ref_g ref_b 255; \ + rel1 { relative: 0.0 0.5; offset: 1 -1;} \ + rel2 { relative: 1.0 0.5; offset: -24 0;} \ + rel1.to: id"_main"; \ + rel2.to: id; \ + } \ + description { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 150; \ + } \ + description { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 250; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: id"_slider_decoration"; \ + clip_to: id"_main"; \ + mouse_events: 0; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_img;} \ + rel1 { relative: 0.5 0.5; offset: -16 -14;} \ + rel2 { relative: 0.5 0.5; offset: 15 13;} \ + rel1.to: id; \ + rel2.to: id; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: id"_slider_decoration_touched"; \ + mouse_events: 0; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: slider_on_img;} \ + rel1 { relative: 0.5 0.5; offset: -16 -14;} \ + rel2 { relative: 0.5 0.5; offset: 15 13;} \ + rel1.to: id; \ + rel2.to: id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ + description { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: id; \ + clip_to: id"_main"; \ + mouse_events: 1; \ + type: RECT; \ + dragable { \ + confine: id"_move_confine"; \ + x: 1 1 1; y: 0 0 0; \ + } \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + min: 34 28; max: 34 28; \ + rel2 { relative: 0.0 0.5; offset: -1 11;} \ + color: 255 255 255 0; \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ +} \ + \ +part { \ + name: part_message; \ + mouse_events: 0; \ + clip_to: id"_message_label"; \ + type: TEXT; \ + description { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 0;} \ + rel2 { relative: 1.0 1.0; offset: -1 -1;} \ + rel1.to: id"_message_label"; \ + rel2.to: id"_message_label"; \ + color: 231 231 231 100; \ + text { text: message; font: "CalaosContent"; size: 10; min: 0 0; align: 0.0 0.0;} \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 50; \ + } \ +} \ + \ +part { \ + name: part_value; \ + mouse_events: 0; \ + clip_to: id"_level_label"; \ + type: TEXT; \ + description { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 0;} \ + rel2 { relative: 1.0 1.0; offset: -1 -1;} \ + rel1.to: id"_level_label"; \ + rel2.to: id"_level_label"; \ + color: 231 231 231 100; \ + text { text: value; font: "CalaosContent"; size: 10; min: 0 0; align: 1.0 0.0;} \ + } \ + description { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 50; \ + } \ +} \ + \ +program { \ + name, id"_init"; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "active" 0.0; \ + transition, DECELERATE 0.2; \ + target, id"_main"; \ +} \ + \ +program { \ + name: id"_signal"; \ + signal: "drag,stop"; \ + source: id; \ + action: SIGNAL_EMIT sig src; \ +} \ +program { \ + name: id"_signal_drag"; \ + signal: "drag"; \ + source: id; \ + action: SIGNAL_EMIT "slider,move" src; \ +} \ +program { \ + name: id"_signal_start"; \ + signal: "drag,start"; \ + source: id; \ + action: SIGNAL_EMIT "slider,start" src; \ +} \ + \ +program { \ + name: id"_slider_touched"; \ + signal: "mouse,down,1"; \ + source: id; \ + action, STATE_SET "touched" 0.0; \ + transition, DECELERATE 0.2; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name: id"_slider_untouched"; \ + signal: "mouse,up,1"; \ + source: id; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 1.2; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name: id"_slider_animations_set_default"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 1.2; \ + target: id"_level"; \ +} \ + \ +program { \ + name: id"_level_animation_out"; \ + signal: "mouse,down,1"; \ + source: id; \ + action, STATE_SET "out" 0.0; \ + transition, DECELERATE 0.5; \ + target: id"_level"; \ + after: id"_level_animation_in"; \ +} \ + \ +program { \ + name: id"_level_animation_in"; \ + action, STATE_SET "in" 0.0; \ + transition, DECELERATE 1.0; \ + target: id"_level"; \ + after: id"_level_animation_out"; \ +} \ + \ +program { \ + name: id"_slider_animation_out"; \ + signal: "mouse,down,1"; \ + source: id; \ + action, STATE_SET "out" 0.0; \ + transition, DECELERATE 0.5; \ + target: id"_slider_decoration_touched"; \ + after: id"_slider_animation_in"; \ +} \ + \ +program { \ + name: id"_slider_animation_in"; \ + action, STATE_SET "in" 0.0; \ + transition, DECELERATE 1.0; \ + target: id"_slider_decoration_touched"; \ + after: id"_slider_animation_out"; \ +} \ + \ +program { \ + name: id"_level_stop_animation"; \ + signal: "mouse,up,1"; \ + source: id; \ + action, ACTION_STOP; \ + target: id"_level_animation_in"; \ + target: id"_level_animation_out"; \ + target: id"_slider_animation_in"; \ + target: id"_slider_animation_out"; \ + after: id"_slider_animations_set_default"; \ +} \ + \ +program { \ + name: id"_desactivate_slider"; \ + signal: sigin1; \ + source: srcin1; \ + action, STATE_SET "desactivate" 0.0; \ + transition, ACCELERATE 0.2; \ + target: id; \ + target: part_value; \ + target: part_message; \ + target: id"_level"; \ + target: id"_slider_decoration"; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name: id"_activate_slider"; \ + signal: sigin2; \ + source: srcin2; \ + action, STATE_SET "default" 0.0; \ + transition, ACCELERATE 0.2; \ + target: id; \ + target: part_value; \ + target: part_message; \ + target: id"_level"; \ + target: id"_slider_decoration"; \ + target: id"_slider_decoration_touched"; \ +} \ + \ +program { \ + name, id"_uninit"; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + target, id"_main"; \ +} + diff --git a/data/themes/default/structure/page_audio_list.edc b/data/themes/default/structure/page_audio_list.edc new file mode 100644 index 00000000..9832b497 --- /dev/null +++ b/data/themes/default/structure/page_audio_list.edc @@ -0,0 +1,1760 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/audio/player/cover"; + + parts + { + part { + name: "player_cover_clip"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.535 0.495; offset: -80 -80;} + rel2 { relative: 0.535 0.495; offset: 83 79;} + color: 0 0 0 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 20 20 20 220; + } + } + + part { + name: "player.cover"; + type: SWALLOW; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.535 0.495; offset: -80 -80;} + rel2 { relative: 0.535 0.495; offset: 79 79;} + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part { + name: "player_no_cover_image"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.535 0.495; offset: -80 -80;} + rel2 { relative: 0.535 0.495; offset: 83 79;} + color: 0 0 0 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 0 0 0 200; + } + } + + part { + name: "player_cover_front"; + description { + state: "default" 0.0; + image { normal: "player_cover_front.png";} + rel1 { relative: 0.505 0.495; offset: -94 -85;} + rel2 { relative: 0.505 0.495; offset: 93 84;} + } + } + } + + programs + { + program { + name, "show_swallowed_cover"; + signal: "show,cover"; + source: "cover"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.8; + target, "player.cover"; + target: "player_cover_clip"; + } + + program { + name, "hide_swallowed_cover"; + signal: "hide,cover"; + source: "cover"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.8; + target, "player.cover"; + target: "player_cover_clip"; + } + + program { + name, "show_no_cover_image"; + signal: "show,nocover"; + source: "cover"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.8; + target, "player_no_cover_image"; + } + + program { + name, "hide_no_cover_image"; + signal: "hide,nocover"; + source: "cover"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.8; + target, "player_no_cover_image"; + } + } +} + +group +{ + name: "calaos/audio/player"; + min: 276 514; + max: 276 514; + + script + { + public playing_mode; + public object_mode; + public stop_anim; + public eq_started; + public has_amp; + public randomize_line1(val) { TIMER_PROG("line1") } + public randomize_line2(val) { TIMER_PROG("line2") } + public randomize_line3(val) { TIMER_PROG("line3") } + public randomize_line4(val) { TIMER_PROG("line4") } + public randomize_line5(val) { TIMER_PROG("line5") } + public randomize_line6(val) { TIMER_PROG("line6") } + public randomize_line7(val) { TIMER_PROG("line7") } + public randomize_line8(val) { TIMER_PROG("line8") } + } + parts + { + #include "player.edc" + } + programs + { + #include "player_prog.edc" + } +} + +group +{ + name: "calaos/audio/player/small"; + + min: 372 143; + max: 372 143; + + parts + { + part + { + name: "player_decoration_top"; + description + { + state: "default" 0.0; + image.normal: "player_line_decoration_top.png"; + rel1 { relative: 0.0 0.0; offset: 133 0;} + rel2 { relative: 0.0 0.0; offset: 350 16;} + } + } + + part + { + name: "player_decoration_bottom"; + description + { + state: "default" 0.0; + image.normal: "player_line_decoration_bottom.png"; + rel1 { relative: 0.0 0.0; offset: 133 126;} + rel2 { relative: 0.0 0.0; offset: 350 141;} + } + } + + part + { + name: "player_cover_shadow"; + description + { + state: "default" 0.0; + image.normal: "player_small_shadow.png"; + rel1 { relative: 0.0 0.0; offset: 0 10; }; + rel2 { relative: 0.0 0.0; offset: 132 129; }; + } + } + + part + { + name: "player_cover_back"; + description + { + state: "default" 0.0; + image.normal: "player_small_cover_back.png"; + rel1.to: "player_cover_shadow"; + rel2.to: "player_cover_shadow"; + } + } + + part + { + name: "player_cover_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1.to: "player_cover_back"; + rel2.to: "player_cover_back"; + rel1.offset: 19 11; + rel2.offset: -12 -11; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 20 20 20 220; + } + } + + part + { + name: "player_cover"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to: "player_cover_clip"; + rel2.to: "player_cover_clip"; + } + } + + part + { + name: "player_cover_front"; + description + { + state: "default" 0.0; + image.normal: "player_small_cover_front.png"; + rel1.to: "player_cover_shadow"; + rel2.to: "player_cover_shadow"; + color: 255 255 255 255; + } + } + +#define LABEL_PLAYER_INFO(id, title, y1, y2) \ + part \ + { \ + name: "text."id; \ + type: TEXT; \ + description \ + { \ + state: "default" 0.0; \ + color: 231 231 231 140; \ + rel1 { relative: 0.0 0.0; offset: 133 y1; } \ + rel2 { relative: 0.0 0.0; offset: 196 y2; } \ + text { text: title; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5; } \ + } \ + } \ + alias: "player"id "player_id:text"; \ + part \ + { \ + name: "player_"id; \ + type: GROUP; \ + source: "calaos/text/scrolling/left"; \ + description \ + { \ + state: "default" 0.0; \ + color: 231 231 231 140; \ + rel1 { relative: 0.0 0.0; offset: 202 y1; } \ + rel2 { relative: 0.0 0.0; offset: 351 y2; } \ + } \ + } + + LABEL_PLAYER_INFO("artist", "Artiste :", 20, 40) + LABEL_PLAYER_INFO("album", "Album :", 40, 60) + LABEL_PLAYER_INFO("title", "Piste :", 60, 80) + LABEL_PLAYER_INFO("year", "Année :", 80, 100) + LABEL_PLAYER_INFO("duration", "Durée :", 100, 120) + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT("player_artist") + SCROLLING_TEXT_SIGNAL_REPEAT("player_album") + SCROLLING_TEXT_SIGNAL_REPEAT("player_title") + SCROLLING_TEXT_SIGNAL_REPEAT("player_year") + SCROLLING_TEXT_SIGNAL_REPEAT("player_duration") + + program + { + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,active,blue" "calaos"; + } + + program + { + name: "show_cover"; + signal: "track,cover"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.5; + target: "player_cover_clip"; + } + + program + { + name: "hide_cover"; + signal: "track,nocover"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "player_cover_clip"; + } + } +} + +group +{ + name: "calaos/page/media/audio_list"; + + script + { + public player_selected; + } + + parts + { + part + { + name: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + } + } + part + { + name: "content_size"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + } + } + + part + { + name: "skyline_middle_gradient"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "middle_skyline.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -3; } + rel2 { relative: 1.0 1.0; offset: -1 43; } + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + color: 255 255 255 60; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "skyline_middle_neon"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "middle_skyline_neon.png"; } + rel1 { relative: 0.0 0.49; offset: 0 -6; } + rel2 { relative: 1.0 0.49; offset: -1 -1; } + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "round_buttons_whole"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 20 -33; } + rel2 { relative: 1.0 0.5; offset: -20 32; } + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + } + description + { + state: "edit" 1.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + } + } + + ROUND_BUTTON("button_previous_room", + "round_buttons_whole", + "round_buttons_whole", "round_buttons_whole", + "button_previous.png", "button_previous_glow.png", "button_previous_off.png", + "page,left", "audio", + "left", + 0.0, 0.0, 0, 0, + 0.0, 1.0, 65, -1) + + ROUND_BUTTON("button_next_room", + "round_buttons_whole", + "round_buttons_whole", "round_buttons_whole", + "button_next.png", "button_next_glow.png", "button_next_off.png", + "page,right", "audio", + "right", + 1.0, 0.0, -66, 0, + 1.0, 1.0, -1, -1) + + part + { + name: "player_1_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -414 -249; } + rel2 { relative: 0.5 0.5; offset: -138 265; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: -414-500 -249; } + rel2 { relative: 0.0 0.5; offset: -138-500 265; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: -414+500 -249; } + rel2 { relative: 1.0 0.5; offset: -138+500 265; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -321 -249; } + rel2 { relative: 0.5 0.5; offset: -45 265; } + } + description + { + state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "player.swallow.1"; + type: SWALLOW; + clip_to: "player_1_clip"; + description + { + state: "default" 0.0; + rel1.to: "player_1_clip"; + rel2.to: "player_1_clip"; + } + } + + part + { + name: "player_2_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -138 -249; } + rel2 { relative: 0.5 0.5; offset: 138 265; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: -138-500 -249; } + rel2 { relative: 0.0 0.5; offset: 138-500 265; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: -138+500 -249; } + rel2 { relative: 1.0 0.5; offset: 138+500 265; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + rel1 { relative: 0.5 0.5; offset: -321 -249; } + rel2 { relative: 0.5 0.5; offset: -45 265; } + visible: 1; + color: 255 255 255 255; + } + description + { + state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "player.swallow.2"; + type: SWALLOW; + clip_to: "player_2_clip"; + description + { + state: "default" 0.0; + rel1.to: "player_2_clip"; + rel2.to: "player_2_clip"; + } + } + + part + { + name: "player_3_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: 138 -249; } + rel2 { relative: 0.5 0.5; offset: 414 265; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: 138-500 -249; } + rel2 { relative: 0.0 0.5; offset: 414-500 265; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: 138+500 -249; } + rel2 { relative: 1.0 0.5; offset: 414+500 265; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + rel1 { relative: 0.5 0.5; offset: -321 -249; } + rel2 { relative: 0.5 0.5; offset: -45 265; } + visible: 1; + color: 255 255 255 255; + } + description + { + state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "player.swallow.3"; + type: SWALLOW; + clip_to: "player_3_clip"; + description + { + state: "default" 0.0; + rel1.to: "player_3_clip"; + rel2.to: "player_3_clip"; + } + } + + part + { + name: "playlist_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.0; offset: 60 20; } + rel2 { relative: 1.0 1.0; offset: -160+60 -20; } + rel1.to: "content_size"; + rel2.to: "content_size"; + max: 450 -1; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.0; offset: 0 20; } + rel2 { relative: 1.0 1.0; offset: -160 -20; } + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 1.0; + inherit: "detail" 0.0; + rel1 { relative: 0.5 0.0; offset: 137 20; } + rel2 { relative: 1.0 1.0; offset: -20 -20; } + } + description + { + state: "edit" 0.0; + inherit: "detail" 0.0; + rel1 { relative: 0.5 0.0; offset: 137 143+60; } + rel2 { relative: 1.0 1.0; offset: -20 -20; } + } + } + + part + { + name: "playlist_deco"; + clip_to: "playlist_clip"; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + rel1.to: "playlist_clip"; + rel2.to: "playlist_clip"; + } + } + + part + { + name: "playlist.swallow"; + type: SWALLOW; + clip_to: "playlist_clip"; + description + { + state: "default" 0.0; + rel1.to: "playlist_deco"; + rel2.to: "playlist_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "player_small_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 0.0 0.0; offset: 372 143; } + rel1.to_x: "playlist_clip"; + rel2.to_x: "playlist_clip"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.0 0.0; offset: 0 10; } + rel2 { relative: 0.0 0.0; offset: 372 10+143; } + } + } + + alias: "player.artist" "player.small:player_artist:text"; + alias: "player.album" "player.small:player_album:text"; + alias: "player.title" "player.small:player_title:text"; + alias: "player.year" "player.small:player_year:text"; + alias: "player.duration" "player.small:player_duration:text"; + alias: "player.cover" "player.small:player_cover"; + part + { + name: "player.small"; + clip_to: "player_small_clip"; + type: GROUP; + source: "calaos/audio/player/small"; + description + { + state: "default" 0.0; + rel1.to: "player_small_clip"; + rel2.to: "player_small_clip"; + } + } + + + part + { + name: "browser_clip"; + type: RECT; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 36-600 14; } + rel2 { relative: 0.5 1.0; offset: 45-600 -23; } + rel1.to: "content_size"; + rel2.to: "content_size"; + max: 550 -1; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "detail" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.0 0.0; offset: 36 14; } + rel2 { relative: 0.5 1.0; offset: 45 -23; } + } + } + + part + { + name: "browser.swallow"; + type: SWALLOW; + clip_to: "browser_clip"; + description + { + state: "default" 0.0; + rel1.to: "browser_deco"; + rel2.to: "browser_deco"; + rel1.offset: 2 2; + rel2.offset: -2 -46; + } + } + + part + { + name: "browser_loading"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "browser.swallow"; + rel2.to: "browser.swallow"; + visible: 0; + color: 0 0 0 0; + } + description + { + state: "loading" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 0 0 0 70; + } + } + + part + { + name: "browser_deco"; + clip_to: "browser_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "browser_list_decoration.png"; border: 232 8 8 51; } + rel1.to: "browser_clip"; + rel2.to: "browser_clip"; + rel1.offset: 0 30; + } + } + + part + { + name: "browser_header"; + clip_to: "browser_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "list_message_border.png"; border: 10 10 10 10; } + rel1 { relative: 0.0 0.0; offset: 0 -30; } + rel2 { relative: 1.0 0.0; offset: -1 -3; } + rel1.to: "browser_deco"; + rel2.to: "browser_deco"; + } + } + + part + { + name: "browser_header_loading"; + type: GROUP; + source: "calaos/spinner/micro"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: -10-15 -8; } + rel2 { relative: 1.0 0.5; offset: -10 7; } + rel1.to: "browser_header"; + rel2.to: "browser_header"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "loading" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "browser.message"; + clip_to: "browser_clip"; + mouse_events: 0; + type: TEXTBLOCK; + description { + state, "default" 0.0; + rel1.offset: 10 0; + rel2.offset: -10 -1; + rel1.to: "browser_header"; + rel2.to: "browser_header"; + text { + text: "Discothèque : 123 albums avec 123 pistes par 123 artistes."; + style: "StandardText"; + } + } + } + + part + { + name: "button.browser.root"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "browser_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position/browser_icon"; + string: "label" "Ma Musique"; + string: "icon" "calaos/icons/position_button/album"; + } + rel1 { relative: 0.0 1.0; offset: 16 -44; to: "browser_clip"; } + rel2 { relative: 0.0 1.0; offset: 151 -3; to: "browser_clip"; } + } + } + + part + { + name: "button.browser.back"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "browser_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position/browser"; + string: "label" "Retour"; + } + rel1 { relative: 0.0 1.0; offset: 154 -44; to: "browser_clip"; } + rel2 { relative: 0.0 1.0; offset: 223 -3; to: "browser_clip"; } + } + } + + part + { + name: "volume_slider_whole"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: -28-13 60; } + rel2 { relative: 0.0 0.0; offset: -13 60+140; } + rel1.to: "player.small"; + rel2.to: "player.small"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + visible: 1; + } + } + + part + { + name: "player_button_volume_more"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 -35; } + rel2 { relative: 1.0 0.0; offset: -1 -3; } + rel1.to: "volume_slider_whole"; + rel2.to: "volume_slider_whole"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + visible: 1; + } + } + + part + { + name: "player_button_volume_less"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 4; } + rel2 { relative: 1.0 1.0; offset: -1 35; } + rel1.to: "volume_slider_whole"; + rel2.to: "volume_slider_whole"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + visible: 1; + } + } + + part + { + name: "player.volume"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 -18;} + rel2 { relative: 1.0 0.0; offset: -1 -1;} + rel1.to: "player_button_volume_more"; + rel2.to: "player_button_volume_more"; + color: 231 231 231 0; + visible: 0; + text { text: "000%"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.5 0.5; } + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + color: 231 231 231 100; + visible: 1; + } + } + + ELEMENT_ACTION_BUTTON_NORMAL("volume_more", "player_button_volume_more", "player_button_volume_more", "player_button_volume_more", "button_action_more_vertical.png", "button_action_vertical_glow.png", "player", "player,volume,plus", 0.5, 0.5, -14, -17, 0.5, 0.5, 13, 16) + ELEMENT_ACTION_BUTTON_NORMAL("volume_less", "player_button_volume_less", "player_button_volume_less", "player_button_volume_less", "button_action_less_vertical.png", "button_action_vertical_glow.png", "player", "player,volume,moins", 0.5, 0.5, -14, -17, 0.5, 0.5, 13, 16) + VERTI_SLIDER("player.volume.slider", "volume_slider_whole", 50, 180, 215, "slider_vertical.png", "slider_vertical_on.png", "slider_border.png", "player", "player,volume,change", "local", "slider,volume,inactive", "local", "slider,volume,active") + + part + { + name: "player_buttons"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 44; } + rel1.to: "player.small"; + rel2.to: "player.small"; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "left" 0.0; + inherit: "default" 0.0; + } + description + { + state: "right" 0.0; + inherit: "default" 0.0; + } + description + { + state: "edit" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + visible: 1; + } + } + + part + { + name: "time_slider_whole"; + type: RECT; + clip_to: "player_buttons"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 148 0; } + rel2 { relative: 0.0 1.0; offset: 148+200 -1; } + rel1.to: "player_buttons"; + rel2.to: "player_buttons"; + } + } + + part + { + name: "button_play_clip"; + type: RECT; + clip_to: "player_buttons"; + description + { + state: "default" 0.0; + rel1.to: "player_buttons"; + rel2.to: "player_buttons"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "playing" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "button_pause_clip"; + type: RECT; + clip_to: "player_buttons"; + description + { + state: "default" 0.0; + rel1.to: "player_buttons"; + rel2.to: "player_buttons"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "playing" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + ELEMENT_ACTION_BUTTON_NORMAL("previous_track", "player_buttons", "player_buttons", "player_buttons", "button_action_previous.png", "button_action_glow.png", "player", "player,previous", 0.0, 0.5, 0, -14, 0.0, 0.5, 33, 13) + ELEMENT_ACTION_BUTTON_NORMAL("play_button", "button_play_clip", "button_play_clip", "button_play_clip", "button_action_play.png", "button_action_glow.png", "player", "player,play", 0.0, 0.5, 37, -14, 0.0, 0.5, 70, 13) + ELEMENT_ACTION_BUTTON_NORMAL("pause_button", "button_pause_clip", "button_pause_clip", "button_pause_clip", "button_action_pause.png", "button_action_glow.png", "player", "player,pause", 0.0, 0.5, 37, -14, 0.0, 0.5, 70, 13) + ELEMENT_ACTION_BUTTON_NORMAL("stop_button", "player_buttons", "player_buttons", "player_buttons", "button_action_stop.png", "button_action_glow.png", "player", "player,stop", 0.0, 0.5, 74, -14, 0.0, 0.5, 107, 13) + ELEMENT_ACTION_BUTTON_NORMAL("next_button", "player_buttons", "player_buttons", "player_buttons", "button_action_next.png", "button_action_glow.png", "player", "player,next", 0.0, 0.5, 111, -14, 0.0, 0.5, 144, 13) + + HORIZ_SLIDER("player.time.slider", "time_slider_whole", "message.text", "Avancement :", "player.time", "00:00", 50, 180, 215, "slider.png", "slider_on.png", "slider_border.png", "player", "player,time,change", "local", "slider,timer,inactive", "local", "slider,timer,active") + + #include "activity_loading.edc" + } + + programs + { + program + { + name: "on_show"; + signal: "show"; + source: ""; + action: STATE_SET "right" 0.0; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + after: "show_delayed"; + after: "sig_volume"; + } + + program + { + name: "show_delayed"; + in: 0.15 0.0; + after: "show_players"; + } + + program + { + name: "sig_volume"; + action: SIGNAL_EMIT "slider,volume,active" "local"; + } + + program + { + name: "hide_left"; + signal: "hide,left"; + source: "calaos"; + action: STATE_SET "left" 0.0; + transition: ACCELERATE 0.4; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + target: "playlist_clip"; + after: "reset_right"; + } + program + { + name: "reset_right"; + action: STATE_SET "right" 0.0; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + after: "send_sig_done"; + } + + program + { + name: "send_sig_done"; + action: SIGNAL_EMIT "animation,done" "audio"; + } + + program + { + name: "hide_right"; + signal: "hide,right"; + source: "calaos"; + action: STATE_SET "right" 0.0; + transition: ACCELERATE 0.4; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + target: "playlist_clip"; + after: "reset_left"; + } + program + { + name: "reset_left"; + action: STATE_SET "left" 0.0; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + after: "send_sig_done"; + } + + program + { + name: "show_players"; + signal: "show"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.4; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + } + + program + { + name: "select_mode1"; + signal: "select,player,1"; + source: "calaos"; + after: "mode_detail_player_1"; + after: "mode_hide_player_2"; + after: "mode_hide_player_3"; + after: "mode_detail_playlist"; + after: "select_mode1_script"; + } + program + { + name: "select_mode1_script"; + script + { + set_int(player_selected, 1); + } + } + + program + { + name: "select_mode2"; + signal: "select,player,2"; + source: "calaos"; + after: "mode_detail_player_2"; + after: "mode_hide_player_1"; + after: "mode_hide_player_3"; + after: "mode_detail_playlist"; + after: "select_mode2_script"; + } + program + { + name: "select_mode2_script"; + script + { + set_int(player_selected, 2); + } + } + + program + { + name: "select_mode3"; + signal: "select,player,3"; + source: "calaos"; + after: "mode_detail_player_3"; + after: "mode_hide_player_2"; + after: "mode_hide_player_1"; + after: "mode_detail_playlist"; + after: "select_mode3_script"; + } + program + { + name: "select_mode3_script"; + script + { + set_int(player_selected, 3); + } + } + + program + { + name: "mode_hide_player_1"; + action: STATE_SET "hide" 0.0; + transition: ACCELERATE 0.4; + target: "player_1_clip"; + } + + program + { + name: "mode_hide_player_2"; + action: STATE_SET "hide" 0.0; + transition: ACCELERATE 0.4; + target: "player_2_clip"; + } + + program + { + name: "mode_hide_player_3"; + action: STATE_SET "hide" 0.0; + transition: ACCELERATE 0.4; + target: "player_3_clip"; + } + + program + { + name: "mode_hide_left_player_1"; + action: STATE_SET "left" 0.0; + transition: ACCELERATE 0.4; + target: "player_1_clip"; + } + + program + { + name: "mode_hide_left_player_2"; + action: STATE_SET "left" 0.0; + transition: ACCELERATE 0.4; + target: "player_2_clip"; + } + + program + { + name: "mode_hide_left_player_3"; + action: STATE_SET "left" 0.0; + transition: ACCELERATE 0.4; + target: "player_3_clip"; + } + + program + { + name: "mode_detail_player_1"; + action: STATE_SET "detail" 0.0; + transition: DECELERATE 0.4; + target: "player_1_clip"; + } + + program + { + name: "mode_detail_player_2"; + action: STATE_SET "detail" 0.0; + transition: DECELERATE 0.4; + target: "player_2_clip"; + } + + program + { + name: "mode_detail_player_3"; + action: STATE_SET "detail" 0.0; + transition: DECELERATE 0.4; + target: "player_3_clip"; + } + + program + { + name: "mode_detail_playlist"; + action: STATE_SET "detail" 0.0; + transition: DECELERATE 0.4; + target: "playlist_clip"; + target: "skyline_middle_gradient"; + target: "skyline_middle_neon"; + } + + program + { + name: "unselect_mode"; + signal: "unselect,players"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.25 CURRENT; + target: "player_1_clip"; + target: "player_2_clip"; + target: "player_3_clip"; + target: "playlist_clip"; + target: "browser_clip"; + target: "volume_slider_whole"; + target: "player_button_volume_less"; + target: "player_button_volume_more"; + target: "player.volume"; + target: "player_buttons"; + target: "skyline_middle_gradient"; + target: "skyline_middle_neon"; + } + + program + { + name: "mode_edit_playlist"; + signal: "open,edit,playlist"; + source: "calaos"; + action: STATE_SET "edit" 1.0; + transition: ACCELERATE 0.4 CURRENT; + target: "playlist_clip"; + target: "round_buttons_whole"; + after: "mode_edit_playlist2"; + } + + program + { + name: "mode_edit_playlist2"; + action: STATE_SET "edit" 0.0; + transition: DECELERATE 0.4 CURRENT; + target: "playlist_clip"; + target: "browser_clip"; + target: "volume_slider_whole"; + target: "player_button_volume_less"; + target: "player_button_volume_more"; + target: "player.volume"; + target: "player_buttons"; + target: "player_small_clip"; + } + + program + { + name: "mode_edit_playlist_script"; + signal: "open,edit,playlist"; + source: "calaos"; + script + { + if (get_int(player_selected) == 1) + run_program(PROGRAM:"mode_hide_left_player_1"); + if (get_int(player_selected) == 2) + run_program(PROGRAM:"mode_hide_left_player_2"); + if (get_int(player_selected) == 3) + run_program(PROGRAM:"mode_hide_left_player_3"); + } + } + + program + { + name: "mode_unedit_playlist"; + signal: "close,edit,playlist"; + source: "calaos"; + action: STATE_SET "edit" 1.0; + transition: ACCELERATE 0.4 CURRENT; + target: "playlist_clip"; + after: "mode_unedit_playlist2"; + after: "mode_unedit_playlist_script"; + } + program + { + name: "mode_unedit_playlist3"; + signal: "close,edit,playlist"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.4 CURRENT; + target: "browser_clip"; + target: "volume_slider_whole"; + target: "player_button_volume_less"; + target: "player_button_volume_more"; + target: "player.volume"; + target: "player_buttons"; + target: "player_small_clip"; + } + program + { + name: "mode_unedit_playlist2"; + action: STATE_SET "detail" 0.0; + transition: ACCELERATE 0.4 CURRENT; + target: "playlist_clip"; + target: "round_buttons_whole"; + } + + program + { + name: "mode_unedit_playlist_script"; + script + { + if (get_int(player_selected) == 1) + run_program(PROGRAM:"mode_detail_player_1"); + if (get_int(player_selected) == 2) + run_program(PROGRAM:"mode_detail_player_2"); + if (get_int(player_selected) == 3) + run_program(PROGRAM:"mode_detail_player_3"); + } + } + + program + { + name: "player_play"; + signal: "player,playing"; + source: "calaos"; + action: STATE_SET "playing" 0.0; + transition: DECELERATE 0.01; + target: "button_pause_clip"; + target: "button_play_clip"; + } + + program + { + name: "player_stop"; + signal: "player,stop"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.01; + target: "button_pause_clip"; + target: "button_play_clip"; + } + + program + { + name: "sig_player_small_cover"; + signal: "track,cover"; + source: "calaos"; + action: SIGNAL_EMIT "player.small:track,cover" "calaos"; + } + + program + { + name: "sig_player_small_nocover"; + signal: "track,nocover"; + source: "calaos"; + action: SIGNAL_EMIT "player.small:track,nocover" "calaos"; + } + + program + { + name: "sig_browser_loading"; + signal: "browser,loading,start"; + source: "calaos"; + action: STATE_SET "loading" 0.0; + transition: ACCELERATE 0.15; + target: "browser_header_loading"; + target: "browser_loading"; + } + + program + { + name: "sig_browser_loading_done"; + signal: "browser,loading,stop"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.35; + target: "browser_header_loading"; + target: "browser_loading"; + } + } + +} + +group +{ + name: "calaos/audio/browser/button"; + + min: 243 61; + + parts + { + part + { + name: "bg"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "button_browser.png"; border: 12 12 15 15; } + } + } + + part + { + name: "glow"; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 0; + image { normal: "button_browser_glow.png"; border: 12 12 15 15; } + color: 255 255 255 0; + } + description + { + state: "touched" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "total"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -68 0; } + rel2 { relative: 1.0 1.0; offset: -20 -1; } + color: 255 218 90 255; + text { text: "0000"; font: "CalaosContent"; size: 10; min: 0 0; align: 1.0 0.5; } + } + } + + part + { + name: "title"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.55; offset: 35 -18; } + rel2 { relative: 1.0 0.55; offset: -21 -1; } + color: 58 180 215 255; + text { text: "Titre de l'objet"; font: "CalaosContent"; size: 15; min: 0 0; align: 0.0 0.5; } + } + } + + part + { + name: "subtitle"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.55; offset: 35 0; } + rel2 { relative: 1.0 0.55; offset: -21 14; } + color: 231 231 231 140; + text { text: "Sous-titre de l'élément"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.0 0.5; } + } + } + + part + { + name: "event"; + type: RECT; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + } + + programs + { + program + { + name: "on_click"; + signal: "mouse,down,1"; + source: "event"; + action: STATE_SET "touched" 0.0; + target: "glow"; + } + program + { + name: "on_release"; + signal: "mouse,up,1"; + source: "event"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.3; + target: "glow"; + } + program + { + name: "sig"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "pressed" "button"; + } + } +} + +group +{ + name: "calaos/audio/browser/root"; + + parts + { + part + { + name: "table"; + type: TABLE; + description + { + state: "default" 0.0; + rel1.offset: 0 5; + rel2.offset: -1 -6; + table + { + homogeneous: ITEM; + padding: 10 7; + align: 0.5 0.0; + min: 1 1; + } + } + } + } +} + + diff --git a/data/themes/default/structure/page_camera.edc b/data/themes/default/structure/page_camera.edc new file mode 100644 index 00000000..9d011979 --- /dev/null +++ b/data/themes/default/structure/page_camera.edc @@ -0,0 +1,1386 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/camera/small"; + + min: 218 300; + max: 218 300; + + parts + { + part + { + name: "camera_border"; + description + { + image.normal: "camera_border.png"; + rel1 { relative: 0.0 0.0; offset: 0 25; } + rel2 { relative: 0.0 0.0; offset: 217 25+171; } + } + } + + part + { + name: "title"; + type: TEXT; + description + { + state: "default" 0.0; + text { text: "Camera Title"; font: "CalaosContent"; size: 13; min: 0 0; align: 0.0 0.5; } + color: 231 231 231 255; + rel1 { relative: 0.0 0.0; offset: 30 11; } + rel2 { relative: 1.0 0.0; offset: -11 19; } + } + } + + part + { + name: "camera_icon"; + description + { + image.normal: "icon_camera_title.png"; + rel1 { relative: 0.0 0.0; offset: 8 7; } + rel2 { relative: 0.0 0.0; offset: 8+14 7+15; } + } + } + + part + { + name: "camera_reflect"; + description + { + image.normal: "camera_reflect.png"; + rel1 { relative: 0.0 1.0; offset: 0 -1-68; } + rel2 { relative: 0.0 1.0; offset: 217 -1; } + } + } + + part + { + name: "clip_camera_swallow"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + rel1 { relative: 0.0 0.0; offset: 14 40; } + rel2 { relative: 0.0 0.0; offset: 202 182; } + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "clip_camera_nocam"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "visible" 0.0; + visible: 0; + color: 0 0 0 0; + } + } + + part + { + name: "camera_nocam"; + clip_to: "clip_camera_nocam"; + description + { + image.normal: "camera_nocam.png"; + rel1 { relative: 0.0 0.0; offset: 17 43; } + rel2 { relative: 0.0 0.0; offset: 17+181 43+135; } + } + } + + part + { + name: "camera.swallow"; + clip_to: "clip_camera_swallow"; + type: SWALLOW; + description + { + rel1.to: "clip_camera_swallow"; + rel2.to: "clip_camera_swallow"; + } + } + + part + { + name: "camera_spinner"; + clip_to: "clip_camera_nocam"; + type: GROUP; + source: "calaos/spinner/mini"; + description + { + rel1 { relative: 0.0 0.0; offset: 176 156; } + rel2 { relative: 0.0 0.0; offset: 176+21 156+21; } + } + } + + part + { + name: "subtitle"; + clip_to: "clip_camera_nocam"; + type: TEXT; + description + { + state: "default" 0.0; + text { text: "Aucune caméra connectée"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.0 0.5; } + color: 231 231 231 255; + rel1 { relative: 0.0 0.0; offset: 30 156; } + rel2 { relative: 0.0 0.0; offset: 174 156+22; } + } + } + } + + programs + { + program + { + name: "show_image"; + signal: "show,picture"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.4; + target: "clip_camera_swallow"; + target: "clip_camera_nocam"; + } + + program + { + name: "hide_image"; + signal: "hide,picture"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.4; + target: "clip_camera_swallow"; + target: "clip_camera_nocam"; + } + } +} + +group +{ + name: "calaos/page/media/camera_list"; + + parts + { + part + { + name: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + } + } + part + { + name: "content_size"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + } + } + + part + { + name: "skyline_middle_gradient"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "middle_skyline.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -3; } + rel2 { relative: 1.0 1.0; offset: -1 43; } + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + color: 255 255 255 60; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "skyline_middle_neon"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "middle_skyline_neon.png"; } + rel1 { relative: 0.0 0.49; offset: 0 -6; } + rel2 { relative: 1.0 0.49; offset: -1 -1; } + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "round_buttons_whole"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 20 -33; } + rel2 { relative: 1.0 0.5; offset: -20 32; } + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + ROUND_BUTTON("button_previous_room", + "round_buttons_whole", + "round_buttons_whole", "round_buttons_whole", + "button_previous.png", "button_previous_glow.png", "button_previous_off.png", + "page,left", "camera", + "left", + 0.0, 0.0, 0, 0, + 0.0, 1.0, 65, -1) + + ROUND_BUTTON("button_next_room", + "round_buttons_whole", + "round_buttons_whole", "round_buttons_whole", + "button_next.png", "button_next_glow.png", "button_next_off.png", + "page,right", "camera", + "right", + 1.0, 0.0, -66, 0, + 1.0, 1.0, -1, -1) + + part + { + name: "camera_1_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -428 -250+27; } + rel2 { relative: 0.5 0.5; offset: -210 53+27; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: -428-500 -250+27; } + rel2 { relative: 0.0 0.5; offset: -210-500 53+27; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: -428+500 -250+27; } + rel2 { relative: 1.0 0.5; offset: -210+500 53+27; } + visible: 0; + color: 255 255 255 0; + } + } + + alias: "camera.swallow.1" "camera_1:camera.swallow"; + alias: "camera.title.1" "camera_1:title"; + alias: "camera.subtitle.1" "camera_1:subtitle"; + part + { + name: "camera_1"; + type: GROUP; + source: "calaos/camera/small"; + clip_to: "camera_1_clip"; + description + { + state: "default" 0.0; + rel1.to: "camera_1_clip"; + rel2.to: "camera_1_clip"; + } + } + + part + { + name: "camera_2_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -215 -250+27; } + rel2 { relative: 0.5 0.5; offset: 2 53+27; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: -215-500 -250+27; } + rel2 { relative: 0.0 0.5; offset: 2-500 53+27; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: -215+500 -250+27; } + rel2 { relative: 1.0 0.5; offset: 2+500 53+27; } + visible: 0; + color: 255 255 255 0; + } + } + + alias: "camera.swallow.2" "camera_2:camera.swallow"; + alias: "camera.title.2" "camera_2:title"; + alias: "camera.subtitle.2" "camera_2:subtitle"; + part + { + name: "camera_2"; + type: GROUP; + source: "calaos/camera/small"; + clip_to: "camera_2_clip"; + description + { + state: "default" 0.0; + rel1.to: "camera_2_clip"; + rel2.to: "camera_2_clip"; + } + } + + part + { + name: "camera_3_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -2 -250+27; } + rel2 { relative: 0.5 0.5; offset: 215 53+27; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: -2-500 -250+27; } + rel2 { relative: 0.0 0.5; offset: 215-500 53+27; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: -2+500 -250+27; } + rel2 { relative: 1.0 0.5; offset: 215+500 53+27; } + visible: 0; + color: 255 255 255 0; + } + } + + alias: "camera.swallow.3" "camera_3:camera.swallow"; + alias: "camera.title.3" "camera_3:title"; + alias: "camera.subtitle.3" "camera_3:subtitle"; + part + { + name: "camera_3"; + type: GROUP; + source: "calaos/camera/small"; + clip_to: "camera_3_clip"; + description + { + state: "default" 0.0; + rel1.to: "camera_3_clip"; + rel2.to: "camera_3_clip"; + } + } + + part + { + name: "camera_4_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: 212 -250+27; } + rel2 { relative: 0.5 0.5; offset: 428 53+27; } + } + description + { + state: "left" 0.0; + rel1 { relative: 0.0 0.5; offset: 212-500 -250+27; } + rel2 { relative: 0.0 0.5; offset: 428-500 53+27; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "right" 0.0; + rel1 { relative: 1.0 0.5; offset: 212+500 -250+27; } + rel2 { relative: 1.0 0.5; offset: 428+500 53+27; } + visible: 0; + color: 255 255 255 0; + } + } + + alias: "camera.swallow.4" "camera_4:camera.swallow"; + alias: "camera.title.4" "camera_4:title"; + alias: "camera.subtitle.4" "camera_4:subtitle"; + part + { + name: "camera_4"; + type: GROUP; + source: "calaos/camera/small"; + clip_to: "camera_4_clip"; + description + { + state: "default" 0.0; + rel1.to: "camera_4_clip"; + rel2.to: "camera_4_clip"; + } + } + + part + { + name: "module_scenario_bloc"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.75; offset: -368-10 -53-20+22;} + rel2 { relative: 0.5 0.75; offset: 367+10 52+32+22;} + color: 255 255 255 255; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "home.pager"; + type: SWALLOW; + clip_to: "module_scenario_bloc"; + description + { + state: "default" 0.0; + rel1.to: "module_scenario_bloc"; + rel2.to: "module_scenario_bloc"; + } + } + + part + { + name: "pager_deco_left"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "player_line_decoration_right.png"; } + rel1 { relative: 0.0 0.0; offset: -1 -10; } + rel2 { relative: 0.0 1.0; offset: 15 -1; } + rel1.to: "home.pager"; + rel2.to: "home.pager"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "pager_deco_right"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "player_line_decoration_left.png"; } + rel1 { relative: 1.0 0.0; offset: -16 -10; } + rel2 { relative: 1.0 1.0; offset: 0 -1; } + rel1.to: "home.pager"; + rel2.to: "home.pager"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + #define CAMERA_CLICK_EVENT(id) \ + part \ + { \ + name: "camera_click_"id; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "camera_"id"_clip"; \ + rel2.to: "camera_"id"_clip"; \ + color: 0 0 0 0; \ + } \ + } + + CAMERA_CLICK_EVENT("1") + CAMERA_CLICK_EVENT("2") + CAMERA_CLICK_EVENT("3") + CAMERA_CLICK_EVENT("4") + + #include "activity_loading.edc" + } + + programs + { + #define CAMERA_SIGNAL_REPEAT(camera) \ + program \ + { \ + name: "show_cam_"camera; \ + signal: "show,picture,"camera; \ + source: "calaos"; \ + action: SIGNAL_EMIT "camera_"camera":show,picture" "calaos"; \ + } \ + program \ + { \ + name: "hide_cam_"camera; \ + signal: "hide,picture,"camera; \ + source: "calaos"; \ + action: SIGNAL_EMIT "camera_"camera":hide,picture" "calaos"; \ + } + + CAMERA_SIGNAL_REPEAT("1") + CAMERA_SIGNAL_REPEAT("2") + CAMERA_SIGNAL_REPEAT("3") + CAMERA_SIGNAL_REPEAT("4") + + program + { + name: "show_pager_deco"; + signal: "show,edge"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 0.15; + target: "pager_deco_left"; + target: "pager_deco_right"; + } + program + { + name: "hide_pager_deco"; + signal: "hide,edge"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.35; + target: "pager_deco_left"; + target: "pager_deco_right"; + } + + program + { + name: "on_show"; + signal: "show"; + source: ""; + action: STATE_SET "right" 0.0; + target: "camera_1_clip"; + target: "camera_2_clip"; + target: "camera_3_clip"; + target: "camera_4_clip"; + after: "show_delayed"; + } + + program + { + name: "show_delayed"; + in: 0.15 0.0; + after: "show_cameras"; + } + + program + { + name: "hide_left"; + signal: "hide,left"; + source: "calaos"; + action: STATE_SET "left" 0.0; + transition: ACCELERATE 0.4; + target: "camera_1_clip"; + target: "camera_2_clip"; + target: "camera_3_clip"; + target: "camera_4_clip"; + after: "reset_right"; + } + program + { + name: "reset_right"; + action: STATE_SET "right" 0.0; + target: "camera_1_clip"; + target: "camera_2_clip"; + target: "camera_3_clip"; + target: "camera_4_clip"; + after: "send_sig_done"; + } + + program + { + name: "send_sig_done"; + action: SIGNAL_EMIT "animation,done" "cameras"; + } + + program + { + name: "hide_right"; + signal: "hide,right"; + source: "calaos"; + action: STATE_SET "right" 0.0; + transition: ACCELERATE 0.4; + target: "camera_1_clip"; + target: "camera_2_clip"; + target: "camera_3_clip"; + target: "camera_4_clip"; + after: "reset_left"; + } + program + { + name: "reset_left"; + action: STATE_SET "left" 0.0; + target: "camera_1_clip"; + target: "camera_2_clip"; + target: "camera_3_clip"; + target: "camera_4_clip"; + after: "send_sig_done"; + } + + program + { + name: "show_cameras"; + signal: "show"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.4; + target: "camera_1_clip"; + target: "camera_2_clip"; + target: "camera_3_clip"; + target: "camera_4_clip"; + } + + #define CAMERA_CLICK_EVENT_PROG(id) \ + program \ + { \ + name: "click_camera_"id; \ + signal: "mouse,clicked,1"; \ + source: "camera_click_"id; \ + action: SIGNAL_EMIT "select,"id "camera"; \ + } + + CAMERA_CLICK_EVENT_PROG("1") + CAMERA_CLICK_EVENT_PROG("2") + CAMERA_CLICK_EVENT_PROG("3") + CAMERA_CLICK_EVENT_PROG("4") + } + +} + + +group +{ + name: "calaos/page/media/camera_select"; + + script + { + public is_fullscreen; + public is_ptz; + } + + parts + { + part + { + name: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + } + } + part + { + name: "content_size"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + } + } + + part + { + name: "room_title.text"; + type: TEXT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + text { text: "Room Title"; font: "CalaosContent"; size: 13; min: 0 0; align: 0.0 0.5; } + color: 231 231 231 255; + rel1 { relative: 0.0 0.0; offset: 20+40 20; } + rel2 { relative: 0.5 0.0; offset: -11 20+30; } + max: 410 -1; + } + } + + part + { + name: "icon_room"; + clip_to: "content_clip"; + description + { + image.normal: "icon_room.png"; + rel1 { relative: 0.0 0.5; offset: -21-10 -8; to: "room_title.text"; } + rel2 { relative: 0.0 0.5; offset: -1-10 7; to: "room_title.text"; } + } + } + + part + { + name: "list_deco_left"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + rel1 { relative: 0.0 0.0; offset: 20 20+30; } + rel2 { relative: 0.5 1.0; offset: -160 -20; } + rel1.to: "content_size"; + rel2.to: "content_size"; + max: 410 -1; + } + } + + part + { + name: "list.swallow"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "list_deco_left"; + rel2.to: "list_deco_left"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "button_position_clip"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 255 255 255 0; + visible: 0; + rel1 { relative: 0.5 1.0; offset: -153 -20-160; } + rel2 { relative: 1.0 1.0; offset: -20 -20; } + rel1.to: "content_size"; + rel2.to: "content_size"; + } + description + { + state: "ptz" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + visible: 1; + } + + } + + #define BUTTON_CAMERA_POSITION(id, offset_x1, offset_y1, offset_x2, offset_y2) \ + part \ + { \ + name: "button.position."id; \ + type: EXTERNAL; \ + source: "elm/button"; \ + clip_to: "button_position_clip"; \ + description \ + { \ + state: "default" 0.0; \ + params \ + { \ + string: "style" "calaos/button/position"; \ + string: "label" "Position "id; \ + } \ + rel1 { relative: 0.0 0.0; offset: offset_x1 offset_y1; to: "button_position_clip"; } \ + rel2 { relative: 0.0 0.0; offset: offset_x2 offset_y2; to: "button_position_clip"; } \ + } \ + } + + #ifdef BSPACER + #undef BSPACER + #endif + #define BSPACER 30 + BUTTON_CAMERA_POSITION("1", 38, 0, 38+112, 36) + BUTTON_CAMERA_POSITION("2", 38+112+BSPACER, 0, 38+112+BSPACER+112, 36) + BUTTON_CAMERA_POSITION("3", 38+112+BSPACER+112+BSPACER, 0, 38+112+BSPACER+112+BSPACER+112, 36) + BUTTON_CAMERA_POSITION("4", 38+112+BSPACER+112+BSPACER+112+BSPACER, 0, 38+112+BSPACER+112+BSPACER+112+BSPACER+112, 36) + + BUTTON_CAMERA_POSITION("5", 38, 50, 38+112, 86) + BUTTON_CAMERA_POSITION("6", 38+112+BSPACER, 50, 38+112+BSPACER+112, 86) + BUTTON_CAMERA_POSITION("7", 38+112+BSPACER+112+BSPACER, 50, 38+112+BSPACER+112+BSPACER+112, 86) + BUTTON_CAMERA_POSITION("8", 38+112+BSPACER+112+BSPACER+112+BSPACER, 50, 38+112+BSPACER+112+BSPACER+112+BSPACER+112, 86) + + part + { + name: "button.position.save"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_position_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position"; + string: "label" "Sauver la position actuelle"; + } + rel1 { relative: 0.0 0.0; offset: 38 100; to: "button_position_clip"; } + rel2 { relative: 0.0 0.0; offset: 38+112+BSPACER+112 136 ; to: "button_position_clip"; } + } + } + + part + { + name: "camera_mask"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 0 0 0 0; + visible: 0; + } + description + { + state: "ptz" 0.0; + color: 0 0 0 0; + visible: 0; + } + description + { + state: "fullscreen" 0.0; + color: 0 0 0 150; + visible: 1; + } + } + + part + { + name: "button_ptz_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: 30 18; to: "camera_border_decoration"; } + rel2 { relative: 1.0 0.0; offset: 30+147 18+131; to: "camera_border_decoration"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "ptz" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "fullscreen" 0.0; + rel1 { relative: 1.0 0.0; offset: 10 18; to: "camera_border_decoration"; } + rel2 { relative: 1.0 0.0; offset: 10+147 18+131; to: "camera_border_decoration"; } + visible: 1; + color: 255 255 255 255; + } + description + { + state: "fullscreen" 1.0; + rel1 { relative: 1.0 0.0; offset: 10 18; to: "camera_border_decoration"; } + rel2 { relative: 1.0 0.0; offset: 10+147 18+131; to: "camera_border_decoration"; } + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "button_ptz_zoom_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "button_ptz_clip"; + rel2.to: "button_ptz_clip"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "button.ptz.left"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/left"; } + rel1 { relative: 0.0 0.0; offset: 3 47; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 46 84; to: "button_ptz_clip"; } + } + } + + part + { + name: "button.ptz.center"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/center"; } + rel1 { relative: 0.0 0.0; offset: 52 47; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 95 84; to: "button_ptz_clip"; } + } + } + + part + { + name: "button.ptz.right"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/right"; } + rel1 { relative: 0.0 0.0; offset: 101 47; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 144 84; to: "button_ptz_clip"; } + } + } + + part + { + name: "button.ptz.up"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/up"; } + rel1 { relative: 0.0 0.0; offset: 52 3; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 95 40; to: "button_ptz_clip"; } + } + } + + part + { + name: "button.ptz.down"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/down"; } + rel1 { relative: 0.0 0.0; offset: 52 91; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 95 129; to: "button_ptz_clip"; } + } + } + + part + { + name: "button.ptz.zoom_in"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_zoom_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/zoom_in"; } + rel1 { relative: 0.0 0.0; offset: 101 91; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 144 129; to: "button_ptz_clip"; } + } + } + + part + { + name: "button.ptz.zoom_out"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_ptz_zoom_clip"; + description + { + state: "default" 0.0; + params { string: "style" "calaos/button/position/zoom_out"; } + rel1 { relative: 0.0 0.0; offset: 3 91; to: "button_ptz_clip"; } + rel2 { relative: 0.0 0.0; offset: 46 129; to: "button_ptz_clip"; } + } + } + + part + { + name: "camera_whole"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -153 -239; } + rel2 { relative: 0.5 0.5; offset: 475 238; } + } + description + { + state: "ptz" 0.0; + rel1 { relative: 0.5 0.0; offset: -213+60 10; } + rel2 { relative: 0.5 0.0; offset: 212+60 10+325; } + } + description + { + state: "fullscreen" 0.0; + aspect: 1.30675 1.0; + aspect_preference: BOTH; + rel1 { relative: 0.0 0.0; offset: 10 10; } + rel2 { relative: 1.0 1.0; offset: -10 -10; } + } + } + + part + { + name: "camera_border_decoration"; + clip_to: "camera_whole"; + description + { + state: "default" 0.0; + image { normal: "camera_medium_border.png"; border: 15 15 15 15; } + rel1.to: "camera_whole"; + rel2.to: "camera_whole"; + } + } + + part + { + name: "camera_clip"; + clip_to: "camera_whole"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 15 15; } + rel2 { relative: 1.0 1.0; offset: -14 -12; } + rel1.to: "camera_whole"; + rel2.to: "camera_whole"; + visible: 0; + color: 0 0 0 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "camera.swallow"; + type: SWALLOW; + clip_to: "camera_clip"; + description + { + rel1.to: "camera_clip"; + rel2.to: "camera_clip"; + } + } + + part + { + name: "button.fullscreen"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "icon" "calaos/icons/action_button/fullscreen"; + string: "style" "calaos/action_button/blue"; + } + rel1 { relative: 1.0 1.0; offset: -21-20 -21-20; to: "camera_border_decoration"; } + rel2 { relative: 1.0 1.0; offset: 22-20 22-20; to: "camera_border_decoration"; } + } + } + + + + } + + programs + { + program + { + name: "show_image"; + signal: "show,picture"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.4; + target: "camera_clip"; + } + + program + { + name: "hide_image"; + signal: "hide,picture"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.4; + target: "camera_clip"; + } + + program + { + name: "ptz_true"; + signal: "ptz,true"; + source: "calaos"; + action: STATE_SET "ptz" 0.0; +// transition: DECELERATE 0.3; + target: "camera_whole"; + target: "button_ptz_clip"; + target: "button_position_clip"; + after: "ptz_true_code"; + } + program + { + name: "ptz_true_code"; + script + { + set_int(is_ptz, 1); + } + } + + program + { + name: "ptz_false"; + signal: "ptz,false"; + source: "calaos"; + action: STATE_SET "default" 0.0; +// transition: DECELERATE 0.3; + target: "camera_whole"; + target: "button_ptz_clip"; + target: "button_position_clip"; + after: "ptz_false_code"; + } + program + { + name: "ptz_false_code"; + script + { + set_int(is_ptz, 0); + } + } + + program + { + name: "zoom_true"; + signal: "zoom,true"; + source: "calaos"; + action: STATE_SET "visible" 0.0; +// transition: DECELERATE 0.3; + target: "button_ptz_zoom_clip"; + } + + program + { + name: "zoom_false"; + signal: "zoom,false"; + source: "calaos"; + action: STATE_SET "default" 0.0; +// transition: DECELERATE 0.3; + target: "button_ptz_zoom_clip"; + } + + program + { + name: "fullscreen_click"; + signal: "pressed"; + source: "button.fullscreen"; + script + { + if (get_int(is_fullscreen) == 1) + { + if (get_int(is_ptz) == 1) + run_program(PROGRAM:"fullscreen_unset_ptz"); + else + run_program(PROGRAM:"fullscreen_unset_normal"); + set_int(is_fullscreen, 0); + } + else + { + if (get_int(is_ptz) == 1) + run_program(PROGRAM:"fullscreen_set_ptz"); + else + run_program(PROGRAM:"fullscreen_set_normal"); + set_int(is_fullscreen, 1); + } + } + } + + program + { + name: "fullscreen_set_normal"; + action: STATE_SET "fullscreen" 1.0; + transition: DECELERATE 0.5; + target: "camera_whole"; + target: "camera_mask"; + target: "button_ptz_clip"; + } + + program + { + name: "fullscreen_set_ptz"; + action: STATE_SET "fullscreen" 0.0; + transition: DECELERATE 0.5; + target: "camera_whole"; + target: "camera_mask"; + target: "button_ptz_clip"; + } + + program + { + name: "fullscreen_unset_normal"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "camera_whole"; + target: "camera_mask"; + } + + program + { + name: "fullscreen_unset_ptz"; + action: STATE_SET "ptz" 0.0; + transition: DECELERATE 0.5; + target: "camera_whole"; + target: "camera_mask"; + target: "button_ptz_clip"; + } + } +} + +group +{ + name: "calaos/page/media/camera_select/position_save"; + + parts + { + part + { + name: "text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 0.5; offset: 5 15; } + rel2 { relative: 1.0 0.5; offset: -5 40; } + text { align: 0.5 0.5; style: "StandardText"; text: "
Sauvegarde à la position #0
"; } + } + } + + part + { + name: "spinner"; + type: GROUP; + source: "calaos/spinner/mini"; + description + { + rel1 { relative: 0.5 0.5; offset: -11 -11; } + rel2 { relative: 0.5 0.5; offset: 10 10; } + } + } + } + + programs + { + + } +} diff --git a/data/themes/default/structure/page_config_panel.edc b/data/themes/default/structure/page_config_panel.edc new file mode 100644 index 00000000..29411401 --- /dev/null +++ b/data/themes/default/structure/page_config_panel.edc @@ -0,0 +1,34 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/config"; + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "text"; + clip_to: "content_clip"; + type: TEXT; + description + { + state, "default" 0.0; + visible: 1; + text { text: "Text Part Config Panel"; font: "CalaosContentBold"; size: 20; min: 0 0; align: 0.5 0.8; } + color: 95 95 95 255; + } + } + } + + programs + { + + } + +} diff --git a/data/themes/default/structure/page_edit_scenario.edc b/data/themes/default/structure/page_edit_scenario.edc new file mode 100644 index 00000000..8fa71908 --- /dev/null +++ b/data/themes/default/structure/page_edit_scenario.edc @@ -0,0 +1,1070 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/edit_scenario"; + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "wizard_header"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + color: 255 255 255 38; + image.normal: "wizzard_header.png"; + rel1.to: "content_size"; + rel2.to: "content_size"; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 0.0; offset: -1 68; } + } + } + + part + { + name: "wizard_line"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + color: 69 156 181 150; + rel1 { relative: 0.0 1.0; to: "wizard_header"; } + rel2 { relative: 1.0 1.0; offset: -1 0; to: "wizard_header"; } + } + } + + part + { + name: "wizard_sep_0"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + color: 0 0 0 86; + rel1 { relative: 0.0 0.0; offset: 13 1; to: "wizard_header"; } + rel2 { relative: 0.0 1.0; offset: 14 -2; to: "wizard_header"; } + } + } + part + { + name: "wizard_sep_1"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + color: 0 0 0 86; + rel1 { relative: 0.0 0.0; offset: 13+250 1; to: "wizard_header"; } + rel2 { relative: 0.0 1.0; offset: 14+250 -2; to: "wizard_header"; } + } + } + part + { + name: "wizard_sep_2"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + color: 0 0 0 86; + rel1 { relative: 0.0 0.0; offset: 13+2*250+2 1; to: "wizard_header"; } + rel2 { relative: 0.0 1.0; offset: 14+2*250+2 -2; to: "wizard_header"; } + } + } + + part + { + name: "wizard_base_1"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to_y: "wizard_header"; + rel2.to_y: "wizard_header"; + rel1.to_x: "wizard_sep_0"; + rel2.to_x: "wizard_sep_1"; + visible: 0; + rel1 { relative: 1.0 0.0; } + rel2 { relative: 0.0 1.0; } + } + } + part + { + name: "wizard_base_2"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to_y: "wizard_header"; + rel2.to_y: "wizard_header"; + rel1.to_x: "wizard_sep_1"; + rel2.to_x: "wizard_sep_2"; + visible: 0; + rel1 { relative: 1.0 0.0; } + rel2 { relative: 0.0 1.0; } + } + } + + part + { + name: "wizard_select"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "wizzard_bg_selected.png"; + rel1.to: "wizard_base_1"; + rel2.to: "wizard_base_1"; + color: 255 255 255 76; + } + description + { + state: "step_1" 0.0; + inherit: "default" 0.0; + } + description + { + state: "step_2" 0.0; + inherit: "default" 0.0; + rel1.to: "wizard_base_2"; + rel2.to: "wizard_base_2"; + } + } + part + { + name: "wizard_select_line"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "wizzard_line_selected.png"; + rel1.to: "wizard_select"; + rel2.to: "wizard_select"; + rel1 { relative: 0.0 1.0; offset: 0 -1; } + rel2 { relative: 1.0 1.0; offset: -1 1; } + } + } + + part + { + name: "wizard_step_1"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "wizzard_1.png"; + rel1.to: "wizard_base_1"; + rel2.to: "wizard_base_1"; + color: 255 255 255 51; + rel1 { relative: 0.0 0.2; offset: 4 0; } + rel2 { relative: 0.0 1.0; offset: 4+60 -1; } + } + } + + part + { + name: "wizard_step_2"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "wizzard_2.png"; + rel1.to: "wizard_base_2"; + rel2.to: "wizard_base_2"; + color: 255 255 255 51; + rel1 { relative: 0.0 0.2; offset: 4 0; } + rel2 { relative: 0.0 1.0; offset: 4+60 -1; } + } + } + + part + { + name: "clip_step_before"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "wizard_base_1"; + rel2.to: "wizard_base_1"; + rel2.to_x: "wizard_select"; + } + } + part + { + name: "clip_step_select"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "wizard_select"; + rel2.to: "wizard_select"; + } + } + part + { + name: "clip_step_after"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "wizard_base_2"; + rel1.to_x: "wizard_select"; + rel2.to: "wizard_base_2"; + } + } + + part + { + name: "title_step.1"; + type: TEXTBLOCK; + clip_to: "clip_step_select"; + description + { + state: "default" 0.0; + rel1.to: "wizard_base_1"; + rel2.to: "wizard_base_1"; + rel1 { relative: 0.0 0.0; offset: 4+60 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + text { text: "Informations
Saisissez le nom et
les informations du scénario.
"; style: "HTMLStyle"; } + } + } + part + { + name: "title_step.1.disabled"; + type: TEXTBLOCK; + clip_to: "clip_step_before"; + description + { + state: "default" 0.0; + rel1.to: "wizard_base_1"; + rel2.to: "wizard_base_1"; + rel1 { relative: 0.0 0.0; offset: 4+60 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + text { text: "Informations
Saisissez le nom et
les informations du scénario.
"; style: "HTMLStyle"; } + } + } + + part + { + name: "title_step.2"; + type: TEXTBLOCK; + clip_to: "clip_step_select"; + description + { + state: "default" 0.0; + rel1.to: "wizard_base_2"; + rel2.to: "wizard_base_2"; + rel1 { relative: 0.0 0.0; offset: 4+70 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + text { text: "Configuration
Ajoutez les éléments de vos
pièces et configurez-les.
"; style: "HTMLStyle"; } + } + } + part + { + name: "title_step.2.disabled"; + type: TEXTBLOCK; + clip_to: "clip_step_after"; + description + { + state: "default" 0.0; + rel1.to: "wizard_base_2"; + rel2.to: "wizard_base_2"; + rel1 { relative: 0.0 0.0; offset: 4+70 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + text { text: "Configuration
Ajoutez les éléments de vos
pièces et configurez-les.
"; style: "HTMLStyle"; } + } + } + + + part + { + name: "step.content"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to_y: "wizard_header"; + rel1.to_x: "content_size"; + rel2.to: "content_size"; + rel1 { relative: 0.0 1.0; } + } + } + + part + { + name: "button_previous_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "button.previous"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_previous_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -463-24 10; } + rel2 { relative: 1.0 0.0; offset: -293-24 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + params + { + string: "style" "calaos/activity/footer"; + string: "icon" "calaos/icons/button/back"; + string: "label" "Page précédente"; + } + } + } + + part + { + name: "button_next_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "button.next"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_next_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -293-12 10; } + rel2 { relative: 1.0 0.0; offset: -126-12 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + params + { + string: "style" "calaos/activity/footer"; + string: "icon" "calaos/icons/button/valid"; + string: "label" "Page suivante"; + } + } + } + + part + { + name: "button_valid_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "button.valid"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_valid_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 1.0 0.0; offset: -293-12 10; } + rel2 { relative: 1.0 0.0; offset: -126-12 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + params + { + string: "style" "calaos/activity/footer"; + string: "icon" "calaos/icons/button/valid"; + string: "label" "Enregistrer"; + } + } + } + } + + programs + { + program + { + in: 0.3 0.0; + name: "step_1_header"; + signal: "set,step1"; + source: "calaos"; + action: STATE_SET "step_1" 0.0; + transition: SPRING 0.4 3.0 3.0; + target: "wizard_select"; + } + program + { + in: 0.3 0.0; + name: "step_2_header"; + signal: "set,step2"; + source: "calaos"; + action: STATE_SET "step_2" 0.0; + transition: SPRING 0.4 3.0 3.0; + target: "wizard_select"; + } + + program + { + name: "step_1"; + signal: "set,step1"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.3; + target: "button_next_clip"; + } + program + { + name: "step_1_hide"; + signal: "set,step1"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.3; + target: "button_previous_clip"; + target: "button_valid_clip"; + } + + program + { + name: "step_2"; + signal: "set,step2"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.3; + target: "button_previous_clip"; + target: "button_valid_clip"; + } + program + { + name: "step_2_hide"; + signal: "set,step2"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.3; + target: "button_next_clip"; + } + } +} + +group +{ + name: "calaos/scenario/step_1"; + + parts + { + part + { + name: "title_step.2"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + max: 512 -1; + rel1 { relative: 0.0 0.5; offset: 0 -100; } + rel2 { relative: 1.0 0.5; offset: -1 -100+72; } + text { text: "Création ou modification d'un scénario

Utilisez les champs ci-dessous pour nommer votre scénario afin de l'identifier
rapidement. Choisissez également si le scénario sera visible ou non.
"; style: "HTMLStyle"; } + } + } + + part + { + name: "item_back_name"; + description + { + state: "default" 0.0; + fixed: 1 1; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + max: 512 -1; + rel1 { relative: 0.0 0.5; offset: 0 -22; } + rel2 { relative: 1.0 0.5; offset: -1 21; } + } + } + + part + { + name: "button.name"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "item_back_name"; + rel2.to: "item_back_name"; + rel1 { relative: 1.0 0.5; offset: -6-33 -13; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + params + { + string: "style" "calaos/action_button/pink"; + string: "icon" "calaos/icons/action_button/keyboard"; + } + } + } + + part + { + name: "name.text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1.offset: 6 0; + rel2.offset: -39-5 -1; + rel1.to: "item_back_name"; + rel2.to: "item_back_name"; + text + { + text: "Nom du scénario: Mon Nouveau Scénario"; + style: "StandardText"; + } + } + } + + part + { + name: "item_back_visible"; + description + { + state: "default" 0.0; + fixed: 1 1; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + max: 512 -1; + rel1 { relative: 0.0 0.5; offset: 0 -22+44+5; } + rel2 { relative: 1.0 0.5; offset: -1 21+44+5; } + } + } + + part + { + name: "button_select_clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "select"; + color: 255 255 255 255; + visible: 1; + } + description + { + state: "unselect"; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "button_unselect_clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "select"; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "unselect"; + color: 255 255 255 255; + visible: 1; + } + } + + part + { + name: "button.selected"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_select_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "item_back_visible"; + rel2.to: "item_back_visible"; + rel1 { relative: 1.0 0.5; offset: -6-33 -13; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + params + { + string: "style" "calaos/action_button/blue"; + string: "icon" "calaos/icons/action_button/select"; + } + } + } + + part + { + name: "button.unselected"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_unselect_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "item_back_visible"; + rel2.to: "item_back_visible"; + rel1 { relative: 1.0 0.5; offset: -6-33 -13; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + params + { + string: "style" "calaos/action_button/blue"; + string: "icon" "calaos/icons/action_button/unselect"; + } + } + } + + part + { + name: "visible.text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state, "default" 0.0; + rel1.offset: 6 0; + rel2.offset: -39-5 -1; + rel1.to: "item_back_visible"; + rel2.to: "item_back_visible"; + text + { + text: "Afficher dans l'interface: Activé"; + style: "StandardText"; + } + } + } + } + + programs + { + program + { + signal: "visible.select"; + source: "calaos"; + action: STATE_SET "select" 0.0; + transition: DECELERATE 0.2; + target: "button_select_clip"; + target: "button_unselect_clip"; + } + + program + { + signal: "visible.unselect"; + source: "calaos"; + action: STATE_SET "unselect" 0.0; + transition: DECELERATE 0.2; + target: "button_select_clip"; + target: "button_unselect_clip"; + } + } +} + +group +{ + name: "calaos/scenario/step_2"; + + parts + { + part + { + name: "icon_myhome"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "icon_myhome.png"; + rel1 { relative: 0.0 0.0; offset: 1 -5-34; } + rel2 { relative: 0.0 0.0; offset: 57 -5; } + rel1.to: "home_list_deco"; + rel2.to: "home_list_deco"; + color: 255 255 255 140; + } + } + + part + { + name: "home_text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 66 -37; } + rel2 { relative: 1.0 0.0; offset: -1 -5; } + rel1.to: "home_list_deco"; + rel2.to: "home_list_deco"; + text { + text: "Sélectionnez et ajoutez les éléments désirés à votre scénario.
Vous pourrez ensuite définir les actions.
"; + style: "HTMLStyle"; + } + } + } + + part + { + name: "home_list_deco"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + max: 512 -1; + rel1 { relative: 0.0 0.0; offset: 30 52; } + rel2 { relative: 0.5 1.0; offset: -60 -30; } + } + } + + part + { + name: "home.list"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to: "home_list_deco"; + rel2.to: "home_list_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "sep"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "scenario_separator.png"; } + rel1 { relative: 0.5 0.0; offset: -18 2; } + rel2 { relative: 0.5 1.0; offset: 17 -2; } + } + } + + part + { + name: "action_text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 2 -38; } + rel2 { relative: 1.0 0.0; offset: -1 -5; } + rel1.to: "actions_list_deco"; + rel2.to: "actions_list_deco"; + text { + text: "Modifiez les éléments ajoutés à la liste ci-dessous. Les actions définissent
ce qui se passera lors de l'execution du scénario.
"; + style: "HTMLStyle"; + } + } + } + + part + { + name: "actions_list_deco"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + max: 512 -1; + rel1 { relative: 0.5 0.0; offset: 60 52+30; } + rel2 { relative: 1.0 1.0; offset: -30 -30; } + } + } + + part + { + name: "actions.list"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to: "actions_list_deco"; + rel2.to: "actions_list_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "button.step"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "label" "Etape 1"; + string: "style" "calaos/button/position"; + } + rel1 { relative: 0.0 0.0; offset: -124 8; to_x: "button.step.add"; } + rel2 { relative: 0.0 0.0; offset: -6 45; to_x: "button.step.add"; } + } + } + + part + { + name: "button.step.add"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: -6-33 -13; to_y: "button.step"; to_x: "button.step.delete"; } + rel2 { relative: 0.0 0.5; offset: -6 13; to_y: "button.step"; to_x: "button.step.delete"; } + params + { + string: "style" "calaos/action_button/blue"; + string: "icon" "calaos/icons/action_button/more"; + } + } + } + + part + { + name: "button.step.delete"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: -10-33 -13; to_y: "button.step"; } + rel2 { relative: 1.0 0.5; offset: -10 13; to_y: "button.step"; } + params + { + string: "style" "calaos/action_button/blue"; + string: "icon" "calaos/icons/action_button/delete"; + } + } + } + + part + { + name: "item_back_cycle"; + description + { + state: "default" 0.0; + fixed: 1 1; + image { normal: "button_element.png"; border: 11 11 14 14; } + color: 255 255 255 105; + max: 512 -1; + rel1 { relative: 0.0 0.5; offset: 0 -22; to_y: "button.step"; to_x: "actions_list_deco"; } + rel2 { relative: 0.0 0.5; offset: -10 21; to_y: "button.step"; to_x: "button.step"; } + } + } + + part + { + name: "button_select_clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "select"; + color: 255 255 255 255; + visible: 1; + } + description + { + state: "unselect"; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "button_unselect_clip"; + type: RECT; + description + { + state: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "select"; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "unselect"; + color: 255 255 255 255; + visible: 1; + } + } + + part + { + name: "button.selected"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_select_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "item_back_cycle"; + rel2.to: "item_back_cycle"; + rel1 { relative: 1.0 0.5; offset: -6-33 -13; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + params + { + string: "style" "calaos/action_button/blue"; + string: "icon" "calaos/icons/action_button/select"; + } + } + } + + part + { + name: "button.unselected"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "button_unselect_clip"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1.to: "item_back_cycle"; + rel2.to: "item_back_cycle"; + rel1 { relative: 1.0 0.5; offset: -6-33 -13; } + rel2 { relative: 1.0 0.5; offset: -6 13; } + params + { + string: "style" "calaos/action_button/blue"; + string: "icon" "calaos/icons/action_button/unselect"; + } + } + } + + part + { + name: "cycle.text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state, "default" 0.0; + rel1.offset: 6 0; + rel2.offset: -39-5 -1; + rel1.to: "item_back_cycle"; + rel2.to: "item_back_cycle"; + text + { + text: "Execution en boucle: Activé"; + style: "StandardText"; + } + } + } + } + + programs + { + program + { + signal: "cycle.select"; + source: "calaos"; + action: STATE_SET "select" 0.0; + transition: DECELERATE 0.2; + target: "button_select_clip"; + target: "button_unselect_clip"; + } + + program + { + signal: "cycle.unselect"; + source: "calaos"; + action: STATE_SET "unselect" 0.0; + transition: DECELERATE 0.2; + target: "button_select_clip"; + target: "button_unselect_clip"; + } + } +} + + diff --git a/data/themes/default/structure/page_home.edc b/data/themes/default/structure/page_home.edc new file mode 100644 index 00000000..94d2076d --- /dev/null +++ b/data/themes/default/structure/page_home.edc @@ -0,0 +1,1287 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/home"; + + script + { + public room_mode_1; + public room_mode_2; + public room_mode_3; + public room_mode_4; + public room_mode_5; + public room_mode_6; + } + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "skyline_middle_gradient"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "middle_skyline.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -3; } + rel2 { relative: 1.0 1.0; offset: -1 43; } + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + color: 255 255 255 60; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "skyline_middle_neon"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "middle_skyline_neon.png"; } + rel1 { relative: 0.0 0.49; offset: 0 -6; } + rel2 { relative: 1.0 0.49; offset: -1 -1; } + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + + part + { + name: "skyline_top_gradient"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "top_skyline.png"; } + rel1 { relative: 0.5 0.2; offset: -511 0; } + rel2 { relative: 0.5 0.2; offset: 512 41; } + color: 255 255 255 60; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "skyline_top_neon"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "top_skyline_neon.png"; } + rel1 { relative: 0.5 0.2; offset: -511 -2; } + rel2 { relative: 0.5 0.2; offset: 512 1; } + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "round_buttons_whole"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: 20 -33; } + rel2 { relative: 1.0 0.5; offset: -20 32; } + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + ROUND_BUTTON("button_previous_room", + "round_buttons_whole", + "round_buttons_whole", "round_buttons_whole", + "button_previous.png", "button_previous_glow.png", "button_previous_off.png", + "room,left", "home", + "left", + 0.0, 0.0, 0, 0, + 0.0, 1.0, 65, -1) + + ROUND_BUTTON("button_next_room", + "round_buttons_whole", + "round_buttons_whole", "round_buttons_whole", + "button_next.png", "button_next_glow.png", "button_next_off.png", + "room,right", "home", + "right", + 1.0, 0.0, -66, 0, + 1.0, 1.0, -1, -1) + + part + { + name: "clip_room.1"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.5; offset: -433 -146-18;} + rel2 { relative: 0.5 0.5; offset: -83 145-18;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + rel1.to: "skyline_top_neon"; + rel2.to: "skyline_top_neon"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -175 -126;} + rel2 { relative: 0.5 0.5; offset: 174 165;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "clip_room.2"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.5; offset: -175 -146-18;} + rel2 { relative: 0.5 0.5; offset: 174 145-18;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + rel1.to: "skyline_top_neon"; + rel2.to: "skyline_top_neon"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + rel1 { relative: 0.5 0.5; offset: -175 -126;} + rel2 { relative: 0.5 0.5; offset: 174 165;} + } + } + + part + { + name: "clip_room.3"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.5; offset: 85 -146-18;} + rel2 { relative: 0.5 0.5; offset: 434 145-18;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + rel1.to: "skyline_top_neon"; + rel2.to: "skyline_top_neon"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -175 -126;} + rel2 { relative: 0.5 0.5; offset: 174 165;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "clip_room.4"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.5; offset: -433 -146-18;} + rel2 { relative: 0.5 0.5; offset: -83 145-18;} + rel1.to_y: "skyline_top_neon"; + rel2.to_y: "skyline_top_neon"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + rel1.to: "skyline_middle_neon"; + rel2.to: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -175 -126;} + rel2 { relative: 0.5 0.5; offset: 174 165;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "clip_room.5"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.5; offset: -175 -146-18;} + rel2 { relative: 0.5 0.5; offset: 174 145-18;} + rel1.to_y: "skyline_top_neon"; + rel2.to_y: "skyline_top_neon"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + rel1.to: "skyline_middle_neon"; + rel2.to: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -175 -126;} + rel2 { relative: 0.5 0.5; offset: 174 165;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "clip_room.6"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.5; offset: 85 -146-18;} + rel2 { relative: 0.5 0.5; offset: 434 145-18;} + rel1.to_y: "skyline_top_neon"; + rel2.to_y: "skyline_top_neon"; + color: 255 255 255 0; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "selected" 0.0; + inherit: "default" 0.0; + rel1.to: "skyline_middle_neon"; + rel2.to: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -175 -126;} + rel2 { relative: 0.5 0.5; offset: 174 165;} + rel1.to_y: "skyline_middle_neon"; + rel2.to_y: "skyline_middle_neon"; + visible: 1; + color: 255 255 255 255; + } + } + + #define SWALLOW_ROOM(room) \ + part \ + { \ + name: "room."room; \ + clip_to: "clip_room."room; \ + type: SWALLOW; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "clip_room."room; \ + rel2.to: "clip_room."room; \ + } \ + } + + SWALLOW_ROOM("1") + SWALLOW_ROOM("2") + SWALLOW_ROOM("3") + SWALLOW_ROOM("4") + SWALLOW_ROOM("5") + SWALLOW_ROOM("6") + + #define ROOM_EVENT_CATCHER(id) \ + part \ + { \ + name: "event_room_"id; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "clip_room."id; \ + rel2.to: "clip_room."id; \ + color: 0 0 0 0; \ + } \ + description \ + { \ + state: "detail" 0.0; \ + inherit: "default" 0.0; \ + rel1.to: "clip_room."id; \ + rel2.to: "clip_room."id; \ + visible: 0; \ + } \ + } + + ROOM_EVENT_CATCHER("1") + ROOM_EVENT_CATCHER("2") + ROOM_EVENT_CATCHER("3") + ROOM_EVENT_CATCHER("4") + ROOM_EVENT_CATCHER("5") + ROOM_EVENT_CATCHER("6") + + part + { + name: "module_scenario_bloc"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.75; offset: -368-10 -53-20;} + rel2 { relative: 0.5 0.75; offset: 367+10 52+32;} + color: 255 255 255 255; + } + description + { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + visible: 0; + } + } + + part + { + name: "home.pager"; + type: SWALLOW; + clip_to: "module_scenario_bloc"; + description + { + state: "default" 0.0; + rel1.to: "module_scenario_bloc"; + rel2.to: "module_scenario_bloc"; + } + } + + part + { + name: "pager_deco_left"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "player_line_decoration_right.png"; } + rel1 { relative: 0.0 0.0; offset: -1 -10; } + rel2 { relative: 0.0 1.0; offset: 15 -1; } + rel1.to: "home.pager"; + rel2.to: "home.pager"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "pager_deco_right"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "player_line_decoration_left.png"; } + rel1 { relative: 1.0 0.0; offset: -16 -10; } + rel2 { relative: 1.0 1.0; offset: 0 -1; } + rel1.to: "home.pager"; + rel2.to: "home.pager"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "list_deco_left"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + rel1 { relative: 0.0 0.0; offset: 20 20; } + rel2 { relative: 0.5 1.0; offset: -160 -20; } + rel1.to: "content_size"; + rel2.to: "content_size"; + visible: 0; + color: 255 255 255 0; + max: 410 -1; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "list_deco_right"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + rel1 { relative: 0.5 0.0; offset: 160 20; } + rel2 { relative: 1.0 1.0; offset: -20 -20; } + rel1.to: "content_size"; + rel2.to: "content_size"; + visible: 0; + color: 255 255 255 0; + max: 410 -1; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "list_deco_top"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + rel1 { relative: 0.5 0.0; offset: -138 20; } + rel2 { relative: 0.5 0.5; offset: 137 -110; } + rel1.to: "content_size"; + rel2.to: "content_size"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + #define LIST_CLIP_SWALLOW(id) \ + part \ + { \ + name: "list_clip_"id; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + rel1.to: "list_deco_"id; \ + rel2.to: "list_deco_"id; \ + rel1.offset: 5 5; \ + rel2.offset: -5 -5; \ + } \ + description \ + { \ + state: "detail" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + } \ + part \ + { \ + name: "list."id; \ + type: SWALLOW; \ + clip_to: "list_clip_"id; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "list_clip_"id; \ + rel2.to: "list_clip_"id; \ + } \ + } + + LIST_CLIP_SWALLOW("top") + LIST_CLIP_SWALLOW("left") + LIST_CLIP_SWALLOW("right") + + + part + { + name: "clip_buttons_detail"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "detail" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "button.back" "button_back:button.back"; + part + { + name: "button_back"; + clip_to: "clip_buttons_detail"; + type: GROUP; + source: "button.back"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-170 10; } + rel2 { relative: 1.0 0.0; offset: -125-10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + alias: "button.save" "button_save:button.save_room"; + part + { + name: "button_save"; + clip_to: "clip_buttons_detail"; + type: GROUP; + source: "button.save_room"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-180-248 10; } + rel2 { relative: 1.0 0.0; offset: -125-170-10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + #include "activity_loading.edc" + } + + programs + { + program + { + name: "on_show"; + signal: "show"; + action: STATE_SET "active" 0.0; + transition: DECELERATE 0.35; + target: "clip_room.1"; + target: "clip_room.2"; + target: "clip_room.3"; + target: "clip_room.4"; + target: "clip_room.5"; + target: "clip_room.6"; + target: "module_scenario_bloc"; + } + + #define ROOM_PROG_SIGNAL(id, idname) \ + program \ + { \ + name: "signal_room_"id; \ + signal: "mouse,down,1"; \ + source: "event_room_"id; \ + action: SIGNAL_EMIT "select,room,"id "home"; \ + } \ + program \ + { \ + name: "show_event_room_"id; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.8; \ + target: "event_room_"id; \ + } \ + program \ + { \ + name: "signal_room_enable_"id; \ + signal: "enable,room,"id; \ + source: "calaos"; \ + script \ + { \ + set_state(PART:"event_room_"id, "default", 0.0); \ + set_int(room_mode_##idname, 0); \ + } \ + } \ + program \ + { \ + name: "signal_room_disable_"id; \ + signal: "disable,room,"id; \ + source: "calaos"; \ + script \ + { \ + set_state(PART:"event_room_"id, "detail", 0.0); \ + set_int(room_mode_##idname, 1); \ + } \ + } + + ROOM_PROG_SIGNAL("1", 1) + ROOM_PROG_SIGNAL("2", 2) + ROOM_PROG_SIGNAL("3", 3) + ROOM_PROG_SIGNAL("4", 4) + ROOM_PROG_SIGNAL("5", 5) + ROOM_PROG_SIGNAL("6", 6) + + program + { + name: "swallow_room_1"; + signal: "mouse,down,1"; + source: "event_room_1"; + after: "exchange_room_6/3-2"; + after: "exchange_room_5/2-2"; + after: "exchange_room_1/4-2"; + } + program + { + name: "swallow_room_2"; + signal: "mouse,down,1"; + source: "event_room_2"; + after: "exchange_room_6/3-2"; + after: "exchange_room_5/2-2"; + after: "exchange_room_1/4-2"; + } + program + { + name: "swallow_room_3"; + signal: "mouse,down,1"; + source: "event_room_3"; + after: "exchange_room_6/3-2"; + after: "exchange_room_5/2-2"; + after: "exchange_room_1/4-2"; + } + program + { + name: "swallow_room_4"; + signal: "mouse,down,1"; + source: "event_room_4"; + after: "exchange_room_6/3-1"; + after: "exchange_room_5/2-1"; + after: "exchange_room_1/4-1"; + } + program + { + name: "swallow_room_5"; + signal: "mouse,down,1"; + source: "event_room_5"; + after: "exchange_room_6/3-1"; + after: "exchange_room_5/2-1"; + after: "exchange_room_1/4-1"; + } + program + { + name: "swallow_room_6"; + signal: "mouse,down,1"; + source: "event_room_6"; + after: "exchange_room_6/3-1"; + after: "exchange_room_5/2-1"; + after: "exchange_room_1/4-1"; + } + + program + { + name: "exchange_room_6/3-1"; + in: 0.025 0.0; + action: STATE_SET "selected" 0.0; + transition: DECELERATE 0.25; + target: "clip_room.3"; + target: "clip_room.6"; + } + + program + { + name: "exchange_room_6/3-2"; + in: 0.025 0.0; + signal: "reset,rooms"; + source: "calaos"; + action: STATE_SET "active" 0.0; + transition: DECELERATE 0.25; + target: "clip_room.3"; + target: "clip_room.6"; + } + + program + { + name: "exchange_room_5/2-1"; + in: 0.05 0.0; + action: STATE_SET "selected" 0.0; + transition: DECELERATE 0.25; + target: "clip_room.5"; + target: "clip_room.2"; + } + + program + { + name: "exchange_room_5/2-2"; + in: 0.05 0.0; + signal: "reset,rooms"; + source: "calaos"; + action: STATE_SET "active" 0.0; + transition: DECELERATE 0.25; + target: "clip_room.5"; + target: "clip_room.2"; + } + + program + { + name: "exchange_room_1/4-1"; + in: 0.1 0.0; + action: STATE_SET "selected" 0.0; + transition: DECELERATE 0.25; + target: "clip_room.1"; + target: "clip_room.4"; + } + + program + { + name: "exchange_room_1/4-2"; + in: 0.1 0.0; + signal: "reset,rooms"; + source: "calaos"; + action: STATE_SET "active" 0.0; + transition: DECELERATE 0.25; + target: "clip_room.1"; + target: "clip_room.4"; + } + + #define ROOM_DETAIL_PROG(id, hide1, hide2, hide3, hide4, hide5) \ + program \ + { \ + name: "go_mode_detail_room_"id; \ + signal: "select,room,"id; \ + source: "home"; \ + after: "mode_detail"; \ + after: "mode_detail_room_"id; \ + after: "hide_rooms_room_"id; \ + } \ + program \ + { \ + name: "mode_detail_room_"id; \ + in: 0.5 0.0; \ + action: STATE_SET "detail" 0.0; \ + transition: DECELERATE 0.8; \ + target: "clip_room."id; \ + } \ + program \ + { \ + name: "hide_rooms_room_"id; \ + in: 0.5 0.0; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.8; \ + target: "clip_room."hide1; \ + target: "clip_room."hide2; \ + target: "clip_room."hide3; \ + target: "clip_room."hide4; \ + target: "clip_room."hide5; \ + } + + ROOM_DETAIL_PROG("1", "2", "3", "4", "5", "6") + ROOM_DETAIL_PROG("2", "1", "3", "4", "5", "6") + ROOM_DETAIL_PROG("3", "1", "2", "4", "5", "6") + ROOM_DETAIL_PROG("4", "1", "2", "3", "5", "6") + ROOM_DETAIL_PROG("5", "1", "2", "3", "4", "6") + ROOM_DETAIL_PROG("6", "1", "2", "3", "4", "5") + + program + { + name: "mode_detail"; + action: STATE_SET "detail" 0.0; + transition: DECELERATE 0.8; + target: "skyline_top_neon"; + target: "skyline_top_gradient"; + target: "skyline_middle_neon"; + target: "skyline_middle_gradient"; + target: "round_buttons_whole"; + target: "module_scenario_bloc"; + target: "event_room_1"; + target: "event_room_2"; + target: "event_room_3"; + target: "event_room_4"; + target: "event_room_5"; + target: "event_room_6"; + target: "clip_buttons_detail"; + after: "mode_detail2"; + } + + program + { + name: "mode_detail2"; + action: STATE_SET "detail" 0.0; + transition: DECELERATE 0.8; + target: "list_deco_left"; + target: "list_deco_right"; + target: "list_deco_top"; + target: "list_clip_top"; + target: "list_clip_left"; + target: "list_clip_right"; + } + + program + { + name: "mode_normal"; + signal: "pressed"; + source: "button.back"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "list_deco_left"; + target: "list_deco_right"; + target: "list_deco_top"; + target: "list_clip_top"; + target: "list_clip_left"; + target: "list_clip_right"; + after: "mode_normal2"; + after: "mode_normal3"; + after: "mode_normal5"; + } + + program + { + name: "mode_normal2"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "skyline_top_neon"; + target: "skyline_top_gradient"; + target: "skyline_middle_neon"; + target: "skyline_middle_gradient"; + target: "round_buttons_whole"; + target: "module_scenario_bloc"; + target: "clip_buttons_detail"; + } + + program + { + name: "mode_normal5"; + script + { + if (get_int(room_mode_1) == 0) + run_program(PROGRAM:"show_event_room_1"); + else + set_state(PART:"event_room_1", "detail", 0.0); + + if (get_int(room_mode_2) == 0) + run_program(PROGRAM:"show_event_room_2"); + else + set_state(PART:"event_room_2", "detail", 0.0); + + if (get_int(room_mode_3) == 0) + run_program(PROGRAM:"show_event_room_3"); + else + set_state(PART:"event_room_3", "detail", 0.0); + + if (get_int(room_mode_4) == 0) + run_program(PROGRAM:"show_event_room_4"); + else + set_state(PART:"event_room_4", "detail", 0.0); + + if (get_int(room_mode_5) == 0) + run_program(PROGRAM:"show_event_room_5"); + else + set_state(PART:"event_room_5", "detail", 0.0); + + if (get_int(room_mode_6) == 0) + run_program(PROGRAM:"show_event_room_6"); + else + set_state(PART:"event_room_6", "detail", 0.0); + } + } + + program + { + name: "mode_normal3"; + action: SIGNAL_EMIT "reset,rooms" "calaos"; + } + + program + { + name: "mode_normal4"; + signal: "pressed"; + source: "button.back"; + action: SIGNAL_EMIT "mode,normal" "home"; + } + + program + { + name: "show_pager_deco"; + signal: "show,edge"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 0.15; + target: "pager_deco_left"; + target: "pager_deco_right"; + } + program + { + name: "hide_pager_deco"; + signal: "hide,edge"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.35; + target: "pager_deco_left"; + target: "pager_deco_right"; + } + } + +} + +group +{ + name: "calaos/page/home/scenario"; + + parts + { + #define SWALLOW_ELEMENT_SC(id, rel1_x, rel1_y, off1_x, off1_y, rel2_x, rel2_y, off2_x, off2_y) \ + part \ + { \ + name: id; \ + type: SWALLOW; \ + description \ + { \ + state: "default" 0.0; \ + rel1 { relative: rel1_x rel1_y; offset: off1_x off1_y; } \ + rel2 { relative: rel2_x rel2_y; offset: off2_x off2_y; } \ + } \ + } + + SWALLOW_ELEMENT_SC("element.1", 0.16, 0.30, -117, -23, 0.16, 0.30, 116, 22) + SWALLOW_ELEMENT_SC("element.2", 0.5, 0.30, -118, -23, 0.5, 0.30, 117, 22) + SWALLOW_ELEMENT_SC("element.3", 0.84, 0.30, -118, -23, 0.84, 0.30, 117, 22) + SWALLOW_ELEMENT_SC("element.4", 0.16, 0.72, -117, -23, 0.16, 0.72, 116, 22) + SWALLOW_ELEMENT_SC("element.5", 0.5, 0.72, -118, -23, 0.5, 0.72, 117, 22) + SWALLOW_ELEMENT_SC("element.6", 0.84, 0.72, -118, -23, 0.84, 0.72, 117, 22) + } +} + +group +{ + name: "calaos/page/home/status"; + + parts + { + part + { + name: "bg"; + description + { + state: "default" 0.0; + rel1 { offset: 25+90 0; } + rel2 { offset: -24-89 -1; } + image.normal: "controls_bg.png"; + image.border: 10 10 10 10; + } + } + + part + { + name: "separator"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 5 45; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -4 46; to: "bg"; } + image.normal: "controls_sep.png"; + } + } + + part + { + name: "title"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 11 5; to: "bg"; } + rel2 { relative: 1.0 0.0; offset: -11 45; to: "bg"; } + text + { + style: "TabWidgetTitle"; + text: "Etat de la maison : Normal
Informations concernant votre maison"; + } + } + } + + part + { + name: "light"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 14 12; to_y: "separator"; to_x: "bg"; } + rel2 { relative: 0.0 1.0; offset: 14+22 12+16; to_y: "separator"; to_x: "bg"; } + image.normal: "icon_light.png"; + } + } + + part + { + name: "light.text"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 40 9; to_y: "separator"; to_x: "bg"; } + rel2 { relative: 0.5 1.0; offset: -1 31; to_y: "separator"; to_x: "bg"; } + color: 231 231 231 178; + text { text: "Text"; font: "CalaosContent"; size: 13; min: 0 0; align: 0.0 0.5; } + } + } + + alias: "button.lights_off" "button_lights_off:button.labeled.lights_off"; + part + { + name: "button_lights_off"; + type: GROUP; + source: "button.labeled.lights_off"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 121 8; } + rel2 { relative: 0.0 1.0; offset: 121+120 8+28; } + rel1.to_x: "bg"; + rel2.to_x: "bg"; + rel1.to_y: "light.text"; + rel2.to_y: "light.text"; + } + } + + alias: "button.lights_info" "button_lights_info:button.position.info"; + part + { + name: "button_lights_info"; + type: GROUP; + source: "button.position.info"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 13 4; } + rel2 { relative: 0.0 1.0; offset: 13+100 4+36; } + rel1.to_x: "bg"; + rel2.to_x: "bg"; + rel1.to_y: "light.text"; + rel2.to_y: "light.text"; + } + } + + part + { + name: "volet"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: 14 12; to_y: "separator"; to_x: "bg"; } + rel2 { relative: 0.5 1.0; offset: 14+22 12+16; to_y: "separator"; to_x: "bg"; } + image.normal: "icon_shutter.png"; + } + } + + part + { + name: "shutter.text"; + type: TEXT; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: 40 9; to_y: "separator"; to_x: "bg"; } + rel2 { relative: 1.0 1.0; offset: -1 31; to_y: "separator"; to_x: "bg"; } + color: 231 231 231 178; + text { text: "Text"; font: "CalaosContent"; size: 13; min: 0 0; align: 0.0 0.5; } + } + } + + alias: "button.shutters_down" "button_shutters_down:button.labeled.shutters_down"; + part + { + name: "button_shutters_down"; + type: GROUP; + source: "button.labeled.shutters_down"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: 121 8; } + rel2 { relative: 0.5 1.0; offset: 121+120 8+28; } + rel1.to_x: "bg"; + rel2.to_x: "bg"; + rel1.to_y: "shutter.text"; + rel2.to_y: "shutter.text"; + } + } + + alias: "button.shutters_info" "button_shutters_info:button.position.info"; + part + { + name: "button_shutters_info"; + type: GROUP; + source: "button.position.info"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: 13 4; } + rel2 { relative: 0.5 1.0; offset: 13+100 4+36; } + rel1.to_x: "bg"; + rel2.to_x: "bg"; + rel1.to_y: "shutter.text"; + rel2.to_y: "shutter.text"; + } + } + } +} diff --git a/data/themes/default/structure/page_keyboard.edc b/data/themes/default/structure/page_keyboard.edc new file mode 100644 index 00000000..a47fbb1a --- /dev/null +++ b/data/themes/default/structure/page_keyboard.edc @@ -0,0 +1,811 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/keyboard"; + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "module.subtitle"; + clip_to: "content_clip"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -1; to_y: "header_img"; } + rel2 { relative: 1.0 1.0; offset: -1 30; to_y: "header_img"; } + align: 0.5 0.5; + text + { + style: "KeyboardSubtitle"; + text: "Un sous-titre pour donner une explication plus détaillée."; + } + } + } + + part + { + name: "sep1"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "middle_skyline_neon.png"; + rel1 { relative: 0.0 1.0; offset: 0 -1; to_y: "module.subtitle"; } + rel2 { relative: 1.0 1.0; offset: -1 4; to_y: "module.subtitle"; } + } + } + + part + { + name: "sep2"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + image.normal: "middle_skyline_neon.png"; + rel1 { relative: 0.0 0.0; offset: 0 -6; to_y: "keyboard"; } + rel2 { relative: 1.0 0.0; offset: -1 -1; to_y: "keyboard"; } + } + } + + part + { + name: "keyboard"; + clip_to: "content_clip"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to_y: "content_size"; + rel2.to_y: "content_size"; + rel1 { relative: 0.0 1.0; offset: 0 -252; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + } + } + + part + { + name: "textblock"; + clip_to: "content_clip"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.to_y: "sep1"; + rel2.to_y: "sep2"; + rel1 { relative: 0.0 1.0; offset: 0 2; } + rel2 { relative: 1.0 0.0; offset: -1 -3; } + } + } + + alias: "button.valid" "button_valid:button.valid"; + part + { + name: "button_valid"; + clip_to: "content_clip"; + type: GROUP; + source: "button.valid"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-130 10; } + rel2 { relative: 1.0 0.0; offset: -125-10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + alias: "button.cleartext" "button_cleartext:button.cleartext"; + part + { + name: "button_cleartext"; + clip_to: "content_clip"; + type: GROUP; + source: "button.cleartext"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-140-213 10; } + rel2 { relative: 1.0 0.0; offset: -125-130-10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + } + + programs + { + + } + +} + +#ifdef KMODULE_TEXT +#undef KMODULE_TEXT +#endif +#define KMODULE_TEXT "keyboard_text" +#include "keyboard_macros.edc" + +group +{ + name: "calaos/keyboard"; + + script + { + public is_clicked; + } + + parts + { + part + { + name: "module_keyboard"; + type: RECT; + description + { + state: "default" 0.0; + } + } + + part + { + name: "keyboard_text"; + type: RECT; + pointer_mode: NOGRAB; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 -400; } + rel2 { relative: 1.0 0.0; offset: -1 -300; } + visible: 0; + } + } + + part + { + name: "keyboard_alpha"; + type: RECT; + pointer_mode: NOGRAB; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -292 -126; } + rel2 { relative: 0.5 0.5; offset: 293 126; } + } + } + + #ifdef ROW1 + #undef ROW1 + #endif + #ifdef ROW2 + #undef ROW2 + #endif + #ifdef ROW3 + #undef ROW3 + #endif + #ifdef ROW4 + #undef ROW4 + #endif + #ifdef COL_SIZE + #undef COL_SIZE + #endif + #ifdef KEY_SIZE + #undef KEY_SIZE + #endif + #define ROW1 20 + #define ROW2 79 + #define ROW3 138 + #define ROW4 197 + #define COL_SIZE 60 + #define KEY_SIZE 45 + + //first line + KEY_ALPHA("a", "A", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 0), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("z", "Z", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 1), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("e", "E", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("r", "R", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 3), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 3 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("t", "T", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 4), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 4 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("y", "Y", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 5), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 5 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("u", "U", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 6), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 6 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("i", "I", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("o", "O", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 8), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 8 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("p", "P", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 9), ROW1, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 9 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_alpha") + + //2nd line + KEY_ALPHA("q", "Q", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 0), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("s", "S", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 1), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("d", "D", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("f", "F", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 3), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 3 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("g", "G", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 4), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 4 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("h", "H", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 5), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 5 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("j", "J", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 6), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 6 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("k", "K", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("l", "L", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 8), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 8 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("m", "M", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 9), ROW2, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 9 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_alpha") + + //3rd line + KEY_SPECIAL_TOGGLE("key_maj", "Maj", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 0), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("w", "W", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("x", "X", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 3), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 3 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("c", "C", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 4), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 4 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("v", "V", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 5), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 5 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("b", "B", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 6), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 6 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_ALPHA("n", "N", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + KEY_SPECIAL("key_del", "", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 8), ROW3, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 9 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_alpha") + + part + { + name: "icon_key_del"; + clip_to: "key_key_del"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "button_key_del.png"; + rel1.to: "key_key_del"; + rel2.to: "key_key_del"; + rel1 { relative: 0.0 0.0; offset: 7 11; } + rel2 { relative: 0.0 0.0; offset: 7+28 11+9; } + color: 255 255 255 127; + } + } + + //4th line + KEY_SPECIAL_TOGGLE("key_other", "Autres", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 0), ROW4, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_alpha") + KEY_SPECIAL("key_space", "", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 2), ROW4, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 7 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_alpha") + KEY_SPECIAL("key_enter", "", "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 8), ROW4, + "keyboard_alpha", + 0.0, 0.0, (COL_SIZE * 9 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_alpha") + + part + { + name: "icon_key_enter"; + clip_to: "key_key_enter"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "button_key_return.png"; + rel1.to: "key_key_enter"; + rel2.to: "key_key_enter"; + rel1 { relative: 1.0 1.0; offset: -9-30 -9-19; } + rel2 { relative: 1.0 1.0; offset: -9 -9; } + color: 255 255 255 127; + } + } + + part + { + name: "keyboard_left_keys1"; + type: RECT; + clip_to: "module_keyboard"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: -195 -126; } + rel2 { relative: 0.0 0.5; offset: -33 126; } + } + description + { + state: "visible" 0.0; + rel1 { relative: 0.0 0.5; offset: 33 -126; } + rel2 { relative: 0.0 0.5; offset: 194 126; } + } + } + + part + { + name: "keyboard_left_keys2"; + type: RECT; + clip_to: "module_keyboard"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: -195 -126; } + rel2 { relative: 0.0 0.5; offset: -33 126; } + } + description + { + state: "visible" 0.0; + rel1 { relative: 0.0 0.5; offset: 33 -126; } + rel2 { relative: 0.0 0.5; offset: 194 126; } + } + } + + part + { + name: "keyboard_right_keys1"; + type: RECT; + clip_to: "module_keyboard"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 33 -126; } + rel2 { relative: 1.0 0.5; offset: 195 126; } + } + description + { + state: "visible" 0.0; + rel1 { relative: 1.0 0.5; offset: -195 -126; } + rel2 { relative: 1.0 0.5; offset: -34 126; } + } + } + + part + { + name: "keyboard_right_keys2"; + type: RECT; + clip_to: "module_keyboard"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 33 -126; } + rel2 { relative: 1.0 0.5; offset: 195 126; } + } + description + { + state: "visible" 0.0; + rel1 { relative: 1.0 0.5; offset: -195 -126; } + rel2 { relative: 1.0 0.5; offset: -34 126; } + } + } + + #undef COL_SIZE + #define COL_SIZE 58 + + + //Left panel 1 + KEY_NORMAL("é", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW1, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("è", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW1, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("à", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW1, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("ç", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW2, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("@", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW2, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("ù", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW2, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL_SPECIAL("key_question", "?", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW3, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL_SPECIAL("key_quote", "\"", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW3, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("!", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW3, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("-", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW4, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("_", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW4, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_left_keys1") + KEY_NORMAL("/", "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW4, + "keyboard_left_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_left_keys1") + + + //Right panel 1 + KEY_NORMAL("7", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW1, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("8", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW1, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("9", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW1, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("4", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW2, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("5", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW2, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("6", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW2, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("1", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW3, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("2", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW3, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("3", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW3, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL("0", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0), ROW4, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL(".", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1), ROW4, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_right_keys1") + KEY_NORMAL(",", "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2), ROW4, + "keyboard_right_keys1", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_right_keys1") + + + //Left panel 2 + KEY_NORMAL("%", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW1, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("#", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW1, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("°", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW1, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("&", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW2, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("(", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW2, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL(")", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW2, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("|", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW3, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL_SPECIAL("key_bracket_open", "[", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW3, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL_SPECIAL("key_bracket_close", "]", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW3, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("~", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW4, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("{", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW4, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_left_keys2") + KEY_NORMAL("}", "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW4, + "keyboard_left_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_left_keys2") + + + //Right panel 2 + KEY_NORMAL("<", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW1, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL(">", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW1, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL("=", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW1, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW1 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL_SPECIAL("key_double_point", ":", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW2, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL(";", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW2, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL("$", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW2, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW2 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL_SPECIAL("key_backslash", "\\", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW3, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL("^", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW3, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL("€", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW3, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW3 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL("+", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0), ROW4, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 0 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL_SPECIAL("key_multiply", "*", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1), ROW4, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 1 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_right_keys2") + KEY_NORMAL("'", "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2), ROW4, + "keyboard_right_keys2", + 0.0, 0.0, (COL_SIZE * 2 + KEY_SIZE), (ROW4 + KEY_SIZE), + "keyboard_right_keys2") + + } + + programs + { + program + { + name: "init"; + signal: "show"; + after: "keyboard_normal"; + } + + program + { + name: "keyboard_upper"; + signal: "keyboard,upper"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.2; + target: "key_key_maj_select"; + } + + program + { + name: "keyboard_lower"; + signal: "keyboard,lower"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.2; + target: "key_key_maj_select"; + } + + program + { + name: "keyboard_normal"; + signal: "keyboard,normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.2; + target: "keyboard_left_keys2"; + target: "keyboard_right_keys2"; + target: "key_key_other_select"; + after: "keyboard_normal2"; + } + program + { + name: "keyboard_normal2"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.25; + target: "keyboard_left_keys1"; + target: "keyboard_right_keys1"; + } + + program + { + name: "keyboard_other"; + signal: "keyboard,other"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.2; + target: "keyboard_left_keys1"; + target: "keyboard_right_keys1"; + after: "keyboard_other2"; + } + program + { + name: "keyboard_other2"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.25; + target: "keyboard_left_keys2"; + target: "keyboard_right_keys2"; + target: "key_key_other_select"; + } + } +} diff --git a/data/themes/default/structure/page_media.edc b/data/themes/default/structure/page_media.edc new file mode 100644 index 00000000..28289bbb --- /dev/null +++ b/data/themes/default/structure/page_media.edc @@ -0,0 +1,788 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + + +group +{ + name: "calaos/icons/media/null"; + parts + { + part + { + name: "icon"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + } + } + } +} + +group +{ + name: "calaos/icons/media/flickr"; + parts + { + part + { + name: "icon_back"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -54 -58; } + rel2 { relative: 0.5 0.5; offset: 53 49; } + image.normal: "icon_flickr.png"; + } + } + } +} + +group +{ + name: "calaos/icons/media/web"; + parts + { + part + { + name: "icon_back"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -54 -58; } + rel2 { relative: 0.5 0.5; offset: 53 49; } + image.normal: "menu_media_icon_web_back.png"; + } + } + } +} + +group +{ + name: "calaos/icons/media/eskiss"; + parts + { + part + { + name: "icon_back"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -54 -58; } + rel2 { relative: 0.5 0.5; offset: 53 49; } + image.normal: "menu_media_icon_eskiss_back.png"; + } + } + } +} + +group +{ + name: "calaos/icons/media/music"; + parts + { + part + { + name: "icon_back"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -99 -69; } + rel2 { relative: 0.5 0.5; offset: 98 68; } + image.normal: "menu_media_icon_cd_back.png"; + } + } + part + { + name: "icon_cd"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -42 -47; } + rel2 { relative: 0.5 0.5; offset: 51 46; } + image.normal: "menu_media_icon_cd_01.png"; + } + description + { + state: "animation" 0.0; + inherit: "default" 0.0; + image + { + normal: "menu_media_icon_cd_01.png"; + tween: "menu_media_icon_cd_02.png"; + tween: "menu_media_icon_cd_03.png"; + tween: "menu_media_icon_cd_04.png"; + tween: "menu_media_icon_cd_05.png"; + tween: "menu_media_icon_cd_06.png"; + tween: "menu_media_icon_cd_07.png"; + tween: "menu_media_icon_cd_08.png"; + tween: "menu_media_icon_cd_09.png"; + } + } + } + } + + programs + { + program + { + name: "show"; + //in: 2.5 0.0; + signal: "show"; + source: ""; + after: "anim"; + } + program + { + name: "anim"; + action: STATE_SET "animation" 0.0; + transition: LINEAR 0.25; + target: "icon_cd"; + after: "anim"; + } + program + { + name: "hide"; + signal: "hide"; + source: ""; + action: ACTION_STOP; + target: "anim"; + } + } +} + +group +{ + name: "calaos/icons/media/camera"; + parts + { + part + { + name: "icon_back"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -54 -58; } + rel2 { relative: 0.5 0.5; offset: 53 49; } + image.normal: "menu_media_icon_camera_back.png"; + } + } + part + { + name: "icon_red"; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 0.5; offset: -54 -58; } + rel2 { relative: 0.5 0.5; offset: 53 49; } + image.normal: "menu_media_icon_camera_red.png"; + color: 255 255 255 255; + } + description + { + state: "animation" 0.0; + inherit: "default" 0.0; + color: 255 255 255 20; + } + } + programs + { + program + { + name: "show"; +// in: 0.7 0.0; + signal: "show"; + source: ""; + after: "anim"; + } + program + { + name: "anim"; + in: 1.8 0.0; + action: STATE_SET "animation" 0.0; + transition: ACCELERATE 0.15; + target: "icon_red"; + after: "anim2"; + } + program + { + name: "anim2"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.15; + target: "icon_red"; + after: "anim3"; + } + program + { + name: "anim3"; + in: 0.3 0.0; + action: STATE_SET "animation" 0.0; + transition: ACCELERATE 0.15; + target: "icon_red"; + after: "anim4"; + } + program + { + name: "anim4"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.15; + target: "icon_red"; + after: "anim"; + } + program + { + name: "hide"; + signal: "hide"; + source: ""; + action: ACTION_STOP; + target: "anim"; + target: "anim2"; + target: "anim3"; + target: "anim4"; + } + } + } +} + + +#define MEDIA_MENU_ITEM(gname, icon_source, title, desc, item_sig, item_source) \ +group { \ + name: gname; \ + parts \ + { \ + part \ + { \ + name: "item_clip"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1 { relative: 0.0 0.0; offset: 0 0; } \ + rel2 { relative: 1.0 1.0; offset: -1 -1; } \ + } \ + } \ + \ + part \ + { \ + name: "item_shadow"; \ + description \ + { \ + state: "default" 0.0; \ + image.normal: "menu_media_item_shadow.png"; \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + rel1 { relative: 0.0 1.0; offset: -28 -13; } \ + rel2 { relative: 1.0 1.0; offset: 27 35; } \ + } \ + } \ + \ + part \ + { \ + name: "item_back"; \ + clip_to: "item_clip"; \ + description \ + { \ + state: "default" 0.0; \ + image.normal: "menu_media_item.png"; \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + color: 255 255 255 255; \ + } \ + description \ + { \ + state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 76; \ + } \ + } \ + part \ + { \ + name: "item_reflect"; \ + clip_to: "item_clip"; \ + description \ + { \ + state: "default" 0.0; \ + image.normal: "menu_media_item_reflect.png"; \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + } \ + } \ + part \ + { \ + name: "item_icon_clip"; \ + clip_to: "item_clip"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel2 { relative: 1.0 0.0; offset: -1 75; } \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + } \ + } \ + part \ + { \ + name: "item_icon"; \ + clip_to: "item_icon_clip"; \ + type: GROUP; \ + source: icon_source; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + } \ + } \ + part \ + { \ + name: "item_separator"; \ + clip_to: "item_clip"; \ + description \ + { \ + state: "default" 0.0; \ + image.normal: "menu_media_item_separator.png"; \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description \ + { \ + state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + } \ + part \ + { \ + name, "item_title"; \ + clip_to: "item_clip"; \ + type: TEXT; \ + description \ + { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 87; } \ + rel2 { relative: 1.0 0.0; offset: -1 104; } \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + color: 255 255 255 255; \ + text { text: title; font: "CalaosContent"; size: 15; } \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + color: 52 180 215 255; \ + } \ + description \ + { \ + state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 76; \ + } \ + } \ + part \ + { \ + name, "item_description"; \ + clip_to: "item_clip"; \ + type: TEXT; \ + description \ + { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 110; } \ + rel2 { relative: 1.0 0.0; offset: -1 122; } \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + color: 255 255 255 102; \ + text { text: desc; font: "CalaosContent"; size: 10; } \ + } \ + description \ + { \ + state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 25; \ + } \ + } \ + part \ + { \ + name: "item_glow"; \ + description \ + { \ + state: "default" 0.0; \ + image.normal: "menu_media_item_glow.png"; \ + rel1 { relative: 0.0 0.0; offset: -5 -5;} \ + rel2 { relative: 1.0 1.0; offset: 4 4;} \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + } \ + part \ + { \ + name: "item_mask"; \ + clip_to: "item_clip"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + rel1.to: "item_clip"; \ + rel2.to: "item_clip"; \ + visible: 1; \ + color: 0 0 0 0; \ + } \ + description \ + { \ + state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + program \ + { \ + name: "disable_item"; \ + signal: "disable"; \ + source: "calaos"; \ + action, STATE_SET "disabled" 0.0; \ + transition, DECELERATE 0.2; \ + target: "item_back"; \ + target: "item_separator"; \ + target: "item_title"; \ + target: "item_description"; \ + target: "item_mask"; \ + } \ + program \ + { \ + name: "enable_item"; \ + signal: "enable"; \ + source: "calaos"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.2; \ + target: "item_back"; \ + target: "item_separator"; \ + target: "item_title"; \ + target: "item_description"; \ + target: "item_mask"; \ + } \ + program \ + { \ + name: "item_mouse_down"; \ + signal: "mouse,down,1"; \ + source: "item_mask"; \ + action: STATE_SET "active" 0.0; \ + transition: ACCELERATE 0.15; \ + target: "item_glow"; \ + target: "item_title"; \ + } \ + program \ + { \ + name: "item_mouse_up"; \ + signal: "mouse,up,1"; \ + source: "item_mask"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 0.25; \ + target: "item_glow"; \ + target: "item_title"; \ + after: "item_send_sig"; \ + } \ + program \ + { \ + name: "item_send_sig"; \ + action: SIGNAL_EMIT item_sig item_source; \ + } \ + program \ + { \ + name: "reset_item"; \ + signal: "hide"; \ + source: ""; \ + action: STATE_SET "default" 0.0; \ + target: "item_clip"; \ + target: "item_shadow"; \ + target: "item_back"; \ + target: "item_separator"; \ + target: "item_title"; \ + target: "item_description"; \ + target: "item_mask"; \ + target: "item_glow"; \ + } \ + } \ +} + +MEDIA_MENU_ITEM("calaos/icons/menu/media/music", "calaos/icons/media/music", "Votre Musique", "Accédez à toute votre discothèque", "click,music", "menu") +MEDIA_MENU_ITEM("calaos/icons/menu/media/camera", "calaos/icons/media/camera", "Vidéosurveillance", "Pilotez toutes vos caméras", "click,camera", "menu") +MEDIA_MENU_ITEM("calaos/icons/menu/media/photos", "calaos/icons/media/flickr", "Flickr", "Visualisez des photos", "click,photos", "menu") + +MEDIA_MENU_ITEM("calaos/icons/menu/media/web", "calaos/icons/media/web", "Internet", "Accédez et surfez sur le web", "click,web", "menu") +MEDIA_MENU_ITEM("calaos/icons/menu/media/eskiss", "calaos/icons/media/eskiss", "Eskiss", "Jouez avec la physique !", "click,eskiss", "menu") + +group +{ + name: "calaos/page/media"; + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "calaos.main.content"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "content_size"; + rel2.to: "content_size"; + } + } + + part + { + name: "clip_buttons_camera_list"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "button.back" "button_back:button.back"; + part + { + name: "button_back"; + clip_to: "clip_buttons_camera_list"; + type: GROUP; + source: "button.back"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-170 10; } + rel2 { relative: 1.0 0.0; offset: -125-10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + part + { + name: "clip_buttons_audio_list_detail"; + clip_to: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 0; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + alias: "button.audio.back" "button_audio_back:button.audio.back"; + part + { + name: "button_audio_back"; + clip_to: "clip_buttons_audio_list_detail"; + type: GROUP; + source: "button.audio.back"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-190-125 10; } + rel2 { relative: 1.0 0.0; offset: -125-190 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + alias: "button.audio.more" "button_audio_more:button.audio.more"; + part + { + name: "button_audio_more"; + clip_to: "clip_buttons_audio_list_detail"; + type: GROUP; + source: "button.audio.more"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-180 10; } + rel2 { relative: 1.0 0.0; offset: -125-10 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + } + + programs + { + program + { + name: "mode_media_camera_list"; + signal: "mode,back"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.8; + target: "clip_buttons_camera_list"; + } + program + { + name: "mode_media_camera_list2"; + signal: "mode,back"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "clip_buttons_audio_list_detail"; + } + + program + { + name: "mode_media_audio_detail"; + signal: "mode,audio_detail"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.8; + target: "clip_buttons_audio_list_detail"; + } + program + { + name: "mode_media_audio_detail2"; + signal: "mode,audio_detail"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "clip_buttons_camera_list"; + } + + program + { + name: "mode_media_menu"; + signal: "mode,menu"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "clip_buttons_camera_list"; + target: "clip_buttons_audio_list_detail"; + } + } +} + +group +{ + name: "calaos/media/menu"; + + parts + { + #define ICON_SWALLOW_CLIPPER(_swallow, off1x, off1y, off2x, off2y) \ + part \ + { \ + name: _swallow"_clip"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + rel1.offset: 0 -15; \ + rel2.offset: -1 -16; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + rel1.offset: 0 0; \ + rel2.offset: -1 -1; \ + color: 255 255 255 255; \ + } \ + } \ + part \ + { \ + name: _swallow; \ + type: SWALLOW; \ + clip_to: _swallow"_clip"; \ + description \ + { \ + state: "default" 0.0; \ + rel1 { relative: 0.5 0.5; offset: off1x off1y; to: _swallow"_clip"; } \ + rel2 { relative: 0.5 0.5; offset: off2x off2y; to: _swallow"_clip"; } \ + } \ + } + + ICON_SWALLOW_CLIPPER("icon.1", + -98-71-197, -186, + -98-71, -186+137) + + ICON_SWALLOW_CLIPPER("icon.2", + -98, -186, + 98, -186+137) + + ICON_SWALLOW_CLIPPER("icon.3", + 98+71, -186, + 98+71+197, -186+137) + + ICON_SWALLOW_CLIPPER("icon.4", + -98-71-197, 34, + -98-71, 34+137) + + ICON_SWALLOW_CLIPPER("icon.5", + -98, 34, + 98, 34+137) + + ICON_SWALLOW_CLIPPER("icon.6", + 98+71, 34, + 98+71+197, 34+137) + + } + + programs + { + program + { + name: "on_show"; + signal: "show"; + in: 0.3 0.0; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.25; + target: "icon.1_clip"; + target: "icon.2_clip"; + target: "icon.3_clip"; + target: "icon.4_clip"; + target: "icon.5_clip"; + target: "icon.6_clip"; + } + } + +} diff --git a/data/themes/default/structure/page_scenarios.edc b/data/themes/default/structure/page_scenarios.edc new file mode 100644 index 00000000..3d95d56c --- /dev/null +++ b/data/themes/default/structure/page_scenarios.edc @@ -0,0 +1,310 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/scenarios"; + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "sep"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "separator.png"; + rel1 { to: "content_size"; relative: 0.5 0.0; offset: -11 20; } + rel2 { to: "content_size"; relative: 0.5 1.0; offset: 10 -20; } + } + } + + part + { + name: "scenario_list_deco"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 232 8 8 51; } + max: 512 -1; + rel1 { to: "content_size"; relative: 0.0 0.0; offset: 30 30; } + rel2 { to: "content_size"; relative: 0.5 1.0; offset: -20 -30-43; } + } + } + + part + { + name: "scenario_list_deco_buttons"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "scenario_list_decoration.png"; } + rel1 { to: "scenario_list_deco"; relative: 0.0 1.0; offset: 0 0; } + rel2 { to: "scenario_list_deco"; relative: 0.0 1.0; offset: 432 43; } + } + } + + part + { + name: "scenario.list"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "scenario_list_deco"; + rel2.to: "scenario_list_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "button.list.all"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position/browser_icon"; + string: "label" "Tous"; + string: "icon" "calaos/icons/element/scenario"; + } + rel1 { relative: 0.0 1.0; offset: 15 -44; to: "scenario_list_deco_buttons"; } + rel2 { relative: 0.0 1.0; offset: 100 -3; to: "scenario_list_deco_buttons"; } + } + } + + part + { + name: "button.list.light"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position/browser"; + string: "label" "Lumières"; + } + rel1 { relative: 0.0 1.0; offset: 103 -44; to: "scenario_list_deco_buttons"; } + rel2 { relative: 0.0 1.0; offset: 213 -3; to: "scenario_list_deco_buttons"; } + } + } + + part + { + name: "button.list.volet"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position/browser"; + string: "label" "Volets"; + } + rel1 { relative: 0.0 1.0; offset: 216 -44; to: "scenario_list_deco_buttons"; } + rel2 { relative: 0.0 1.0; offset: 299 -3; to: "scenario_list_deco_buttons"; } + } + } + + part + { + name: "button.list.schedule"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + params + { + string: "style" "calaos/button/position/browser"; + string: "label" "Planifiés"; + } + rel1 { relative: 0.0 1.0; offset: 302 -44; to: "scenario_list_deco_buttons"; } + rel2 { relative: 0.0 1.0; offset: 422 -3; to: "scenario_list_deco_buttons"; } + } + } + + part + { + name: "schedule_top_bg"; + description + { + state: "default" 0.0; + color: 255 255 255 130; + image { normal: "button_element.png"; border: 11 11 14 14; } + rel1 { to: "content_size"; relative: 0.5 0.0; offset: 20 26; } + rel2 { to: "content_size"; relative: 1.0 0.0; offset: -30 26+44; } + } + } + + part + { + name: "schedule_list_deco"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + max: 512 -1; + rel1 { to: "content_size"; to_y: "schedule_top_bg"; relative: 0.5 1.0; offset: 20 6; } + rel2 { to: "content_size"; relative: 1.0 1.0; offset: -30 -30; } + } + } + + part + { + name: "scenario_schedule.list"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "schedule_list_deco"; + rel2.to: "schedule_list_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "schedule.date"; + clip_to: "content_clip"; + mouse_events: 0; + type: TEXTBLOCK; + description { + state, "default" 0.0; + rel1.offset: 6 0; + rel2.offset: -10 -1; + rel1.to: "schedule_top_bg"; + rel2.to: "schedule_top_bg"; + text { + text: "A la date du: Dimanche 23 Décembre 2012"; + style: "StandardText"; + } + } + } + + part + { + name: "button.calendar"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: -6-33 -13; to: "schedule_top_bg"; } + rel2 { relative: 1.0 0.5; offset: -6 13; to: "schedule_top_bg"; } + params + { + string: "style" "calaos/action_button/pink"; + string: "icon" "calaos/icons/action_button/keyboard"; + } + } + } + + part + { + name: "button.calendar.today"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: -6-33-4-38 -15; to: "schedule_top_bg"; } + rel2 { relative: 1.0 0.5; offset: -6-33-4 15; to: "schedule_top_bg"; } + params + { + string: "style" "calaos/action_button/label"; + string: "label" "Auj."; + } + } + } + + part + { + name: "create_bt_clip"; + type: RECT; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + alias: "button.create" "button_create:button.scenario.create"; + part + { + name: "button_create"; + clip_to: "create_bt_clip"; + type: GROUP; + source: "button.scenario.create"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-225 10; } + rel2 { relative: 1.0 0.0; offset: -125-15 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + #include "activity_loading.edc" + } + + programs + { + program + { + signal: "show,loading"; + source: "calaos"; + action: STATE_SET "hidden" 0.0; + transition: DECELERATE 0.25; + target: "create_bt_clip"; + } + + program + { + signal: "hide,loading"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.25; + target: "create_bt_clip"; + } + } + +} diff --git a/data/themes/default/structure/page_schedule.edc b/data/themes/default/structure/page_schedule.edc new file mode 100644 index 00000000..2816ea32 --- /dev/null +++ b/data/themes/default/structure/page_schedule.edc @@ -0,0 +1,172 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/schedule_scenario"; + + parts + { + #include "activity_header_footer.edc" + + part + { + name: "sep"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image.normal: "separator.png"; + rel1 { to: "content_size"; relative: 0.5 0.0; offset: -11 20; } + rel2 { to: "content_size"; relative: 0.5 1.0; offset: 10 -20; } + } + } + + part + { + name: "schedule_list_deco"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 232 8 8 51; } + max: 512 -1; + rel1 { to: "content_size"; relative: 0.0 0.0; offset: 30 76; } + rel2 { to: "content_size"; relative: 0.5 1.0; offset: -20 -30; } + } + } + + part + { + name: "schedule.list"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "schedule_list_deco"; + rel2.to: "schedule_list_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "month_list_deco"; + clip_to: "content_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "standard_list_decoration.png"; border: 27 27 50 50; } + max: 512 -1; + rel1 { to: "content_size"; relative: 0.5 0.0; offset: 20 76; } + rel2 { to: "content_size"; relative: 1.0 1.0; offset: -30 -30; } + } + } + + part + { + name: "month.list"; + type: SWALLOW; + clip_to: "content_clip"; + description + { + state: "default" 0.0; + rel1.to: "month_list_deco"; + rel2.to: "month_list_deco"; + rel1.offset: 5 5; + rel2.offset: -5 -5; + } + } + + part + { + name: "button.add"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + fixed: 1 0; + params + { + string: "label" "Ajouter"; + string: "style" "calaos/button/position"; + } + rel1 { relative: 1.0 0.5; offset: -85 -18; } + rel2 { relative: 1.0 0.5; offset: -5 18; } + rel1.to: "hours_text"; + rel1.to_x: "schedule_list_deco"; + rel2.to: "hours_text"; + rel2.to_x: "schedule_list_deco"; + } + } + + part + { + name: "hours_text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 2 -37; } + rel2 { relative: 1.0 0.0; offset: -1 -5; } + rel1.to: "schedule_list_deco"; + rel2.to: "schedule_list_deco"; + text { + text: "Heures d'exécutions"; + style: "HTMLStyle"; + } + } + } + + part + { + name: "month_text"; + mouse_events: 0; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 2 -37; } + rel2 { relative: 1.0 0.0; offset: -1 -5; } + rel1.to: "month_list_deco"; + rel2.to: "month_list_deco"; + text { + text: "Planification spécifiques"; + style: "HTMLStyle"; + } + } + } + + alias: "button.valid" "button_valid:button.valid"; + part + { + name: "button_valid"; + clip_to: "content_clip"; + type: GROUP; + source: "button.valid"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -125-135 10; } + rel2 { relative: 1.0 0.0; offset: -125-15 44; } + rel1.to: "module_footer_background"; + rel2.to: "module_footer_background"; + } + } + + } + + programs + { + } + +} diff --git a/data/themes/default/structure/page_web.edc b/data/themes/default/structure/page_web.edc new file mode 100644 index 00000000..30ccf133 --- /dev/null +++ b/data/themes/default/structure/page_web.edc @@ -0,0 +1,557 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/web"; + + script + { + public is_loading; + public keyboard_visible; + } + + parts + { + + part + { + name: "webkit"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel2.to_y: "footer"; + rel2.relative: 1.0 0.0; + rel2.offset: -1 3; + } + description + { + state: "keyboard" 0.0; + inherit: "default" 0.0; + rel2.offset: -1 -268; + } + } + + part + { + name: "page_loader_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: -125 -13-25; } + rel2 { relative: 0.5 1.0; offset: 124 -13; } + rel1.to_y: "webkit"; + rel2.to_y: "webkit"; + color: 255 255 255 0; + visible: 0; + } + description + { + state: "visible" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "page_loader_bg"; + clip_to: "page_loader_clip"; + description + { + state: "default" 0.0; + image + { + normal: "loading_bar.png"; + border: 10 10 10 10; + } + rel1.to: "page_loader_clip"; + rel2.to: "page_loader_clip"; + } + } + + part + { + name: "loader_circular"; + clip_to: "page_loader_clip"; + description + { + state: "default" 0.0; + max: 22 22; + rel1 { relative: 1.0 0.0; offset: -28 2;} + rel2 { relative: 1.0 1.0; offset: -6 -2;} + rel1.to: "page_loader_clip"; + rel2.to: "page_loader_clip"; + image + { + normal: "mini_circular_000.png"; + tween: "mini_circular_001.png"; + tween: "mini_circular_002.png"; + tween: "mini_circular_003.png"; + tween: "mini_circular_004.png"; + tween: "mini_circular_005.png"; + tween: "mini_circular_006.png"; + tween: "mini_circular_007.png"; + tween: "mini_circular_008.png"; + tween: "mini_circular_009.png"; + tween: "mini_circular_010.png"; + tween: "mini_circular_011.png"; + tween: "mini_circular_012.png"; + tween: "mini_circular_013.png"; + tween: "mini_circular_014.png"; + tween: "mini_circular_015.png"; + tween: "mini_circular_016.png"; + //tween: "mini_circular_017.png"; + } + } + description { + state: "done" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + + part + { + name: "progressbar_whole"; + type: RECT; + clip_to: "page_loader_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 54 7; to: "page_loader_clip"; } + rel2 { relative: 1.0 1.0; offset: -31 -7; to: "page_loader_clip"; } + color: 0 0 0 0; + } + } + + part + { + name: "progress_center"; + type: RECT; + clip_to: "page_loader_clip"; + description + { + state: "default" 0.0; + color: 255 255 255 200; + rel1.to: "progressbar_whole"; + rel2.to: "progress.level"; + } + } + + part + { + name: "progress.level"; + type: RECT; + clip_to: "page_loader_clip"; + dragable + { + confine: "progressbar_whole"; + x: 1 1 1; + y: 0 0 0; + } + description + { + state: "default" 0.0; + min: 1 12; + visible: 1; + color: 255 255 255 200; + rel1.to: "progressbar_whole"; + rel2.to: "progressbar_whole"; + } + } + + part + { + name: "progress.text"; + type: TEXT; + clip_to: "page_loader_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 7 0; to: "page_loader_clip"; } + rel2 { relative: 0.0 1.0; offset: 54 -1; to: "page_loader_clip"; } + color: 255 255 255 180; + text { text: "85 %"; font: "CalaosContent"; size: 14; min: 1 1; align: 0.0 0.5; } + } + } + + part + { + name: "keyboard_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 3; to_y: "webkit"; } + rel2 { relative: 1.0 0.0; offset: -1 0; to_y: "footer"; } + } + } + + part + { + name: "keyboard"; + type: SWALLOW; + clip_to: "keyboard_clip"; + description + { + state: "default" 0.0; + rel1.to: "keyboard_clip"; + rel2.to: "keyboard_clip"; + } + } + + part + { + name: "keyboard_shadow"; + mouse_events: 0; + description + { + state: "default" 0.0; + image { normal: "footer_shadow.png"; } + rel1 { relative: 0.0 1.0; offset: 0 -40;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "webkit"; + rel2.to: "webkit"; + } + } + + part + { + name: "footer"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 -101;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + } + } + + part + { + name: "footer_bg"; + clip_to: "footer"; + description + { + state: "default" 0.0; + image { normal: "footer_kevlar.png"; } + rel1.to: "footer"; + rel2.to: "footer"; + } + } + + ROUND_BUTTON("button_previous", "footer", "footer", "footer", + "button_previous.png", "button_previous_glow.png", "button_previous_off.png", + "pressed", "button.back", "left", + 0.0, 1.0, 10, -82, + 0.0, 1.0, 75, -15) + ROUND_BUTTON("button_next", "footer", "footer", "footer", + "button_next.png", "button_next_glow.png", "button_next_off.png", + "pressed", "button.forward", "right", + 0.0, 1.0, 75, -82, + 0.0, 1.0, 140, -15) + + alias: "page.title" "page_title:text"; + part + { + name: "page_title"; + type: GROUP; + source: "calaos/text/scrolling/left"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: 15 -89; to_x: "button_go"; } + rel2 { relative: 1.0 1.0; offset: -15 -55; } + } + } + + alias: "button.quit" "button_quit:button.quit"; + part + { + name: "button_quit"; + type: GROUP; + source: "button.quit"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: -121 -44; } + rel2 { relative: 1.0 1.0; offset: -11 -10; } + } + } + + alias: "button.go" "button_go:button.go"; + part + { + name: "button_go"; + type: GROUP; + source: "button.go"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 166 -89; } + rel2 { relative: 0.0 1.0; offset: 282 -55; } + } + } + + alias: "button.reload" "button_reload:button.reload"; + part + { + name: "button_reload"; + type: GROUP; + source: "button.reload"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 166 -44; } + rel2 { relative: 0.0 1.0; offset: 282 -10; } + } + } + + alias: "button.stop" "button_stop:button.stop"; + part + { + name: "button_stop"; + type: GROUP; + source: "button.stop"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: 15 0; to: "button_reload"; } + rel2 { relative: 1.0 1.0; offset: 98 -1; to: "button_reload"; } + } + } + + alias: "button.home" "button_home:button.home"; + part + { + name: "button_home"; + type: GROUP; + source: "button.home"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: 15 0; to: "button_stop"; } + rel2 { relative: 1.0 1.0; offset: 159 -1; to: "button_stop"; } + } + } + + alias: "button.keyboard" "button_keyboard:button.keyboard"; + part + { + name: "button_keyboard"; + type: GROUP; + source: "button.keyboard"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: 15 0; to: "button_home"; } + rel2 { relative: 1.0 1.0; offset: 112 -1; to: "button_home"; } + } + } + + alias: "button.bookmark" "button_bookmark:button.bookmark"; + part + { + name: "button_bookmark"; + type: GROUP; + source: "button.bookmark"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: 15 0; to: "button_keyboard"; } + rel2 { relative: 1.0 1.0; offset: 185 -1; to: "button_keyboard"; } + } + } + } + + programs + { + SCROLLING_TEXT_SIGNAL_REPEAT("page_title") + + program + { + name: "init1"; + signal: "show"; + action: SIGNAL_EMIT "show,left" "calaos"; + } + program + { + name: "init2"; + signal: "show"; + action: SIGNAL_EMIT "show,right" "calaos"; + } + program + { + name: "init3"; + signal: "show"; + action: SIGNAL_EMIT "enable,left" "calaos"; + } + program + { + name: "init4"; + signal: "show"; + action: SIGNAL_EMIT "enable,right" "calaos"; + } + + program + { + name: "show_keyboard"; + signal: "show,keyboard"; + source: "calaos"; + script + { + set_int(keyboard_visible, 1); + run_program(PROGRAM:"show_keyboard2"); + } + } + + program + { + name: "show_keyboard2"; + action: STATE_SET "keyboard" 0.0; + transition: DECELERATE 0.7 CURRENT; + target: "webkit"; + } + + program + { + name: "hide_keyboard"; + signal: "hide,keyboard"; + source: "calaos"; + script + { + set_int(keyboard_visible, 0); + run_program(PROGRAM:"hide_keyboard2"); + } + } + + program + { + name: "hide_keyboard2"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.7 CURRENT; + target: "webkit"; + } + + program + { + name: "button_keyboard_click"; + signal: "pressed"; + source: "button.keyboard"; + script + { + if (get_int(keyboard_visible) == 0) + { + set_int(keyboard_visible, 1); + run_program(PROGRAM:"show_keyboard"); + } + else + { + set_int(keyboard_visible, 0); + run_program(PROGRAM:"hide_keyboard"); + } + } + } + + program + { + name: "show_loading"; + signal: "start,loading"; + source: "calaos"; + action: STATE_SET "visible" 0.0; + transition: DECELERATE 0.7; + target: "page_loader_clip"; + } + + program + { + name: "show_loading2"; + signal: "start,loading"; + source: "calaos"; + script + { + if (get_int(is_loading) == 0) + { + set_int(is_loading, 1); + run_program(PROGRAM:"anim_start"); + } + } + } + program + { + name: "hide_loading2"; + signal: "stop,loading"; + source: "calaos"; + script + { + if (get_int(is_loading) == 1) + { + set_int(is_loading, 0); + run_program(PROGRAM:"anim_stop"); + } + } + } + + program + { + name: "anim_start"; + action: STATE_SET "default" 0.0; + target: "loader_circular"; + transition: LINEAR 1; + after: "anim_start"; + } + + program + { + name: "anim_stop"; + after: "anim_stop1"; + after: "anim_stop2"; + } + program + { + name: "anim_stop1"; + action: STATE_SET "done" 0.0; + target: "loader_circular"; + } + program + { + name: "anim_stop2"; + action: ACTION_STOP; + target: "anim_start"; + } + + program + { + name: "hide_loading"; + signal: "stop,loading"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.7; + target: "page_loader_clip"; + } + + program + { + name: "start_anim_save_bookmark"; + signal: "saving,bookmark"; + source: "calaos"; + action: SIGNAL_EMIT "start,loading" "calaos"; + after: "stop_anim_save_bookmark"; + } + + program + { + name: "stop_anim_save_bookmark"; + in: 1.5 0.0; + action: SIGNAL_EMIT "stop,loading" "calaos"; + } + } + +} diff --git a/data/themes/default/structure/page_widgets.edc b/data/themes/default/structure/page_widgets.edc new file mode 100644 index 00000000..5976d046 --- /dev/null +++ b/data/themes/default/structure/page_widgets.edc @@ -0,0 +1,643 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/page/widgets"; + + parts + { + part + { + name: "content_clip"; + type: RECT; + description + { + state: "default" 0.0; + } + description + { + state: "faded" 0.0; + color: 255 255 255 0; + } + } + + part + { + name: "overlay"; + type: RECT; + description + { + state: "default" 0.0; + color: 0 0 0 0; + visible: 0; + } + description + { + state: "faded" 0.0; + color: 0 0 0 75; + visible: 1; + } + } + + part + { + name: "widgets.swallow"; + clip_to: "content_clip"; + type: SWALLOW; + description + { + state: "default" 0.0; + } + } + } + + programs + { + program + { + signal: "fade"; + source: "calaos"; + action: STATE_SET "faded" 0.0; + transition: DECELERATE 0.5; + target: "content_clip"; + target: "overlay"; + } + + program + { + signal: "normal"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.2; + target: "content_clip"; + target: "overlay"; + } + } +} + +group +{ + name: "calaos/widget/base"; + + parts + { + part + { + name: "back"; + description + { + state: "deafult" 0.0; + visible: 0; + color: 255 255 255 0; + image { normal: "widget_back_edit.png"; border: 62 70 65 64; } + rel1 { relative: 0.0 0.0; offset: -10 -2; } + rel2 { relative: 1.0 1.0; offset: 9 44; } + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "widget"; + type: SWALLOW; + repeat_events: 1; + description + { + state: "default" 0.0; + } + } + + part + { + name: "widget_button_up"; + description + { + state: "default" 0.0; + image.normal: "button_widget_move_up.png"; + min: 23 18; + max: 23 18; + rel1 { relative: 0.5 0.0; offset: 0 -17; to: "back"; } + rel2 { relative: 0.5 0.0; offset: 0 0; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part + { + name: "widget_button_up_big"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_up_big.png";} + min: 23 18; + max: 23 18; + rel1 { relative: 0.5 0.0; offset: 0 -17; to: "back"; } + rel2 { relative: 0.5 0.0; offset: 0 0; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.0; offset: 0 -35; to: "back"; } + rel2 { relative: 0.5 0.0; offset: 0 -18; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + description + { + state: "anim_end" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 0.0; offset: 0 -18; to: "back"; } + rel2 { relative: 0.5 0.0; offset: 0 0; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + } + + part + { + name: "widget_button_down"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_down.png";} + min: 23 18; + max: 23 18; + rel1 { relative: 0.5 1.0; offset: 0 0; to: "back"; } + rel2 { relative: 0.5 1.0; offset: 0 17; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part + { + name: "widget_button_down_big"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_down_big.png";} + min: 23 18; + max: 23 18; + rel1 { relative: 0.5 1.0; offset: 0 0; to: "back"; } + rel2 { relative: 0.5 1.0; offset: 0 17; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: 0 18; to: "back"; } + rel2 { relative: 0.5 1.0; offset: 0 35; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + description + { + state: "anim_end" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 1.0; offset: 0 0; to: "back"; } + rel2 { relative: 0.5 1.0; offset: 0 17; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + } + + part + { + name: "widget_button_left"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_left.png";} + min: 18 23; + max: 18 23; + rel1 { relative: 0.0 0.5; offset: -17 0; to: "back"; } + rel2 { relative: 0.0 0.5; offset: 0 0; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part + { + name: "widget_button_left_big"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_left_big.png";} + min: 18 23; + max: 18 23; + rel1 { relative: 0.0 0.5; offset: -17 0; to: "back"; } + rel2 { relative: 0.0 0.5; offset: 0 0; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: -35 0; to: "back"; } + rel2 { relative: 0.0 0.5; offset: -18 0; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + description + { + state: "anim_end" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.0 0.5; offset: -17 0; to: "back"; } + rel2 { relative: 0.0 0.5; offset: 0 0; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + } + + part + { + name: "widget_button_right"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_right.png";} + min: 18 23; + max: 18 23; + rel1 { relative: 1.0 0.5; offset: 0 0; to: "back"; } + rel2 { relative: 1.0 0.5; offset: 17 0; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part + { + name: "widget_button_right_big"; + description + { + state: "default" 0.0; + image { normal: "button_widget_move_right_big.png";} + min: 18 23; + max: 18 23; + rel1 { relative: 1.0 0.5; offset: 0 0; to: "back"; } + rel2 { relative: 1.0 0.5; offset: 17 0; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 18 0; to: "back"; } + rel2 { relative: 1.0 0.5; offset: 35 0; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + description + { + state: "anim_end" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 0.5; offset: 0 0; to: "back"; } + rel2 { relative: 1.0 0.5; offset: 17 0; to: "back"; } + visible: 1; + color: 255 255 255 0; + } + } + + part + { + name: "buttons_edit_clip"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + rel1 { relative: 0.0 1.0; offset: 0 5; } + rel2 { relative: 1.0 1.0; offset: 0 40; } + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "widget_drag_icon"; + description + { + state: "default" 0.0; + image { normal: "button_widget_resize.png";} + min: 38 38; + max: 38 38; + rel1 { relative: 1.0 1.0; offset: -25 -25; to: "back"; } + rel2 { relative: 1.0 1.0; offset: 11 11; to: "back"; } + visible: 0; + color: 255 255 255 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim2" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: -27 -27; to: "back"; } + rel2 { relative: 1.0 1.0; offset: 9 9; to: "back"; } + visible: 1; + color: 255 255 255 255; + } + description + { + state: "anim1" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: -23 -23; to: "back"; } + rel2 { relative: 1.0 1.0; offset: 13 13; to: "back"; } + visible: 1; + color: 255 255 255 255; + } + } + + part + { + name: "widget_drag_move"; + type: RECT; + description + { + state: "default" 0.0; + color: 0 0 0 0; + visible: 0; + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + + part + { + name: "widget.resize.bloc"; + type: SWALLOW; + description + { + state: "default" 0.0; + color: 0 0 0 0; + visible: 0; + rel1 { relative: 1.0 1.0; offset: -28 -28; to: "back"; } + rel2 { relative: 1.0 1.0; offset: 15 15; to: "back"; } + } + description + { + state: "move" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + + part + { + name: "button.delete"; + type: EXTERNAL; + source: "elm/button"; + clip_to: "buttons_edit_clip"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; to: "buttons_edit_clip"; } + rel2 { relative: 0.0 0.0; offset: 33 33; to: "buttons_edit_clip"; } + params + { + string: "style" "calaos/action_button/small"; + string: "icon" "calaos/icons/button/delete"; + } + } + } + } + + programs + { + program + { + name: "begin_move"; + signal: "widget,edit"; + source: "calaos"; + action: STATE_SET "move" 0.0; + transition: DECELERATE 0.8; + target: "buttons_edit_clip"; + target: "back"; + target: "widget_button_up"; + target: "widget_button_up_big"; + target: "widget_button_down"; + target: "widget_button_down_big"; + target: "widget_button_left"; + target: "widget_button_left_big"; + target: "widget_button_right"; + target: "widget_button_right_big"; + target: "widget_drag_move"; + after: "start_move_anim"; + } + + program + { + name: "begin_resize"; + signal: "widget,resizable"; + source: "calaos"; + action: STATE_SET "move" 0.0; + transition: DECELERATE 0.8; + target: "widget_drag_icon"; + target: "widget.resize.bloc"; + after: "start_resize_anim"; + } + + program + { + name: "end_move"; + signal: "widget,normal"; + source: "calaos"; + after: "mode_normal2"; + after: "mode_normal3"; + } + + program + { + name: "mode_normal2"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "buttons_edit_clip"; + target: "back"; + target: "widget_button_up"; + target: "widget_button_up_big"; + target: "widget_button_down"; + target: "widget_button_down_big"; + target: "widget_button_left"; + target: "widget_button_left_big"; + target: "widget_button_right"; + target: "widget_button_right_big"; + target: "widget_drag_move"; + target: "widget_drag_icon"; + target: "widget.resize.bloc"; + } + + program + { + name: "mode_normal3"; + action: ACTION_STOP; + target: "start_move_anim"; + target: "start_move_anim2"; + target: "start_move_anim3"; + target: "start_resize_anim"; + target: "start_resize_anim2"; + } + + program + { + name: "start_move_anim"; + action: STATE_SET "anim" 0.0; + transition: DECELERATE 0.7; + target: "widget_button_up_big"; + target: "widget_button_down_big"; + target: "widget_button_left_big"; + target: "widget_button_right_big"; + after: "start_move_anim2"; + } + + program + { + name: "start_move_anim2"; + action: STATE_SET "anim_end" 0.0; + target: "widget_button_up_big"; + target: "widget_button_down_big"; + target: "widget_button_left_big"; + target: "widget_button_right_big"; + after: "start_move_anim3"; + } + + program + { + name: "start_move_anim3"; + action: STATE_SET "move" 0.0; + transition: DECELERATE 0.1; + target: "widget_button_up_big"; + target: "widget_button_down_big"; + target: "widget_button_left_big"; + target: "widget_button_right_big"; + after: "start_move_anim"; + } + + program + { + name: "start_resize_anim"; + action: STATE_SET "anim1" 0.0; + transition: LINEAR 0.35; + target: "widget_drag_icon"; + after: "start_resize_anim2"; + } + + program + { + name: "start_resize_anim2"; + action: STATE_SET "anim2" 0.0; + transition: LINEAR 0.35; + target: "widget_drag_icon"; + after: "start_resize_anim"; + } + + program + { + name: "start_move"; + signal: "mouse,down,1"; + source: "widget_drag_move"; + action: SIGNAL_EMIT "start,move" "widget"; + } + + program + { + name: "moving"; + signal: "mouse,move"; + source: "widget_drag_move"; + action: SIGNAL_EMIT "moving" "widget"; + } + + program + { + name: "stop_move"; + signal: "mouse,up,1"; + source: "widget_drag_move"; + action: SIGNAL_EMIT "stop,move" "widget"; + } + } +} diff --git a/data/themes/default/structure/paging_view.edc b/data/themes/default/structure/paging_view.edc new file mode 100644 index 00000000..99f8b61b --- /dev/null +++ b/data/themes/default/structure/paging_view.edc @@ -0,0 +1,107 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/paging_view"; + + parts + { + part + { + name: "pager.swallow"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel2.offset: -1 -30; + } + } + + part + { + name: "selector.swallow"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1.relative: 0.0 1.0; + rel1.offset: 0 -30; + } + } + } +} + +group +{ + name: "calaos/paging_view/selector"; + min: 18 24; + max: 18 24; + + parts + { + part + { + name: "select"; + description + { + state: "default" 0.0; + min: 7 7; + max: 7 7; + align: 0.5 0.5; + fixed: 1 1; + image.normal: "selector_on.png"; + color: 0 0 0 0; + } + description + { + state: "off" 0.0; + inherit: "default" 0.0; + } + description + { + state: "on" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + + part + { + name: "unselect"; + description + { + state: "default" 0.0; + min: 7 7; + max: 7 7; + align: 0.5 0.5; + fixed: 1 1; + image.normal: "selector_off.png"; + } + } + } + + programs + { + program + { + name: "select"; + signal: "select"; + source: "calaos"; + action: STATE_SET "on" 0.0; + target: "select"; + transition: ACCELERATE 0.2; + } + program + { + name: "unselect"; + signal: "unselect"; + source: "calaos"; + action: STATE_SET "off" 0.0; + target: "select"; + transition: DECELERATE 0.2; + } + } +} diff --git a/data/themes/default/structure/player.edc b/data/themes/default/structure/player.edc new file mode 100644 index 00000000..dfa43e26 --- /dev/null +++ b/data/themes/default/structure/player.edc @@ -0,0 +1,1415 @@ +// Calaos Home Module-audio player object file +// HECKY Raoul +// BOEHLER Frederic +// 07/08/2007 + +// Object whole +part { + name: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + color: 255 255 255 130; + } + description { + state: "active" 0.0; + color: 255 255 255 255; + } +} +// End object whole + +// Player's cover whole +part { + name: "player_cover_whole"; + clip_to: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 0 36;} + rel2 { relative: 1.0 0.0; offset: -1 228;} + rel1.to: "player_whole"; + rel2.to: "player_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} +// End player's cover whole + +// Player's volume whole +part { + name: "player_volume_whole"; + clip_to: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.088 0.24; offset: -14 -95;} + rel2 { relative: 0.088 0.24; offset: 13 94;} + rel1.to: "player_whole"; + rel2.to: "player_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_volume_label"; + clip_to: "player_volume_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.551 0.065; offset: -14 -10;} + rel2 { relative: 0.551 0.065; offset: 13 9;} + rel1.to: "player_volume_whole"; + rel2.to: "player_volume_whole"; + color: 255 255 255 255; + } +} +// End player's volume whole + +// Player's title whole +part { + name: "player_title_whole"; + clip_to: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 0 17;} + rel2 { relative: 1.0 0.0; offset: -1 42;} + rel1.to: "player_whole"; + rel2.to: "player_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} +// End player's title whole + +// Player's buttons row +part { + name: "player_buttons_row"; + clip_to: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 0 226;} + rel2 { relative: 1.0 0.0; offset: -1 254;} + rel1.to: "player_whole"; + rel2.to: "player_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} +// End player's buttons row + +// Player's buttons wholes +part { + name: "player_buttons_previous_track"; + clip_to: "player_buttons_row"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.237 0.5; offset: -17 -14;} + rel2 { relative: 0.237 0.5; offset: 16 13;} + rel1.to: "player_buttons_row"; + rel2.to: "player_buttons_row"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_buttons_play"; + clip_to: "player_buttons_row"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.417 0.5; offset: -17 -14;} + rel2 { relative: 0.417 0.5; offset: 16 13;} + rel1.to: "player_buttons_row"; + rel2.to: "player_buttons_row"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_buttons_pause"; + clip_to: "player_buttons_row"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.417 0.5; offset: -17 -14;} + rel2 { relative: 0.417 0.5; offset: 16 13;} + rel1.to: "player_buttons_row"; + rel2.to: "player_buttons_row"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_buttons_stop"; + clip_to: "player_buttons_row"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.597 0.5; offset: -17 -14;} + rel2 { relative: 0.597 0.5; offset: 16 13;} + rel1.to: "player_buttons_row"; + rel2.to: "player_buttons_row"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_buttons_next_track"; + clip_to: "player_buttons_row"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.77 0.5; offset: -17 -14;} + rel2 { relative: 0.77 0.5; offset: 16 13;} + rel1.to: "player_buttons_row"; + rel2.to: "player_buttons_row"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_button_volume_more"; + clip_to: "player_volume_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.185; offset: -14 -17;} + rel2 { relative: 0.5 0.185; offset: 13 17;} + rel1.to: "player_volume_whole"; + rel2.to: "player_volume_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_button_volume_less"; + clip_to: "player_volume_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.915; offset: -14 -17;} + rel2 { relative: 0.5 0.915; offset: 13 17;} + rel1.to: "player_volume_whole"; + rel2.to: "player_volume_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_amp_clip"; + clip_to: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 1.0; offset: -1 9;} + rel2 { relative: 1.0 1.0; offset: -1 32;} + rel1.to: "player_button_volume_less"; + rel2.to: "player_button_volume_less"; + color: 255 255 255 0; + } + description + { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_button_amp"; + clip_to: "player_amp_clip"; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1.to: "player_amp_clip"; + rel2.to: "player_amp_clip"; + color: 255 255 255 255; + } +} +// End player's buttons woles + +// Player's details whole +part { + name: "player_details_whole"; + clip_to: "player_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 0 258;} + rel2 { relative: 1.0 0.0; offset: -1 509;} + rel1.to: "player_whole"; + rel2.to: "player_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} +// End player's details whole + +// Timer slider whole +part { + name: "time_slider_whole"; + clip_to: "player_details_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.5 0.1; offset: -95 -19;} + rel2 { relative: 0.5 0.1; offset: 94 18;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} +// End timer slider whole + +// Volume slider whole +part { + name: "volume_slider_whole"; + clip_to: "player_volume_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.5 0.548; offset: -14 -51;} + rel2 { relative: 0.5 0.548; offset: 13 50;} + rel1.to: "player_volume_whole"; + rel2.to: "player_volume_whole"; + color: 255 255 255 255; + } +} +// End volume slider whole + +// Player's cover decoration +part { + name: "player_cover_shadow"; + clip_to: "player_cover_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "player_shadow.png";} + rel1 { relative: 0.5 0.5; offset: -107 -96;} + rel2 { relative: 0.5 0.5; offset: 106 95;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_cover_glow"; + clip_to: "player_cover_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 0; + image { normal: "player_glow.png";} + rel1 { relative: 0.5 0.5; offset: -107 -96;} + rel2 { relative: 0.5 0.5; offset: 106 95;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + color: 255 255 255 0; + } + description { + state: "in" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 230; + } + description { + state: "out" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 100; + } +} + +part { + name: "player_cover_back"; + clip_to: "player_cover_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "player_cover_back.png";} + rel1 { relative: 0.505 0.495; offset: -94 -85;} + rel2 { relative: 0.505 0.495; offset: 93 84;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_cd_whole"; + clip_to: "player_cover_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.535 0.495; offset: -80 -80;} + rel2 { relative: 0.535 0.495; offset: 79 79;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + color: 255 255 255 0; + } + description { + state: "playing" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description { + state: "select" 0.0; + inherit: "default" 0.0; + visible: 1; + rel1 { relative: 0.67 0.495; offset: -80 -80;} + rel2 { relative: 0.67 0.495; offset: 79 79;} + color: 255 255 255 255; + } +} + +part { + name: "player_cd"; + clip_to: "player_cd_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "cd_player_001.png";} + rel1.to: "player_cd_whole"; + rel2.to: "player_cd_whole"; + color: 255 255 255 255; + } + description { + state: "animation" 0.0; + visible: 1; + inherit: "default" 0.0; + image { normal: "cd_player_001.png"; + tween: "cd_player_002.png"; + tween: "cd_player_003.png"; + tween: "cd_player_004.png"; + tween: "cd_player_005.png"; + tween: "cd_player_006.png"; + tween: "cd_player_007.png"; + tween: "cd_player_008.png"; + tween: "cd_player_009.png"; + } + } +} + +part { + name: "player_cd_shadow"; + clip_to: "player_cover_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 0; + image { normal: "player_cd_shadow.png";} + rel1 { relative: 0.875 0.5; offset: -9 -85;} + rel2 { relative: 0.875 0.5; offset: 8 84;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 255; + } +} + +part { + name: "player_mini_cd"; + clip_to: "player_details_mini_cd_decoration_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "mini_cd_player_001.png";} + rel1 { relative: 0.5 1.5; offset: -47 -47;} + rel2 { relative: 0.5 1.5; offset: 46 46;} + rel1.to: "player_details_mini_cd_decoration_whole"; + rel2.to: "player_details_mini_cd_decoration_whole"; + color: 255 255 255 255; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 1.2; offset: -47 -47;} + rel2 { relative: 0.5 1.2; offset: 46 46;} + rel1.to: "player_details_mini_cd_decoration_whole"; + rel2.to: "player_details_mini_cd_decoration_whole"; + } +} + +part +{ + name: "cover_rot_center"; + type: RECT; + description + { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.505 0.495; offset: -94 -85;} + rel2 { relative: 0.505 0.495; offset: -93 84;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + } +} + +alias: "player.cover" "player_cover_front:player.cover"; +part +{ + name: "player_cover_front"; + type: GROUP; + source: "calaos/audio/player/cover"; + description + { + state: "default" 0.0; + rel1 { relative: 0.505 0.495; offset: -94 -85;} + rel2 { relative: 0.505 0.495; offset: 93 84;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + map + { + on: 1; + perspective_on: 1; + rotation.y: 0; + rotation.center: "cover_rot_center"; + } + } + description + { + state: "select" 0.0; + inherit: "default" 0.0; + map { rotation.y: -30; } + } +} + +// End player cover decoration + +// Click area +part { + name: "player_select_area"; + clip_to: "player_cover_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.505 0.495; offset: -94 -85;} + rel2 { relative: 0.505 0.495; offset: 93 84;} + rel1.to: "player_cover_whole"; + rel2.to: "player_cover_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 0; + } +} +// End click area + +// Player details decoration +part { + name: "player_details_mini_cd_decoration_whole"; + clip_to: "player_details_whole"; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.505 0.247; offset: -47 -23;} + rel2 { relative: 0.505 0.247; offset: 46 22;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 127; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_details_line_decoration_top"; + clip_to: "player_details_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "player_line_decoration_top.png";} + rel1 { relative: 0.500 0.31; offset: -109 -8;} + rel2 { relative: 0.500 0.31; offset: 108 7;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_details_line_decoration_cd"; + clip_to: "player_details_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 0; + image { normal: "player_line_decoration_cd.png";} + rel1 { relative: 0.500 0.31; offset: -109 -8;} + rel2 { relative: 0.500 0.31; offset: 108 7;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +//Equalizer whole +part { + name: "eqalizer_whole"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; offset: 18 4;} + rel2 { relative: 1.0 0.0; offset: -18 54;} + rel1.to: "player_details_line_decoration_bottom"; + rel2.to: "player_details_line_decoration_bottom"; + color: 255 255 255 0; + } + description { + state, "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +// Equalizer parts +part { + name: "line1_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 14, 38, "eqalizer_whole") +} + +// Macros Line 1 +LEVEL("line1_0", "line1_clip", 0.0, 0.0, 0, 0, "eqalizer_whole", 0.0, 0.0, 13, 2, "eqalizer_whole") +LEVEL("line1_1", "line1_clip", 0.0, 1.0, 0, 2, "line1_0", 0.0, 1.0, 13, 4, "line1_0") +LEVEL("line1_2", "line1_clip", 0.0, 1.0, 0, 2, "line1_1", 0.0, 1.0, 13, 4, "line1_1") +LEVEL("line1_3", "line1_clip", 0.0, 1.0, 0, 2, "line1_2", 0.0, 1.0, 13, 4, "line1_2") +LEVEL("line1_4", "line1_clip", 0.0, 1.0, 0, 2, "line1_3", 0.0, 1.0, 13, 4, "line1_3") +LEVEL("line1_5", "line1_clip", 0.0, 1.0, 0, 2, "line1_4", 0.0, 1.0, 13, 4, "line1_4") +LEVEL("line1_6", "line1_clip", 0.0, 1.0, 0, 2, "line1_5", 0.0, 1.0, 13, 4, "line1_5") +LEVEL("line1_7", "line1_clip", 0.0, 1.0, 0, 2, "line1_6", 0.0, 1.0, 13, 4, "line1_6") +LEVEL("line1_8", "line1_clip", 0.0, 1.0, 0, 2, "line1_7", 0.0, 1.0, 13, 4, "line1_7") +LEVEL("line1_9", "line1_clip", 0.0, 1.0, 0, 2, "line1_8", 0.0, 1.0, 13, 4, "line1_8") + + +part { + name: "line2_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 38, 38, "eqalizer_whole") +} + +// Macros line 2 +LEVEL("line2_0", "line2_clip", 0.0, 0.0, 24, 0, "eqalizer_whole", 0.0, 0.0, 37, 2, "eqalizer_whole") +LEVEL("line2_1", "line2_clip", 0.0, 1.0, 0, 2, "line2_0", 0.0, 1.0, 13, 4, "line2_0") +LEVEL("line2_2", "line2_clip", 0.0, 1.0, 0, 2, "line2_1", 0.0, 1.0, 13, 4, "line2_1") +LEVEL("line2_3", "line2_clip", 0.0, 1.0, 0, 2, "line2_2", 0.0, 1.0, 13, 4, "line2_2") +LEVEL("line2_4", "line2_clip", 0.0, 1.0, 0, 2, "line2_3", 0.0, 1.0, 13, 4, "line2_3") +LEVEL("line2_5", "line2_clip", 0.0, 1.0, 0, 2, "line2_4", 0.0, 1.0, 13, 4, "line2_4") +LEVEL("line2_6", "line2_clip", 0.0, 1.0, 0, 2, "line2_5", 0.0, 1.0, 13, 4, "line2_5") +LEVEL("line2_7", "line2_clip", 0.0, 1.0, 0, 2, "line2_6", 0.0, 1.0, 13, 4, "line2_6") +LEVEL("line2_8", "line2_clip", 0.0, 1.0, 0, 2, "line2_7", 0.0, 1.0, 13, 4, "line2_7") +LEVEL("line2_9", "line2_clip", 0.0, 1.0, 0, 2, "line2_8", 0.0, 1.0, 13, 4, "line2_8") + +part { + name: "line3_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 62, 38, "eqalizer_whole") +} + +// Macros line 3 +LEVEL("line3_0", "line3_clip", 0.0, 0.0, 48, 0, "eqalizer_whole", 0.0, 0.0, 61, 2, "eqalizer_whole") +LEVEL("line3_1", "line3_clip", 0.0, 1.0, 0, 2, "line3_0", 0.0, 1.0, 13, 4, "line3_0") +LEVEL("line3_2", "line3_clip", 0.0, 1.0, 0, 2, "line3_1", 0.0, 1.0, 13, 4, "line3_1") +LEVEL("line3_3", "line3_clip", 0.0, 1.0, 0, 2, "line3_2", 0.0, 1.0, 13, 4, "line3_2") +LEVEL("line3_4", "line3_clip", 0.0, 1.0, 0, 2, "line3_3", 0.0, 1.0, 13, 4, "line3_3") +LEVEL("line3_5", "line3_clip", 0.0, 1.0, 0, 2, "line3_4", 0.0, 1.0, 13, 4, "line3_4") +LEVEL("line3_6", "line3_clip", 0.0, 1.0, 0, 2, "line3_5", 0.0, 1.0, 13, 4, "line3_5") +LEVEL("line3_7", "line3_clip", 0.0, 1.0, 0, 2, "line3_6", 0.0, 1.0, 13, 4, "line3_6") +LEVEL("line3_8", "line3_clip", 0.0, 1.0, 0, 2, "line3_7", 0.0, 1.0, 13, 4, "line3_7") +LEVEL("line3_9", "line3_clip", 0.0, 1.0, 0, 2, "line3_8", 0.0, 1.0, 13, 4, "line3_8") + +part { + name: "line4_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 86, 38, "eqalizer_whole") +} + +//Macro line 4 +LEVEL("line4_0", "line4_clip", 0.0, 0.0, 72, 0, "eqalizer_whole", 0.0, 0.0, 85, 2, "eqalizer_whole") +LEVEL("line4_1", "line4_clip", 0.0, 1.0, 0, 2, "line4_0", 0.0, 1.0, 13, 4, "line4_0") +LEVEL("line4_2", "line4_clip", 0.0, 1.0, 0, 2, "line4_1", 0.0, 1.0, 13, 4, "line4_1") +LEVEL("line4_3", "line4_clip", 0.0, 1.0, 0, 2, "line4_2", 0.0, 1.0, 13, 4, "line4_2") +LEVEL("line4_4", "line4_clip", 0.0, 1.0, 0, 2, "line4_3", 0.0, 1.0, 13, 4, "line4_3") +LEVEL("line4_5", "line4_clip", 0.0, 1.0, 0, 2, "line4_4", 0.0, 1.0, 13, 4, "line4_4") +LEVEL("line4_6", "line4_clip", 0.0, 1.0, 0, 2, "line4_5", 0.0, 1.0, 13, 4, "line4_5") +LEVEL("line4_7", "line4_clip", 0.0, 1.0, 0, 2, "line4_6", 0.0, 1.0, 13, 4, "line4_6") +LEVEL("line4_8", "line4_clip", 0.0, 1.0, 0, 2, "line4_7", 0.0, 1.0, 13, 4, "line4_7") +LEVEL("line4_9", "line4_clip", 0.0, 1.0, 0, 2, "line4_8", 0.0, 1.0, 13, 4, "line4_8") + +part { + name: "line5_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 110, 38, "eqalizer_whole") +} + +// Macros line 5 +LEVEL("line5_0", "line5_clip", 0.0, 0.0, 96, 0, "eqalizer_whole", 0.0, 0.0, 109, 2, "eqalizer_whole") +LEVEL("line5_1", "line5_clip", 0.0, 1.0, 0, 2, "line5_0", 0.0, 1.0, 13, 4, "line5_0") +LEVEL("line5_2", "line5_clip", 0.0, 1.0, 0, 2, "line5_1", 0.0, 1.0, 13, 4, "line5_1") +LEVEL("line5_3", "line5_clip", 0.0, 1.0, 0, 2, "line5_2", 0.0, 1.0, 13, 4, "line5_2") +LEVEL("line5_4", "line5_clip", 0.0, 1.0, 0, 2, "line5_3", 0.0, 1.0, 13, 4, "line5_3") +LEVEL("line5_5", "line5_clip", 0.0, 1.0, 0, 2, "line5_4", 0.0, 1.0, 13, 4, "line5_4") +LEVEL("line5_6", "line5_clip", 0.0, 1.0, 0, 2, "line5_5", 0.0, 1.0, 13, 4, "line5_5") +LEVEL("line5_7", "line5_clip", 0.0, 1.0, 0, 2, "line5_6", 0.0, 1.0, 13, 4, "line5_6") +LEVEL("line5_8", "line5_clip", 0.0, 1.0, 0, 2, "line5_7", 0.0, 1.0, 13, 4, "line5_7") +LEVEL("line5_9", "line5_clip", 0.0, 1.0, 0, 2, "line5_8", 0.0, 1.0, 13, 4, "line5_8") + +part { + name: "line6_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 134, 38, "eqalizer_whole") +} + +// Macros line 6 +LEVEL("line6_0", "line6_clip", 0.0, 0.0, 120, 0, "eqalizer_whole", 0.0, 0.0, 133, 2, "eqalizer_whole") +LEVEL("line6_1", "line6_clip", 0.0, 1.0, 0, 2, "line6_0", 0.0, 1.0, 13, 4, "line6_0") +LEVEL("line6_2", "line6_clip", 0.0, 1.0, 0, 2, "line6_1", 0.0, 1.0, 13, 4, "line6_1") +LEVEL("line6_3", "line6_clip", 0.0, 1.0, 0, 2, "line6_2", 0.0, 1.0, 13, 4, "line6_2") +LEVEL("line6_4", "line6_clip", 0.0, 1.0, 0, 2, "line6_3", 0.0, 1.0, 13, 4, "line6_3") +LEVEL("line6_5", "line6_clip", 0.0, 1.0, 0, 2, "line6_4", 0.0, 1.0, 13, 4, "line6_4") +LEVEL("line6_6", "line6_clip", 0.0, 1.0, 0, 2, "line6_5", 0.0, 1.0, 13, 4, "line6_5") +LEVEL("line6_7", "line6_clip", 0.0, 1.0, 0, 2, "line6_6", 0.0, 1.0, 13, 4, "line6_6") +LEVEL("line6_8", "line6_clip", 0.0, 1.0, 0, 2, "line6_7", 0.0, 1.0, 13, 4, "line6_7") +LEVEL("line6_9", "line6_clip", 0.0, 1.0, 0, 2, "line6_8", 0.0, 1.0, 13, 4, "line6_8") + +part { + name: "line7_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 158, 38, "eqalizer_whole") +} + +// Macro line 7 +LEVEL("line7_0", "line7_clip", 0.0, 0.0, 144, 0, "eqalizer_whole", 0.0, 0.0, 157, 2, "eqalizer_whole") +LEVEL("line7_1", "line7_clip", 0.0, 1.0, 0, 2, "line7_0", 0.0, 1.0, 13, 4, "line7_0") +LEVEL("line7_2", "line7_clip", 0.0, 1.0, 0, 2, "line7_1", 0.0, 1.0, 13, 4, "line7_1") +LEVEL("line7_3", "line7_clip", 0.0, 1.0, 0, 2, "line7_2", 0.0, 1.0, 13, 4, "line7_2") +LEVEL("line7_4", "line7_clip", 0.0, 1.0, 0, 2, "line7_3", 0.0, 1.0, 13, 4, "line7_3") +LEVEL("line7_5", "line7_clip", 0.0, 1.0, 0, 2, "line7_4", 0.0, 1.0, 13, 4, "line7_4") +LEVEL("line7_6", "line7_clip", 0.0, 1.0, 0, 2, "line7_5", 0.0, 1.0, 13, 4, "line7_5") +LEVEL("line7_7", "line7_clip", 0.0, 1.0, 0, 2, "line7_6", 0.0, 1.0, 13, 4, "line7_6") +LEVEL("line7_8", "line7_clip", 0.0, 1.0, 0, 2, "line7_7", 0.0, 1.0, 13, 4, "line7_7") +LEVEL("line7_9", "line7_clip", 0.0, 1.0, 0, 2, "line7_8", 0.0, 1.0, 13, 4, "line7_8") + +part { + name: "line8_clip"; + type: RECT; + clip_to: "eqalizer_whole"; + LEVEL_CLIP(0.0, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 2, "eqalizer_whole") + LEVEL_CLIP(0.1, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 6, "eqalizer_whole") + LEVEL_CLIP(0.2, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 10, "eqalizer_whole") + LEVEL_CLIP(0.3, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 14, "eqalizer_whole") + LEVEL_CLIP(0.4, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 18, "eqalizer_whole") + LEVEL_CLIP(0.5, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 22, "eqalizer_whole") + LEVEL_CLIP(0.6, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 26, "eqalizer_whole") + LEVEL_CLIP(0.7, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 30, "eqalizer_whole") + LEVEL_CLIP(0.8, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 34, "eqalizer_whole") + LEVEL_CLIP(0.9, 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 182, 38, "eqalizer_whole") +} + +// Macro line 8 +LEVEL("line8_0", "line8_clip", 0.0, 0.0, 168, 0, "eqalizer_whole", 0.0, 0.0, 181, 2, "eqalizer_whole") +LEVEL("line8_1", "line8_clip", 0.0, 1.0, 0, 2, "line8_0", 0.0, 1.0, 13, 4, "line8_0") +LEVEL("line8_2", "line8_clip", 0.0, 1.0, 0, 2, "line8_1", 0.0, 1.0, 13, 4, "line8_1") +LEVEL("line8_3", "line8_clip", 0.0, 1.0, 0, 2, "line8_2", 0.0, 1.0, 13, 4, "line8_2") +LEVEL("line8_4", "line8_clip", 0.0, 1.0, 0, 2, "line8_3", 0.0, 1.0, 13, 4, "line8_3") +LEVEL("line8_5", "line8_clip", 0.0, 1.0, 0, 2, "line8_4", 0.0, 1.0, 13, 4, "line8_4") +LEVEL("line8_6", "line8_clip", 0.0, 1.0, 0, 2, "line8_5", 0.0, 1.0, 13, 4, "line8_5") +LEVEL("line8_7", "line8_clip", 0.0, 1.0, 0, 2, "line8_6", 0.0, 1.0, 13, 4, "line8_6") +LEVEL("line8_8", "line8_clip", 0.0, 1.0, 0, 2, "line8_7", 0.0, 1.0, 13, 4, "line8_7") +LEVEL("line8_9", "line8_clip", 0.0, 1.0, 0, 2, "line8_8", 0.0, 1.0, 13, 4, "line8_8") + +part { + name: "player_details_line_decoration_bottom"; + clip_to: "player_details_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "player_line_decoration_bottom.png";} + rel1 { relative: 0.500 0.855; offset: -109 -8;} + rel2 { relative: 0.500 0.855; offset: 108 7;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} +// End player details decoration + +// Label and text parts +part { + name: "player_icon_whole"; + clip_to: "player_title_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.2 0.5; offset: -8 -9;} + rel2 { relative: 0.2 0.5; offset: 7 8;} + rel1.to: "player_title_whole"; + rel2.to: "player_title_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_name_label"; + clip_to: "player_title_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.545 0.5; offset: -80 -8;} + rel2 { relative: 0.545 0.5; offset: 79 7;} + rel1.to: "player_title_whole"; + rel2.to: "player_title_whole"; + color: 255 255 255 127; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player_icon"; + clip_to: "player_icon_whole"; + type: IMAGE; + description { + state: "default" 0.0; + visible: 1; + image { normal: "icon_player.png"; } + rel1.to: "player_icon_whole"; + rel2.to: "player_icon_whole"; + color: 255 255 255 127; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } +} + +part { + name: "player.name"; + clip_to: "player_name_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_name_label"; + rel2.to: "player_name_label"; + color: 231 231 231 255; + text { text: "Aucun player"; font: "CalaosContent"; size: 13; min: 0 0; align: 0.0 0.5;} + } +} + +part { + name: "player_filetype_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.76 0.29; offset: 0 -7;} + rel2 { relative: 0.76 0.29; offset: 30 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_artist_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.430; offset: 10 -7;} + rel2 { relative: 0.0 0.430; offset: 91 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "track_artist_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.430; offset: 95 -7;} + rel2 { relative: 0.0 0.430; offset: 250 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_album_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.513; offset: 10 -7;} + rel2 { relative: 0.0 0.513; offset: 91 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "track_album_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.513; offset: 95 -7;} + rel2 { relative: 0.0 0.513; offset: 250 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_title_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.598; offset: 10 -7;} + rel2 { relative: 0.0 0.598; offset: 92 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "track_title_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.598; offset: 95 -7;} + rel2 { relative: 0.0 0.598; offset: 250 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_year_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.679; offset: 10 -7;} + rel2 { relative: 0.0 0.679; offset: 91 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "track_year_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.679; offset: 95 -7;} + rel2 { relative: 0.0 0.679; offset: 250 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player_duration_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.762; offset: 10 -7;} + rel2 { relative: 0.0 0.762; offset: 92 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "track_duration_label"; + clip_to: "player_details_whole"; + type: RECT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.762; offset: 95 -7;} + rel2 { relative: 0.0 0.762; offset: 250 6;} + rel1.to: "player_details_whole"; + rel2.to: "player_details_whole"; + color: 255 255 255 255; + } +} + +part { + name: "player.volume"; + clip_to: "player_volume_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_volume_label"; + rel2.to: "player_volume_label"; + color: 231 231 231 100; + text { text: "000%"; font: "CalaosContent"; size: 10; min: 0 0; align: 0.5 0.5;} + } +} + +part { + name: "player.type"; + clip_to: "player_filetype_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_filetype_label"; + rel2.to: "player_filetype_label"; + color: 231 231 231 140; + text { text: "Na"; font: "CalaosContent"; size: 10; min: 0 0; align: 1.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 140; + } +} + +part { + name: "text.artist"; + clip_to: "player_artist_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_artist_label"; + rel2.to: "player_artist_label"; + color: 231 231 231 140; + text { text: "Artiste :"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 140; + } +} + +alias: "player.artist" "player_artist:text"; +part +{ + name: "player_artist"; + type: GROUP; + source: "calaos/text/scrolling/left"; + clip_to: "track_artist_label"; + description + { + state: "default" 0.0; + rel1.to: "track_artist_label"; + rel2.to: "track_artist_label"; + } +} + +part { + name: "text.album"; + clip_to: "player_album_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_album_label"; + rel2.to: "player_album_label"; + color: 231 231 231 140; + text { text: "Album :"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 140; + } +} + + +alias: "player.album" "player_album:text"; +part +{ + name: "player_album"; + type: GROUP; + source: "calaos/text/scrolling/left"; + clip_to: "track_album_label"; + description + { + state: "default" 0.0; + rel1.to: "track_album_label"; + rel2.to: "track_album_label"; + } +} + +part { + name: "text.title"; + clip_to: "player_title_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_title_label"; + rel2.to: "player_title_label"; + color: 231 231 231 140; + text { text: "Piste :"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 140; + } +} + + +alias: "player.title" "player_title:text"; +part +{ + name: "player_title"; + type: GROUP; + source: "calaos/text/scrolling/left"; + clip_to: "track_title_label"; + description + { + state: "default" 0.0; + rel1.to: "track_title_label"; + rel2.to: "track_title_label"; + } +} + +part { + name: "text.year"; + clip_to: "player_year_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_year_label"; + rel2.to: "player_year_label"; + color: 231 231 231 140; + text { text: "Année :"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 140; + } +} + +part { + name: "player.year"; + clip_to: "track_year_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "track_year_label"; + rel2.to: "track_year_label"; + color: 231 231 231 100; + text { text: "Na"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + } +} + +part { + name: "text.duration"; + clip_to: "player_duration_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "player_duration_label"; + rel2.to: "player_duration_label"; + color: 231 231 231 140; + text { text: "Durée :"; font: "CalaosContent"; size: 12; min: 0 0; align: 1.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 140; + } +} + +part { + name: "player.duration"; + clip_to: "track_duration_label"; + type: TEXT; + description { + state, "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; offset: 0 0;} + rel2 { relative: 1.0 1.0; offset: -1 -1;} + rel1.to: "track_duration_label"; + rel2.to: "track_duration_label"; + color: 231 231 231 100; + text { text: "0:00"; font: "CalaosContent"; size: 12; min: 0 0; align: 0.0 0.5;} + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + } +} +// End label and text parts + + +// Macros +ELEMENT_ACTION_BUTTON_NORMAL("previous_track", "player_buttons_previous_track", "player_buttons_previous_track", "player_buttons_previous_track", "button_action_previous.png", "button_action_glow.png", "player", "player,previous", 0.5, 0.5, -17, -14, 0.5, 0.5, 16, 13) +ELEMENT_ACTION_BUTTON_NORMAL("play_button", "player_buttons_play", "player_buttons_play", "player_buttons_play", "button_action_play.png", "button_action_glow.png", "player", "player,play", 0.5, 0.5, -17, -14, 0.5, 0.5, 16, 13) +ELEMENT_ACTION_BUTTON_NORMAL("pause_button", "player_buttons_pause", "player_buttons_pause", "player_buttons_pause", "button_action_pause.png", "button_action_glow.png", "player", "player,pause", 0.5, 0.5, -17, -14, 0.5, 0.5, 16, 13) +ELEMENT_ACTION_BUTTON_NORMAL("stop_button", "player_buttons_stop", "player_buttons_stop", "player_buttons_stop", "button_action_stop.png", "button_action_glow.png", "player", "player,stop", 0.5, 0.5, -17, -14, 0.5, 0.5, 16, 13) +ELEMENT_ACTION_BUTTON_NORMAL("next_button", "player_buttons_next_track", "player_buttons_next_track", "player_buttons_next_track", "button_action_next.png", "button_action_glow.png", "player", "player,next", 0.5, 0.5, -17, -14, 0.5, 0.5, 16, 13) + +ELEMENT_ACTION_BUTTON_NORMAL("volume_more", "player_button_volume_more", "player_button_volume_more", "player_button_volume_more", "button_action_more_vertical.png", "button_action_vertical_glow.png", "player", "player,volume,plus", 0.5, 0.5, -14, -17, 0.5, 0.5, 13, 16) +ELEMENT_ACTION_BUTTON_NORMAL("volume_less", "player_button_volume_less", "player_button_volume_less", "player_button_volume_less", "button_action_less_vertical.png", "button_action_vertical_glow.png", "player", "player,volume,moins", 0.5, 0.5, -14, -17, 0.5, 0.5, 13, 16) +ELEMENT_ACTION_BUTTON_NORMAL("amplifier", "player_button_amp", "player_button_amp", "player_button_amp", "button_info.png", "button_info_glow.png", "player", "player,amplifier", 0.0, 0.0, 0, 0, 1.0, 1.0, -1, -1) + +HORIZ_SLIDER("player.time.slider", "time_slider_whole", "message.text", "Avancement :", "player.time", "00:00", 50, 180, 215, "slider.png", "slider_on.png", "slider_border.png", "player", "player,time,change", "local", "slider,timer,inactive", "local", "slider,timer,active") +VERTI_SLIDER("player.volume.slider", "volume_slider_whole", 50, 180, 215, "slider_vertical.png", "slider_vertical_on.png", "slider_border.png", "player", "player,volume,change", "local", "slider,volume,inactive", "local", "slider,volume,active") +// End macros + diff --git a/data/themes/default/structure/player_prog.edc b/data/themes/default/structure/player_prog.edc new file mode 100644 index 00000000..d8cf637b --- /dev/null +++ b/data/themes/default/structure/player_prog.edc @@ -0,0 +1,710 @@ +// Calaos Home Module-audio player program file +// HECKY Raoul +// BOEHLER Frederic +// 07/08/2007 + +SCROLLING_TEXT_SIGNAL_REPEAT("player_artist") +SCROLLING_TEXT_SIGNAL_REPEAT("player_album") +SCROLLING_TEXT_SIGNAL_REPEAT("player_title") + +// Player init program +program { + name, "init_module"; + signal, "show"; + source, ""; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.4; + target, "player_title_whole"; + target, "player_cover_whole"; +// target, "player_buttons_row"; + target, "player_details_whole"; + target, "eqalizer_whole"; +} + +// Set initial value mode of object +program { + name, "set_player_mode_playing_value"; + script { + set_int(playing_mode, 1); + } +} + +program { + name, "set_player_mode_stop_value"; + script { + set_int(playing_mode, 0); + } +} + +program { + name, "set_player_mode_selected_value"; + script { + set_int(object_mode, 1); + } +} + +program { + name, "set_player_mode_unselected_value"; + script { + set_int(object_mode, 0); + } +} + + +// Set slider active / inactive +program { + name, "send_slider_timer_inactive_signal"; + action: SIGNAL_EMIT "slider,timer,inactive" "local"; +} + +program { + name, "send_slider_timer_active_signal"; + action: SIGNAL_EMIT "slider,timer,active" "local"; +} + +program { + name, "send_slider_volume_inactive_signal"; + action: SIGNAL_EMIT "slider,volume,inactive" "local"; +} + +program { + name, "send_slider_volume_active_signal"; + action: SIGNAL_EMIT "slider,volume,active" "local"; +} + +// State programme +program { + name, "reset_player"; + signal, "show"; + source, ""; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.0001; + target, "player_buttons_row"; + target, "time_slider_whole"; + target, "player_cd_whole"; + target, "player_volume_whole"; + target, "player_select_area"; + target, "player_details_mini_cd_decoration_whole"; + target, "player_details_line_decoration_cd"; + target: "player_cd_shadow"; + target, "player_mini_cd"; + target, "player_name_label"; + target, "player_cover_glow"; + target, "player_icon"; + target, "player.type"; + target, "text.artist"; + target, "text.album"; + target, "text.title"; + target, "text.year"; + target, "player.year"; + target, "text.duration"; + target, "player.duration"; + after, "stop_glow_animation"; + after, "stop_cd_animation"; + after, "send_slider_timer_inactive_signal"; + after, "send_slider_volume_inactive_signal"; +} + +program +{ + name: "on_show"; + signal: "show"; + action: SIGNAL_EMIT "text,active,blue" "calaos"; +} + +program { + name, "set_player_in_inactive_mode"; + signal, "player,inactive"; + source, "calaos"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.2; + target: "player_whole"; + target, "player_buttons_row"; + target, "time_slider_whole"; + target, "player_volume_whole"; + target, "player_cd_whole"; + target, "player_select_area"; + target, "player_details_mini_cd_decoration_whole"; + target, "player_details_line_decoration_cd"; + target: "player_cd_shadow"; + target, "player_mini_cd"; + target, "player_name_label"; + target, "player_cover_glow"; + target, "player_icon"; + target, "player.type"; + target, "text.artist"; + target, "text.album"; + target, "text.title"; + target, "text.year"; + target, "player.year"; + target, "text.duration"; + target, "player.duration"; + after, "stop_glow_animation"; + after, "stop_cd_animation"; + after, "send_slider_timer_inactive_signal"; + after, "send_slider_volume_inactive_signal"; + after, "equalizer_stop"; +} + +program +{ + name: "on_inactive"; + signal: "player,inactive"; + source: "calaos"; + action: SIGNAL_EMIT "text,inactive" "calaos"; +} + +program { + name, "set_player_in_active_mode"; + signal, "player,active"; + source, "calaos"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.3; + target: "player_whole"; + target, "player_buttons_row"; + target, "time_slider_whole"; + target, "player_name_label"; + target, "player_select_area"; + target, "player_icon"; + after, "send_slider_volume_active_signal"; + after, "set_player_buttons_start_state"; +} + +program { + name, "set_player_in_playing_mode"; + signal, "player,playing"; + source, "calaos"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.3; + target, "player.type"; + target, "text.artist"; + target, "text.album"; + target, "text.title"; + target, "text.year"; + target, "player.year"; + target, "text.duration"; + target, "player.duration"; + target, "player_details_mini_cd_decoration_whole"; + target, "player_volume_whole"; + after, "set_player_playing_state"; + after, "set_player_buttons_play_state"; + after, "send_slider_timer_active_signal"; + after, "set_player_mini_cd_playing_state"; + after, "set_player_mode_playing_value"; +} + +program +{ + name: "on_playing"; + signal: "player,playing"; + source: "calaos"; + action: SIGNAL_EMIT "text,active,blue" "calaos"; +} + +program { + name, "set_player_in_stop_mode"; + signal, "player,stop"; + source, "calaos"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.3; + target, "text.artist"; + target, "player.type"; + target, "text.album"; + target, "text.title"; + target, "text.year"; + target, "player.year"; + target, "text.duration"; + target, "player.duration"; + target, "player_details_mini_cd_decoration_whole"; + target, "player_volume_whole"; + after, "set_player_stop_state"; + after, "set_player_buttons_stop_state"; + after, "send_slider_timer_inactive_signal"; + after, "set_player_mini_cd_stop_state"; + after, "set_player_mode_stop_value"; + after, "equalizer_stop"; +} + +program +{ + name: "on_stop"; + signal: "player,stop"; + source: "calaos"; + action: SIGNAL_EMIT "text,inactive" "calaos"; +} + +program { + name, "set_player_in_select_mode"; + signal, "player,select"; + source, "calaos"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.2; +// target, "player_details_whole"; + target, "player_select_area"; +// target, "eqalizer_whole"; + after, "set_player_cd_select_state"; + after, "set_player_mode_selected_value"; +// after, "equalizer_stop"; + after: "set_player_amp_selected"; +} + +program { + name, "set_player_in_unselect_mode"; + signal, "player,unselect"; + source, "calaos"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.2; + target, "player_select_area"; + after, "set_player_cd_unselect_state"; + after, "set_player_mode_unselected_value"; + after: "set_player_amp_unselected"; +} + +program +{ + name: "has_amp"; + signal: "player,amplifier"; + source: "calaos"; + script + { set_int(has_amp, 1); } +} + +program +{ + name: "has_no_amp"; + signal: "player,no_amplifier"; + source: "calaos"; + script + { set_int(has_amp, 0); } +} + +program +{ + name: "set_player_amp_selected"; + script + { + if (get_int(has_amp) == 1) + run_program(PROGRAM:"show_amp_button"); + } +} + +program +{ + name: "show_amp_button"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 0.2; + target: "player_amp_clip"; +} + +program +{ + name: "set_player_amp_unselected"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.2; + target: "player_amp_clip"; +} + +program { + name, "set_player_details_in_unselect_mode"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.2; + target, "player_details_whole"; +} + +program { + name, "set_player_show_again"; + signal, "show,again"; + source, "calaos"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.2; + target, "player_details_whole"; + target, "eqalizer_whole"; +// after, "equalizer_restart"; +} + +program { + name, "set_player_to_show_swallowed_cover"; + signal, "track,cover"; + source, "calaos"; + script { + run_program(PROGRAM:"show_swallowed_cover"); + run_program(PROGRAM:"hide_no_cover_image"); + } +} + +program { + name, "set_player_to_show_no_cover_image"; + signal, "track,nocover"; + source, "calaos"; + script { + run_program(PROGRAM:"hide_swallowed_cover"); + run_program(PROGRAM:"show_no_cover_image"); + } +} + +program { + name, "select_player"; + signal, "mouse,down,1"; + source, "player_select_area"; + action: SIGNAL_EMIT "player,select" "player"; +} + +// Activate desactivate parts +program { + name, "show_swallowed_cover"; + action: SIGNAL_EMIT "player_cover_front:show,cover" "cover"; +} + +program { + name, "hide_swallowed_cover"; + action: SIGNAL_EMIT "player_cover_front:hide,cover" "cover"; +} + +program { + name, "show_no_cover_image"; + action: SIGNAL_EMIT "player_cover_front:show,nocover" "cover"; +} + +program { + name, "hide_no_cover_image"; + action: SIGNAL_EMIT "player_cover_front:hide,nocover" "cover"; +} + +program { + name, "set_player_volume_controle_active"; + signal, "player,select"; + source, "calaos"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.25; + target, "player_volume_whole"; +} + +program { + name, "set_player_buttons_start_state"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.5; + target, "player_buttons_previous_track"; + target, "player_buttons_play"; + target, "player_buttons_stop"; + target, "player_buttons_next_track"; +} + +program { + name, "set_player_buttons_play_state"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.01; + target, "player_buttons_pause"; + after, "hide_player_buttons_play"; +} + +program { + name, "set_player_buttons_stop_state"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.01; + target, "player_buttons_play"; + after, "hide_player_buttons_pause"; +} + +program { + name, "hide_player_buttons_play"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.01; + target, "player_buttons_play"; +} + +program { + name, "show_player_buttons_play"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.01; + target, "player_buttons_play"; +} + +program { + name, "hide_player_buttons_pause"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.01; + target, "player_buttons_pause"; +} + +program { + name, "show_player_buttons_pause"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.01; + target, "player_buttons_pause"; +} + +program { + name, "set_player_mini_cd_playing_state"; + script { + run_program(PROGRAM:"set_mini_cd_playing_state"); + run_program(PROGRAM:"set_mini_cd_shadow_playing_state"); + } +} + +program { + name, "set_player_mini_cd_stop_state"; + script { + run_program(PROGRAM:"set_mini_cd_stop_state"); + run_program(PROGRAM:"set_mini_cd_shadow_stop_state"); + } +} + +program { + name, "set_mini_cd_playing_state"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.8; + target, "player_mini_cd"; +} + +program { + name, "set_mini_cd_stop_state"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.8; + target, "player_mini_cd"; +} + +program { + name, "set_mini_cd_shadow_playing_state"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.3; + target, "player_details_line_decoration_cd"; +} + +program { + name, "set_mini_cd_shadow_stop_state"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.3; + target, "player_details_line_decoration_cd"; +} + +program { + name, "set_player_cd_select_state"; + script { + run_program(PROGRAM:"set_cd_select_state"); + run_program(PROGRAM:"set_cd_shadow_select_state"); + } +} + +program { + name, "set_player_cd_unselect_state"; + script { + if (get_int(playing_mode) == 0) { + run_program(PROGRAM:"set_cd_unselect_state"); + run_program(PROGRAM:"set_cd_shadow_unselect_state"); + } + if (get_int(playing_mode) == 1) { + run_program(PROGRAM:"set_cd_playing_state"); + run_program(PROGRAM:"set_cd_shadow_unselect_state"); + } + run_program(PROGRAM:"close_cd_case"); + } +} + +program { + name, "set_player_playing_state"; + script { + if (get_int(object_mode) == 0) { + run_program(PROGRAM:"set_cd_playing_state"); + } + } +} + +program { + name, "set_player_stop_state"; + script { + if (get_int(object_mode) == 0) { + run_program(PROGRAM:"set_cd_default_state"); + run_program(PROGRAM:"stop_cd_animation"); + } + if (get_int(object_mode) == 1) { + run_program(PROGRAM:"stop_cd_animation"); + } + } +} + +program { + name, "set_cd_playing_state"; + action, STATE_SET "playing" 0.0; + transition, DECELERATE 1.0; + target, "player_cd_whole"; + after, "stop_glow_animation"; + after, "set_cd_animation_start"; + after, "set_cover_glow_animation_default"; +} + +program { + name, "set_cd_default_state"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.8; + target, "player_cd_whole"; +} + +program { + name, "set_cd_select_state"; + action, STATE_SET "select" 0.0; + transition, DECELERATE 0.8; + target, "player_cd_whole"; + target: "player_cover_front"; + after, "set_cover_glow_animation_in"; + after, "stop_cd_animation"; +} + +program { + name, "set_cd_unselect_state"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.8; + target, "player_cd_whole"; + after, "stop_glow_animation"; + after, "set_cover_glow_animation_default"; +} + +program +{ + name: "close_cd_case"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.8; + target: "player_cover_front"; +} + +program { + name, "set_cover_glow_animation_default"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.5; + target, "player_cover_glow"; +} + +program { + name, "set_cd_animation_start"; + action, STATE_SET "animation" 0.0; + transition, LINEAR 0.25; + target, "player_cd"; + after, "set_cd_animation_start"; +} + +program { + name, "set_cover_glow_animation_in"; + action, STATE_SET "in" 0.0; + transition, DECELERATE 0.8; + target, "player_cover_glow"; + after, "set_cover_glow_animation_out"; +} + +program { + name, "set_cover_glow_animation_out"; + action, STATE_SET "out" 0.0; + transition, DECELERATE 0.5; + target, "player_cover_glow"; + after, "set_cover_glow_animation_in"; +} + +program { + name, "set_cd_shadow_select_state"; + action, STATE_SET "active" 0.0; + transition, DECELERATE 0.3; + target: "player_cd_shadow"; +} + +program { + name, "set_cd_shadow_unselect_state"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.3; + target: "player_cd_shadow"; +} + +program { + name, "stop_glow_animation"; + action, ACTION_STOP; + target, "set_cover_glow_animation_in"; + target, "set_cover_glow_animation_out"; +} + +program { + name, "stop_cd_animation"; + action, ACTION_STOP; + target, "set_cd_animation_start"; +} + +program { + name: "equalizer_start"; + signal: "player,playing"; + source: "calaos"; + script { + if (get_int(eq_started) == 0) { + set_int(stop_anim, 0); + set_int(eq_started, 1); + randomize_line1(0); + randomize_line2(0); + randomize_line3(0); + randomize_line4(0); + randomize_line5(0); + randomize_line6(0); + randomize_line7(0); + randomize_line8(0); + } + } +} + +FALL_BACK_PROG("line1") +FALL_BACK_PROG("line2") +FALL_BACK_PROG("line3") +FALL_BACK_PROG("line4") +FALL_BACK_PROG("line5") +FALL_BACK_PROG("line6") +FALL_BACK_PROG("line7") +FALL_BACK_PROG("line8") + +program { + name: "equalizer_stop"; + script { + set_int(stop_anim, 1); + set_int(eq_started, 0); + } +} + +program { + name: "equalizer_restart"; + script { + if (get_int(playing_mode) == 1 && get_int(eq_started) == 0) + run_program(PROGRAM:"equalizer_start"); + } +} + +// Player hide signal program +program { + name, "hide_module"; + signal, "hide"; + source, "calaos"; + action, STATE_SET "default" 0.0; + transition, DECELERATE 0.2; + target, "player_title_whole"; + target, "player_cover_whole"; + target, "player_buttons_row"; + target, "player_details_whole"; + target: "player_amp_clip"; + after, "stop_glow_animation"; + after, "stop_cd_animation"; + after, "send_end_signal"; + after, "equalizer_stop"; +} + +// Player end signals programs +program { + name, "send_end_signal"; + action: SIGNAL_EMIT "hidden" "player"; +} + +// Player hide program +program { + name, "uninit_module"; + signal, "hide"; + source, ""; + action, STATE_SET "default" 0.0; + target, "player_title_whole"; + target, "player_cover_whole"; + target, "player_buttons_row"; + target, "player_details_whole"; + target: "player_amp_clip"; + after, "stop_glow_animation"; + after, "stop_cd_animation"; +} + diff --git a/data/themes/default/structure/popup_actions_pages.edc b/data/themes/default/structure/popup_actions_pages.edc new file mode 100644 index 00000000..ffd7cb2f --- /dev/null +++ b/data/themes/default/structure/popup_actions_pages.edc @@ -0,0 +1,304 @@ +//Calaos Home Theme +//Copyright 2012 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/popup/page/base"; + + parts + { + //prevent the ctxpopup to close when clicking on it + part + { + name: "mouse"; + type: RECT; + mouse_events: 1; + description + { + state: "default" 0.0; + color: 0 0 0 0; + } + } + + part + { + name: "button.back"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 7 7; } + rel2 { relative: 0.0 0.0; offset: 7+76 7+31; } + params + { + string: "style" "calaos/action_button/label/back"; + string: "label" "Actions"; + } + } + } + + part + { + name: "button.valid"; + type: EXTERNAL; + source: "elm/button"; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 0.0; offset: -7-36 7; } + rel2 { relative: 1.0 0.0; offset: -7 7+31; } + params + { + string: "style" "calaos/action_button/green"; + string: "icon" "calaos/icons/action_button/popup/valid"; + } + } + } + + part + { + name: "sep"; + type: RECT; + description + { + state: "default" 0.0; + fixed: 1 1; + color: 255 255 255 28; + rel1 { relative: 0.0 1.0; offset: 10 -2+7; to_y: "button.back"; } + rel2 { relative: 1.0 1.0; offset: -10 -1+7; to_y: "button.back"; } + } + } + + part + { + name: "text"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 10 7; to_y: "sep"; } + rel2 { relative: 1.0 1.0; offset: -10 7+40; to_y: "sep"; } + text { text: "Blablabla
Changer la valeur blabla"; style: "HTMLStyle"; min: 0 1; } + } + } + } +} + +group +{ + name: "calaos/popup/page/slider"; + inherit: "calaos/popup/page/base"; + + parts + { + alias: "slider" "slider_obj:slider"; + part + { + name: "slider_obj"; + type: GROUP; + source: "calaos/slider/horizontal/default"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 7 10; to_y: "text"; } + rel2 { relative: 1.0 1.0; offset: -7 10+28; to_y: "text"; } + } + } + } +} + +group +{ + name: "calaos/popup/page/number"; + inherit: "calaos/popup/page/base"; + + parts + { + part + { + name: "button_position_clip"; + type: RECT; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 10 17; to_y: "text"; } + rel2 { relative: 1.0 1.0; offset: -10 -1; } + } + } + + #define BUTTON_NUMPAD_POSITION(id, label, offset_x1, offset_y1, offset_x2, offset_y2) \ + part \ + { \ + name: "button.pad."id; \ + type: EXTERNAL; \ + source: "elm/button"; \ + clip_to: "button_position_clip"; \ + description \ + { \ + state: "default" 0.0; \ + params \ + { \ + string: "style" "calaos/button/position"; \ + string: "label" label; \ + } \ + rel1 { relative: 0.0 0.0; offset: offset_x1 offset_y1; to: "button_position_clip"; } \ + rel2 { relative: 0.0 0.0; offset: offset_x2 offset_y2; to: "button_position_clip"; } \ + } \ + } + + #ifdef BSPACER + #undef BSPACER + #endif + #define BSPACER 5 + BUTTON_NUMPAD_POSITION("6", "6", 0, 0, 38, 36) + BUTTON_NUMPAD_POSITION("7", "7", 38+BSPACER, 0, 38+BSPACER+38, 36) + BUTTON_NUMPAD_POSITION("8", "8", 38+BSPACER+38+BSPACER, 0, 38+BSPACER+38+BSPACER+38, 36) + BUTTON_NUMPAD_POSITION("9", "9", 38+BSPACER+38+BSPACER+38+BSPACER, 0, 38+BSPACER+38+BSPACER+38+BSPACER+38, 36) + + BUTTON_NUMPAD_POSITION("2", "2", 0, 36+BSPACER, 38, 36+BSPACER+36) + BUTTON_NUMPAD_POSITION("3", "3", 38+BSPACER, 36+BSPACER, 38+BSPACER+38, 36+BSPACER+36) + BUTTON_NUMPAD_POSITION("4", "4", 38+BSPACER+38+BSPACER, 36+BSPACER, 38+BSPACER+38+BSPACER+38, 36+BSPACER+36) + BUTTON_NUMPAD_POSITION("5", "5", 38+BSPACER+38+BSPACER+38+BSPACER, 36+BSPACER, 38+BSPACER+38+BSPACER+38+BSPACER+38, 36+BSPACER+36) + + BUTTON_NUMPAD_POSITION("0", "0", 0, 36+BSPACER+36+BSPACER, 38, 36+BSPACER+36+BSPACER+36) + BUTTON_NUMPAD_POSITION("1", "1", 38+BSPACER, 36+BSPACER+36+BSPACER, 38+BSPACER+38, 36+BSPACER+36+BSPACER+36) + BUTTON_NUMPAD_POSITION("dot", ".", 38+BSPACER+38+BSPACER, 36+BSPACER+36+BSPACER, 38+BSPACER+38+BSPACER+38, 36+BSPACER+36+BSPACER+36) + BUTTON_NUMPAD_POSITION("del", "DEL", 38+BSPACER+38+BSPACER+38+BSPACER, 36+BSPACER+36+BSPACER, 38+BSPACER+38+BSPACER+38+BSPACER+38, 36+BSPACER+36+BSPACER+36) + + part + { + name: "value"; + type: TEXTBLOCK; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: 5 7; to_y: "text"; to_x: "button.pad.9"; } + rel2 { relative: 1.0 1.0; offset: -5 -1; } + align: 0.5 0.5; + text { text: "0.5"; style: "PadStyle"; min: 0 1; } + } + } + } +} + +group +{ + name: "calaos/popup/page/time"; + inherit: "calaos/popup/page/base"; + + parts + { + part + { + name: "spinner.hours"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 0.0 1.0; offset: 0 10; to_y: "text"; } + rel2 { relative: 0.0 1.0; offset: 62 10+122; to_y: "text"; } + } + } + part + { + name: "spinner.minutes"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: 5 10; to_y: "text"; to_x: "spinner.hours"; } + rel2 { relative: 1.0 1.0; offset: 5+62 10+122; to_y: "text"; to_x: "spinner.hours"; } + } + } + part + { + name: "spinner.seconds"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: 5 10; to_y: "text"; to_x: "spinner.minutes"; } + rel2 { relative: 1.0 1.0; offset: 5+62 10+122; to_y: "text"; to_x: "spinner.minutes"; } + } + } + part + { + name: "spinner.miliseconds"; + type: SWALLOW; + description + { + state: "default" 0.0; + rel1 { relative: 1.0 1.0; offset: 5 10; to_y: "text"; to_x: "spinner.seconds"; } + rel2 { relative: 1.0 1.0; offset: 5+62 10+122; to_y: "text"; to_x: "spinner.seconds"; } + } + } + } +} + +group +{ + name: "calaos/popup/page/color"; + inherit: "calaos/popup/page/base"; + + parts + { + part + { + name: "slider.red"; + type: GROUP; + source: "calaos/slider/horizontal/red"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 7 10; to_y: "text"; } + rel2 { relative: 1.0 1.0; offset: -7 10+28; to_y: "text"; } + } + } + + part + { + name: "slider.green"; + type: GROUP; + source: "calaos/slider/horizontal/green"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 7 10; to_y: "slider.red"; } + rel2 { relative: 1.0 1.0; offset: -7 10+28; to_y: "slider.red"; } + } + } + + part + { + name: "slider.blue"; + type: GROUP; + source: "calaos/slider/horizontal/blue"; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 7 10; to_y: "slider.green"; } + rel2 { relative: 1.0 1.0; offset: -7 10+28; to_y: "slider.green"; } + } + } + + part + { + name: "color.preview"; + type: SWALLOW; + description + { + state: "default" 0.0; + fixed: 1 1; + rel1 { relative: 0.0 1.0; offset: 7 10; to_y: "slider.blue"; } + rel2 { relative: 1.0 1.0; offset: -7 10+28; to_y: "slider.blue"; } + } + } + } +} diff --git a/data/themes/default/structure/room_macro.edc b/data/themes/default/structure/room_macro.edc new file mode 100644 index 00000000..3270f50c --- /dev/null +++ b/data/themes/default/structure/room_macro.edc @@ -0,0 +1,543 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define ROOM(id, title) \ +part { \ + name: "room_"id; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 0;} \ + rel2 { relative: 1.0 1.0; offset: -1 -1;} \ + color: 255 255 255 255; \ + } \ + description { \ + state: "hide" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ +} \ + \ +part { \ + name: "room_"id"_wire"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "big_room_wire.png"; } \ + rel1 { relative: 0.5 0.716; offset: -163 -53;} \ + rel2 { relative: 0.5 0.716; offset: 162 52;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "big" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 20; \ + } \ +} \ + \ +part { \ + name: "room_"id"_shadow_big"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "big_room_shadow.png"; } \ + rel1 { relative: 0.5 0.65; offset: -163 -75;} \ + rel2 { relative: 0.5 0.65; offset: 162 74;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "big" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: "room_"id"_shadow_medium"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "medium_room_shadow.png"; } \ + rel1 { relative: 0.5 0.68; offset: -110 -41;} \ + rel2 { relative: 0.5 0.68; offset: 109 40;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "medium" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: "room_"id"_glow_big"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "big_room_glow.png"; } \ + rel1 { relative: 0.5 0.545; offset: -163 -95;} \ + rel2 { relative: 0.5 0.545; offset: 162 94;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "translucient" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +} \ + \ +part { \ + name: "room_"id"_big"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: id"_big.png"; } \ + rel1 { relative: 0.5 0.55; offset: -163 -86;} \ + rel2 { relative: 0.5 0.55; offset: 162 85;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "big" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: "room_"id"_neon_medium"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "medium_room_neon.png"; } \ + rel1 { relative: 0.5 0.515; offset: -128 -91;} \ + rel2 { relative: 0.5 0.515; offset: 127 90;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "translucient" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ +} \ + \ +part { \ + name: "room_"id"_medium"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: id"_medium.png"; } \ + rel1 { relative: 0.5 0.57; offset: -110 -60;} \ + rel2 { relative: 0.5 0.57; offset: 109 59;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "medium" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +\ +part { \ + name: "room_"id"_medium_bloom"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: id"_medium_bloom.png"; } \ + rel1 { relative: 0.5 0.57; offset: -120 -70;} \ + rel2 { relative: 0.5 0.57; offset: 119 69;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 150; \ + } \ +} \ +\ +part { \ + name: "room_"id"_touched_medium"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: "medium_room_touched_001.png"; } \ + rel1 { relative: 0.495 0.588; offset: -128 -91;} \ + rel2 { relative: 0.495 0.588; offset: 127 90;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "animin" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + image { normal: "medium_room_touched_003.png"; \ + tween: "medium_room_touched_001.png"; \ + tween: "medium_room_touched_002.png"; \ + tween: "medium_room_touched_003.png"; \ + } \ + } \ + description { \ + state: "animout" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + image { normal: "medium_room_touched_001.png"; \ + tween: "medium_room_touched_003.png"; \ + tween: "medium_room_touched_002.png"; \ + tween: "medium_room_touched_001.png"; \ + } \ + } \ +} \ + \ +part { \ + name: "room_"id"_glow_medium"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "medium_room_glow.png"; } \ + rel1 { relative: 0.5 0.57; offset: -110 -60;} \ + rel2 { relative: 0.5 0.57; offset: 109 59;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 150; \ + } \ + description { \ + state: "translucient" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 10; \ + } \ +} \ + \ +part { \ + name: "room_"id"_shadow_small"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: "small_room_shadow.png"; } \ + rel1 { relative: 0.5 0.66; offset: -67 -21;} \ + rel2 { relative: 0.5 0.66; offset: 66 20;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "small" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: "room_"id"_small"; \ + clip_to: "room_"id; \ + type: IMAGE; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: id"_small.png"; } \ + rel1 { relative: 0.5 0.59; offset: -56 -31;} \ + rel2 { relative: 0.5 0.59; offset: 54 30;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "small" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: "room.title"; \ + clip_to: "room_"id; \ + type: TEXT; \ + effect: SOFT_OUTLINE; \ + description { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.505 0.20; offset: -163 -10;} \ + rel2 { relative: 0.505 0.20; offset: 162 9;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + color2: 255 255 255 0; \ + fixed: 1 1; \ + text { text: title; font: "CalaosContent"; size: 17; min: 1 1; } \ + } \ + description { \ + state, "big" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 255; \ + color2: 231 231 231 30; \ + } \ + description { \ + state, "medium" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.505 0.28; offset: -163 -10;} \ + rel2 { relative: 0.505 0.28; offset: 162 9;} \ + } \ + description { \ + state, "medium_on" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.505 0.28; offset: -163 -10;} \ + rel2 { relative: 0.505 0.28; offset: 162 9;} \ + color: 231 231 231 255; \ + color2: 231 231 231 30; \ + } \ + description { \ + state: "small" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 0; \ + color2: 0 0 0 0; \ + } \ +} \ + \ +part { \ + name: "room.title_small"; \ + clip_to: "room_"id; \ + type: TEXT; \ + description { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.505 0.38; offset: -163 -10;} \ + rel2 { relative: 0.505 0.38; offset: 162 9;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + text { text: title; font: "CalaosContent"; size: 11; min: 1 1; } \ + } \ + description { \ + state, "small" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.505 0.42; offset: -163 -10;} \ + rel2 { relative: 0.505 0.42; offset: 162 9;} \ + color: 231 231 231 255; \ + } \ +} \ + \ +part { \ + name: "room_"id"_row_warming"; \ + clip_to: "room_"id; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.47 0.9; offset: -233 -15;} \ + rel2 { relative: 0.47 0.9; offset: 162 14;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "big" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + description { \ + state: "medium" 0.0; \ + visible: 0; \ + rel1 { relative: 0.16 0.80 ; offset: -163 -15;} \ + rel2 { relative: 0.16 0.80 ; offset: 162 14;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "medium_on" 0.0; \ + inherit: "medium" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ + \ +part { \ + name: "chauffage.temp"; \ + clip_to: "room_"id"_row_warming"; \ + type: TEXTBLOCK; \ + description { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.5 0.5; offset: -150 -24;} \ + rel2 { relative: 0.5 0.5; offset: 100 8;} \ + rel1.to: "room_"id"_row_warming"; \ + rel2.to: "room_"id"_row_warming"; \ + text { text: "0.0 °C"; style: "RoomTempBig"; min: 1 1; } \ + } \ +} \ + \ +part { \ + name: "room_"id"_row_warming_small"; \ + clip_to: "room_"id; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.2 0.8; offset: -163 -40;} \ + rel2 { relative: 0.2 0.8; offset: 162 14;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "small" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ +} \ +part { \ + name: "chauffage.temp.small"; \ + clip_to: "room_"id"_row_warming_small"; \ + type: TEXT; \ + description { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.5 0.0; offset: -150 0;} \ + rel2 { relative: 0.5 0.5; offset: 90 -2;} \ + rel1.to: "room_"id"_row_warming_small"; \ + rel2.to: "room_"id"_row_warming_small"; \ + color: 231 231 231 255; \ + text { text: "0.0 °C"; font: "CalaosContent"; size: 12; min: 1 1; align: 1.0 0.5; } \ + } \ +} \ + \ +part { \ + name: "room_"id"_row_buttons_big"; \ + clip_to: "room_"id; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.5 0.933; offset: -57 -14;} \ + rel2 { relative: 0.5 0.933; offset: 56 13;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "big" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 0; \ + } \ +} \ + \ +part { \ + name: "room_"id"_row_buttons_normal"; \ + clip_to: "room_"id; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.85 0.765; offset: -17 -30;} \ + rel2 { relative: 0.85 0.765; offset: 16 29;} \ + rel1.to: "room_"id; \ + rel2.to: "room_"id; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "medium_on" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 0; \ + } \ +} \ + \ +part { \ + name: "room_"id"_selection_area"; \ + clip_to: "room_"id; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 0;} \ + rel2 { relative: 1.0 1.0; offset: -1 -1;} \ + color: 255 255 255 0; \ + } \ + description { \ + state: "inactive" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description { \ + state: "big" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ +} diff --git a/data/themes/default/structure/room_prog_macro.edc b/data/themes/default/structure/room_prog_macro.edc new file mode 100644 index 00000000..cfe0223c --- /dev/null +++ b/data/themes/default/structure/room_prog_macro.edc @@ -0,0 +1,454 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define ROOM_PROG(id) \ +program { \ + name, "select_"id; \ + signal, "select"; \ + source, "calaos"; \ + action, STATE_SET "inactive" 0.0; \ + target, "room_"id"_selection_area"; \ + after, "set_room_"id"_select"; \ +} \ + \ +program { \ + name, "set_room_"id"_select"; \ + script { \ + set_int(room_select, 1); \ + if (get_int(warming_mode) == 1) { \ + if (get_int(room_mode) == 1) { \ + } \ + if (get_int(room_mode) == 2) { \ + run_program(PROGRAM:"set_"id"_row_buttons_normal"); \ + run_program(PROGRAM:"set_"id"_bloom_medium_in"); \ + } \ + if (get_int(room_mode) == 3) { \ + run_program(PROGRAM:"set_"id"_warming_big"); \ + } \ + } \ + run_program(PROGRAM:"test_"id"_neon_animation"); \ + } \ +} \ + \ +program { \ + name, "set_"id"_bloom_medium_in"; \ + action, STATE_SET "active" 0.0; \ + transition, ACCELERATE 0.2; \ + target, "room_"id"_medium_bloom"; \ + after, "set_"id"_bloom_medium_out"; \ +} \ +\ +program { \ + name, "set_"id"_bloom_medium_out"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.85; \ + target, "room_"id"_medium_bloom"; \ +} \ +\ +program { \ + name, id"_touched_animation_in"; \ + action, STATE_SET "animin" 0.0; \ + transition, ACCELERATE 0.4; \ + target, "room_"id"_touched_medium"; \ + after, id"_touched_animation_out"; \ +} \ + \ +program { \ + name, id"_touched_animation_out"; \ + action, STATE_SET "animout" 0.0; \ + transition, DECELERATE 0.8; \ + target, "room_"id"_touched_medium"; \ + after, id"_touched_animation_in"; \ +} \ + \ +program { \ + name, "test_"id"_neon_animation"; \ + script { \ + if (get_int(room_mode) == 2) { \ + run_program(PROGRAM:id"_glow_medium_animation_in"); \ + run_program(PROGRAM:id"_touched_animation_in"); \ + } \ + } \ +} \ + \ +program { \ + name, "set_room_"id"_unselect"; \ + script {set_int(room_select, 0);} \ +} \ +\ +program { \ + name, "set_room_"id"_unselect_stop"; \ + signal, "unselect"; \ + source, "calaos"; \ + action, ACTION_STOP; \ + target, id"_glow_medium_animation_in"; \ + target, id"_glow_medium_animation_out"; \ + target, id"_glow_animation_in"; \ + target, id"_glow_animation_out"; \ + target, id"_touched_animation_in"; \ + target, id"_touched_animation_out"; \ +} \ + \ +program { \ + name, "unselect_"id; \ + signal, "unselect"; \ + source, "calaos"; \ + action, STATE_SET "default" 0.0; \ + transition, LINEAR 0.25; \ + target, "room_"id"_selection_area"; \ + target, "room_"id"_glow_big"; \ + target, "room_"id"_neon_medium"; \ + target, "room_"id"_glow_medium"; \ + target, "room_"id"_row_buttons_normal"; \ + after, "set_room_"id"_unselect"; \ +} \ +\ +program { \ + name, "default_touched_"id; \ + signal, "unselect"; \ + source, "calaos"; \ + action, STATE_SET "default" 0.0; \ + transition, LINEAR 0.001; \ + target, "room_"id"_touched_medium"; \ +} \ + \ +program { \ + name, "set_"id"_in_small_mode"; \ + signal, "size,small"; \ + source, "calaos"; \ + script { \ + set_int(room_mode, 1); \ + run_program(PROGRAM:"reset_"id"_normal"); \ + run_program(PROGRAM:"reset_"id"_big"); \ + run_program(PROGRAM:"set_"id"_small"); \ + if (get_int(warming_mode) == 1) { \ + run_program(PROGRAM:"set_"id"_warming"); \ + } \ + } \ +} \ + \ +program { \ + name, "set_"id"_in_big_mode"; \ + in: 0.8 0.0; \ + signal, "size,big"; \ + source, "calaos"; \ + script { \ + set_int(room_mode, 3); \ + run_program(PROGRAM:"reset_"id"_normal"); \ + run_program(PROGRAM:"reset_"id"_small"); \ + run_program(PROGRAM:"set_"id"_big"); \ + if (get_int(warming_mode) == 1) { \ + run_program(PROGRAM:"set_"id"_warming"); \ + } \ + } \ +} \ + \ +program { \ + name, "set_"id"_in_medium_mode"; \ + signal, "size,normal"; \ + source, "calaos"; \ + script { \ + set_int(room_mode, 2); \ + run_program(PROGRAM:"reset_"id"_small"); \ + run_program(PROGRAM:"reset_"id"_big"); \ + run_program(PROGRAM:"set_"id"_medium_position"); \ + run_program(PROGRAM:"set_"id"_room_medium"); \ + run_program(PROGRAM:"set_"id"_label_medium"); \ + run_program(PROGRAM:"set_"id"_bg_medium"); \ + run_program(PROGRAM:"test_room_"id"_select_mode"); \ + if (get_int(warming_mode) == 1) { \ + run_program(PROGRAM:"set_"id"_warming"); \ + } \ + } \ +} \ + \ +program { \ + name, "set_"id"_warming"; \ + signal, "chauffage,show"; \ + source, "calaos"; \ + script { \ + if (get_int(room_mode) == 3) { \ + set_int(warming_mode, 1); \ + run_program(PROGRAM:"set_"id"_warming_big"); \ + } \ + if (get_int(room_mode) == 2) { \ + set_int(warming_mode, 1); \ + run_program(PROGRAM:"set_"id"_warming_normal"); \ + if (get_int(room_select) == 1) { \ + run_program(PROGRAM:"set_"id"_row_buttons_normal"); \ + } \ + } \ + if (get_int(room_mode) == 1) { \ + set_int(warming_mode, 1); \ + run_program(PROGRAM:"set_"id"_row_warming_small"); \ + } \ + } \ +} \ + \ +program { \ + name, "unset_"id"_warming_signal"; \ + signal, "chauffage,hide"; \ + source, "calaos"; \ + script { \ + set_int(warming_mode, 0); \ + run_program(PROGRAM:"unset_"id"_warming"); \ + } \ +} \ + \ +program { \ + name, "set_"id"_big"; \ + action, STATE_SET "big" 0.0; \ + transition, DECELERATE 1.8; \ + target, "room_"id"_big"; \ + target, "room.title"; \ + target, "room_"id"_selection_area"; \ + after, "set_"id"_bg_big"; \ + after, id"_glow_animation_in"; \ +} \ + \ +program { \ + name, "set_"id"_bg_big"; \ + action, STATE_SET "big" 0.0; \ + transition, DECELERATE 1.0; \ + target, "room_"id"_wire"; \ + target, "room_"id"_shadow_big"; \ +} \ + \ +program { \ + name, "set_"id"_warming_big"; \ + action, STATE_SET "big" 0.0; \ + transition, DECELERATE 0.3; \ + target, "room_"id"_row_warming"; \ + after, "set_"id"_warming_big_buttons"; \ +} \ + \ +program { \ + name, "set_"id"_warming_big_buttons"; \ + action, STATE_SET "big" 0.0; \ + transition, DECELERATE 0.3; \ + target, "room_"id"_row_buttons_big"; \ +} \ + \ +program { \ + name, id"_glow_animation_in"; \ + action, STATE_SET "active" 0.0; \ + transition, DECELERATE 2.5; \ + target, "room_"id"_glow_big"; \ + after, id"_glow_animation_out"; \ +} \ + \ +program { \ + name, id"_glow_animation_out"; \ + action, STATE_SET "translucient" 0.0; \ + transition, ACCELERATE 1.7; \ + target, "room_"id"_glow_big"; \ + after, id"_glow_animation_in"; \ +} \ + \ +program { \ + name, "set_"id"_big_touched"; \ + signal, "mouse,down,1"; \ + source, "room_"id"_big"; \ + action, STATE_SET "active" 0.0; \ + transition, ACCELERATE 0.00001; \ + target, "room_"id"_glow_big"; \ + after, "set_"id"_big_untouched"; \ +} \ + \ +program { \ + name, "set_"id"_big_untouched"; \ + action, STATE_SET "translucient" 0.0; \ + transition, DECELERATE 0.5; \ + target, "room_"id"_glow_big"; \ +} \ + \ +program { \ + name, "set_"id"_medium_position"; \ + action, STATE_SET "medium" 0.0; \ + target, "room_"id"_row_warming"; \ +} \ + \ +program { \ + name, "test_room_"id"_select_mode"; \ + script { \ + if (get_int(room_select) == 1) { \ + run_program(PROGRAM:id"_glow_medium_animation_in"); \ + } \ + } \ +} \ + \ +program { \ + name, "set_"id"_label_medium"; \ + action, STATE_SET "medium_on" 0.0; \ + transition, DECELERATE 0.5; \ + target, "room.title"; \ +} \ + \ +program { \ + name, "set_"id"_room_medium"; \ + action, STATE_SET "medium" 0.0; \ + transition, DECELERATE 0.5; \ + target, "room_"id"_medium"; \ +} \ + \ +program { \ + name, "set_"id"_bg_medium"; \ + action, STATE_SET "medium" 0.0; \ + transition, DECELERATE 0.3; \ + target, "room_"id"_shadow_medium"; \ +} \ + \ +program { \ + name, "set_"id"_warming_normal"; \ + action, STATE_SET "medium_on" 0.0; \ + transition, DECELERATE 0.3; \ + target, "room_"id"_row_warming"; \ +} \ + \ +program { \ + name, "set_"id"_row_buttons_normal"; \ + action, STATE_SET "medium_on" 0.0; \ + transition, DECELERATE 0.3; \ + target, "room_"id"_row_buttons_normal"; \ +} \ + \ +program { \ + name, id"_glow_medium_animation_in"; \ + action, STATE_SET "active" 0.0; \ + transition, DECELERATE 2.5; \ + target, "room_"id"_glow_medium"; \ + target, "room_"id"_neon_medium"; \ + after, id"_glow_medium_animation_out"; \ +} \ + \ +program { \ + name, id"_glow_medium_animation_out"; \ + action, STATE_SET "translucient" 0.0; \ + transition, ACCELERATE 1.7; \ + target, "room_"id"_glow_medium"; \ + target, "room_"id"_neon_medium"; \ + after, id"_glow_medium_animation_in"; \ +} \ + \ +program { \ + name, "set_"id"_small"; \ + action, STATE_SET "small" 0.0; \ + transition, DECELERATE 1.5; \ + target, "room.title_small"; \ + target, "room.title"; \ + target, "room_"id"_row_warming"; \ + target, "room_"id"_small"; \ + target, "room_"id"_shadow_small"; \ +} \ + \ +program { \ + name, "set_"id"_row_warming_small"; \ + action, STATE_SET "small" 0.0; \ + transition, DECELERATE 0.3; \ + target, "room_"id"_row_warming_small"; \ +} \ + \ +program { \ + name, "hide_"id; \ + signal, "hide"; \ + source, "calaos"; \ + action, STATE_SET "hide" 0.0; \ + transition, LINEAR 0.2; \ + target, "room_"id; \ + after, "send_hide_signal"; \ +} \ +program { \ + name, "send_hide_signal"; \ + action: SIGNAL_EMIT "hidden" "room"; \ +} \ + \ +program { \ + name, "uninit_"id; \ + signal, "hide"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + target, "room_"id; \ + target, "room_"id"_big"; \ + target, "room_"id"_medium"; \ + target, "room_"id"_wire"; \ + target, "room_"id"_shadow_big"; \ + target, "room_"id"_shadow_medium"; \ + target, "room_"id"_glow_big"; \ + target, "room.title"; \ + target, "room_"id"_row_warming"; \ + target, "room_"id"_row_buttons_big"; \ + target, "room_"id"_row_buttons_normal"; \ + target, "room_"id"_glow_medium"; \ + target, "room_"id"_touched_medium"; \ + target, "room_"id"_neon_medium"; \ + target, "room.title_small"; \ + target, "room_"id"_row_warming_small"; \ + target, "room_"id"_small"; \ + target, "room_"id"_shadow_small"; \ +} \ + \ +program { \ + name, "reset_"id; \ + signal, "show"; \ + source, ""; \ + action, STATE_SET "default" 0.0; \ + target, "room_"id; \ + target, "room_"id"_big"; \ + target, "room_"id"_medium"; \ + target, "room_"id"_wire"; \ + target, "room_"id"_shadow_big"; \ + target, "room_"id"_shadow_medium"; \ + target, "room_"id"_glow_big"; \ + target, "room.title"; \ + target, "room_"id"_row_warming"; \ + target, "room_"id"_row_buttons_big"; \ + target, "room_"id"_row_buttons_normal"; \ + target, "room_"id"_glow_medium"; \ + target, "room_"id"_neon_medium"; \ + target, "room.title_small"; \ + target, "room_"id"_touched_medium"; \ + target, "room_"id"_row_warming_small"; \ + target, "room_"id"_small"; \ + target, "room_"id"_shadow_small"; \ +} \ +program { \ + name, "reset_"id"_small"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.8; \ + target, "room.title_small"; \ + target, "room_"id"_row_warming_small"; \ + target, "room_"id"_small"; \ + target, "room_"id"_shadow_small"; \ +} \ +program { \ + name, "reset_"id"_normal"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 1.8; \ + target, "room_"id"_medium"; \ + target, "room_"id"_shadow_medium"; \ + target, "room_"id"_row_warming"; \ + target, "room_"id"_row_buttons_normal"; \ + target, "room_"id"_glow_medium"; \ + target, "room_"id"_neon_medium"; \ +} \ +program { \ + name, "reset_"id"_big"; \ + action, STATE_SET "default" 0.0; \ + transition, DECELERATE 0.8; \ + target, "room_"id"_big"; \ + target, "room_"id"_wire"; \ + target, "room_"id"_shadow_big"; \ + target, "room_"id"_glow_big"; \ + target, "room_"id"_row_buttons_big"; \ +} \ + \ +program { \ + name, "unset_"id"_warming"; \ + action, STATE_SET "default" 0.0; \ + target, "room_"id"_row_warming"; \ + target, "room_"id"_row_buttons_big"; \ + target, "room_"id"_row_buttons_normal"; \ + target, "room_"id"_row_warming_small"; \ +} \ No newline at end of file diff --git a/data/themes/default/structure/rooms.edc b/data/themes/default/structure/rooms.edc new file mode 100644 index 00000000..addc66e1 --- /dev/null +++ b/data/themes/default/structure/rooms.edc @@ -0,0 +1,161 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#include "room_macro.edc" +#include "room_prog_macro.edc" + +group +{ + name: "calaos/room/lounge"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("lounge", "Salon") + } + programs + { + ROOM_PROG("lounge") + } +} + +group +{ + name: "calaos/room/bedroom"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("bedroom", "Chambre") + } + programs + { + ROOM_PROG("bedroom") + } +} + +group +{ + name: "calaos/room/kitchen"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("kitchen", "Cuisine") + } + programs + { + ROOM_PROG("kitchen") + } +} + +group +{ + name: "calaos/room/office"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("office", "Bureau") + } + programs + { + ROOM_PROG("office") + } +} + +group +{ + name: "calaos/room/diningroom"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("diningroom", "Salle à manger") + } + programs + { + ROOM_PROG("diningroom") + } +} + +group +{ + name: "calaos/room/cellar"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("cellar", "Cave") + } + programs + { + ROOM_PROG("cellar") + } +} + +group +{ + name: "calaos/room/various"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("various", "Divers") + } + programs + { + ROOM_PROG("various") + } +} + +group +{ + name: "calaos/room/garage"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("garage", "Garage") + } + programs + { + ROOM_PROG("garage") + } +} + +group +{ + name: "calaos/room/outside"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("outside", "Exterieur / Terrasse") + } + programs + { + ROOM_PROG("outside") + } +} + +group +{ + name: "calaos/room/bathroom"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("bathroom", "Salle de bain / Wc") + } + programs + { + ROOM_PROG("bathroom") + } +} + +group +{ + name: "calaos/room/corridor"; + script { public room_mode; public room_select; public warming_mode;} + parts + { + ROOM("corridor", "Couloir / Hall") + } + programs + { + ROOM_PROG("corridor") + } +} diff --git a/data/themes/default/structure/scrolling_text.edc b/data/themes/default/structure/scrolling_text.edc new file mode 100644 index 00000000..f3a29f4c --- /dev/null +++ b/data/themes/default/structure/scrolling_text.edc @@ -0,0 +1,449 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +group +{ + name: "calaos/text/scrolling/left"; + + parts + { + part + { + name: "label_clip"; + type: RECT; + description + { + state: "default" 0.0; + } + } + + part + { + name: "text"; + type: TEXT; + clip_to: "label_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 1; + color: 231 231 231 127; + fixed: 1 0; + align: 0.0 0.0; + text { text: "Titre de l'objet"; font: "CalaosContent"; size: 12; min: 1 1; align: 0.0 0.5; } + } + description + { + state: "default" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 127; + align: 1.0 0.0; + } + description + { + state: "selected_blue" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + } + description + { + state: "selected_blue" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + align: 1.0 0.0; + } + description + { + state: "selected_yellow" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 218 90 255; + } + description + { + state: "selected_yellow" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 255 218 90 255; + align: 1.0 0.0; + } + } + } + + programs + { + program + { + name: "on_show"; + signal: "show"; + after: "go_passive"; + } + + program + { + name: "go_active_blue"; + signal: "text,active,blue"; + source: "calaos"; + action: STATE_SET "selected_blue" 0.0; + transition: ACCELERATE 0.25; + target: "text"; + after: "text_slide_stop"; + after: "start_after_on_blue"; + } + program + { + name: "go_active_yellow"; + signal: "text,active,yellow"; + source: "calaos"; + action: STATE_SET "selected_yellow" 0.0; + transition: ACCELERATE 0.25; + target: "text"; + after: "text_slide_stop"; + after: "start_after_on_yellow"; + } + + program + { + name: "go_passive"; + signal: "text,inactive"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.18; + target: "text"; + after: "text_slide_stop"; + after: "start_after_off"; + } + + program + { + name: "text_slide_on_blue"; + in: 1.0 0.0; + action: STATE_SET "selected_blue" 1.0; + target: "text"; + transition: LINEAR 3.0; + after: "text_slide_on_blue2"; + } + + program + { + name: "text_slide_on_blue2"; + in: 1.0 0.0; + action: STATE_SET "selected_blue" 0.0; + target: "text"; + transition: ACCELERATE 0.5; + after: "text_slide_on_blue"; + } + + program + { + name: "text_slide_on_yellow"; + in: 1.0 0.0; + action: STATE_SET "selected_yellow" 1.0; + target: "text"; + transition: LINEAR 3.0; + after: "text_slide_on_yellow2"; + } + + program + { + name: "text_slide_on_yellow2"; + in: 1.0 0.0; + action: STATE_SET "selected_yellow" 0.0; + target: "text"; + transition: ACCELERATE 0.5; + after: "text_slide_on_yellow"; + } + + program + { + name: "text_slide_off"; + in: 1.0 0.0; + action: STATE_SET "default" 1.0; + target: "text"; + transition: LINEAR 3.0; + after: "text_slide_off2"; + } + + program + { + name: "text_slide_off2"; + in: 1.0 0.0; + action: STATE_SET "default" 0.0; + target: "text"; + transition: ACCELERATE 0.5; + after: "text_slide_off"; + } + program + { + name: "text_slide_stop"; + action: ACTION_STOP; + target: "text_slide_on_blue"; + target: "text_slide_on_blue2"; + target: "text_slide_on_yellow"; + target: "text_slide_on_yellow2"; + target: "text_slide_off"; + target: "text_slide_off2"; + } + + program + { + name: "start_after_on_blue"; + in: 0.2 0.0; + after: "text_slide_on_blue"; + } + + program + { + name: "start_after_on_yellow"; + in: 0.2 0.0; + after: "text_slide_on_yellow"; + } + + program + { + name: "start_after_off"; + in: 0.2 0.0; + after: "text_slide_off"; + } + } +} + +group +{ + name: "calaos/text/scrolling/right"; + + parts + { + part + { + name: "label_clip"; + type: RECT; + description + { + state: "default" 0.0; + } + } + + part + { + name: "text"; + type: TEXT; + clip_to: "label_clip"; + mouse_events: 0; + description + { + state: "default" 0.0; + visible: 1; + color: 231 231 231 127; + fixed: 1 0; + align: 0.0 0.0; + text { text: "Titre de l'objet"; font: "CalaosContent"; size: 12; min: 1 1; align: 1.0 0.5; } + } + description + { + state: "default" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 231 231 231 127; + align: 1.0 0.0; + } + description + { + state: "selected_blue" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + } + description + { + state: "selected_blue" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 58 180 215 255; + align: 1.0 0.0; + } + description + { + state: "selected_yellow" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 218 90 255; + } + description + { + state: "selected_yellow" 1.0; + inherit: "default" 0.0; + visible: 1; + color: 255 218 90 255; + align: 1.0 0.0; + } + } + } + + programs + { + program + { + name: "on_show"; + signal: "show"; + after: "go_passive"; + } + + program + { + name: "go_active_blue"; + signal: "text,active,blue"; + source: "calaos"; + action: STATE_SET "selected_blue" 0.0; + transition: ACCELERATE 0.25; + target: "text"; + after: "text_slide_stop"; + after: "start_after_on_blue"; + } + program + { + name: "go_active_yellow"; + signal: "text,active,yellow"; + source: "calaos"; + action: STATE_SET "selected_yellow" 0.0; + transition: ACCELERATE 0.25; + target: "text"; + after: "text_slide_stop"; + after: "start_after_on_yellow"; + } + + program + { + name: "go_passive"; + signal: "text,inactive"; + source: "calaos"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.18; + target: "text"; + after: "text_slide_stop"; + after: "start_after_off"; + } + + program + { + name: "text_slide_on_blue"; + in: 1.0 0.0; + action: STATE_SET "selected_blue" 1.0; + target: "text"; + transition: LINEAR 3.0; + after: "text_slide_on_blue2"; + } + + program + { + name: "text_slide_on_blue2"; + in: 1.0 0.0; + action: STATE_SET "selected_blue" 0.0; + target: "text"; + transition: ACCELERATE 0.5; + after: "text_slide_on_blue"; + } + + program + { + name: "text_slide_on_yellow"; + in: 1.0 0.0; + action: STATE_SET "selected_yellow" 1.0; + target: "text"; + transition: LINEAR 3.0; + after: "text_slide_on_yellow2"; + } + + program + { + name: "text_slide_on_yellow2"; + in: 1.0 0.0; + action: STATE_SET "selected_yellow" 0.0; + target: "text"; + transition: ACCELERATE 0.5; + after: "text_slide_on_yellow"; + } + + program + { + name: "text_slide_off"; + in: 1.0 0.0; + action: STATE_SET "default" 1.0; + target: "text"; + transition: LINEAR 3.0; + after: "text_slide_off2"; + } + + program + { + name: "text_slide_off2"; + in: 1.0 0.0; + action: STATE_SET "default" 0.0; + target: "text"; + transition: ACCELERATE 0.5; + after: "text_slide_off"; + } + program + { + name: "text_slide_stop"; + action: ACTION_STOP; + target: "text_slide_on_blue"; + target: "text_slide_on_blue2"; + target: "text_slide_on_yellow"; + target: "text_slide_on_yellow2"; + target: "text_slide_off"; + target: "text_slide_off2"; + } + + program + { + name: "start_after_on_blue"; + in: 0.2 0.0; + after: "text_slide_on_blue"; + } + + program + { + name: "start_after_on_yellow"; + in: 0.2 0.0; + after: "text_slide_on_yellow"; + } + + program + { + name: "start_after_off"; + in: 0.2 0.0; + after: "text_slide_off"; + } + } +} + +#define SCROLLING_TEXT_SIGNAL_REPEAT(text_part) \ + program \ + { \ + name: "sig_text_active_blue_"text_part; \ + signal: "text,active,blue"; \ + source: "calaos"; \ + action: SIGNAL_EMIT text_part":text,active,blue" "calaos"; \ + } \ + \ + program \ + { \ + name: "sig_text_active_yellow_"text_part; \ + signal: "text,active,yellow"; \ + source: "calaos"; \ + action: SIGNAL_EMIT text_part":text,active,yellow" "calaos"; \ + } \ + \ + program \ + { \ + name: "sig_text_inactive_"text_part; \ + signal: "text,inactive"; \ + source: "calaos"; \ + action: SIGNAL_EMIT text_part":text,inactive" "calaos"; \ + } diff --git a/data/themes/default/structure/slider.edc b/data/themes/default/structure/slider.edc new file mode 100644 index 00000000..b5a5104a --- /dev/null +++ b/data/themes/default/structure/slider.edc @@ -0,0 +1,14 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#include "slider_horizontal_macro.edc" +#include "slider_vertical_macro.edc" + +SLIDER_HORIZONTAL("default", 50, 180, 215, "slider.png", "slider_on.png", "slider_border.png") +SLIDER_HORIZONTAL("red", 215, 58, 58, "slider_red.png", "slider_red_on.png", "slider_border_red.png") +SLIDER_HORIZONTAL("green", 58, 215, 69, "slider_green.png", "slider_green_on.png", "slider_border_green.png") +SLIDER_HORIZONTAL("blue", 56, 66, 215, "slider_blue.png", "slider_blue_on.png", "slider_border_blue.png") + +VERTICAL_SLIDER("default", 50, 180, 215, "slider_vertical.png", "slider_vertical_on.png", "slider_border.png") \ No newline at end of file diff --git a/data/themes/default/structure/slider_horizontal_macro.edc b/data/themes/default/structure/slider_horizontal_macro.edc new file mode 100644 index 00000000..af0f7b98 --- /dev/null +++ b/data/themes/default/structure/slider_horizontal_macro.edc @@ -0,0 +1,443 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define SLIDER_HORIZONTAL(slider_name, ref_r, ref_g, ref_b, slider_img, slider_on_img, slider_border_image) \ +group \ +{ \ + name: "calaos/slider/horizontal/"slider_name; \ + \ + parts \ + { \ + \ + part \ + { \ + name: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + } \ + \ + part \ + { \ + name: "slider_border_whole"; \ + clip_to: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.5; offset: 2 -2;} \ + rel2 { relative: 1.0 0.5; offset: -3 1;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider_main"; \ + color: 255 255 255 255; \ + } \ + } \ + \ + part \ + { \ + name: "slider_message_label"; \ + mouse_events: 0; \ + clip_to: "slider_main"; \ + type: RECT; \ + description { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.5; offset: 2 -18;} \ + rel2 { relative: 1.0 0.5; offset: -40 -4;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider_main"; \ + color: 255 255 255 255; \ + } \ + } \ + \ + part \ + { \ + name: "slider_level_label"; \ + mouse_events: 0; \ + clip_to: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 1.0 0.5; offset: -30 -18;} \ + rel2 { relative: 1.0 0.5; offset: -4 -4;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider_main"; \ + color: 255 255 255 255; \ + } \ + } \ + \ + part \ + { \ + name: "slider_move_confine"; \ + clip_to: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.0 0.5; offset: 0 -14;} \ + rel2 { relative: 1.0 0.5; offset: -1 13;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider_main"; \ + color: 0 0 0 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider_border_decoration"; \ + clip_to: "slider_border_whole"; \ + type: IMAGE; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_border_image; border: 1 1 1 1;} \ + rel1.to: "slider_border_whole"; \ + rel2.to: "slider_border_whole"; \ + color: 255 255 255 80; \ + } \ + } \ + \ + part \ + { \ + name: "slider_level"; \ + clip_to: "slider_border_whole"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + color: ref_r ref_g ref_b 255; \ + rel1 { relative: 0.0 0.5; offset: 1 -1;} \ + rel2 { relative: 1.0 0.5; offset: -24 0;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider"; \ + } \ + description \ + { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 150; \ + } \ + description \ + { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 250; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider_slider_decoration"; \ + clip_to: "slider_main"; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_img;} \ + rel1 { relative: 0.5 0.5; offset: -16 -14;} \ + rel2 { relative: 0.5 0.5; offset: 15 13;} \ + rel1.to: "slider"; \ + rel2.to: "slider"; \ + color: 255 255 255 255; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider_slider_decoration_touched"; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: slider_on_img;} \ + rel1 { relative: 0.5 0.5; offset: -16 -14;} \ + rel2 { relative: 0.5 0.5; offset: 15 13;} \ + rel1.to: "slider"; \ + rel2.to: "slider"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description \ + { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ + description \ + { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider"; \ + clip_to: "slider_main"; \ + mouse_events: 1; \ + type: RECT; \ + dragable \ + { \ + confine: "slider_move_confine"; \ + x: 1 1 1; y: 0 0 0; \ + } \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + fixed: 1 1; \ + min: 34 28; max: 34 28; \ + rel2 { relative: 0.0 0.5; offset: -1 11;} \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "label.text"; \ + mouse_events: 0; \ + clip_to: "slider_message_label"; \ + type: TEXT; \ + description \ + { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 0;} \ + rel2 { relative: 1.0 1.0; offset: -1 -1;} \ + rel1.to: "slider_message_label"; \ + rel2.to: "slider_message_label"; \ + color: 231 231 231 100; \ + text { text: ""; font: "CalaosContent"; size: 10; min: 0 0; align: 0.0 0.0;} \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 50; \ + } \ + } \ + \ + part \ + { \ + name: "label.value"; \ + mouse_events: 0; \ + clip_to: "slider_level_label"; \ + type: TEXT; \ + description \ + { \ + state, "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.0 0.0; offset: 0 0;} \ + rel2 { relative: 1.0 1.0; offset: -1 -1;} \ + rel1.to: "slider_level_label"; \ + rel2.to: "slider_level_label"; \ + color: 231 231 231 100; \ + text { text: ""; font: "CalaosContent"; size: 10; min: 0 0; align: 1.0 0.0;} \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + color: 231 231 231 50; \ + } \ + } \ + \ + } \ + \ + \ + programs \ + { \ + \ + program { \ + name: "slider_init"; \ + signal: "show"; \ + source: ""; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.2; \ + target: "slider_main"; \ + } \ + \ + program { \ + name: "slider_signal"; \ + signal: "drag,stop"; \ + source: "slider"; \ + action: SIGNAL_EMIT "slider,changed" "object"; \ + } \ + program { \ + name: "slider_signal_drag"; \ + signal: "drag"; \ + source: "slider"; \ + action: SIGNAL_EMIT "slider,move" "object"; \ + } \ + program { \ + name: "slider_signal_start"; \ + signal: "drag,start"; \ + source: "slider"; \ + action: SIGNAL_EMIT "slider,start" "object"; \ + } \ + \ + program { \ + name: "slider_slider_touched"; \ + signal: "mouse,down,1"; \ + source: "slider"; \ + action: STATE_SET "touched" 0.0; \ + transition: DECELERATE 0.2; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program { \ + name: "slider_slider_untouched"; \ + signal: "mouse,up,1"; \ + source: "slider"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 1.2; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program { \ + name: "slider_slider_animations_set_default"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 1.2; \ + target: "slider_level"; \ + } \ + \ + program { \ + name: "slider_level_animation_out"; \ + signal: "mouse,down,1"; \ + source: "slider"; \ + action: STATE_SET "out" 0.0; \ + transition: DECELERATE 0.5; \ + target: "slider_level"; \ + after: "slider_level_animation_in"; \ + } \ + \ + program { \ + name: "slider_level_animation_in"; \ + action: STATE_SET "in" 0.0; \ + transition: DECELERATE 1.0; \ + target: "slider_level"; \ + after: "slider_level_animation_out"; \ + } \ + \ + program { \ + name: "slider_slider_animation_out"; \ + signal: "mouse,down,1"; \ + source: "slider"; \ + action: STATE_SET "out" 0.0; \ + transition: DECELERATE 0.5; \ + target: "slider_slider_decoration_touched"; \ + after: "slider_slider_animation_in"; \ + } \ + \ + program { \ + name: "slider_slider_animation_in"; \ + action: STATE_SET "in" 0.0; \ + transition: DECELERATE 1.0; \ + target: "slider_slider_decoration_touched"; \ + after: "slider_slider_animation_out"; \ + } \ + \ + program { \ + name: "slider_level_stop_animation"; \ + signal: "mouse,up,1"; \ + source: "slider"; \ + action: ACTION_STOP; \ + target: "slider_level_animation_in"; \ + target: "slider_level_animation_out"; \ + target: "slider_slider_animation_in"; \ + target: "slider_slider_animation_out"; \ + after: "slider_slider_animations_set_default"; \ + } \ + \ + program { \ + name: "slider_desactivate_slider"; \ + signal: "slider,disable"; \ + source: "calaos"; \ + action: STATE_SET "desactivate" 0.0; \ + transition: ACCELERATE 0.2; \ + target: "slider"; \ + target: "label.value"; \ + target: "label.text"; \ + target: "slider_level"; \ + target: "slider_slider_decoration"; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program { \ + name: "slider_activate_slider"; \ + signal: "slider,enable"; \ + source: "calaos"; \ + action: STATE_SET "default" 0.0; \ + transition: ACCELERATE 0.2; \ + target: "slider"; \ + target: "label.value"; \ + target: "label.text"; \ + target: "slider_level"; \ + target: "slider_slider_decoration"; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program { \ + name: "slider_uninit"; \ + signal: "hide"; \ + source: ""; \ + action: STATE_SET "default" 0.0; \ + target: "slider_main"; \ + } \ + \ + } \ +} diff --git a/data/themes/default/structure/slider_vertical_macro.edc b/data/themes/default/structure/slider_vertical_macro.edc new file mode 100644 index 00000000..d69ac778 --- /dev/null +++ b/data/themes/default/structure/slider_vertical_macro.edc @@ -0,0 +1,363 @@ +// Calaos Home vert slider macro file +// HECKY Raoul +// BOEHLER Frederic +// 08/08/2007 + +// Slider object +#define VERTICAL_SLIDER(slider_name, ref_r, ref_g, ref_b, slider_img, slider_on_img, slider_border_image) \ +group \ +{ \ + name: "calaos/slider/vertical/"slider_name; \ + \ + parts \ + { \ + part \ + { \ + name: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "active" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 255; \ + } \ + } \ + \ + part \ + { \ + name: "slider_border_whole"; \ + clip_to: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + rel1 { relative: 0.5 0.0; offset: -2 2;} \ + rel2 { relative: 0.5 1.0; offset: 1 -2;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider_main"; \ + color: 255 255 255 255; \ + } \ + } \ + \ + part \ + { \ + name: "slider_move_confine"; \ + clip_to: "slider_main"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + rel1 { relative: 0.5 0.0; offset: -14 -1;} \ + rel2 { relative: 0.5 1.0; offset: 13 2;} \ + rel1.to: "slider_main"; \ + rel2.to: "slider_main"; \ + color: 0 0 0 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider_border_decoration"; \ + clip_to: "slider_border_whole"; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_border_image; border: 1 1 1 1;} \ + rel1.to: "slider_border_whole"; \ + rel2.to: "slider_border_whole"; \ + color: 255 255 255 80; \ + } \ + } \ + \ + part \ + { \ + name: "slider_level"; \ + clip_to: "slider_border_whole"; \ + type: RECT; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + color: ref_r ref_g ref_b 255; \ + rel1 { relative: 0.5 0.0; offset: -1 24;} \ + rel2 { relative: 0.5 1.0; offset: 0 -3;} \ + rel1.to: "slider"; \ + rel2.to: "slider_main"; \ + } \ + description \ + { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 150; \ + } \ + description \ + { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + color: ref_r ref_g ref_b 250; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider_slider_decoration"; \ + clip_to: "slider_main"; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + image { normal: slider_img;} \ + rel1 { relative: 0.5 0.5; offset: -14 -16;} \ + rel2 { relative: 0.5 0.5; offset: 13 15;} \ + rel1.to: "slider"; \ + rel2.to: "slider"; \ + color: 255 255 255 255; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider_slider_decoration_touched"; \ + mouse_events: 0; \ + description \ + { \ + state: "default" 0.0; \ + visible: 0; \ + image { normal: slider_on_img;} \ + rel1 { relative: 0.5 0.5; offset: -14 -15;} \ + rel2 { relative: 0.5 0.5; offset: 13 15;} \ + rel1.to: "slider"; \ + rel2.to: "slider"; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "touched" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description \ + { \ + state: "out" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 100; \ + } \ + description \ + { \ + state: "in" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 200; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + \ + part \ + { \ + name: "slider"; \ + clip_to: "slider_main"; \ + mouse_events: 1; \ + type: RECT; \ + dragable \ + { \ + confine: "slider_move_confine"; \ + x: 0 0 0; y: 1 1 1; \ + } \ + description \ + { \ + state: "default" 0.0; \ + visible: 1; \ + fixed: 1 1; \ + min: 28 34; max: 28 34; \ + color: 255 255 255 0; \ + } \ + description \ + { \ + state: "desactivate" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + } \ + \ + programs \ + { \ + program \ + { \ + name: "slider_init"; \ + signal: "show"; \ + source: ""; \ + action: STATE_SET "active" 0.0; \ + transition: DECELERATE 0.2; \ + target: "slider_main"; \ + } \ + \ + program \ + { \ + name: "slider_signal"; \ + signal: "drag,stop"; \ + source: "slider"; \ + action: SIGNAL_EMIT "slider,changed" "object"; \ + } \ + program \ + { \ + name: "slider_signal_drag"; \ + signal: "drag"; \ + source: "slider"; \ + action: SIGNAL_EMIT "slider,move" "object"; \ + } \ + program \ + { \ + name: "slider_signal_start"; \ + signal: "drag,start"; \ + source: "slider"; \ + action: SIGNAL_EMIT "slider,start" "object"; \ + } \ + \ + program \ + { \ + name: "slider_slider_touched"; \ + signal: "mouse,down,1"; \ + source: "slider"; \ + action: STATE_SET "touched" 0.0; \ + transition: DECELERATE 0.2; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program \ + { \ + name: "slider_slider_untouched"; \ + signal: "mouse,up,1"; \ + source: "slider"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 1.2; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program \ + { \ + name: "slider_slider_animations_set_default"; \ + action: STATE_SET "default" 0.0; \ + transition: DECELERATE 1.2; \ + target: "slider_level"; \ + } \ + \ + program \ + { \ + name: "slider_level_animation_out"; \ + signal: "mouse,down,1"; \ + source: "slider"; \ + action: STATE_SET "out" 0.0; \ + transition: DECELERATE 0.5; \ + target: "slider_level"; \ + after: "slider_level_animation_in"; \ + } \ + \ + program \ + { \ + name: "slider_level_animation_in"; \ + action: STATE_SET "in" 0.0; \ + transition: DECELERATE 1.0; \ + target: "slider_level"; \ + after: "slider_level_animation_out"; \ + } \ + \ + program \ + { \ + name: "slider_slider_animation_out"; \ + signal: "mouse,down,1"; \ + source: "slider"; \ + action: STATE_SET "out" 0.0; \ + transition: DECELERATE 0.5; \ + target: "slider_slider_decoration_touched"; \ + after: "slider_slider_animation_in"; \ + } \ + \ + program \ + { \ + name: "slider_slider_animation_in"; \ + action: STATE_SET "in" 0.0; \ + transition: DECELERATE 1.0; \ + target: "slider_slider_decoration_touched"; \ + after: "slider_slider_animation_out"; \ + } \ + \ + program \ + { \ + name: "slider_level_stop_animation"; \ + signal: "mouse,up,1"; \ + source: "slider"; \ + action: ACTION_STOP; \ + target: "slider_level_animation_in"; \ + target: "slider_level_animation_out"; \ + target: "slider_slider_animation_in"; \ + target: "slider_slider_animation_out"; \ + after: "slider_slider_animations_set_default"; \ + } \ + \ + program \ + { \ + name: "slider_desactivate_slider"; \ + signal: "slider,disable"; \ + source: "calaos"; \ + action: STATE_SET "desactivate" 0.0; \ + transition: ACCELERATE 0.2; \ + target: "slider"; \ + target: "slider_level"; \ + target: "slider_slider_decoration"; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program \ + { \ + name: "slider_activate_slider"; \ + signal: "slider,enable"; \ + source: "calaos"; \ + action: STATE_SET "default" 0.0; \ + transition: ACCELERATE 0.2; \ + target: "slider"; \ + target: "slider_level"; \ + target: "slider_slider_decoration"; \ + target: "slider_slider_decoration_touched"; \ + } \ + \ + program \ + { \ + name: "slider_uninit"; \ + signal: "hide"; \ + source: ""; \ + action: STATE_SET "default" 0.0; \ + target: "slider_main"; \ + } \ + } \ +} diff --git a/data/themes/default/structure/styles.edc b/data/themes/default/structure/styles.edc new file mode 100644 index 00000000..4fbdf893 --- /dev/null +++ b/data/themes/default/structure/styles.edc @@ -0,0 +1,189 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +styles +{ + style + { + name: "ElementLabel"; + base: "font=CalaosContent font_size=14"; + tag: "left" "+ align=left"; + tag: "right" "+ align=right"; + } + + style + { + name: "RoomTempBig"; + base: "font=CalaosContent font_size=17 color=#FFC96B valign=0.5 align=right"; + tag: "consigne" "+ font_size=13 color=#E7E7E7 valign=0.65"; + } + + style + { + name: "ElementTempValueLeft"; + base: "font=CalaosContent font_size=12 color=#FFC96B valign=0.5 align=right"; + tag: "consigne" "+ font_size=11 color=#E7E7E7 valign=0.65"; + } + + style + { + name: "ElementTempValueRight"; + base: "font=CalaosContent font_size=12 color=#FFC96B valign=0.5"; + tag: "consigne" "+ font_size=11 color=#E7E7E7 valign=0.65"; + } + + style + { + name: "TabWidgetTitle"; + base: "font=CalaosContent font_size=16 align=left color=#FFFF wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "light_blue" "+ color=#70b5fb"; + tag: "small" "+ font_size=10 color=#E7E7E7"; + } + + style + { + name: "GenlistSimpleHeader"; + base: "font=CalaosContent font_size=16 align=left color=#FFFF wrap=word valign=bottom"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "light_blue" "+ color=#70b5fb"; + tag: "small" "+ font_size=10 color=#E7E7E7"; + } + + style + { + name: "StandardText"; + base: "font=CalaosContent font_size=12 align=left color=#FFFF wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "light_blue" "+ color=#70b5fb"; + tag: "blue" "+ color=#3ab4d7"; + tag: "small" "+ font_size=10 color=#E7E7E7"; + tag: "center" "+ align=center"; + } + + style + { + name: "GenlistText"; + base: "font=CalaosContent font_size=12 align=left color=#e7e7e77f wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "light_blue" "+ color=#70b5fb"; + tag: "blue" "+ color=#3ab4d7"; + tag: "small" "+ font_size=10 color=#E7E7E7"; + tag: "center" "+ align=center"; + } + + style + { + name: "KeyboardSubtitle"; + base: "font=CalaosContent font_size=16 align=center valign=center color=#E7E7E77F wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "light_blue" "+ color=#70b5fb7F"; + tag: "small" "+ font_size=10 color=#E7E7E77F"; + } + + style + { + name: "KeyboardText"; + base: "font=CalaosContentBold font_size=18 align=left valign=center color=#E7E7E7FF wrap=word style=soft_outline outline_color=#E7E7E77F"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + } + + style + { + name: "WidgetDescription"; + base: "font=CalaosContent font_size=13 align=left color=#70b5fb wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "small" "+ font_size=10"; + tag: "left" "+ align=left"; + tag: "right" "+ align=right"; + tag: "center" "+ align=center"; + } + + style + { + name: "TabDescription"; + base: "font=CalaosContent font_size=13 align=right color=#3ab4d7 wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + } + + style + { + name: "HTMLStyle"; + base: "font=CalaosContent font_size=12 align=left valign=center color=#E7E7E7FF wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "html" ""; + tag: "head" ""; + tag: "body" ""; + tag: "p" "+ \n \n"; + tag: "div" "+ \n \n"; + tag: "b" "+ font=CalaosContentBold font_size=14"; + tag: "i" "+ font=CalaosContentOblique"; + tag: "script" "+ color=#E7E7E700"; + tag: "small" "+ font_size=10"; + tag: "big" "+ font_size=16"; + tag: "huge" "+ font_size=20"; + tag: "hilight" "+ color=#3ab4d7"; + tag: "light_blue" "+ color=#70b5fb7F"; + tag: "disabled" "+ color=#E7E7E766"; + } + + style + { + name: "PadStyle"; + base: "font=CalaosContentBold font_size=20 align=center valign=center color=#E7E7E7FF wrap=word"; + } + + style + { + name: "TimerSpinnerStyle"; + base: "font=CalaosContent font_size=20 align=center valign=center color=#E7E7E7FF wrap=word"; + tag: "br" "+ \n"; + tag: "subtitle" "+ font_size=16 color=#70b5fb7F"; + } + + style + { + name: "KeyboardStyle"; + base: "font=CalaosContentBold font_size=18 align=left valign=center color=#E7E7E7FF outline_color=#E7E7E70A wrap=word style=outline text_class=entry left_margin=5 right_margin=5"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "html" ""; + tag: "head" ""; + tag: "body" ""; + tag: "p" "+ \n \n"; + tag: "div" "+ \n \n"; + tag: "b" "+ font=CalaosContentBold font_size=14"; + tag: "i" "+ font=CalaosContentOblique"; + tag: "em" "+ font=CalaosContentOblique"; + tag: "script" "+ color=#E7E7E700"; + tag: "small" "+ font_size=10"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#FFF"; + tag: "preedit_sel" "+ backing=on backing_color=#FFF color=#000"; + } + + style + { + name: "download_manager_style"; + base: "font=CalaosContent font_size=12 align=left color=#FFFF style=soft_shadow shadow_color=#00000020 wrap=word"; + tag: "br" "+ \n"; + tag: "ps" "+ \n"; + tag: "title" "+ font_size=16 font=CalaosContentBold style=soft_shadow color=#fff shadow_color=#00000020"; + tag: "center" "+ align=center"; + tag: "bold" "+ font=CalaosContentBold"; + tag: "italic" "+ font=CalaosContent"; + tag: "small" "+ font_size=10"; + } +} diff --git a/data/themes/default/structure/utils.edc b/data/themes/default/structure/utils.edc new file mode 100644 index 00000000..d125c671 --- /dev/null +++ b/data/themes/default/structure/utils.edc @@ -0,0 +1,77 @@ +//Calaos Home Theme +//Copyright 2011 Calaos +//All graphics are copyrighted materials. +//You can't modify/distribute/sell it for any purpose. + +#define ELM_BUTTON(_name, _label, _icon) \ +group \ +{ \ + name: _name; \ + parts \ + { \ + part \ + { \ + name: _name; \ + type: EXTERNAL; \ + source: "elm/button"; \ + description \ + { \ + state: "default" 0.0; \ + fixed: 1 0; \ + params \ + { \ + string: "label" _label; \ + string: "icon" _icon; \ + string: "style" "calaos/activity/footer"; \ + } \ + } \ + } \ + } \ +} + +#define ELM_BUTTON_STYLE(_name, _label, _style) \ +group \ +{ \ + name: _name; \ + parts \ + { \ + part \ + { \ + name: _name; \ + type: EXTERNAL; \ + source: "elm/button"; \ + description \ + { \ + state: "default" 0.0; \ + fixed: 1 0; \ + params \ + { \ + string: "label" _label; \ + string: "style" _style; \ + } \ + } \ + } \ + } \ +} + + +//Sizer group for boxes +group +{ + name: "sizer"; + + parts + { + part + { + name: "rect"; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + color: 213 45 222 180; + } + } + } +} \ No newline at end of file diff --git a/depcomp b/depcomp new file mode 100755 index 00000000..bd0ac089 --- /dev/null +++ b/depcomp @@ -0,0 +1,688 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2011-12-04.11; # UTC + +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, +# 2011 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, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# 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 outputting 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 + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then + # This is just like msvc7 but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvc7 +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. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + 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. hp depmode also adds that space, but also prefixes the VPATH +## to the object. Take care to not repeat it in the output. +## 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 "s|.*$object$||" -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. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$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" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" + # Add `dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +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 mechanism 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 $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" + ;; + +msvc7) + if test "$libtool" = yes; then + showIncludes=-Wc,-showIncludes + else + showIncludes=-showIncludes + fi + "$@" $showIncludes > "$tmpdepfile" + stat=$? + grep -v '^Note: including file: ' "$tmpdepfile" + if test "$stat" = 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The first sed program below extracts the file names and escapes + # backslashes for cygpath. The second sed program outputs the file + # name when reading, but also accumulates all include files in the + # hold buffer in order to output them again at the end. This only + # works with sed implementations that can handle large buffers. + sed < "$tmpdepfile" -n ' +/^Note: including file: *\(.*\)/ { + s//\1/ + s/\\/\\\\/g + p +}' | $cygpath_u | sort -u | sed -n ' +s/ /\\ /g +s/\(.*\)/ \1 \\/p +s/.\(.*\) \\/\1:/ +H +$ { + s/.*/ / + G + p +}' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvc7msys) + # 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 + ;; + +#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 "X$1" != 'X--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 "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + 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. + -arch) + eat=yes ;; + -*|$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" + # makedepend may prepend the VPATH from the source file name to the object. + # No need to regex-escape $object, excess matching of '.' is harmless. + sed "s|^.*\($object *:\)|\1|" "$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 "X$1" != 'X--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. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # 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 + ;; + +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-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/install-sh b/install-sh new file mode 100755 index 00000000..a9244eb0 --- /dev/null +++ b/install-sh @@ -0,0 +1,527 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2011-01-19.21; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + # Protect names problematic for `test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for `test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for `test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writeable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/ltmain.sh b/ltmain.sh new file mode 100644 index 00000000..c2852d85 --- /dev/null +++ b/ltmain.sh @@ -0,0 +1,9661 @@ + +# libtool (GNU libtool) 2.4.2 +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --no-quiet, --no-silent +# print informational messages (default) +# --no-warn don't display warning messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print more informational messages than default +# --no-verbose don't print the extra informational messages +# --version print version information +# -h, --help, --help-all print short, long, or detailed help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. When passed as first option, +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to . +# GNU libtool home page: . +# General help using GNU software: . + +PROGRAM=libtool +PACKAGE=libtool +VERSION="2.4.2 Debian-2.4.2-1ubuntu1" +TIMESTAMP="" +package_revision=1.3337 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# NLS nuisances: We save the old values to restore during execute mode. +lt_user_locale= +lt_safe_locale= +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" + fi" +done +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL + +$lt_unset CDPATH + + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + + + +: ${CP="cp -f"} +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} +: ${Xsed="$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +exit_status=$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=' +' +IFS=" $lt_nl" + +dirname="s,/[^/]*$,," +basename="s,^.*/,," + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} # func_dirname may be replaced by extended shell implementation + + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "${1}" | $SED "$basename"` +} # func_basename may be replaced by extended shell implementation + + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` +} # func_dirname_and_basename may be replaced by extended shell implementation + + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname may be replaced by extended shell implementation + + +# These SED scripts presuppose an absolute path with a trailing slash. +pathcar='s,^/\([^/]*\).*$,\1,' +pathcdr='s,^/[^/]*,,' +removedotparts=':dotsl + s@/\./@/@g + t dotsl + s,/\.$,/,' +collapseslashes='s@/\{1,\}@/@g' +finalslash='s,/*$,/,' + +# func_normal_abspath PATH +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +# value returned in "$func_normal_abspath_result" +func_normal_abspath () +{ + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` + while :; do + # Processed it all yet? + if test "$func_normal_abspath_tpath" = / ; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result" ; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result +} + +# func_relative_path SRCDIR DSTDIR +# generates a relative path from SRCDIR to DSTDIR, with a trailing +# slash if non-empty, suitable for immediately appending a filename +# without needing to append a separator. +# value returned in "$func_relative_path_result" +func_relative_path () +{ + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=${func_dirname_result} + if test "x$func_relative_path_tlibdir" = x ; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done + + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test "x$func_stripname_result" != x ; then + func_relative_path_result=${func_relative_path_result}/${func_stripname_result} + fi + + # Normalisation. If bindir is libdir, return empty string, + # else relative path ending with a slash; either way, target + # file name can be directly appended. + if test ! -z "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result/" + func_relative_path_result=$func_stripname_result + fi +} + +# The name of this program: +func_dirname_and_basename "$progpath" +progname=$func_basename_result + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=$func_dirname_result + progdir=`cd "$progdir" && pwd` + progpath="$progdir/$progname" + ;; + *) + save_IFS="$IFS" + IFS=${PATH_SEPARATOR-:} + for progdir in $PATH; do + IFS="$save_IFS" + test -x "$progdir/$progname" && break + done + IFS="$save_IFS" + test -n "$progdir" || progdir=`pwd` + progpath="$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed="${SED}"' -e 1s/^X//' +sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' + +# Sed substitution that converts a w32 file name or path +# which contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs='\\' +bs2='\\\\' +bs4='\\\\\\\\' +dollar='\$' +sed_double_backslash="\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=false +opt_help=false +opt_quiet=false +opt_verbose=false +opt_warning=: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname: ${opt_mode+$opt_mode: }$*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help="Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path="$1" + my_dir_list= + + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path="./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list="$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` + done + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` + + save_mkdir_p_IFS="$IFS"; IFS=':' + for my_dir in $my_dir_list; do + IFS="$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS="$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a directory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} + + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template="${TMPDIR-/tmp}/${1-$progname}" + + if test "$opt_dry_run" = ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir="${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir'" + fi + + $ECHO "$my_tmpdir" +} + + +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () +{ + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" + ;; + *) + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" + esac +} + + +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + case $1 in + *[\\\`\"]*) + my_arg=`$ECHO "$1" | $SED \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; + *) + my_arg="$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg="\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result="$my_arg" +} + + +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + +# func_tr_sh +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $opt_debug + + $SED -n '/(C)/!b go + :more + /\./!{ + N + s/\n# / / + b more + } + :go + /^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $opt_debug + + $SED -n '/^# Usage:/,/^# *.*--help/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + echo + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help [NOEXIT] +# Echo long help message to standard output and exit, +# unless 'noexit' is passed as argument. +func_help () +{ + $opt_debug + + $SED -n '/^# Usage:/,/# Report bugs to/ { + :print + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ + p + d + } + /^# .* home page:/b print + /^# General help using/b print + ' < "$progpath" + ret=$? + if test -z "$1"; then + exit $ret + fi +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + $opt_debug + + func_error "missing argument for $1." + exit_cmd=exit +} + + +# func_split_short_opt shortopt +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +func_split_short_opt () +{ + my_sed_short_opt='1s/^\(..\).*$/\1/;q' + my_sed_short_rest='1s/^..\(.*\)$/\1/;q' + + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` +} # func_split_short_opt may be replaced by extended shell implementation + + +# func_split_long_opt longopt +# Set func_split_long_opt_name and func_split_long_opt_arg shell +# variables after splitting LONGOPT at the `=' sign. +func_split_long_opt () +{ + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' + my_sed_long_arg='1s/^--[^=]*=//' + + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` +} # func_split_long_opt may be replaced by extended shell implementation + +exit_cmd=: + + + + + +magic="%%%MAGIC variable%%%" +magic_exe="%%%MAGIC EXE variable%%%" + +# Global variables. +nonopt= +preserve_args= +lo2o="s/\\.lo\$/.${objext}/" +o2lo="s/\\.${objext}\$/.lo/" +extracted_archives= +extracted_serial=0 + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "${1}=\$${1}\${2}" +} # func_append may be replaced by extended shell implementation + +# func_append_quoted var value +# Quote VALUE and append to the end of shell variable VAR, separated +# by a space. +func_append_quoted () +{ + func_quote_for_eval "${2}" + eval "${1}=\$${1}\\ \$func_quote_for_eval_result" +} # func_append_quoted may be replaced by extended shell implementation + + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "${@}"` +} # func_arith may be replaced by extended shell implementation + + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` +} # func_len may be replaced by extended shell implementation + + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` +} # func_lo2o may be replaced by extended shell implementation + + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` +} # func_xform may be replaced by extended shell implementation + + +# func_fatal_configuration arg... +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func_error ${1+"$@"} + func_error "See the $PACKAGE documentation for more information." + func_fatal_error "Fatal configuration error." +} + + +# func_config +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" + + # Now print the configurations for the tags. + for tagname in $taglist; do + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" + done + + exit $? +} + +# func_features +# Display the features supported by this script. +func_features () +{ + echo "host: $host" + if test "$build_libtool_libs" = yes; then + echo "enable shared libraries" + else + echo "disable shared libraries" + fi + if test "$build_old_libs" = yes; then + echo "enable static libraries" + else + echo "disable static libraries" + fi + + exit $? +} + +# func_enable_tag tagname +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname="$1" + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf="/$re_begincf/,/$re_endcf/p" + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac + + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +# Shorthand for --mode=foo, only valid as the first argument +case $1 in +clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; +compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; +execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; +finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; +install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; +link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; +esac + + + +# Option defaults: +opt_debug=: +opt_dry_run=false +opt_config=false +opt_preserve_dup_deps=false +opt_features=false +opt_finish=false +opt_help=false +opt_help_all=false +opt_silent=: +opt_warning=: +opt_verbose=: +opt_silent=false +opt_verbose=false + + +# Parse options once, thoroughly. This comes as soon as possible in the +# script to make things like `--version' happen as quickly as we can. +{ + # this just eases exit handling + while test $# -gt 0; do + opt="$1" + shift + case $opt in + --debug|-x) opt_debug='set -x' + func_echo "enabling shell trace mode" + $opt_debug + ;; + --dry-run|--dryrun|-n) + opt_dry_run=: + ;; + --config) + opt_config=: +func_config + ;; + --dlopen|-dlopen) + optarg="$1" + opt_dlopen="${opt_dlopen+$opt_dlopen +}$optarg" + shift + ;; + --preserve-dup-deps) + opt_preserve_dup_deps=: + ;; + --features) + opt_features=: +func_features + ;; + --finish) + opt_finish=: +set dummy --mode finish ${1+"$@"}; shift + ;; + --help) + opt_help=: + ;; + --help-all) + opt_help_all=: +opt_help=': help-all' + ;; + --mode) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_mode="$optarg" +case $optarg in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; +esac + shift + ;; + --no-silent|--no-quiet) + opt_silent=false +func_append preserve_args " $opt" + ;; + --no-warning|--no-warn) + opt_warning=false +func_append preserve_args " $opt" + ;; + --no-verbose) + opt_verbose=false +func_append preserve_args " $opt" + ;; + --silent|--quiet) + opt_silent=: +func_append preserve_args " $opt" + opt_verbose=false + ;; + --verbose|-v) + opt_verbose=: +func_append preserve_args " $opt" +opt_silent=false + ;; + --tag) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_tag="$optarg" +func_append preserve_args " $opt $optarg" +func_enable_tag "$optarg" + shift + ;; + + -\?|-h) func_usage ;; + --help) func_help ;; + --version) func_version ;; + + # Separate optargs to long options: + --*=*) + func_split_long_opt "$opt" + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} + shift + ;; + + # Separate non-argument short options: + -\?*|-h*|-n*|-v*) + func_split_short_opt "$opt" + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + --) break ;; + -*) func_fatal_help "unrecognized option \`$opt'" ;; + *) set dummy "$opt" ${1+"$@"}; shift; break ;; + esac + done + + # Validate options: + + # save first non-option argument + if test "$#" -gt 0; then + nonopt="$opt" + shift + fi + + # preserve --debug + test "$opt_debug" = : || func_append preserve_args " --debug" + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps + ;; + esac + + $opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" + fi + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$opt_mode' for more information." + } + + + # Bail if the options were screwed + $exit_cmd $EXIT_FAILURE +} + + + + +## ----------- ## +## Main. ## +## ----------- ## + +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" = yes +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$save_ifs + eval cmd=\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case "$lt_sysroot:$1" in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result="=$func_stripname_result" + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case "$@ " in + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T </dev/null` + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$lt_sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly +# configured wine environment available, with the winepath program in $build's +# $PATH. Assumes ARG has no leading or trailing path separator characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $opt_debug + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result="" + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result" ; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $opt_debug + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $opt_debug + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $opt_debug + if test -z "$2" && test -n "$1" ; then + func_error "Could not determine host file name corresponding to" + func_error " \`$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result="$1" + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $opt_debug + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " \`$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result="$3" + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $opt_debug + case $4 in + $1 ) func_to_host_path_result="$3$func_to_host_path_result" + ;; + esac + case $4 in + $2 ) func_append func_to_host_path_result "$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via `$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $opt_debug + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $opt_debug + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result="$1" +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result="$func_convert_core_msys_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via `$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $opt_debug + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd="func_convert_path_${func_stripname_result}" + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $opt_debug + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result="$1" +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_msys_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 + + +# func_convert_path_cygwin_to_w32 ARG +# Convert path ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_path_cygwin_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_cygwin_to_w32 + + +# func_convert_path_nix_to_w32 ARG +# Convert path ARG from *nix to w32 format. Requires a wine environment and +# a working winepath. Returns result in func_to_host_file_result. +func_convert_path_nix_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_nix_to_w32 + + +# func_convert_path_msys_to_cygwin ARG +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_path_msys_to_cygwin () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" + func_to_host_path_result="$func_cygpath_result" + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_msys_to_cygwin + + +# func_convert_path_nix_to_cygwin ARG +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in +# func_to_host_file_result. +func_convert_path_nix_to_cygwin () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" + func_to_host_path_result="$func_cygpath_result" + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_nix_to_cygwin + + +# func_mode_compile arg... +func_mode_compile () +{ + $opt_debug + # Get the compilation command and the source file. + base_compile= + srcfile="$nonopt" # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg="$arg" + arg_mode=normal + ;; + + target ) + libobj="$arg" + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + test -n "$libobj" && \ + func_fatal_error "you cannot specify \`-o' more than once" + arg_mode=target + continue + ;; + + -pie | -fpie | -fPIE) + func_append pie_flag " $arg" + continue + ;; + + -shared | -static | -prefer-pic | -prefer-non-pic) + func_append later " $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + func_append_quoted lastarg "$arg" + done + IFS="$save_ifs" + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result + + # Add the arguments to base_compile. + func_append base_compile " $lastarg" + continue + ;; + + *) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg="$srcfile" + srcfile="$arg" + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + func_append_quoted base_compile "$lastarg" + done # for arg + + case $arg_mode in + arg) + func_fatal_error "you must specify an argument for -Xcompile" + ;; + target) + func_fatal_error "you must specify a target with \`-o'" + ;; + *) + # Get the name of the library object. + test -z "$libobj" && { + func_basename "$srcfile" + libobj="$func_basename_result" + } + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + case $libobj in + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) + func_xform "$libobj" + libobj=$func_xform_result + ;; + esac + + case $libobj in + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; + *) + func_fatal_error "cannot determine name of library object from \`$libobj'" + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + continue + ;; + + -static) + build_libtool_libs=no + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + func_quote_for_eval "$libobj" + test "X$libobj" != "X$func_quote_for_eval_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname="$func_basename_result" + xdir="$func_dirname_result" + lobj=${xdir}$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + func_append removelist " $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + func_append removelist " $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" = yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test "$pic_mode" != no; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + func_append command " -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test "$suppress_opt" = yes; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" = yes; then + if test "$pic_mode" != yes; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test "$compiler_c_o" = yes; then + func_append command " -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + func_append command "$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { + test "$opt_mode" = compile && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $opt_mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only + -shared do not build a \`.o' file suitable for static linking + -static only build a \`.o' file suitable for static linking + -Wc,FLAG pass FLAG directly to the compiler + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode \`$opt_mode'" + ;; + esac + + echo + $ECHO "Try \`$progname --help' for more information about other modes." +} + +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test "$opt_help" = :; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | sed -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + sed '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi + + +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd="$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $opt_dlopen; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" + + dir= + case $file in + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir="$func_dirname_result" + + if test -f "$dir/$objdir/$dlname"; then + func_append dir "/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir="$func_dirname_result" + ;; + + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -* | *.la | *.lo ) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file="$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_append_quoted args "$file" + done + + if test "X$opt_dry_run" = Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + echo "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} + +test "$opt_mode" = execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libs= + libdirs= + admincmds= + + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + func_append libdirs " $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + func_append libs " $opt" + else + func_warning "\`$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument \`$opt'" + fi + done + + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi + + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || func_append admincmds " + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the \`$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + echo + + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi + exit $EXIT_SUCCESS +} + +test "$opt_mode" = finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + case $nonopt in *shtool*) :;; *) false;; esac; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + func_append install_prog "$func_quote_for_eval_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + no_mode=: + for arg + do + arg2= + if test -n "$dest"; then + func_append files " $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + if $install_cp; then :; else + prev=$arg + fi + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + if test "x$prev" = x-m && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + func_append install_prog " $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" + fi + func_append install_shared_prog " $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" + + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_for_eval "$install_override_mode" + func_append install_shared_prog " -m $func_quote_for_eval_result" + fi + fi + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir="$func_dirname_result" + destname="$func_basename_result" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + func_append staticlibs " $file" + ;; + + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) func_append current_libdirs " $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) func_append future_libdirs " $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir="$func_dirname_result" + func_append dir "$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname="$1" + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme="$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name="$func_basename_result" + instname="$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && func_append staticlibs " $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" = yes; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file="$func_basename_result" + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file="$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name="$func_basename_result" + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $tool_oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test "$opt_mode" = install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname="$1" + my_originator="$2" + my_pic_p="${3-no}" + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms="${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name="$func_basename_result" + case $host in + *cygwin* | *mingw* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename="" + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname" ; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename="$func_basename_result" + else + # no lafile. user explicitly requested -dlpreopen . + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename" ; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + echo >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +extern LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{\ + { \"$my_originator\", (void *) 0 }," + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + echo >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + if test "X$my_pic_p" != Xno; then + pic_flag_for_symtable=" $pic_flag" + fi + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) func_append symtab_cflags " $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' + + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` + fi +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +# Despite the name, also deal with 64 bit binaries. +func_win32_libid () +{ + $opt_debug + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $opt_debug + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $opt_debug + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive which possess that section. Heuristic: eliminate + # all those which have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $opt_debug + if func_cygming_gnu_implib_p "$1" ; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1" ; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result="" + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + if test "$lock_old_archive_extraction" = yes; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test "$lock_old_archive_extraction" = yes; then + $opt_dry_run || rm -f "$lockfile" + fi + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib="$func_basename_result" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`basename "$darwin_archive"` + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` + done + + func_extract_archives_result="$my_oldobjs" +} + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=${1-no} + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + file=\"\$0\"" + + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=\"$qECHO\" + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ which is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options which match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + case \" \$* \" in + *\\ --lt-*) + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done ;; + esac + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` + done + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # fixup the dll searchpath if we need to. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` + + export $shlibpath_var +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. + func_exec_program \${1+\"\$@\"} + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} + + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#ifdef _MSC_VER +# include +# include +# include +#else +# include +# include +# ifdef __CYGWIN__ +# include +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +/* declarations of non-ANSI functions */ +#if defined(__MINGW32__) +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +# endif +#elif defined(__CYGWIN__) +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined (other platforms) ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined(_MSC_VER) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +# ifndef _INTPTR_T_DEFINED +# define _INTPTR_T_DEFINED +# define intptr_t int +# endif +#elif defined(__MINGW32__) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined(__CYGWIN__) +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined (other platforms) ... */ +#endif + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +/* path handling portability macros */ +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +#if defined(LT_DEBUGWRAPPER) +static int lt_debug = 1; +#else +static int lt_debug = 0; +#endif + +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); +void lt_dump_script (FILE *f); +EOF + + cat <= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", + nonempty (path)); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; + + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", + nonempty (wrapper)); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + lt_debugprintf (__FILE__, __LINE__, + "checking path component for symlinks: %s\n", + tmp_pathspec); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + lt_fatal (__FILE__, __LINE__, + "error accessing file \"%s\": %s", + tmp_pathspec, nonnull (strerror (errno))); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal (__FILE__, __LINE__, + "could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp (str, pat) == 0) + *str = '\0'; + } + return str; +} + +void +lt_debugprintf (const char *file, int line, const char *fmt, ...) +{ + va_list args; + if (lt_debug) + { + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); + } +} + +static void +lt_error_core (int exit_status, const char *file, + int line, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *file, int line, const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); + va_end (ap); +} + +static const char * +nonnull (const char *s) +{ + return s ? s : "(null)"; +} + +static const char * +nonempty (const char *s) +{ + return (s && !*s) ? "(empty)" : nonnull (s); +} + +void +lt_setenv (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_setenv) setting '%s' to '%s'\n", + nonnull (name), nonnull (value)); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + int len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len = strlen (orig_value); + int add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len = strlen (new_value); + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -n -e ' +s/^\(.\{79\}\)\(..*\)/\1\ +\2/ +h +s/\([\\"]\)/\\\1/g +s/$/\\n/ +s/\([^\n]*\).*/ fputs ("\1", f);/p +g +D' + cat <<"EOF" +} +EOF +} +# end: func_emit_cwrapperexe_src + +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $opt_debug + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + bindir= + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module="${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + bindir) + bindir="$arg" + prev= + continue + ;; + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + func_append dlfiles " $arg" + else + func_append dlprefiles " $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) func_append deplibs " $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# func_append moreargs " $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file \`$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) func_append rpath " $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) func_append xrpath " $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + weak) + func_append weak_libs " $arg" + prev= + continue + ;; + xcclinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -bindir) + prev=bindir + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$dir'" + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; + *) + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; + *) func_append deplibs " -L$dir" ;; + esac + func_append lib_search_path " $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) func_append dllsearchpath ":$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + func_append deplibs " System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + func_append deplibs " $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot|--sysroot) + func_append compiler_flags " $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + func_append compiler_flags " $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) func_append new_inherited_linker_flags " $arg" ;; + esac + continue + ;; + + -multi_module) + single_module="${wl}-multi_module" + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + =*) + func_stripname '=' '' "$dir" + dir=$lt_sysroot$func_stripname_result + ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) func_append xrpath " $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + func_append arg " $func_quote_for_eval_result" + func_append compiler_flags " $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + func_append arg " $wl$func_quote_for_eval_result" + func_append compiler_flags " $wl$func_quote_for_eval_result" + func_append linker_flags " $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + # Flags to be passed through unchanged, with rationale: + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler + # -r[0-9][0-9]* specify processor for the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler + # +DA*, +DD* enable 64-bit mode for the HP compiler + # -q* compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC + # -F/path path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC + # @file GCC response files + # -tp=* Portland pgcc target processor selection + # --sysroot=* for sysroot support + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-flto*|-fwhopr*|-fuse-linker-plugin) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" + func_append finalize_command " $arg" + func_append compiler_flags " $arg" + continue + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + *.$objext) + # A standard object. + func_append objs " $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + func_append deplibs " $arg" + func_append old_deplibs " $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + func_resolve_sysroot "$arg" + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + func_append dlfiles " $func_resolve_sysroot_result" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + func_append dlprefiles " $func_resolve_sysroot_result" + prev= + else + func_append deplibs " $func_resolve_sysroot_result" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname="$func_basename_result" + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir="$func_dirname_result$objdir" + func_to_tool_file "$output_objdir/" + tool_output_objdir=$func_to_tool_file_result + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_preserve_dup_deps ; then + case "$libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append libs " $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; + esac + func_append pre_post_deps " $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" = "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs="$tmp_deplibs" + fi + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) + libs="$deplibs %DEPLIBS%" + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" + ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + func_resolve_sysroot "$lib" + case $lib in + *.la) func_source "$func_resolve_sysroot_result" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + func_basename "$deplib" + deplib_base=$func_basename_result + case " $weak_libs " in + *" $deplib_base "*) ;; + *) func_append deplibs " $deplib" ;; + esac + done + done + libs="$dlprefiles" + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + func_append compiler_flags " $deplib" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + func_stripname '-R' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) func_append xrpath " $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) + func_resolve_sysroot "$deplib" + lib=$func_resolve_sysroot_result + ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + echo + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not use here." + else + echo + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + func_append newdlprefiles " $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + func_append newdlfiles " $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + + if test "$found" = yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && func_append dlfiles " $dlopen" + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + func_append convenience " $ladir/$objdir/$old_library" + func_append old_convenience " $ladir/$objdir/$old_library" + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_preserve_dup_deps ; then + case "$tmp_libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append tmp_libs " $deplib" + done + elif test "$linkmode" != prog && test "$linkmode" != lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + if test -n "$old_library" && + { test "$prefer_static_libs" = yes || + test "$prefer_static_libs,$installed" = "built,no"; }; then + linklib=$old_library + else + for l in $old_library $library_names; do + linklib="$l" + done + fi + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + func_append dlprefiles " $lib $dependency_libs" + else + func_append newdlfiles " $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir="$ladir" + fi + ;; + esac + func_basename "$lib" + laname="$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library \`$lib' was moved." + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$lt_sysroot$libdir" + absdir="$lt_sysroot$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + func_append notinst_path " $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + func_append notinst_path " $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir" && test "$linkmode" = prog; then + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" + fi + case "$host" in + # special handling for platforms with PE-DLLs. + *cygwin* | *mingw* | *cegcc* ) + # Linker will automatically link against shared library if both + # static and shared are present. Therefore, ensure we extract + # symbols from the import library if a shared library is present + # (otherwise, the dlopen module name will be incorrect). We do + # this by putting the import library name into $newdlprefiles. + # We recover the dlopen module name by 'saving' the la file + # name in a special purpose variable, and (later) extracting the + # dlname from the la file. + if test -n "$dlname"; then + func_tr_sh "$dir/$linklib" + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" + func_append newdlprefiles " $dir/$linklib" + else + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + fi + ;; + * ) + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + func_append newdlprefiles " $dir/$dlname" + else + func_append newdlprefiles " $dir/$linklib" + fi + ;; + esac + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + func_append newlib_search_path " $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_preserve_dup_deps ; then + case "$tmp_libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append tmp_libs " $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) func_append temp_rpath "$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) func_append compile_rpath " $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + func_append notinst_deplibs " $lib" + need_relink=no + ;; + *) + if test "$installed" = no; then + func_append notinst_deplibs " $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule="" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule="$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then + echo + if test "$linkmode" = prog; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) func_append compile_rpath " $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname="$1" + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + func_basename "$soroot" + soname="$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$opt_mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + echo + echo "*** And there doesn't seem to be a static archive available" + echo "*** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + elif test -n "$old_library"; then + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$absdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + func_append add_dir " -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) func_append compile_shlibpath "$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && + test "$hardcode_minus_L" != yes && + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) func_append finalize_shlibpath "$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$opt_mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) func_append finalize_shlibpath "$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + func_append add_dir " -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + echo + $ECHO "*** Warning: This system can not link to static lib archive $lib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) func_append xrpath " $temp_xrpath";; + esac;; + *) func_append temp_deplibs " $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + func_append newlib_search_path " $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result";; + *) func_resolve_sysroot "$deplib" ;; + esac + if $opt_preserve_dup_deps ; then + case "$tmp_libs " in + *" $func_resolve_sysroot_result "*) + func_append specialdeplibs " $func_resolve_sysroot_result" ;; + esac + fi + func_append tmp_libs " $func_resolve_sysroot_result" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + path= + case $deplib in + -L*) path="$deplib" ;; + *.la) + func_resolve_sysroot "$deplib" + deplib=$func_resolve_sysroot_result + func_dirname "$deplib" "" "." + dir=$func_dirname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir="$dir" + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" + path= + fi + fi + ;; + *) + path="-L$absdir/$objdir" + ;; + esac + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path="-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test "$pass" = link; then + if test "$linkmode" = "prog"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) func_append lib_search_path " $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) func_append tmp_libs " $deplib" ;; + esac + ;; + *) func_append tmp_libs " $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + func_append tmp_libs " $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + fi + if test "$linkmode" = prog || test "$linkmode" = lib; then + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + func_append objs "$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test "$module" = no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" + else + echo + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + func_append libobjs " $objs" + fi + fi + + test "$dlself" != no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + shift + IFS="$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$1" + number_minor="$2" + number_revision="$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + # correct linux to gnu/linux during the next big refactor + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|qnx|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_minor" + lt_irix_increment=no + ;; + *) + func_fatal_configuration "$modename: unknown library version type \`$version_type'" + ;; + esac + ;; + no) + current="$1" + revision="$2" + age="$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" = "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) # correct to gnu/linux during the next big refactor + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + func_append verstring ":${current}.0" + ;; + + qnx) + major=".$current" + versuffix=".$current" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + func_warning "undefined symbols not allowed in $host shared libraries" + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + func_append libobjs " $symfileobj" + test "X$libobjs" = "X " && libobjs= + + if test "$opt_mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + func_append removelist " $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + func_append oldlibs " $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + func_replace_sysroot "$libdir" + func_append temp_xrpath " -R$func_replace_sysroot_result" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) func_append dlfiles " $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) func_append dlprefiles " $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + func_append deplibs " System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + func_append deplibs " -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + $nocaseglob + else + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + fi + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + func_append newdeplibs " $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + func_append newdeplibs " $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + func_append newdeplibs " $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + func_append newdeplibs " $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + func_append newdeplibs " $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` + done + fi + case $tmp_deplibs in + *[!\ \ ]*) + echo + if test "X$deplibs_check_method" = "Xnone"; then + echo "*** Warning: inter-library dependencies are not supported in this platform." + else + echo "*** Warning: inter-library dependencies are not known to be supported." + fi + echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + ;; + esac + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + echo + echo "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + echo "*** a static module, that should work as long as the dlopening" + echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + echo "*** The inter-library dependencies that have been dropped here will be" + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" + echo "*** it was explicitly requested with -no-undefined," + echo "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + func_append new_libs " -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) func_append new_libs " $deplib" ;; + esac + ;; + *) func_append new_libs " $deplib" ;; + esac + done + deplibs="$new_libs" + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + # Remove ${wl} instances when linking with ld. + # FIXME: should test the right _cmds variable. + case $archive_cmds in + *\$LD\ *) wl= ;; + esac + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$opt_mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + func_replace_sysroot "$libdir" + libdir=$func_replace_sysroot_result + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append dep_rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_append perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + func_append rpath "$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname="$1" + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + linknames= + for link + do + func_append linknames " $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols="$output_objdir/$libname.uexp" + func_append delfiles " $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols="$export_symbols" + export_symbols= + always_export_symbols=yes + fi + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd1 in $cmds; do + IFS="$save_ifs" + # Take the normal branch if the nm_file_list_spec branch + # doesn't work or if tool conversion is not needed. + case $nm_file_list_spec~$to_tool_file_cmd in + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) + try_normal_branch=yes + eval cmd=\"$cmd1\" + func_len " $cmd" + len=$func_len_result + ;; + *) + try_normal_branch=no + ;; + esac + if test "$try_normal_branch" = yes \ + && { test "$len" -lt "$max_cmd_len" \ + || test "$max_cmd_len" -le -1; } + then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + elif test -n "$nm_file_list_spec"; then + func_basename "$output" + output_la=$func_basename_result + save_libobjs=$libobjs + save_output=$output + output=${output_objdir}/${output_la}.nm + func_to_tool_file "$output" + libobjs=$nm_file_list_spec$func_to_tool_file_result + func_append delfiles " $output" + func_verbose "creating $NM input file list: $output" + for obj in $save_libobjs; do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > "$output" + eval cmd=\"$cmd1\" + func_show_eval "$cmd" 'exit $?' + output=$save_output + libobjs=$save_libobjs + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + func_append delfiles " $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + func_append tmp_deplibs " $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" = yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop="$output_objdir/${outputname}x" + func_append generated " $gentop" + + func_extract_archives $gentop $convenience + func_append libobjs " $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + func_append linker_flags " $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$opt_mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + func_basename "$output" + output_la=$func_basename_result + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then + output=${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + echo 'INPUT (' > $output + for obj in $save_libobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + echo ')' >> $output + func_append delfiles " $output" + func_to_tool_file "$output" + output=$func_to_tool_file_result + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then + output=${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test "$compiler_needs_object" = yes; then + firstobj="$1 " + shift + fi + for obj + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + func_append delfiles " $output" + func_to_tool_file "$output" + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-${k}.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test "X$objlist" = X || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + reload_objs=$objlist + eval concat_cmds=\"$reload_cmds\" + else + # All subsequent reloadable object files will link in + # the last one created. + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-${k}.$objext + objlist=" $obj" + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\${concat_cmds}$reload_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" + fi + func_append delfiles " $output" + + else + output= + fi + + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + fi + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$opt_mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + func_append delfiles " $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + fi + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + func_append generated " $gentop" + + func_extract_archives $gentop $dlprefiles + func_append libobjs " $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$opt_mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$opt_mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` + else + gentop="$output_objdir/${obj}x" + func_append generated " $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # If we're not building shared, we need to use non_pic_objs + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" + + test "$preload" = yes \ + && test "$dlopen_support" = unknown \ + && test "$dlopen_self" = unknown \ + && test "$dlopen_self_static" = unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" = CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + func_append compile_command " ${wl}-bind_at_load" + func_append finalize_command " ${wl}-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + func_append new_libs " -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) func_append new_libs " $deplib" ;; + esac + ;; + *) func_append new_libs " $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + + func_append compile_command " $compile_deplibs" + func_append finalize_command " $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_append perm_rpath " $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) func_append dllsearchpath ":$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) func_append finalize_perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=yes + case $host in + *cegcc* | *mingw32ce*) + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=no + ;; + *cygwin* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + *) + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + esac + if test "$wrappers_required" = no; then + # Replace the output file specification. + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' + fi + + exit $exit_status + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + func_append rpath "$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + func_append rpath "$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output_objdir/$outputname" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save $symfileobj" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + if test "$preload" = yes && test -f "$symfileobj"; then + func_append oldobjs " $symfileobj" + fi + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + func_append generated " $gentop" + + func_extract_archives $gentop $addlibs + func_append oldobjs " $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + func_append generated " $gentop" + + func_extract_archives $gentop $dlprefiles + func_append oldobjs " $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + echo "copying selected object files to avoid basename conflicts..." + gentop="$output_objdir/${outputname}x" + func_append generated " $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase="$func_basename_result" + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + func_append oldobjs " $gentop/$newobj" + ;; + *) func_append oldobjs " $obj" ;; + esac + done + fi + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + elif test -n "$archiver_list_spec"; then + func_verbose "using command file archive linking..." + for obj in $oldobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > $output_objdir/$libname.libcmd + func_to_tool_file "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_file_result" + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name="$func_basename_result" + func_resolve_sysroot "$deplib" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" + ;; + -L*) + func_stripname -L '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -L$func_replace_sysroot_result" + ;; + -R*) + func_stripname -R '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -R$func_replace_sysroot_result" + ;; + *) func_append newdependency_libs " $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" + ;; + *) func_append newdlfiles " $lib" ;; + esac + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" + ;; + esac + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + func_append newdlfiles " $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + func_append newdlprefiles " $abs" + done + dlprefiles="$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + # In fact, it would be nice if we could use this code for all target + # systems that can't hard-code library paths into their executables + # and that have no shared library path variable independent of PATH, + # but it turns out we can't easily determine that from inspecting + # libtool variables, so we have to hard-code the OSs to which it + # applies here; at the moment, that means platforms that use the PE + # object format with DLL files. See the long comment at the top of + # tests/bindir.at for full details. + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test "x$bindir" != x ; + then + func_relative_path "$install_libdir" "$bindir" + tdlname=$func_relative_path_result$dlname + else + # Otherwise fall back on heuristic. + tdlname=../bin/$dlname + fi + ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +{ test "$opt_mode" = link || test "$opt_mode" = relink; } && + func_mode_link ${1+"$@"} + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) func_append RM " $arg"; rmforce=yes ;; + -*) func_append RM " $arg" ;; + *) func_append files " $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + for file in $files; do + func_dirname "$file" "" "." + dir="$func_dirname_result" + if test "X$dir" = X.; then + odir="$objdir" + else + odir="$dir/$objdir" + fi + func_basename "$file" + name="$func_basename_result" + test "$opt_mode" = uninstall && odir="$dir" + + # Remember odir for removal later, being careful to avoid duplicates + if test "$opt_mode" = clean; then + case " $rmdirs " in + *" $odir "*) ;; + *) func_append rmdirs " $odir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + func_append rmfiles " $odir/$n" + done + test -n "$old_library" && func_append rmfiles " $odir/$old_library" + + case "$opt_mode" in + clean) + case " $library_names " in + *" $dlname "*) ;; + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; + esac + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && + test "$pic_object" != none; then + func_append rmfiles " $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && + test "$non_pic_object" != none; then + func_append rmfiles " $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$opt_mode" = clean ; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + func_append rmfiles " $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + func_append rmfiles " $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + func_append rmfiles " $odir/$name $odir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + func_append rmfiles " $odir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + func_append rmfiles " $odir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && + func_mode_uninstall ${1+"$@"} + +test -z "$opt_mode" && { + help="$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$opt_mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: +# vi:sw=2 + diff --git a/m4/libtool.m4 b/m4/libtool.m4 new file mode 100644 index 00000000..828104cf --- /dev/null +++ b/m4/libtool.m4 @@ -0,0 +1,8001 @@ +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) + +# serial 57 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_defun([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl +dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from `configure', and `config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# `config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain="$ac_aux_dir/ltmain.sh" +])# _LT_PROG_LTMAIN + + +## ------------------------------------- ## +## Accumulate code for creating libtool. ## +## ------------------------------------- ## + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the `libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + +## ------------------------ ## +## FIXME: Eliminate VARNAME ## +## ------------------------ ## + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to `config.status' so that its +# declaration there will have the same value as in `configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags="_LT_TAGS"dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into `config.status', and then the shell code to quote escape them in +# for loops in `config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# `#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test $lt_write_fail = 0 && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +_LT_COPYING +_LT_LIBTOOL_TAGS + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + _LT_PROG_REPLACE_SHELLFNS + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +m4_ifndef([AC_PROG_GO], [ +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_GO. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ +m4_defun([AC_PROG_GO], +[AC_LANG_PUSH(Go)dnl +AC_ARG_VAR([GOC], [Go compiler command])dnl +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl +_AC_ARG_VAR_LDFLAGS()dnl +AC_CHECK_TOOL(GOC, gccgo) +if test -z "$GOC"; then + if test -n "$ac_tool_prefix"; then + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) + fi +fi +if test -z "$GOC"; then + AC_CHECK_PROG(GOC, gccgo, gccgo, false) +fi +])#m4_defun +])#m4_ifndef + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([AC_PROG_GO], + [LT_LANG(GO)], + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES([TAG]) +# --------------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + m4_if([$1], [CXX], +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script which will find a shell with a builtin +# printf (which we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case "$ECHO" in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +: ${AR_FLAGS=cru} +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links="nottested" +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", + [Define to the sub-directory in which libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[23]].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[[3-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], + [Run-time system search path for libraries]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program which can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program which can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], + [lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest*]) +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ F* | *Sun*Fortran*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Intel*\ [[CF]]*Compiler*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + *Portland\ Group*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + _LT_TAGVAR(link_all_deplibs, $1)=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS="$save_LDFLAGS"]) + if test "$lt_cv_irix_exported_symbol" = yes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting ${shlibpath_var} if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report which library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC="$lt_save_CC" +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + gnu*) + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + + _LT_TAGVAR(GCC, $1)="$GXX" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF +package foo +func foo() { +} +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)="${prev}${p}" + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)="$p" + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)="$p" + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test "X$F77" = "Xno"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_F77" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$G77" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" + CFLAGS="$lt_save_CFLAGS" +fi # test "$_lt_disable_F77" != yes + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test "X$FC" = "Xno"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_FC" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test "$_lt_disable_FC" != yes + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_GO_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Go compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GO_CONFIG], +[AC_REQUIRE([LT_PROG_GO])dnl +AC_LANG_SAVE + +# Source file extension for Go test sources. +ac_ext=go + +# Object file extension for compiled Go test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="package main; func main() { }" + +# Code to be used in simple link tests +lt_simple_link_test_code='package main; func main() { }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GOC-"gccgo"} +CFLAGS=$GOFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# Go did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GO_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_GO +# ---------- +AC_DEFUN([LT_PROG_GO], +[AC_CHECK_TOOL(GOC, gccgo,) +]) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ + +m4_defun([AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +AC_MSG_RESULT([$xsi_shell]) +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) + +AC_MSG_CHECKING([whether the shell understands "+="]) +lt_shell_append=no +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +AC_MSG_RESULT([$lt_shell_append]) +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) +# ------------------------------------------------------ +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. +m4_defun([_LT_PROG_FUNCTION_REPLACE], +[dnl { +sed -e '/^$1 ()$/,/^} # $1 /c\ +$1 ()\ +{\ +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: +]) + + +# _LT_PROG_REPLACE_SHELLFNS +# ------------------------- +# Replace existing portable implementations of several shell functions with +# equivalent extended shell implementations where those features are available.. +m4_defun([_LT_PROG_REPLACE_SHELLFNS], +[if test x"$xsi_shell" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl + func_split_long_opt_name=${1%%=*} + func_split_long_opt_arg=${1#*=}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) + + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) + + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) + + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) +fi + +if test x"$lt_shell_append" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) + + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl + func_quote_for_eval "${2}" +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ + eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) +fi +]) + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine which file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4 new file mode 100644 index 00000000..5d9acd8e --- /dev/null +++ b/m4/ltoptions.m4 @@ -0,0 +1,384 @@ +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 7 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + +## --------------------------------- ## +## Macros to handle LT_INIT options. ## +## --------------------------------- ## + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the `static' and +# `disable-static' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the `fast-install' +# and `disable-fast-install' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the `pic-only' and `no-pic' +# LT_INIT options. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [pic_mode=default]) + +test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + +## ----------------- ## +## LTDL_INIT Options ## +## ----------------- ## + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4 new file mode 100644 index 00000000..9000a057 --- /dev/null +++ b/m4/ltsugar.m4 @@ -0,0 +1,123 @@ +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) diff --git a/m4/ltversion.m4 b/m4/ltversion.m4 new file mode 100644 index 00000000..07a8602d --- /dev/null +++ b/m4/ltversion.m4 @@ -0,0 +1,23 @@ +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 3337 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4.2]) +m4_define([LT_PACKAGE_REVISION], [1.3337]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4.2' +macro_revision='1.3337' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) diff --git a/m4/lt~obsolete.m4 b/m4/lt~obsolete.m4 new file mode 100644 index 00000000..c573da90 --- /dev/null +++ b/m4/lt~obsolete.m4 @@ -0,0 +1,98 @@ +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) diff --git a/missing b/missing new file mode 100755 index 00000000..86a8fc31 --- /dev/null +++ b/missing @@ -0,0 +1,331 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=2012-01-06.13; # UTC + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, +# 2008, 2009, 2010, 2011, 2012 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, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' + +# 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' + autom4te touch the output file, or create a stub one + 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 + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and +\`g' are ignored when checking the name. + +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 + +# normalize program name to check for. +program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + +# 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). This is about non-GNU programs, so use $1 not +# $program. +case $1 in + lex*|yacc*) + # Not GNU programs, they don't have --version. + ;; + + *) + 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 $program 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 "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + 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 test $# -ne 1; then + eval LASTARG=\${$#} + case $LASTARG in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if test ! -f y.tab.h; then + echo >y.tab.h + fi + if test ! -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 test $# -ne 1; then + eval LASTARG=\${$#} + case $LASTARG in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if test ! -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 "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit $? + 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 "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + 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 + ;; + + *) + 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-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 00000000..368a1629 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = lib bin + +MAINTAINERCLEANFILES = Makefile.in diff --git a/src/Makefile.in b/src/Makefile.in new file mode 100644 index 00000000..af5c7a9e --- /dev/null +++ b/src/Makefile.in @@ -0,0 +1,584 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = src +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 = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = lib bin +MAINTAINERCLEANFILES = Makefile.in +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic clean-libtool \ + ctags ctags-recursive distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am new file mode 100644 index 00000000..73188a9d --- /dev/null +++ b/src/bin/Makefile.am @@ -0,0 +1,3 @@ +SUBDIRS = calaos_server calaos_home + +MAINTAINERCLEANFILES = Makefile.in diff --git a/src/bin/Makefile.in b/src/bin/Makefile.in new file mode 100644 index 00000000..ccf9a14b --- /dev/null +++ b/src/bin/Makefile.in @@ -0,0 +1,584 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = src/bin +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 = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = calaos_server calaos_home +MAINTAINERCLEANFILES = Makefile.in +all: all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/bin/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/bin/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic clean-libtool \ + ctags ctags-recursive distclean distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/bin/calaos_home/ApplicationMain.cpp b/src/bin/calaos_home/ApplicationMain.cpp new file mode 100644 index 00000000..2f442290 --- /dev/null +++ b/src/bin/calaos_home/ApplicationMain.cpp @@ -0,0 +1,160 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ApplicationMain.h" + +#include +#include +#include "config.h" + +string ApplicationMain::theme = THEME_DIR"/default.edj"; + +static void _window_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + ApplicationMain *app = reinterpret_cast(data); + if (app) + app->Resize(); +} + +ApplicationMain::ApplicationMain(int argc, char **argv) +{ + Utils::logger("root") << Priority::INFO << "Calaos Home, starting..." << log4cpp::eol; + + if (system("killall -9 eskiss") == -1) + Utils::logger("root") << Priority::CRIT << "Error forking !" << log4cpp::eol; + + //init random generator + srand(time(NULL)); + + //Init SSL and CURL + SSL_load_error_strings(); + SSL_library_init(); + curl_global_init(CURL_GLOBAL_ALL); + + //Init efl core + if (!eina_init()) + throw (runtime_error("Unable to init Eina")); + if (!ecore_init()) + throw (runtime_error("Unable to init Ecore")); + if (!ecore_con_init()) + throw (runtime_error("Unable to init Ecore-Con")); + if (!ecore_con_url_init()) + throw (runtime_error("Unable to init Ecore-Con-Url")); + if (!evas_init()) + throw (runtime_error("Unable to init Evas")); + if (!ecore_evas_init()) + throw (runtime_error("Unable to init Ecore-Evas")); + if (!edje_init()) + throw (runtime_error("Unable to init Edje")); + + edje_frametime_set(1.0 / 60.0); + edje_scale_set(1.0); + + if (!elm_init(argc, argv)) + throw (runtime_error("Unable to init Elementary")); + + //Load Calaos specific ELM extensions + elm_theme_extension_add(NULL, ApplicationMain::getTheme()); + + //Create the main window + window = elm_win_add(NULL, "calaos-home", ELM_WIN_BASIC); + elm_win_title_set(window, "Calaos Home"); + elm_win_borderless_set(window, true); + + //Automatically quit main loop when the window is closed + elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); + elm_win_autodel_set(window, true); + + // Change default finger size, elementary should not resize elements. + // It made the calaos theme looks wrong. + //elm_finger_size_set(10); + + evas_object_event_callback_add(window, EVAS_CALLBACK_RESIZE, _window_resize_cb, this); + evas = evas_object_evas_get(window); + + Evas_Object *bg = elm_bg_add(window); + evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(window, bg); + evas_object_show(bg); + evas_object_size_hint_min_set(bg, 200, 200); + elm_bg_color_set(bg, 0, 0, 0); + + layout = elm_layout_add(window); + if (!elm_layout_file_set(layout, ApplicationMain::getTheme(), EDJE_GROUP_MAIN_LAYOUT)) + { + string e = "Unable to find group \""; + e += EDJE_GROUP_MAIN_LAYOUT; + e += "\" in theme \""; + e += ApplicationMain::getTheme(); + e += "\""; + throw (runtime_error(e)); + } + + evas_object_size_hint_weight_set(layout, 1.0, 1.0); + evas_object_show(layout); + + evas_object_resize(window, 1024, 768); + evas_object_show(window); + + Resize(); + + try + { + controller = new ApplicationController(evas, layout); + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "Can't create ApplicationController" << log4cpp::eol; + throw; + } +} + +ApplicationMain::~ApplicationMain() +{ + DELETE_NULL(controller) + + elm_shutdown(); + edje_shutdown(); + ecore_evas_shutdown(); + evas_shutdown(); + ecore_con_url_shutdown(); + ecore_con_shutdown(); + ecore_shutdown(); + eina_shutdown(); +} + +void ApplicationMain::Run() +{ + elm_run(); +} + +void ApplicationMain::Stop() +{ + elm_exit(); +} + +void ApplicationMain::Resize() +{ + Evas_Coord w, h; + + evas_object_geometry_get(window, NULL, NULL, &w, &h); + evas_object_resize(layout, w, h); + evas_object_move(layout, 0, 0); +} diff --git a/src/bin/calaos_home/ApplicationMain.h b/src/bin/calaos_home/ApplicationMain.h new file mode 100644 index 00000000..72773d91 --- /dev/null +++ b/src/bin/calaos_home/ApplicationMain.h @@ -0,0 +1,101 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef APPLICATIONMAIN_H +#define APPLICATIONMAIN_H + +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "ApplicationController.h" + +#include "ScenarioModel.h" + +using namespace Utils; + +#define EDJE_GROUP_MAIN_LAYOUT "calaos/main/layout" + +class ApplicationMain +{ + private: + + //The main canvas + Evas *evas; + + //The main window object + Evas_Object *window; + + //The elementary layout, it contains the app + Evas_Object *layout; + + //The main application controller + ApplicationController *controller; + + static string theme; + + ApplicationMain(int argc, char **argv); + public: + static ApplicationMain &Instance(int argc = 0, char **argv = NULL) + { + static ApplicationMain appmain(argc, argv); + return appmain; + } + ~ApplicationMain(); + + void Run(); + void Stop(); + + void Resize(); + + static const char *getTheme() + { + return theme.c_str(); + } + + //type is 0 for UTF-8 text, 1 is for keeping evas textblock markup instead + void ShowKeyboard(string subtitle, ActivityKeyboardCb callback, bool multiline, string oldtext = "", int type = 0) + { + if (controller) controller->ShowKeyboard(subtitle, callback, multiline, oldtext, type); + } + + void ShowWebBrowser(string url = "") + { + if (controller) controller->ShowWebBrowser(url); + } + + void ShowScenarioEditor(Scenario *scenario = NULL) + { + if (controller) controller->ShowScenarioEditor(scenario); + } + + void ShowScenarioSchedule(Scenario *scenario) + { + if (controller) controller->ShowScenarioSchedule(scenario); + } +}; + +#endif // APPLICATIONMAIN_H diff --git a/src/bin/calaos_home/CalaosConnection.cpp b/src/bin/calaos_home/CalaosConnection.cpp new file mode 100644 index 00000000..ddaef75f --- /dev/null +++ b/src/bin/calaos_home/CalaosConnection.cpp @@ -0,0 +1,271 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "CalaosConnection.h" + +static Eina_Bool _ecore_con_handler_add(void *data, int type, Ecore_Con_Event_Server_Add *ev) +{ + CalaosConnection *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->addConnection(ev->server); + else + Utils::logger("network.connection") << Priority::CRIT + << "CalaosConnection(): _con_server_add, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _ecore_con_handler_del(void *data, int type, Ecore_Con_Event_Server_Del *ev) +{ + CalaosConnection *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->delConnection(ev->server); + else + Utils::logger("network.connection") << Priority::CRIT + << "CalaosConnection(): _con_server_del, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _ecore_con_handler_data_get(void *data, int type, Ecore_Con_Event_Server_Data *ev) +{ + CalaosConnection *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->dataGet(ev->server, ev->data, ev->size); + else + Utils::logger("network.connection") << Priority::CRIT + << "CalaosConnection(): _con_server_data, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +CalaosConnection::CalaosConnection(string h, bool no_listenner): + econ(NULL), + con_state(CALAOS_CON_NONE), + host(h), + timeout(NULL), + sendInProgress(false), + listener(NULL) +{ + event_handler_data_get = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, (Ecore_Event_Handler_Cb)_ecore_con_handler_data_get, this); + event_handler_add = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb)_ecore_con_handler_add, this); + event_handler_del = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, (Ecore_Event_Handler_Cb)_ecore_con_handler_del, this); + + econ = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, + host.c_str(), + TCP_LISTEN_PORT, + this); + ecore_con_server_data_set(econ, this); + + timeout = new EcoreTimer(TIMEOUT_CONNECT, (sigc::slot)sigc::mem_fun(*this, &CalaosConnection::TimeoutTick)); + + if (!no_listenner) + listener = new CalaosListener(host); +} + +CalaosConnection::~CalaosConnection() +{ + DELETE_NULL_FUNC(ecore_event_handler_del, event_handler_data_get); + DELETE_NULL_FUNC(ecore_event_handler_del, event_handler_add); + DELETE_NULL_FUNC(ecore_event_handler_del, event_handler_del); + + DELETE_NULL(listener); + DELETE_NULL(timeout); + DELETE_NULL_FUNC(ecore_con_server_del, econ); +} + +void CalaosConnection::addConnection(Ecore_Con_Server *server) +{ + if (server != econ) return; + + if (con_state == CALAOS_CON_NONE) + { + con_state = CALAOS_CON_LOGIN; + + string cmd = "login "; + + //Get username/password + string username = Utils::get_config_option("calaos_user"); + string password = Utils::get_config_option("calaos_password"); + + if (Utils::get_config_option("cn_user") != "" && + Utils::get_config_option("cn_pass") != "") + { + username = Utils::get_config_option("cn_user"); + password = Utils::get_config_option("cn_pass"); + } + + cmd += Utils::url_encode(username) + " "; + cmd += Utils::url_encode(password); + cmd += "\r\n"; + + Utils::logger("network.connection") << Priority::DEBUG << "CalaosConnection: trying to log in." << log4cpp::eol; + + ecore_con_server_send(econ, cmd.c_str(), cmd.length()); + } +} + +void CalaosConnection::delConnection(Ecore_Con_Server *server) +{ + if (server != econ) return; + + if (con_state == CALAOS_CON_LOGIN) + { + error_login.emit(); + + Utils::logger("network.connection") << Priority::CRIT << "CalaosConnection: Login failed !" << log4cpp::eol; + + return; + } + + lost_connection.emit(); + + Utils::logger("network.connection") << Priority::CRIT << "CalaosConnection: Connection closed !" << log4cpp::eol; +} + +void CalaosConnection::dataGet(Ecore_Con_Server *server, void *data, int size) +{ + if (server != econ) return; + + string msg((char *)data, size); + + if (con_state == CALAOS_CON_LOGIN) + { + con_state = CALAOS_CON_OK; + + Utils::logger("network.connection") << Priority::DEBUG << "CalaosConnection: Successfully logged in." << log4cpp::eol; + + connection_ok.emit(); + } + else if (con_state == CALAOS_CON_OK) + { + DELETE_NULL(timeout) + + //Clean string + while( (msg[msg.length() - 1] == '\n' || msg[msg.length() - 1] == '\r') + && !msg.empty() ) + msg.erase(msg.length() - 1, 1); + + Utils::logger("network.connection") << Priority::DEBUG << "CalaosConnection: Received: " << msg << log4cpp::eol; + + //Here we split command result. + vector v; + split(msg, v); + + for_each(v.begin(), v.end(), UrlDecode()); + + CalaosCmd &cmd = commands.front(); + CommandDone_sig sig; + sig.connect(cmd.callback); + sig.emit(true, v, cmd.user_data); + + commands.pop(); + + sendAndDequeue(); + } +} + +void CalaosConnection::TimeoutTick() +{ + if (con_state == CALAOS_CON_NONE) + { + timeout_connect.emit(); + + Utils::logger("network.connection") << Priority::CRIT << "CalaosConnection: Timeout connecting to " << host << log4cpp::eol; + } + + if (con_state == CALAOS_CON_OK) + { + Utils::logger("network.connection") << Priority::CRIT << "CalaosConnection: Timeout waiting answer..." << log4cpp::eol; + + vector v; + CalaosCmd &cmd = commands.front(); + CommandDone_sig sig; + sig.connect(cmd.callback); + sig.emit(false, v, cmd.user_data); + + commands.pop(); + + sendAndDequeue(); + } + + if (timeout) + { + delete timeout; + timeout = NULL; + } +} + +void CalaosConnection::SendCommand(string scmd, CommandDone_cb callback, void *data) +{ + CalaosCmd cmd; + + cmd.command = scmd; + cmd.callback = callback; + cmd.user_data = data; + + commands.push(cmd); + + sendAndDequeue(); +} + +void CalaosConnection::SendCommand(string scmd) +{ + CalaosCmd cmd; + + cmd.command = scmd; + cmd.noCallback = true; + + commands.push(cmd); + + sendAndDequeue(); +} + +void CalaosConnection::sendAndDequeue() +{ + if (commands.empty() || commands.front().inProgress) + return; + + CalaosCmd &cmd = commands.front(); + cmd.inProgress = true; + + if (!timeout) + timeout = new EcoreTimer(TIMEOUT_SEND, (sigc::slot)sigc::mem_fun(*this, &CalaosConnection::TimeoutTick)); + + Utils::logger("network.connection") << Priority::DEBUG << "CalaosConnection: Sending command: " << cmd.command << log4cpp::eol; + + cmd.command += "\n\r"; + ecore_con_server_send(econ, cmd.command.c_str(), cmd.command.length()); +} diff --git a/src/bin/calaos_home/CalaosConnection.h b/src/bin/calaos_home/CalaosConnection.h new file mode 100644 index 00000000..5d8b20fc --- /dev/null +++ b/src/bin/calaos_home/CalaosConnection.h @@ -0,0 +1,110 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef CALAOSCONNECTION_H +#define CALAOSCONNECTION_H + +#include + +#include +#include +#include + +#include "CalaosListener.h" + +using namespace Utils; + +#define TIMEOUT_CONNECT 60.0 +#define TIMEOUT_SEND 60.0 + +typedef sigc::slot, void * > CommandDone_cb; +typedef sigc::signal, void * > CommandDone_sig; + +class CalaosCmd +{ + public: + CalaosCmd(): + inProgress(false), + noCallback(false) + {} + CalaosCmd(string c, CommandDone_cb cb): + command(c), + callback(cb), + user_data(NULL), + inProgress(false), + noCallback(false) + {} + + string command; + CommandDone_cb callback; + void *user_data; + + bool inProgress; + bool noCallback; +}; + +class CalaosConnection: public sigc::trackable +{ + public: + //Ecore Internal use only + void addConnection(Ecore_Con_Server *server); + void delConnection(Ecore_Con_Server *server); + void dataGet(Ecore_Con_Server *server, void *data, int size); + + private: + Ecore_Con_Server *econ; + + enum { CALAOS_CON_NONE, CALAOS_CON_LOGIN, CALAOS_CON_OK }; + + int con_state; + + string host; + + EcoreTimer *timeout; + + Ecore_Event_Handler *event_handler_data_get; + Ecore_Event_Handler *event_handler_add; + Ecore_Event_Handler *event_handler_del; + + queue commands; + + bool sendInProgress; + + CalaosListener *listener; + + void sendAndDequeue(); + void TimeoutTick(); + + public: + CalaosConnection(string host, bool no_listenner = false); + ~CalaosConnection(); + + void SendCommand(string cmd, CommandDone_cb callback, void *data = NULL); + void SendCommand(string cmd); + + CalaosListener *getListener() { return listener; } + + sigc::signal error_login; + sigc::signal timeout_connect; + sigc::signal lost_connection; + sigc::signal connection_ok; +}; + +#endif // CALAOSCONNECTION_H diff --git a/src/bin/calaos_home/CalaosDiscover.cpp b/src/bin/calaos_home/CalaosDiscover.cpp new file mode 100644 index 00000000..8b83ed95 --- /dev/null +++ b/src/bin/calaos_home/CalaosDiscover.cpp @@ -0,0 +1,129 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "CalaosDiscover.h" + +static Eina_Bool _con_server_data(void *data, int type, Ecore_Con_Event_Client_Data *ev) +{ + CalaosDiscover *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ecore_con_client_server_get(ev->client)))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->dataGet(ecore_con_client_server_get(ev->client), ev->data, ev->size); + else + Utils::logger("network") << Priority::CRIT + << "CalaosDiscover(): _con_server_data, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +CalaosDiscover::CalaosDiscover(): + econ(NULL), + econ_sender(NULL), + timer(NULL), + connection(NULL) +{ + event_handler_data_get = ecore_event_handler_add(ECORE_CON_EVENT_CLIENT_DATA, (Ecore_Event_Handler_Cb)_con_server_data, this); + + econ = ecore_con_server_add(ECORE_CON_REMOTE_UDP, "0.0.0.0", BCAST_UDP_PORT, this); + ecore_con_server_data_set(econ, this); + + econ_sender = ecore_con_server_connect(ECORE_CON_REMOTE_BROADCAST, "255.255.255.255", BCAST_UDP_PORT, this); + + timerDiscover(); + + timer = new EcoreTimer(1., + (sigc::slot)sigc::mem_fun(*this, &CalaosDiscover::timerDiscover)); +} + +CalaosDiscover::~CalaosDiscover() +{ + DELETE_NULL_FUNC(ecore_event_handler_del, event_handler_data_get); + + DELETE_NULL(timer); + DELETE_NULL_FUNC(ecore_con_server_del, econ); + DELETE_NULL_FUNC(ecore_con_server_del, econ_sender); + DELETE_NULL(connection); +} + +void CalaosDiscover::timerDiscover() +{ + Utils::logger("network") << Priority::DEBUG << "CalaosDiscover: try to discover server..." << log4cpp::eol; + + string packet = "CALAOS_DISCOVER"; + if (!ecore_con_server_send(econ_sender, packet.c_str(), packet.length())) + { + econ_sender = ecore_con_server_connect(ECORE_CON_REMOTE_BROADCAST, "0.0.0.0", BCAST_UDP_PORT, this); + ecore_con_server_send(econ_sender, packet.c_str(), packet.length()); + } +} + +void CalaosDiscover::dataGet(Ecore_Con_Server *server, void *data, int size) +{ + if (server != econ) return; + + string msg((char *)data, size); + + Utils::logger("network") << Priority::DEBUG << "CalaosDiscover: DataServer: some data arrived msg: \"" << msg << "\"" << log4cpp::eol; + + if (msg.substr(0, 10) == "CALAOS_IP " && !connection) + { + msg.erase(0, 10); + address = msg; + + DELETE_NULL(timer); + EcoreTimer::singleShot(0.0, sigc::mem_fun(*this, &CalaosDiscover::delayDel)); + + connection = new CalaosConnection(address, true); + connection->connection_ok.connect(sigc::mem_fun(*this, &CalaosDiscover::loginSuccess)); + connection->error_login.connect(sigc::mem_fun(*this, &CalaosDiscover::loginFailed)); + } +} + +void CalaosDiscover::delayDel() +{ + DELETE_NULL_FUNC(ecore_con_server_del, econ); + DELETE_NULL_FUNC(ecore_con_server_del, econ_sender); +} + +void CalaosDiscover::loginSuccess() +{ + Utils::logger("network") << Priority::DEBUG << "CalaosDiscover: Login to host " << address << " successfully" << log4cpp::eol; + + DELETE_NULL(connection); + + server_found.emit(address); +} + +void CalaosDiscover::loginFailed() +{ + Utils::logger("network") << Priority::DEBUG << "CalaosDiscover: Wrong login/password on host " << address << log4cpp::eol; + + DELETE_NULL(connection); + + login_error.emit(address); + + //Restart timer to search again for a valid server + timer = new EcoreTimer(1., + (sigc::slot)sigc::mem_fun(*this, &CalaosDiscover::timerDiscover)); +} diff --git a/src/bin/calaos_home/CalaosDiscover.h b/src/bin/calaos_home/CalaosDiscover.h new file mode 100644 index 00000000..6d504fd5 --- /dev/null +++ b/src/bin/calaos_home/CalaosDiscover.h @@ -0,0 +1,65 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef CALAOSDISCOVER_H +#define CALAOSDISCOVER_H + +#include + +#include +#include +#include + +#include +#include + +using namespace Utils; + +class CalaosDiscover: public sigc::trackable +{ + public: + //Ecore Internal use only + void dataGet(Ecore_Con_Server *server, void *data, int size); + + private: + string address; + Ecore_Con_Server *econ; + Ecore_Con_Server *econ_sender; + + Ecore_Event_Handler *event_handler_data_get; + + EcoreTimer *timer; + + CalaosConnection *connection; + + void loginSuccess(); + void loginFailed(); + void timerDiscover(); + void delayDel(); + + public: + CalaosDiscover(); + ~CalaosDiscover(); + + sigc::signal server_found; + sigc::signal login_error; +}; + +#endif // CALAOSDISCOVER_H diff --git a/src/bin/calaos_home/CalaosListener.cpp b/src/bin/calaos_home/CalaosListener.cpp new file mode 100644 index 00000000..b55b99f4 --- /dev/null +++ b/src/bin/calaos_home/CalaosListener.cpp @@ -0,0 +1,246 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "CalaosListener.h" + +static Eina_Bool _con_server_add(void *data, int type, Ecore_Con_Event_Server_Add *ev) +{ + CalaosListener *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->addConnection(ev->server); + else + Utils::logger("network.listener") << Priority::CRIT + << "CalaosListener(): _con_server_add, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _con_server_del(void *data, int type, Ecore_Con_Event_Server_Del *ev) +{ + CalaosListener *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->delConnection(ev->server); + else + Utils::logger("network.listener") << Priority::CRIT + << "CalaosListener(): _con_server_del, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _con_server_data(void *data, int type, Ecore_Con_Event_Server_Data *ev) +{ + CalaosListener *o = reinterpret_cast(data); + + if (ev && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->dataGet(ev->server, ev->data, ev->size); + else + Utils::logger("network.listener") << Priority::CRIT + << "CalaosListener(): _con_server_data, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +CalaosListener::CalaosListener(string _address): + address(_address), + econ(NULL), + login(false), + timer(NULL) +{ + handler_add = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb)_con_server_add, this); + handler_del = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, (Ecore_Event_Handler_Cb)_con_server_del, this); + handler_data = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, (Ecore_Event_Handler_Cb)_con_server_data, this); + + timerReconnect(); + + timer = new EcoreTimer(1000., + (sigc::slot)sigc::mem_fun(*this, &CalaosListener::timerReconnect)); +} + +CalaosListener::~CalaosListener() +{ + DELETE_NULL_FUNC(ecore_event_handler_del, handler_add); + DELETE_NULL_FUNC(ecore_event_handler_del, handler_del); + DELETE_NULL_FUNC(ecore_event_handler_del, handler_data); + + DELETE_NULL(timer); + DELETE_NULL_FUNC(ecore_con_server_del, econ); +} + +void CalaosListener::timerReconnect() +{ + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: Connecting to " << address << ":" << TCP_LISTEN_PORT << log4cpp::eol; + + DELETE_NULL_FUNC(ecore_con_server_del, econ) + econ = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, address.c_str(), TCP_LISTEN_PORT, this); + ecore_con_server_data_set(econ, this); +} + +void CalaosListener::addConnection(Ecore_Con_Server *server) +{ + if (server != econ) return; + + DELETE_NULL(timer) + + //Login first + login = true; + string cmd = "login "; + + //Get username/password + string username = Utils::get_config_option("calaos_user"); + string password = Utils::get_config_option("calaos_password"); + + if (Utils::get_config_option("cn_user") != "" && + Utils::get_config_option("cn_pass") != "") + { + username = Utils::get_config_option("cn_user"); + password = Utils::get_config_option("cn_pass"); + } + + cmd += Utils::url_encode(username) + " "; + cmd += Utils::url_encode(password); + cmd += "\r\n"; + + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: trying to log in." << log4cpp::eol; + + ecore_con_server_send(econ, cmd.c_str(), cmd.length()); +} + +void CalaosListener::delConnection(Ecore_Con_Server *server) +{ + if (server != econ) return; + + DELETE_NULL(timer) + + if (login) + { + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: Wrong login/password." << log4cpp::eol; + + return; + } + + Utils::logger("network.listener") << Priority::WARN << "CalaosListener: Connection closed !" << log4cpp::eol; + Utils::logger("network.listener") << Priority::WARN << "CalaosListener: Trying to reconnect..." << log4cpp::eol; + + timer = new EcoreTimer(5 / 100., + (sigc::slot)sigc::mem_fun(*this, &CalaosListener::timerReconnect)); + + lost_connection.emit(); +} + +void CalaosListener::dataGet(Ecore_Con_Server *server, void *data, int size) +{ + if (server != econ) return; + + string msg((char *)data, size); + + if (login) + { + login = false; + + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: Successfully logged in." << log4cpp::eol; + + string cmd = "listen\n\r"; + ecore_con_server_send(econ, cmd.c_str(), cmd.length()); + + return; + } + + if (msg.find('\n') == string::npos && + msg.find('\r') == string::npos) + { + //We have not a complete paquet yet, buffurize it. + buffer += msg; + + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: Bufferize data." << log4cpp::eol; + + return; + } + + if (!buffer.empty()) + { + msg = buffer; + buffer.clear(); + } + + //Clean data string + int i = msg.length() - 1; + while ((msg[i] == '\n' || msg[i] == '\r' || msg[i] == '\0') && i >= 0) i--; + + vector tokens; + + replace_str(msg, "\r\n", "\n"); + replace_str(msg, "\r", "\n"); + + split(msg, tokens, "\n"); + + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: Got " << tokens.size() << " messages." << log4cpp::eol; + + for(unsigned int i = 0; i < tokens.size(); i++) + processMessage(tokens[i]); +} + +void CalaosListener::processMessage(string msg) +{ + Utils::logger("network.listener") << Priority::DEBUG << "CalaosListener: Message: \"" << msg << "\"" << log4cpp::eol; + + vector msgSplit; + + split(msg, msgSplit, " "); + + if(msgSplit[0] == "output" || msgSplit[0] == "input" || msgSplit[0] == "input_range_change") + notify_io_change.emit(msg); + else if(msgSplit[0] == "new_output" || msgSplit[0] == "new_input") + notify_io_new.emit(msg); + else if(msgSplit[0] == "delete_output" || msgSplit[0] == "delete_input") + notify_io_delete.emit(msg); + else if(msgSplit[0] == "modify_room") + notify_room_change.emit(msg); + else if(msgSplit[0] == "delete_room") + notify_room_delete.emit(msg); + else if(msgSplit[0] == "new_room") + notify_room_new.emit(msg); + else if (msgSplit[0] == "audio" || + msgSplit[0] == "audio_playlist" || + msgSplit[0] == "audio_status" || + msgSplit[0] == "audio_volume") + { + notify_audio_change.emit(msg); + } + else if (msgSplit[0] == "new_scenario") + notify_scenario_add.emit(msg); + else if (msgSplit[0] == "delete_scenario") + notify_scenario_del.emit(msg); + else if (msgSplit[0] == "modify_scenario") + notify_scenario_change.emit(msg); +} diff --git a/src/bin/calaos_home/CalaosListener.h b/src/bin/calaos_home/CalaosListener.h new file mode 100644 index 00000000..96e8b757 --- /dev/null +++ b/src/bin/calaos_home/CalaosListener.h @@ -0,0 +1,77 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef CALAOSLISTENER_H +#define CALAOSLISTENER_H + +#include +#include +#include + +class CalaosListener: public sigc::trackable +{ + public: + //Ecore Internal use only + void addConnection(Ecore_Con_Server *server); + void delConnection(Ecore_Con_Server *server); + void dataGet(Ecore_Con_Server *server, void *data, int size); + + private: + string address; + Ecore_Con_Server *econ; + bool login; + + string buffer; + + EcoreTimer *timer; + + Ecore_Event_Handler *handler_add; + Ecore_Event_Handler *handler_data; + Ecore_Event_Handler *handler_del; + + void processMessage(string msg); + void timerReconnect(); + + public: + CalaosListener(string address); + ~CalaosListener(); + + //RoomModel signals + sigc::signal notify_io_change; + sigc::signal notify_io_new; + sigc::signal notify_io_delete; + sigc::signal notify_room_change; + sigc::signal notify_room_new; + sigc::signal notify_room_delete; + + //AudioModel signals + sigc::signal notify_audio_change; + + //ScenarioModel signals + sigc::signal notify_scenario_add; + sigc::signal notify_scenario_del; + sigc::signal notify_scenario_change; + + sigc::signal lost_connection; + +}; + +#endif // CALAOSLISTENER_H diff --git a/src/bin/calaos_home/CommonUtils.cpp b/src/bin/calaos_home/CommonUtils.cpp new file mode 100644 index 00000000..d98dfaf0 --- /dev/null +++ b/src/bin/calaos_home/CommonUtils.cpp @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "CommonUtils.h" +#include + +using namespace Utils; + +Evas_Object *Utils::createPaddingTable(Evas *evas, Evas_Object *parent, int w, int h, int padding_top_bottom, int padding_side) +{ + Evas_Object *table = elm_table_add(parent); + evas_object_size_hint_min_set(table, w, h); + evas_object_show(table); + + Evas_Object *pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, w-10, padding_top_bottom); + elm_table_pack(table, pad, 1, 0, 1, 1); + + pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, w-10, padding_top_bottom); + elm_table_pack(table, pad, 1, 2, 1, 1); + + pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, padding_side, h); + elm_table_pack(table, pad, 0, 1, 1, 1); + + pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, padding_side, h); + elm_table_pack(table, pad, 2, 1, 1, 1); + + return table; +} diff --git a/src/bin/calaos_home/CommonUtils.h b/src/bin/calaos_home/CommonUtils.h new file mode 100644 index 00000000..bffad9ce --- /dev/null +++ b/src/bin/calaos_home/CommonUtils.h @@ -0,0 +1,42 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef COMMONUTILS_H +#define COMMONUTILS_H + +#include +#include + +namespace Utils +{ + +struct DeleteEvasObject +{ + template void operator ()(T *&p) const + { + DELETE_NULL_FUNC(evas_object_del, p); + } +}; + +Evas_Object *createPaddingTable(Evas *evas, Evas_Object *parent, int w, int h, int padding_top_bottom = 1, int padding_side = 1); + +} + +#endif // COMMONUTILS_H diff --git a/src/bin/calaos_home/EdjeObject.cpp b/src/bin/calaos_home/EdjeObject.cpp new file mode 100644 index 00000000..2242d90f --- /dev/null +++ b/src/bin/calaos_home/EdjeObject.cpp @@ -0,0 +1,263 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +static void _edje_object_signal_cb(void *data, Evas_Object *obj, const char *emission, const char *source); +static void _edje_del(void *data, Evas *e , Evas_Object *obj, void *event_info); +static void _edje_show(void *data, Evas *e , Evas_Object *obj, void *event_info); +static void _edje_hide(void *data, Evas *e , Evas_Object *obj, void *event_info); + +EdjeObject::EdjeObject(string &_theme, Evas *_evas): + theme(_theme), + evas(_evas), + autodelete(false) +{ + //create the edje object + edje = edje_object_add(evas); + + evas_object_event_callback_add(edje, EVAS_CALLBACK_DEL, _edje_del, this); + evas_object_event_callback_add(edje, EVAS_CALLBACK_SHOW, _edje_show, this); + evas_object_event_callback_add(edje, EVAS_CALLBACK_HIDE, _edje_hide, this); + + evas_object_data_set(edje, "EdjeObject", this); + + // Add an automatic callback that triggers the object_signal for all signals (*, *) + addCallback("*", "*", sigc::mem_fun(object_signal, &sigc::signal::emit)); +} + +EdjeObject::EdjeObject(const char *_theme, Evas *_evas): + theme(_theme), + evas(_evas), + autodelete(false) +{ + //create the edje object + edje = edje_object_add(evas); + + evas_object_event_callback_add(edje, EVAS_CALLBACK_DEL, _edje_del, this); + evas_object_event_callback_add(edje, EVAS_CALLBACK_SHOW, _edje_show, this); + evas_object_event_callback_add(edje, EVAS_CALLBACK_HIDE, _edje_hide, this); + + evas_object_data_set(edje, "EdjeObject", this); + + // Add an automatic callback that triggers the object_signal for all signals (*, *) + addCallback("*", "*", sigc::mem_fun(object_signal, &sigc::signal::emit)); +} + +EdjeObject::~EdjeObject() +{ + //deletes all swallowed objs + for_each(swallow_eobjs.begin(), swallow_eobjs.end(), Delete()); + for_each(swallow_objs.begin(), swallow_objs.end(), DeleteEvasObject()); + + vector::iterator iter = callbacks.begin(); + + for (;callbacks.size() > 0 && iter != callbacks.end();iter++) + { + EdjeCallbackData *data = *iter; + if (edje) + edje_object_signal_callback_del(edje, data->signal.c_str(), data->source.c_str(), _edje_object_signal_cb); + + delete data; + } + callbacks.clear(); + + if (edje) + { + void *data = evas_object_event_callback_del_full(edje, EVAS_CALLBACK_DEL, _edje_del, this); + if (!data) + Utils::logger("root") << Priority::CRIT << "EdjeObject::~EdjeObject : Something went wrong with callback deletion !" << log4cpp::eol; + + //Emit deleted signal only if the Evas_Object is still alive + objectDeleted(); + object_deleted.emit(); + } + DELETE_NULL_FUNC(evas_object_del, edje) +} + +bool EdjeObject::LoadEdje(string c) +{ + CHECK_EDJE_RETURN(false) + + collection = c; + if (edje_object_file_set(edje, theme.c_str(), collection.c_str()) == 0) + { + int err = edje_object_load_error_get(edje); + string serr = "EdjeObject::LoadEdje - "; + switch (err) + { + case EDJE_LOAD_ERROR_NONE: serr += "No Error."; break; + default: + case EDJE_LOAD_ERROR_GENERIC: serr += "Unknown Error"; break; + case EDJE_LOAD_ERROR_DOES_NOT_EXIST: serr += "File doesn't exist"; break; + case EDJE_LOAD_ERROR_PERMISSION_DENIED: serr += "Permission denied"; break; + case EDJE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED: serr += "Allocation failed"; break; + case EDJE_LOAD_ERROR_CORRUPT_FILE: serr += "File is corrupted"; break; + case EDJE_LOAD_ERROR_UNKNOWN_FORMAT: serr += "Unknown file format"; break; + case EDJE_LOAD_ERROR_INCOMPATIBLE_FILE: serr += "Incompatible file"; break; + case EDJE_LOAD_ERROR_UNKNOWN_COLLECTION: serr += "Unknown collection (" + collection + ")"; break; + case EDJE_LOAD_ERROR_RECURSIVE_REFERENCE: serr += "Recursive reference"; break; + } + + throw (runtime_error(serr)); + + return false; + } + + return true; +} + +void EdjeObject::getGeometry(int *x, int *y, int *w, int *h) +{ + CHECK_EDJE_RETURN() + + evas_object_geometry_get(edje, x, y, w, h); +} + +string EdjeObject::getPartText(string part) +{ + CHECK_EDJE_RETURN("") + + const char *txt = edje_object_part_text_get(edje, part.c_str()); + if (txt) + return string(txt); + + return ""; +} + +void EdjeObject::Swallow(EdjeObject *obj, string part, bool delete_on_del) +{ + CHECK_EDJE_RETURN(); + edje_object_part_swallow(edje, part.c_str(), obj->getEvasObject()); + + if (delete_on_del) + swallow_eobjs.push_back(obj); +} + +void EdjeObject::Swallow(Evas_Object *obj, string part, bool delete_on_del) +{ + CHECK_EDJE_RETURN(); + edje_object_part_swallow(edje, part.c_str(), obj); + + if (delete_on_del) + swallow_objs.push_back(obj); +} + +sigc::connection *EdjeObject::addCallback(string source, string signal, EdjeCallBack slot_cb, void *user_data) +{ + CHECK_EDJE_RETURN(NULL) + + EdjeCallbackData *data = new EdjeCallbackData; + + data->connection = data->signal_cb.connect(slot_cb); + data->user_data = user_data; + data->signal = signal; + data->source = source; + + callbacks.push_back(data); + + edje_object_signal_callback_add(edje, signal.c_str(), source.c_str(), _edje_object_signal_cb, data); + + return &data->connection; +} + +void EdjeObject::delCallback(sigc::connection *connection) +{ + CHECK_EDJE_RETURN() + + vector::iterator iter = callbacks.begin(); + + for (;iter != callbacks.end();iter++) + { + EdjeCallbackData *data = *iter; + if (&data->connection == connection) + { + edje_object_signal_callback_del(edje, data->signal.c_str(), data->source.c_str(), _edje_object_signal_cb); + + delete data; + callbacks.erase(iter); + + break; + } + } +} + +void EdjeObject::_evasObjectDeleted() +{ + for_each(callbacks.begin(), callbacks.end(), Delete()); + + edje = NULL; + + objectDeleted(); + object_deleted.emit(); + + if (autodelete) + { + //Warning ! We do suicide here. + //Don't do anything here after that call, + //it will mess up the stack + delete this; + } +} + +static void _edje_del(void *data, Evas *e , Evas_Object *obj, void *event_info) +{ + EdjeObject *o = reinterpret_cast(data); + if (!o) return; + + o->_evasObjectDeleted(); +} + +void EdjeObject::_evasObjectShow() +{ + object_shown.emit(); + objectShown(); +} + +static void _edje_show(void *data, Evas *e , Evas_Object *obj, void *event_info) +{ + EdjeObject *o = reinterpret_cast(data); + if (!o) return; + + o->_evasObjectShow(); +} + +void EdjeObject::_evasObjectHide() +{ + object_hidden.emit(); + objectHidden(); +} + +static void _edje_hide(void *data, Evas *e , Evas_Object *obj, void *event_info) +{ + EdjeObject *o = reinterpret_cast(data); + if (!o) return; + + o->_evasObjectHide(); +} + +static void _edje_object_signal_cb(void *data, Evas_Object *obj, const char *emission, const char *source) +{ + EdjeCallbackData *d = reinterpret_cast(data); + if (!d) return; + + d->signal_cb.emit(d->user_data, obj, emission, source); +} + diff --git a/src/bin/calaos_home/EdjeObject.h b/src/bin/calaos_home/EdjeObject.h new file mode 100644 index 00000000..afe841ff --- /dev/null +++ b/src/bin/calaos_home/EdjeObject.h @@ -0,0 +1,133 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef EDJEOBJECT_H +#define EDJEOBJECT_H + + +#include +#include +#include +#include + +using namespace Utils; + +/* Edje signal callback + Prototype is callback(void *data, Evas_Object *edje_object, string emission, string source) +*/ +typedef sigc::slot EdjeCallBack; +typedef sigc::signal EdjeCallBackSignal; + +typedef struct _EdjeCallbackData: public sigc::trackable +{ + EdjeCallBackSignal signal_cb; + sigc::connection connection; + void *user_data; + string signal; + string source; +} EdjeCallbackData; + +#define CHECK_EDJE_RETURN(...) \ + if (!edje) \ + { \ + Utils::logger("root") << Priority::CRIT << "EdjeObject: Edje object NULL ! (" << collection << ")" << log4cpp::eol; \ + return __VA_ARGS__; \ + } + +class EdjeObject: public sigc::trackable +{ + public: + void _evasObjectDeleted(); + void _evasObjectShow(); + void _evasObjectHide(); + + protected: + string theme; //Edje theme filename + string collection; //Edje collection group + + Evas *evas; + Evas_Object *edje; //The edje object + + vector callbacks; + + bool autodelete; //autodelete EdjeObject if Evas_Object is deleted. Be carefull with this + + list swallow_objs; + list swallow_eobjs; + + virtual void objectDeleted() { } + virtual void objectShown() { } + virtual void objectHidden() { } + + public: + EdjeObject(string &_theme, Evas *_evas); + EdjeObject(const char *_theme, Evas *_evas); + virtual ~EdjeObject(); + + //load the edje file + bool LoadEdje(string collection); + + virtual void Show() { CHECK_EDJE_RETURN() evas_object_show(edje); } + virtual void Hide() { CHECK_EDJE_RETURN() evas_object_hide(edje); } + void Move(int x, int y) { CHECK_EDJE_RETURN() evas_object_move(edje, x, y); } + void Resize(int w, int h) { CHECK_EDJE_RETURN() evas_object_resize(edje, w, h); } + + void getGeometry(int *x, int *y, int *w, int *h); + void getSizeMin(int *w, int *h) { CHECK_EDJE_RETURN() edje_object_size_min_get(edje, w, h); } + void getSizeMax(int *w, int *h) { CHECK_EDJE_RETURN() edje_object_size_max_get(edje, w, h); } + + void setLayer(int i) { CHECK_EDJE_RETURN() evas_object_layer_set(edje, i); } + int getLayer() { CHECK_EDJE_RETURN(0) return evas_object_layer_get(edje); } + + void EmitSignal(string signal, string source) { CHECK_EDJE_RETURN() edje_object_signal_emit(edje, signal.c_str(), source.c_str()); } + + void setPartText(string part, string text) { CHECK_EDJE_RETURN() edje_object_part_text_set(edje, part.c_str(), text.c_str()); } + string getPartText(string part); + + void setDragValue(string part, double x, double y) { CHECK_EDJE_RETURN() edje_object_part_drag_value_set(edje, part.c_str(), x, y); } + void getDragValue(string part, double *x, double *y) { CHECK_EDJE_RETURN() edje_object_part_drag_value_get(edje, part.c_str(), x, y); } + + void Swallow(EdjeObject *obj, string part, bool delete_on_del = false); + void Swallow(Evas_Object *obj, string part, bool delete_on_del = false); + + Evas_Object *getEvasObject() { CHECK_EDJE_RETURN(NULL) return edje; } + + void setTheme(string &_theme) { theme = _theme; } + + string getCollection() { return collection; } + + void setAutoDelete(bool autodel) { autodelete = autodel; } + bool getAutoDelete() { return autodelete; } + + sigc::connection *addCallback(string source, string signal, EdjeCallBack slot_cb, void *user_data = NULL); + void delCallback(sigc::connection *connection); + + /* Object was deleted */ + sigc::signal object_deleted; + + /* Object was shown/hidden */ + sigc::signal object_shown; + sigc::signal object_hidden; + + /* Edje signal */ + sigc::signal object_signal; +}; + +#endif // EDJEOBJECT_H diff --git a/src/bin/calaos_home/EvasSmart.cpp b/src/bin/calaos_home/EvasSmart.cpp new file mode 100644 index 00000000..abb36a9b --- /dev/null +++ b/src/bin/calaos_home/EvasSmart.cpp @@ -0,0 +1,163 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +static void _smart_add(Evas_Object *o); +static void _smart_del(Evas_Object *o); +static void _smart_move(Evas_Object *o, Evas_Coord x, Evas_Coord y); +static void _smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h); +static void _smart_show(Evas_Object *o); +static void _smart_hide(Evas_Object *o); +static void _smart_color_set(Evas_Object * o, int r, int g, int b, int a); +static void _smart_clip_set(Evas_Object * o, Evas_Object * clip); +static void _smart_clip_unset(Evas_Object * o); +static void _smart_calculate(Evas_Object * o); +static void _smart_member_add(Evas_Object * o, Evas_Object *child); +static void _smart_member_del(Evas_Object * o, Evas_Object *child); + +EvasSmart::EvasSmart(Evas *evas, string evas_smart_type): + evas_object(NULL), + smart_object(NULL), + member_count(0) +{ + smart_object = EvasSmartClassCreate(evas_smart_type); + + evas_object = evas_object_smart_add(evas, smart_object); + evas_object_smart_data_set(evas_object, this); +} + +Evas_Smart *EvasSmart::EvasSmartClassCreate(string evas_smart_type) +{ + static std::map SmartObjects; + static std::map SmartClasses; + + //try to find the smart class + //if not found create a new one + map::iterator fter = SmartObjects.find(evas_smart_type); + if (fter != SmartObjects.end()) + return SmartObjects[evas_smart_type]; + + Evas_Smart_Class sc = + { + NULL, + EVAS_SMART_CLASS_VERSION, + _smart_add, + _smart_del, + _smart_move, + _smart_resize, + _smart_show, + _smart_hide, + _smart_color_set, + _smart_clip_set, + _smart_clip_unset, + _smart_calculate, + _smart_member_add, + _smart_member_del, + NULL + }; + + sc.name = evas_smart_type.c_str(); + + SmartClasses[evas_smart_type] = sc; + + return (evas_smart_class_new(&SmartClasses[evas_smart_type])); +} + +EvasSmart::~EvasSmart() +{ + if (evas_object) + { + evas_object_del(evas_object); + evas_object = NULL; + } + + evas_smart_free(smart_object); +} + +//C smart objects callbacks +static void _smart_add(Evas_Object *o) +{ +} +static void _smart_del(Evas_Object *o) +{ +} +static void _smart_move(Evas_Object *o, Evas_Coord x, Evas_Coord y) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartMove(x, y); +} +static void _smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartResize(w, h); +} +static void _smart_show(Evas_Object *o) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartShow(); +} +static void _smart_hide(Evas_Object *o) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartHide(); +} +static void _smart_color_set(Evas_Object * o, int r, int g, int b, int a) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartColorSet(r, g, b, a); +} +static void _smart_clip_set(Evas_Object *o, Evas_Object * clip) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartClipSet(clip); +} +static void _smart_clip_unset(Evas_Object *o) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartClipUnset(); +} +static void _smart_calculate(Evas_Object * o) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartCalculate(); +} + +static void _smart_member_add(Evas_Object * o, Evas_Object *child) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartMemberAdd(child); +} + +static void _smart_member_del(Evas_Object * o, Evas_Object *child) +{ + EvasSmart *_esmart = reinterpret_cast(evas_object_smart_data_get(o)); + if (_esmart) + _esmart->SmartMemberDel(child); +} diff --git a/src/bin/calaos_home/EvasSmart.h b/src/bin/calaos_home/EvasSmart.h new file mode 100644 index 00000000..bb0af8f7 --- /dev/null +++ b/src/bin/calaos_home/EvasSmart.h @@ -0,0 +1,63 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef CEVASSMART_H +#define CEVASSMART_H + +#include +#include + +class EvasSmart +{ + protected: + //The main evas object + Evas_Object *evas_object; + + Evas_Smart *smart_object; + + static Evas_Smart *EvasSmartClassCreate(string evas_smart_type); + + //Add a memmber Evas object to the smart object + void AddMemberObject(Evas_Object *obj) + { evas_object_smart_member_add(obj, evas_object); member_count++; } + void DelMemberObject(Evas_Object *obj) + { evas_object_smart_member_del(obj); member_count--; } + + int member_count; + + public: + EvasSmart(Evas *evas, string evas_smart_type); + virtual ~EvasSmart(); + + virtual void SmartMove(int x, int y) { } + virtual void SmartResize(int w, int h) { } + virtual void SmartShow() { } + virtual void SmartHide() { } + virtual void SmartColorSet(int r, int g, int b, int a) { } + virtual void SmartClipSet(Evas_Object *clip) { } + virtual void SmartClipUnset() { } + virtual void SmartCalculate() { } + virtual void SmartMemberAdd(Evas_Object *child) { } + virtual void SmartMemberDel(Evas_Object *child) { } + + Evas_Object *getSmartObject() { return evas_object; } +}; + +#endif diff --git a/src/bin/calaos_home/Makefile.am b/src/bin/calaos_home/Makefile.am new file mode 100644 index 00000000..11b3f20e --- /dev/null +++ b/src/bin/calaos_home/Makefile.am @@ -0,0 +1,199 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CXXFLAGS = \ +-I. \ +-I./Rules \ +-I./IPCam \ +-I./Audio \ +-I./IO \ +-I./IO/libmbus \ +-I./Scenario \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DPACKAGE_DATA_DIR=\"$(datadir)/calaos\" \ +-I$(top_srcdir)/src/lib \ +-I$(top_srcdir)/src/lib/LuaScript \ +-I$(top_srcdir)/src/bin/calaos_home/controllers \ +-I$(top_srcdir)/src/bin/calaos_home/views \ +-I$(top_srcdir)/src/bin/calaos_home/views/GenlistItems \ +-I$(top_srcdir)/src/bin/calaos_home/views/IO \ +-I$(top_srcdir)/src/bin/calaos_home/models \ +@CALAOS_COMMON_CFLAGS@ \ +@CALAOS_HOME_CFLAGS@ \ +-DETC_DIR=\"/etc\" \ +-DLIBMBUS \ +-DTHEME_DIR=\"/usr/share/calaos\" + +bin_PROGRAMS = calaos_home + +calaos_home_SOURCES = \ + main.cpp \ + CommonUtils.cpp \ + views/BaseView.cpp \ + views/MainContentView.cpp \ + ApplicationMain.cpp \ + controllers/ApplicationController.cpp \ + views/ActivityView.cpp \ + views/ActivityHomeView.cpp \ + views/ActivityMediaView.cpp \ + views/ActivityScenariosView.cpp \ + views/ActivityConfigView.cpp \ + views/ActivityWidgetsView.cpp \ + views/ActivityMediaMenuView.cpp \ + views/ActivityKeyboardView.cpp \ + views/ActivityWebView.cpp \ + controllers/ActivityController.cpp \ + controllers/ActivityHomeController.cpp \ + controllers/ActivityMediaController.cpp \ + controllers/ActivityScenariosController.cpp \ + controllers/ActivityConfigController.cpp \ + controllers/ActivityWidgetsController.cpp \ + controllers/ActivityMediaMenuController.cpp \ + controllers/ActivityKeyboardController.cpp \ + controllers/ActivityWebController.cpp \ + views/IO/IOScenarioHomeView.cpp \ + views/IOView.cpp \ + EdjeObject.cpp \ + views/MainMenuView.cpp \ + CalaosDiscover.cpp \ + CalaosConnection.cpp \ + CalaosListener.cpp \ + models/CalaosModel.cpp \ + models/AudioModel.cpp \ + models/CameraModel.cpp \ + models/RoomModel.cpp \ + models/ScenarioModel.cpp \ + views/GenlistItems/GenlistItemBase.cpp \ + views/GenlistItems/GenlistItemSimple.cpp \ + views/GenlistItems/GenlistItemSimpleHeader.cpp \ + views/IO/IOWODigitalHomeView.cpp \ + views/IO/IOWODaliHomeView.cpp \ + views/IO/IOInternalBoolHomeView.cpp \ + views/IO/IOInternalIntHomeView.cpp \ + views/IO/IOInternalStringHomeView.cpp \ + views/IO/IOWODaliRVBHomeView.cpp \ + views/IO/IOGenlistScenarioHomeView.cpp \ + views/IO/IOWIAnalogHomeView.cpp \ + views/IO/IOWOAnalogHomeView.cpp \ + views/IO/IOWITempHomeView.cpp \ + views/IO/IOWOVoletHomeView.cpp \ + views/IO/IOWOVoletSmartHomeView.cpp \ + views/IO/IOGenlistRoomGroup.cpp \ + views/GenlistItems/GenlistItemPlaylist.cpp \ + views/GenlistItems/GenlistItemAlbum.cpp \ + views/GenlistItems/GenlistItemAlbumHeader.cpp \ + views/GenlistItems/GenlistItemTrack.cpp \ + views/GenlistItems/GenlistItemArtist.cpp \ + views/GenlistItems/GenlistItemYear.cpp \ + views/GenlistItems/GenlistItemGenre.cpp \ + views/GenlistItems/GenlistItemBrowserPlaylist.cpp \ + views/GenlistItems/GenlistItemPlaylistHeader.cpp \ + views/GenlistItems/GenlistItemRadio.cpp \ + views/GenlistItems/GenlistItemScenarioSchedule.cpp \ + views/GenlistItems/GenlistItemScenarioScheduleTime.cpp \ + views/GenlistItems/GenlistItemScenarioAction.cpp \ + views/GenlistItems/GenlistItemScenarioHeader.cpp \ + views/PagingView.cpp \ + views/KeyboardView.cpp \ + EvasSmart.cpp \ + views/ActivityCameraListView.cpp \ + views/ActivityCameraSelectView.cpp \ + views/ActivityAudioListView.cpp \ + views/ActivityAudioPlayerObject.cpp \ + controllers/ActivityCameraListController.cpp \ + controllers/ActivityCameraSelectController.cpp \ + controllers/ActivityAudioListController.cpp \ + views/ActivityEditScenarioView.cpp \ + views/ActivityScheduleScenarioView.cpp \ + controllers/ActivityEditScenarioController.cpp \ + controllers/ActivityScheduleScenarioController.cpp \ + Modules.cpp \ + views/Widget.cpp \ + views/ActivityKeyboardView.h \ + views/ActivityMediaMenuView.h \ + views/ActivityScenariosView.h \ + views/ActivityScheduleScenarioView.h \ + views/ActivityWebView.h \ + views/ActivityConfigView.h \ + views/ActivityWidgetsView.h \ + views/MainContentView.h \ + views/PagingView.h \ + views/ActivityCameraListView.h \ + views/ActivityCameraSelectView.h \ + views/BaseView.h \ + views/MainMenuView.h \ + views/ActivityView.h \ + views/ActivityMediaView.h \ + views/KeyboardView.h \ + views/GenlistItems/GenlistItemBase.h \ + views/GenlistItems/GenlistItemArtist.h \ + views/GenlistItems/GenlistItemRadio.h \ + views/GenlistItems/GenlistItemScenarioScheduleTime.h \ + views/GenlistItems/GenlistItemScenarioHeader.h \ + views/GenlistItems/GenlistItemBrowserPlaylist.h \ + views/GenlistItems/GenlistItemAlbum.h \ + views/GenlistItems/GenlistItemScenarioSchedule.h \ + views/GenlistItems/GenlistItemSimpleHeader.h \ + views/GenlistItems/GenlistItemSimple.h \ + views/GenlistItems/GenlistItemGenre.h \ + views/GenlistItems/GenlistItemPlaylist.h \ + views/GenlistItems/GenlistItemScenarioAction.h \ + views/GenlistItems/GenlistItemYear.h \ + views/GenlistItems/GenlistItemPlaylistHeader.h \ + views/GenlistItems/GenlistItemAlbumHeader.h \ + views/GenlistItems/GenlistItemTrack.h \ + views/WebKitError.h \ + views/Widget.h \ + views/ActivityAudioListView.h \ + views/IO/IOWODaliHomeView.h \ + views/IO/IOWODigitalHomeView.h \ + views/IO/IOWODaliRVBHomeView.h \ + views/IO/IOScenarioHomeView.h \ + views/IO/IOWIAnalogHomeView.h \ + views/IO/IOGenlistRoomGroup.h \ + views/IO/IOInternalBoolHomeView.h \ + views/IO/IOWOAnalogHomeView.h \ + views/IO/IOInternalStringHomeView.h \ + views/IO/IOGenlistScenarioHomeView.h \ + views/IO/IOWOVoletSmartHomeView.h \ + views/IO/IOWOVoletHomeView.h \ + views/IO/IOWITempHomeView.h \ + views/IO/IOInternalIntHomeView.h \ + views/ActivityAudioPlayerObject.h \ + views/ActivityHomeView.h \ + views/IOView.h \ + views/ActivityEditScenarioView.h \ + controllers/ActivityAudioListController.h \ + controllers/ActivityKeyboardController.h \ + controllers/ActivityMediaController.h \ + controllers/ActivityWidgetsController.h \ + controllers/ActivityHomeController.h \ + controllers/ActivityWebController.h \ + controllers/ActivityMediaMenuController.h \ + controllers/ActivityController.h \ + controllers/ActivityEditScenarioController.h \ + controllers/ActivityCameraListController.h \ + controllers/ActivityScenariosController.h \ + controllers/ActivityConfigController.h \ + controllers/ActivityScheduleScenarioController.h \ + controllers/ApplicationController.h \ + controllers/ActivityCameraSelectController.h \ + CalaosListener.h \ + CommonUtils.h \ + models/ScenarioModel.h \ + models/CalaosModel.h \ + models/AudioModel.h \ + models/CameraModel.h \ + models/RoomModel.h \ + CalaosConnection.h \ + EdjeObject.h \ + Modules.h \ + CalaosDiscover.h \ + EvasSmart.h \ + ApplicationMain.h + +calaos_home_LDADD = \ + $(top_builddir)/src/lib/libcalaos_common.la \ + @CALAOS_HOME_LIBS@ \ + @CALAOS_COMMON_LIBS@ diff --git a/src/bin/calaos_home/Makefile.in b/src/bin/calaos_home/Makefile.in new file mode 100644 index 00000000..3b9eb86c --- /dev/null +++ b/src/bin/calaos_home/Makefile.in @@ -0,0 +1,1913 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = calaos_home$(EXEEXT) +subdir = src/bin/calaos_home +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 = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +PROGRAMS = $(bin_PROGRAMS) +am_calaos_home_OBJECTS = main.$(OBJEXT) CommonUtils.$(OBJEXT) \ + BaseView.$(OBJEXT) MainContentView.$(OBJEXT) \ + ApplicationMain.$(OBJEXT) ApplicationController.$(OBJEXT) \ + ActivityView.$(OBJEXT) ActivityHomeView.$(OBJEXT) \ + ActivityMediaView.$(OBJEXT) ActivityScenariosView.$(OBJEXT) \ + ActivityConfigView.$(OBJEXT) ActivityWidgetsView.$(OBJEXT) \ + ActivityMediaMenuView.$(OBJEXT) ActivityKeyboardView.$(OBJEXT) \ + ActivityWebView.$(OBJEXT) ActivityController.$(OBJEXT) \ + ActivityHomeController.$(OBJEXT) \ + ActivityMediaController.$(OBJEXT) \ + ActivityScenariosController.$(OBJEXT) \ + ActivityConfigController.$(OBJEXT) \ + ActivityWidgetsController.$(OBJEXT) \ + ActivityMediaMenuController.$(OBJEXT) \ + ActivityKeyboardController.$(OBJEXT) \ + ActivityWebController.$(OBJEXT) IOScenarioHomeView.$(OBJEXT) \ + IOView.$(OBJEXT) EdjeObject.$(OBJEXT) MainMenuView.$(OBJEXT) \ + CalaosDiscover.$(OBJEXT) CalaosConnection.$(OBJEXT) \ + CalaosListener.$(OBJEXT) CalaosModel.$(OBJEXT) \ + AudioModel.$(OBJEXT) CameraModel.$(OBJEXT) RoomModel.$(OBJEXT) \ + ScenarioModel.$(OBJEXT) GenlistItemBase.$(OBJEXT) \ + GenlistItemSimple.$(OBJEXT) GenlistItemSimpleHeader.$(OBJEXT) \ + IOWODigitalHomeView.$(OBJEXT) IOWODaliHomeView.$(OBJEXT) \ + IOInternalBoolHomeView.$(OBJEXT) \ + IOInternalIntHomeView.$(OBJEXT) \ + IOInternalStringHomeView.$(OBJEXT) \ + IOWODaliRVBHomeView.$(OBJEXT) \ + IOGenlistScenarioHomeView.$(OBJEXT) \ + IOWIAnalogHomeView.$(OBJEXT) IOWOAnalogHomeView.$(OBJEXT) \ + IOWITempHomeView.$(OBJEXT) IOWOVoletHomeView.$(OBJEXT) \ + IOWOVoletSmartHomeView.$(OBJEXT) IOGenlistRoomGroup.$(OBJEXT) \ + GenlistItemPlaylist.$(OBJEXT) GenlistItemAlbum.$(OBJEXT) \ + GenlistItemAlbumHeader.$(OBJEXT) GenlistItemTrack.$(OBJEXT) \ + GenlistItemArtist.$(OBJEXT) GenlistItemYear.$(OBJEXT) \ + GenlistItemGenre.$(OBJEXT) \ + GenlistItemBrowserPlaylist.$(OBJEXT) \ + GenlistItemPlaylistHeader.$(OBJEXT) GenlistItemRadio.$(OBJEXT) \ + GenlistItemScenarioSchedule.$(OBJEXT) \ + GenlistItemScenarioScheduleTime.$(OBJEXT) \ + GenlistItemScenarioAction.$(OBJEXT) \ + GenlistItemScenarioHeader.$(OBJEXT) PagingView.$(OBJEXT) \ + KeyboardView.$(OBJEXT) EvasSmart.$(OBJEXT) \ + ActivityCameraListView.$(OBJEXT) \ + ActivityCameraSelectView.$(OBJEXT) \ + ActivityAudioListView.$(OBJEXT) \ + ActivityAudioPlayerObject.$(OBJEXT) \ + ActivityCameraListController.$(OBJEXT) \ + ActivityCameraSelectController.$(OBJEXT) \ + ActivityAudioListController.$(OBJEXT) \ + ActivityEditScenarioView.$(OBJEXT) \ + ActivityScheduleScenarioView.$(OBJEXT) \ + ActivityEditScenarioController.$(OBJEXT) \ + ActivityScheduleScenarioController.$(OBJEXT) Modules.$(OBJEXT) \ + Widget.$(OBJEXT) +calaos_home_OBJECTS = $(am_calaos_home_OBJECTS) +calaos_home_DEPENDENCIES = \ + $(top_builddir)/src/lib/libcalaos_common.la +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +SOURCES = $(calaos_home_SOURCES) +DIST_SOURCES = $(calaos_home_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +MAINTAINERCLEANFILES = Makefile.in +AM_CXXFLAGS = \ +-I. \ +-I./Rules \ +-I./IPCam \ +-I./Audio \ +-I./IO \ +-I./IO/libmbus \ +-I./Scenario \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DPACKAGE_DATA_DIR=\"$(datadir)/calaos\" \ +-I$(top_srcdir)/src/lib \ +-I$(top_srcdir)/src/lib/LuaScript \ +-I$(top_srcdir)/src/bin/calaos_home/controllers \ +-I$(top_srcdir)/src/bin/calaos_home/views \ +-I$(top_srcdir)/src/bin/calaos_home/views/GenlistItems \ +-I$(top_srcdir)/src/bin/calaos_home/views/IO \ +-I$(top_srcdir)/src/bin/calaos_home/models \ +@CALAOS_COMMON_CFLAGS@ \ +@CALAOS_HOME_CFLAGS@ \ +-DETC_DIR=\"/etc\" \ +-DLIBMBUS \ +-DTHEME_DIR=\"/usr/share/calaos\" + +calaos_home_SOURCES = \ + main.cpp \ + CommonUtils.cpp \ + views/BaseView.cpp \ + views/MainContentView.cpp \ + ApplicationMain.cpp \ + controllers/ApplicationController.cpp \ + views/ActivityView.cpp \ + views/ActivityHomeView.cpp \ + views/ActivityMediaView.cpp \ + views/ActivityScenariosView.cpp \ + views/ActivityConfigView.cpp \ + views/ActivityWidgetsView.cpp \ + views/ActivityMediaMenuView.cpp \ + views/ActivityKeyboardView.cpp \ + views/ActivityWebView.cpp \ + controllers/ActivityController.cpp \ + controllers/ActivityHomeController.cpp \ + controllers/ActivityMediaController.cpp \ + controllers/ActivityScenariosController.cpp \ + controllers/ActivityConfigController.cpp \ + controllers/ActivityWidgetsController.cpp \ + controllers/ActivityMediaMenuController.cpp \ + controllers/ActivityKeyboardController.cpp \ + controllers/ActivityWebController.cpp \ + views/IO/IOScenarioHomeView.cpp \ + views/IOView.cpp \ + EdjeObject.cpp \ + views/MainMenuView.cpp \ + CalaosDiscover.cpp \ + CalaosConnection.cpp \ + CalaosListener.cpp \ + models/CalaosModel.cpp \ + models/AudioModel.cpp \ + models/CameraModel.cpp \ + models/RoomModel.cpp \ + models/ScenarioModel.cpp \ + views/GenlistItems/GenlistItemBase.cpp \ + views/GenlistItems/GenlistItemSimple.cpp \ + views/GenlistItems/GenlistItemSimpleHeader.cpp \ + views/IO/IOWODigitalHomeView.cpp \ + views/IO/IOWODaliHomeView.cpp \ + views/IO/IOInternalBoolHomeView.cpp \ + views/IO/IOInternalIntHomeView.cpp \ + views/IO/IOInternalStringHomeView.cpp \ + views/IO/IOWODaliRVBHomeView.cpp \ + views/IO/IOGenlistScenarioHomeView.cpp \ + views/IO/IOWIAnalogHomeView.cpp \ + views/IO/IOWOAnalogHomeView.cpp \ + views/IO/IOWITempHomeView.cpp \ + views/IO/IOWOVoletHomeView.cpp \ + views/IO/IOWOVoletSmartHomeView.cpp \ + views/IO/IOGenlistRoomGroup.cpp \ + views/GenlistItems/GenlistItemPlaylist.cpp \ + views/GenlistItems/GenlistItemAlbum.cpp \ + views/GenlistItems/GenlistItemAlbumHeader.cpp \ + views/GenlistItems/GenlistItemTrack.cpp \ + views/GenlistItems/GenlistItemArtist.cpp \ + views/GenlistItems/GenlistItemYear.cpp \ + views/GenlistItems/GenlistItemGenre.cpp \ + views/GenlistItems/GenlistItemBrowserPlaylist.cpp \ + views/GenlistItems/GenlistItemPlaylistHeader.cpp \ + views/GenlistItems/GenlistItemRadio.cpp \ + views/GenlistItems/GenlistItemScenarioSchedule.cpp \ + views/GenlistItems/GenlistItemScenarioScheduleTime.cpp \ + views/GenlistItems/GenlistItemScenarioAction.cpp \ + views/GenlistItems/GenlistItemScenarioHeader.cpp \ + views/PagingView.cpp \ + views/KeyboardView.cpp \ + EvasSmart.cpp \ + views/ActivityCameraListView.cpp \ + views/ActivityCameraSelectView.cpp \ + views/ActivityAudioListView.cpp \ + views/ActivityAudioPlayerObject.cpp \ + controllers/ActivityCameraListController.cpp \ + controllers/ActivityCameraSelectController.cpp \ + controllers/ActivityAudioListController.cpp \ + views/ActivityEditScenarioView.cpp \ + views/ActivityScheduleScenarioView.cpp \ + controllers/ActivityEditScenarioController.cpp \ + controllers/ActivityScheduleScenarioController.cpp \ + Modules.cpp \ + views/Widget.cpp \ + views/ActivityKeyboardView.h \ + views/ActivityMediaMenuView.h \ + views/ActivityScenariosView.h \ + views/ActivityScheduleScenarioView.h \ + views/ActivityWebView.h \ + views/ActivityConfigView.h \ + views/ActivityWidgetsView.h \ + views/MainContentView.h \ + views/PagingView.h \ + views/ActivityCameraListView.h \ + views/ActivityCameraSelectView.h \ + views/BaseView.h \ + views/MainMenuView.h \ + views/ActivityView.h \ + views/ActivityMediaView.h \ + views/KeyboardView.h \ + views/GenlistItems/GenlistItemBase.h \ + views/GenlistItems/GenlistItemArtist.h \ + views/GenlistItems/GenlistItemRadio.h \ + views/GenlistItems/GenlistItemScenarioScheduleTime.h \ + views/GenlistItems/GenlistItemScenarioHeader.h \ + views/GenlistItems/GenlistItemBrowserPlaylist.h \ + views/GenlistItems/GenlistItemAlbum.h \ + views/GenlistItems/GenlistItemScenarioSchedule.h \ + views/GenlistItems/GenlistItemSimpleHeader.h \ + views/GenlistItems/GenlistItemSimple.h \ + views/GenlistItems/GenlistItemGenre.h \ + views/GenlistItems/GenlistItemPlaylist.h \ + views/GenlistItems/GenlistItemScenarioAction.h \ + views/GenlistItems/GenlistItemYear.h \ + views/GenlistItems/GenlistItemPlaylistHeader.h \ + views/GenlistItems/GenlistItemAlbumHeader.h \ + views/GenlistItems/GenlistItemTrack.h \ + views/WebKitError.h \ + views/Widget.h \ + views/ActivityAudioListView.h \ + views/IO/IOWODaliHomeView.h \ + views/IO/IOWODigitalHomeView.h \ + views/IO/IOWODaliRVBHomeView.h \ + views/IO/IOScenarioHomeView.h \ + views/IO/IOWIAnalogHomeView.h \ + views/IO/IOGenlistRoomGroup.h \ + views/IO/IOInternalBoolHomeView.h \ + views/IO/IOWOAnalogHomeView.h \ + views/IO/IOInternalStringHomeView.h \ + views/IO/IOGenlistScenarioHomeView.h \ + views/IO/IOWOVoletSmartHomeView.h \ + views/IO/IOWOVoletHomeView.h \ + views/IO/IOWITempHomeView.h \ + views/IO/IOInternalIntHomeView.h \ + views/ActivityAudioPlayerObject.h \ + views/ActivityHomeView.h \ + views/IOView.h \ + views/ActivityEditScenarioView.h \ + controllers/ActivityAudioListController.h \ + controllers/ActivityKeyboardController.h \ + controllers/ActivityMediaController.h \ + controllers/ActivityWidgetsController.h \ + controllers/ActivityHomeController.h \ + controllers/ActivityWebController.h \ + controllers/ActivityMediaMenuController.h \ + controllers/ActivityController.h \ + controllers/ActivityEditScenarioController.h \ + controllers/ActivityCameraListController.h \ + controllers/ActivityScenariosController.h \ + controllers/ActivityConfigController.h \ + controllers/ActivityScheduleScenarioController.h \ + controllers/ApplicationController.h \ + controllers/ActivityCameraSelectController.h \ + CalaosListener.h \ + CommonUtils.h \ + models/ScenarioModel.h \ + models/CalaosModel.h \ + models/AudioModel.h \ + models/CameraModel.h \ + models/RoomModel.h \ + CalaosConnection.h \ + EdjeObject.h \ + Modules.h \ + CalaosDiscover.h \ + EvasSmart.h \ + ApplicationMain.h + +calaos_home_LDADD = \ + $(top_builddir)/src/lib/libcalaos_common.la \ + @CALAOS_HOME_LIBS@ \ + @CALAOS_COMMON_LIBS@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .cpp .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/bin/calaos_home/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/bin/calaos_home/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +calaos_home$(EXEEXT): $(calaos_home_OBJECTS) $(calaos_home_DEPENDENCIES) $(EXTRA_calaos_home_DEPENDENCIES) + @rm -f calaos_home$(EXEEXT) + $(AM_V_CXXLD)$(CXXLINK) $(calaos_home_OBJECTS) $(calaos_home_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityAudioListController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityAudioListView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityAudioPlayerObject.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityCameraListController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityCameraListView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityCameraSelectController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityCameraSelectView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityConfigController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityConfigView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityEditScenarioController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityEditScenarioView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityHomeController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityKeyboardController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityKeyboardView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityMediaController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityMediaMenuController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityMediaMenuView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityMediaView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityScenariosController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityScenariosView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityScheduleScenarioController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityScheduleScenarioView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityWebController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityWebView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityWidgetsController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActivityWidgetsView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ApplicationController.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ApplicationMain.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioModel.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/BaseView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CalaosConnection.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CalaosDiscover.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CalaosListener.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CalaosModel.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CameraModel.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CommonUtils.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EdjeObject.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EvasSmart.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemAlbum.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemAlbumHeader.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemArtist.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemBase.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemBrowserPlaylist.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemGenre.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemPlaylist.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemPlaylistHeader.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemRadio.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemScenarioAction.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemScenarioHeader.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemScenarioSchedule.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemScenarioScheduleTime.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemSimple.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemSimpleHeader.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemTrack.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GenlistItemYear.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOGenlistRoomGroup.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOGenlistScenarioHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOInternalBoolHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOInternalIntHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOInternalStringHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOScenarioHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWIAnalogHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWITempHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWOAnalogHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWODaliHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWODaliRVBHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWODigitalHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWOVoletHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOWOVoletSmartHomeView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/KeyboardView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MainContentView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MainMenuView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Modules.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PagingView.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RoomModel.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ScenarioModel.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Widget.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ + +.cpp.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< + +BaseView.o: views/BaseView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT BaseView.o -MD -MP -MF $(DEPDIR)/BaseView.Tpo -c -o BaseView.o `test -f 'views/BaseView.cpp' || echo '$(srcdir)/'`views/BaseView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/BaseView.Tpo $(DEPDIR)/BaseView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/BaseView.cpp' object='BaseView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o BaseView.o `test -f 'views/BaseView.cpp' || echo '$(srcdir)/'`views/BaseView.cpp + +BaseView.obj: views/BaseView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT BaseView.obj -MD -MP -MF $(DEPDIR)/BaseView.Tpo -c -o BaseView.obj `if test -f 'views/BaseView.cpp'; then $(CYGPATH_W) 'views/BaseView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/BaseView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/BaseView.Tpo $(DEPDIR)/BaseView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/BaseView.cpp' object='BaseView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o BaseView.obj `if test -f 'views/BaseView.cpp'; then $(CYGPATH_W) 'views/BaseView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/BaseView.cpp'; fi` + +MainContentView.o: views/MainContentView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MainContentView.o -MD -MP -MF $(DEPDIR)/MainContentView.Tpo -c -o MainContentView.o `test -f 'views/MainContentView.cpp' || echo '$(srcdir)/'`views/MainContentView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/MainContentView.Tpo $(DEPDIR)/MainContentView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/MainContentView.cpp' object='MainContentView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MainContentView.o `test -f 'views/MainContentView.cpp' || echo '$(srcdir)/'`views/MainContentView.cpp + +MainContentView.obj: views/MainContentView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MainContentView.obj -MD -MP -MF $(DEPDIR)/MainContentView.Tpo -c -o MainContentView.obj `if test -f 'views/MainContentView.cpp'; then $(CYGPATH_W) 'views/MainContentView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/MainContentView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/MainContentView.Tpo $(DEPDIR)/MainContentView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/MainContentView.cpp' object='MainContentView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MainContentView.obj `if test -f 'views/MainContentView.cpp'; then $(CYGPATH_W) 'views/MainContentView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/MainContentView.cpp'; fi` + +ApplicationController.o: controllers/ApplicationController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ApplicationController.o -MD -MP -MF $(DEPDIR)/ApplicationController.Tpo -c -o ApplicationController.o `test -f 'controllers/ApplicationController.cpp' || echo '$(srcdir)/'`controllers/ApplicationController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ApplicationController.Tpo $(DEPDIR)/ApplicationController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ApplicationController.cpp' object='ApplicationController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ApplicationController.o `test -f 'controllers/ApplicationController.cpp' || echo '$(srcdir)/'`controllers/ApplicationController.cpp + +ApplicationController.obj: controllers/ApplicationController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ApplicationController.obj -MD -MP -MF $(DEPDIR)/ApplicationController.Tpo -c -o ApplicationController.obj `if test -f 'controllers/ApplicationController.cpp'; then $(CYGPATH_W) 'controllers/ApplicationController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ApplicationController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ApplicationController.Tpo $(DEPDIR)/ApplicationController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ApplicationController.cpp' object='ApplicationController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ApplicationController.obj `if test -f 'controllers/ApplicationController.cpp'; then $(CYGPATH_W) 'controllers/ApplicationController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ApplicationController.cpp'; fi` + +ActivityView.o: views/ActivityView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityView.o -MD -MP -MF $(DEPDIR)/ActivityView.Tpo -c -o ActivityView.o `test -f 'views/ActivityView.cpp' || echo '$(srcdir)/'`views/ActivityView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityView.Tpo $(DEPDIR)/ActivityView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityView.cpp' object='ActivityView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityView.o `test -f 'views/ActivityView.cpp' || echo '$(srcdir)/'`views/ActivityView.cpp + +ActivityView.obj: views/ActivityView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityView.obj -MD -MP -MF $(DEPDIR)/ActivityView.Tpo -c -o ActivityView.obj `if test -f 'views/ActivityView.cpp'; then $(CYGPATH_W) 'views/ActivityView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityView.Tpo $(DEPDIR)/ActivityView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityView.cpp' object='ActivityView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityView.obj `if test -f 'views/ActivityView.cpp'; then $(CYGPATH_W) 'views/ActivityView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityView.cpp'; fi` + +ActivityHomeView.o: views/ActivityHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityHomeView.o -MD -MP -MF $(DEPDIR)/ActivityHomeView.Tpo -c -o ActivityHomeView.o `test -f 'views/ActivityHomeView.cpp' || echo '$(srcdir)/'`views/ActivityHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityHomeView.Tpo $(DEPDIR)/ActivityHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityHomeView.cpp' object='ActivityHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityHomeView.o `test -f 'views/ActivityHomeView.cpp' || echo '$(srcdir)/'`views/ActivityHomeView.cpp + +ActivityHomeView.obj: views/ActivityHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityHomeView.obj -MD -MP -MF $(DEPDIR)/ActivityHomeView.Tpo -c -o ActivityHomeView.obj `if test -f 'views/ActivityHomeView.cpp'; then $(CYGPATH_W) 'views/ActivityHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityHomeView.Tpo $(DEPDIR)/ActivityHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityHomeView.cpp' object='ActivityHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityHomeView.obj `if test -f 'views/ActivityHomeView.cpp'; then $(CYGPATH_W) 'views/ActivityHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityHomeView.cpp'; fi` + +ActivityMediaView.o: views/ActivityMediaView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaView.o -MD -MP -MF $(DEPDIR)/ActivityMediaView.Tpo -c -o ActivityMediaView.o `test -f 'views/ActivityMediaView.cpp' || echo '$(srcdir)/'`views/ActivityMediaView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaView.Tpo $(DEPDIR)/ActivityMediaView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityMediaView.cpp' object='ActivityMediaView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaView.o `test -f 'views/ActivityMediaView.cpp' || echo '$(srcdir)/'`views/ActivityMediaView.cpp + +ActivityMediaView.obj: views/ActivityMediaView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaView.obj -MD -MP -MF $(DEPDIR)/ActivityMediaView.Tpo -c -o ActivityMediaView.obj `if test -f 'views/ActivityMediaView.cpp'; then $(CYGPATH_W) 'views/ActivityMediaView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityMediaView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaView.Tpo $(DEPDIR)/ActivityMediaView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityMediaView.cpp' object='ActivityMediaView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaView.obj `if test -f 'views/ActivityMediaView.cpp'; then $(CYGPATH_W) 'views/ActivityMediaView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityMediaView.cpp'; fi` + +ActivityScenariosView.o: views/ActivityScenariosView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScenariosView.o -MD -MP -MF $(DEPDIR)/ActivityScenariosView.Tpo -c -o ActivityScenariosView.o `test -f 'views/ActivityScenariosView.cpp' || echo '$(srcdir)/'`views/ActivityScenariosView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScenariosView.Tpo $(DEPDIR)/ActivityScenariosView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityScenariosView.cpp' object='ActivityScenariosView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScenariosView.o `test -f 'views/ActivityScenariosView.cpp' || echo '$(srcdir)/'`views/ActivityScenariosView.cpp + +ActivityScenariosView.obj: views/ActivityScenariosView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScenariosView.obj -MD -MP -MF $(DEPDIR)/ActivityScenariosView.Tpo -c -o ActivityScenariosView.obj `if test -f 'views/ActivityScenariosView.cpp'; then $(CYGPATH_W) 'views/ActivityScenariosView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityScenariosView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScenariosView.Tpo $(DEPDIR)/ActivityScenariosView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityScenariosView.cpp' object='ActivityScenariosView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScenariosView.obj `if test -f 'views/ActivityScenariosView.cpp'; then $(CYGPATH_W) 'views/ActivityScenariosView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityScenariosView.cpp'; fi` + +ActivityConfigView.o: views/ActivityConfigView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityConfigView.o -MD -MP -MF $(DEPDIR)/ActivityConfigView.Tpo -c -o ActivityConfigView.o `test -f 'views/ActivityConfigView.cpp' || echo '$(srcdir)/'`views/ActivityConfigView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityConfigView.Tpo $(DEPDIR)/ActivityConfigView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityConfigView.cpp' object='ActivityConfigView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityConfigView.o `test -f 'views/ActivityConfigView.cpp' || echo '$(srcdir)/'`views/ActivityConfigView.cpp + +ActivityConfigView.obj: views/ActivityConfigView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityConfigView.obj -MD -MP -MF $(DEPDIR)/ActivityConfigView.Tpo -c -o ActivityConfigView.obj `if test -f 'views/ActivityConfigView.cpp'; then $(CYGPATH_W) 'views/ActivityConfigView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityConfigView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityConfigView.Tpo $(DEPDIR)/ActivityConfigView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityConfigView.cpp' object='ActivityConfigView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityConfigView.obj `if test -f 'views/ActivityConfigView.cpp'; then $(CYGPATH_W) 'views/ActivityConfigView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityConfigView.cpp'; fi` + +ActivityWidgetsView.o: views/ActivityWidgetsView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWidgetsView.o -MD -MP -MF $(DEPDIR)/ActivityWidgetsView.Tpo -c -o ActivityWidgetsView.o `test -f 'views/ActivityWidgetsView.cpp' || echo '$(srcdir)/'`views/ActivityWidgetsView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWidgetsView.Tpo $(DEPDIR)/ActivityWidgetsView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityWidgetsView.cpp' object='ActivityWidgetsView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWidgetsView.o `test -f 'views/ActivityWidgetsView.cpp' || echo '$(srcdir)/'`views/ActivityWidgetsView.cpp + +ActivityWidgetsView.obj: views/ActivityWidgetsView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWidgetsView.obj -MD -MP -MF $(DEPDIR)/ActivityWidgetsView.Tpo -c -o ActivityWidgetsView.obj `if test -f 'views/ActivityWidgetsView.cpp'; then $(CYGPATH_W) 'views/ActivityWidgetsView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityWidgetsView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWidgetsView.Tpo $(DEPDIR)/ActivityWidgetsView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityWidgetsView.cpp' object='ActivityWidgetsView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWidgetsView.obj `if test -f 'views/ActivityWidgetsView.cpp'; then $(CYGPATH_W) 'views/ActivityWidgetsView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityWidgetsView.cpp'; fi` + +ActivityMediaMenuView.o: views/ActivityMediaMenuView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaMenuView.o -MD -MP -MF $(DEPDIR)/ActivityMediaMenuView.Tpo -c -o ActivityMediaMenuView.o `test -f 'views/ActivityMediaMenuView.cpp' || echo '$(srcdir)/'`views/ActivityMediaMenuView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaMenuView.Tpo $(DEPDIR)/ActivityMediaMenuView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityMediaMenuView.cpp' object='ActivityMediaMenuView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaMenuView.o `test -f 'views/ActivityMediaMenuView.cpp' || echo '$(srcdir)/'`views/ActivityMediaMenuView.cpp + +ActivityMediaMenuView.obj: views/ActivityMediaMenuView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaMenuView.obj -MD -MP -MF $(DEPDIR)/ActivityMediaMenuView.Tpo -c -o ActivityMediaMenuView.obj `if test -f 'views/ActivityMediaMenuView.cpp'; then $(CYGPATH_W) 'views/ActivityMediaMenuView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityMediaMenuView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaMenuView.Tpo $(DEPDIR)/ActivityMediaMenuView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityMediaMenuView.cpp' object='ActivityMediaMenuView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaMenuView.obj `if test -f 'views/ActivityMediaMenuView.cpp'; then $(CYGPATH_W) 'views/ActivityMediaMenuView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityMediaMenuView.cpp'; fi` + +ActivityKeyboardView.o: views/ActivityKeyboardView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityKeyboardView.o -MD -MP -MF $(DEPDIR)/ActivityKeyboardView.Tpo -c -o ActivityKeyboardView.o `test -f 'views/ActivityKeyboardView.cpp' || echo '$(srcdir)/'`views/ActivityKeyboardView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityKeyboardView.Tpo $(DEPDIR)/ActivityKeyboardView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityKeyboardView.cpp' object='ActivityKeyboardView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityKeyboardView.o `test -f 'views/ActivityKeyboardView.cpp' || echo '$(srcdir)/'`views/ActivityKeyboardView.cpp + +ActivityKeyboardView.obj: views/ActivityKeyboardView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityKeyboardView.obj -MD -MP -MF $(DEPDIR)/ActivityKeyboardView.Tpo -c -o ActivityKeyboardView.obj `if test -f 'views/ActivityKeyboardView.cpp'; then $(CYGPATH_W) 'views/ActivityKeyboardView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityKeyboardView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityKeyboardView.Tpo $(DEPDIR)/ActivityKeyboardView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityKeyboardView.cpp' object='ActivityKeyboardView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityKeyboardView.obj `if test -f 'views/ActivityKeyboardView.cpp'; then $(CYGPATH_W) 'views/ActivityKeyboardView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityKeyboardView.cpp'; fi` + +ActivityWebView.o: views/ActivityWebView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWebView.o -MD -MP -MF $(DEPDIR)/ActivityWebView.Tpo -c -o ActivityWebView.o `test -f 'views/ActivityWebView.cpp' || echo '$(srcdir)/'`views/ActivityWebView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWebView.Tpo $(DEPDIR)/ActivityWebView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityWebView.cpp' object='ActivityWebView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWebView.o `test -f 'views/ActivityWebView.cpp' || echo '$(srcdir)/'`views/ActivityWebView.cpp + +ActivityWebView.obj: views/ActivityWebView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWebView.obj -MD -MP -MF $(DEPDIR)/ActivityWebView.Tpo -c -o ActivityWebView.obj `if test -f 'views/ActivityWebView.cpp'; then $(CYGPATH_W) 'views/ActivityWebView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityWebView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWebView.Tpo $(DEPDIR)/ActivityWebView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityWebView.cpp' object='ActivityWebView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWebView.obj `if test -f 'views/ActivityWebView.cpp'; then $(CYGPATH_W) 'views/ActivityWebView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityWebView.cpp'; fi` + +ActivityController.o: controllers/ActivityController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityController.o -MD -MP -MF $(DEPDIR)/ActivityController.Tpo -c -o ActivityController.o `test -f 'controllers/ActivityController.cpp' || echo '$(srcdir)/'`controllers/ActivityController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityController.Tpo $(DEPDIR)/ActivityController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityController.cpp' object='ActivityController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityController.o `test -f 'controllers/ActivityController.cpp' || echo '$(srcdir)/'`controllers/ActivityController.cpp + +ActivityController.obj: controllers/ActivityController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityController.obj -MD -MP -MF $(DEPDIR)/ActivityController.Tpo -c -o ActivityController.obj `if test -f 'controllers/ActivityController.cpp'; then $(CYGPATH_W) 'controllers/ActivityController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityController.Tpo $(DEPDIR)/ActivityController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityController.cpp' object='ActivityController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityController.obj `if test -f 'controllers/ActivityController.cpp'; then $(CYGPATH_W) 'controllers/ActivityController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityController.cpp'; fi` + +ActivityHomeController.o: controllers/ActivityHomeController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityHomeController.o -MD -MP -MF $(DEPDIR)/ActivityHomeController.Tpo -c -o ActivityHomeController.o `test -f 'controllers/ActivityHomeController.cpp' || echo '$(srcdir)/'`controllers/ActivityHomeController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityHomeController.Tpo $(DEPDIR)/ActivityHomeController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityHomeController.cpp' object='ActivityHomeController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityHomeController.o `test -f 'controllers/ActivityHomeController.cpp' || echo '$(srcdir)/'`controllers/ActivityHomeController.cpp + +ActivityHomeController.obj: controllers/ActivityHomeController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityHomeController.obj -MD -MP -MF $(DEPDIR)/ActivityHomeController.Tpo -c -o ActivityHomeController.obj `if test -f 'controllers/ActivityHomeController.cpp'; then $(CYGPATH_W) 'controllers/ActivityHomeController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityHomeController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityHomeController.Tpo $(DEPDIR)/ActivityHomeController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityHomeController.cpp' object='ActivityHomeController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityHomeController.obj `if test -f 'controllers/ActivityHomeController.cpp'; then $(CYGPATH_W) 'controllers/ActivityHomeController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityHomeController.cpp'; fi` + +ActivityMediaController.o: controllers/ActivityMediaController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaController.o -MD -MP -MF $(DEPDIR)/ActivityMediaController.Tpo -c -o ActivityMediaController.o `test -f 'controllers/ActivityMediaController.cpp' || echo '$(srcdir)/'`controllers/ActivityMediaController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaController.Tpo $(DEPDIR)/ActivityMediaController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityMediaController.cpp' object='ActivityMediaController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaController.o `test -f 'controllers/ActivityMediaController.cpp' || echo '$(srcdir)/'`controllers/ActivityMediaController.cpp + +ActivityMediaController.obj: controllers/ActivityMediaController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaController.obj -MD -MP -MF $(DEPDIR)/ActivityMediaController.Tpo -c -o ActivityMediaController.obj `if test -f 'controllers/ActivityMediaController.cpp'; then $(CYGPATH_W) 'controllers/ActivityMediaController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityMediaController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaController.Tpo $(DEPDIR)/ActivityMediaController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityMediaController.cpp' object='ActivityMediaController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaController.obj `if test -f 'controllers/ActivityMediaController.cpp'; then $(CYGPATH_W) 'controllers/ActivityMediaController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityMediaController.cpp'; fi` + +ActivityScenariosController.o: controllers/ActivityScenariosController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScenariosController.o -MD -MP -MF $(DEPDIR)/ActivityScenariosController.Tpo -c -o ActivityScenariosController.o `test -f 'controllers/ActivityScenariosController.cpp' || echo '$(srcdir)/'`controllers/ActivityScenariosController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScenariosController.Tpo $(DEPDIR)/ActivityScenariosController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityScenariosController.cpp' object='ActivityScenariosController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScenariosController.o `test -f 'controllers/ActivityScenariosController.cpp' || echo '$(srcdir)/'`controllers/ActivityScenariosController.cpp + +ActivityScenariosController.obj: controllers/ActivityScenariosController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScenariosController.obj -MD -MP -MF $(DEPDIR)/ActivityScenariosController.Tpo -c -o ActivityScenariosController.obj `if test -f 'controllers/ActivityScenariosController.cpp'; then $(CYGPATH_W) 'controllers/ActivityScenariosController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityScenariosController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScenariosController.Tpo $(DEPDIR)/ActivityScenariosController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityScenariosController.cpp' object='ActivityScenariosController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScenariosController.obj `if test -f 'controllers/ActivityScenariosController.cpp'; then $(CYGPATH_W) 'controllers/ActivityScenariosController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityScenariosController.cpp'; fi` + +ActivityConfigController.o: controllers/ActivityConfigController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityConfigController.o -MD -MP -MF $(DEPDIR)/ActivityConfigController.Tpo -c -o ActivityConfigController.o `test -f 'controllers/ActivityConfigController.cpp' || echo '$(srcdir)/'`controllers/ActivityConfigController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityConfigController.Tpo $(DEPDIR)/ActivityConfigController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityConfigController.cpp' object='ActivityConfigController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityConfigController.o `test -f 'controllers/ActivityConfigController.cpp' || echo '$(srcdir)/'`controllers/ActivityConfigController.cpp + +ActivityConfigController.obj: controllers/ActivityConfigController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityConfigController.obj -MD -MP -MF $(DEPDIR)/ActivityConfigController.Tpo -c -o ActivityConfigController.obj `if test -f 'controllers/ActivityConfigController.cpp'; then $(CYGPATH_W) 'controllers/ActivityConfigController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityConfigController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityConfigController.Tpo $(DEPDIR)/ActivityConfigController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityConfigController.cpp' object='ActivityConfigController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityConfigController.obj `if test -f 'controllers/ActivityConfigController.cpp'; then $(CYGPATH_W) 'controllers/ActivityConfigController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityConfigController.cpp'; fi` + +ActivityWidgetsController.o: controllers/ActivityWidgetsController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWidgetsController.o -MD -MP -MF $(DEPDIR)/ActivityWidgetsController.Tpo -c -o ActivityWidgetsController.o `test -f 'controllers/ActivityWidgetsController.cpp' || echo '$(srcdir)/'`controllers/ActivityWidgetsController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWidgetsController.Tpo $(DEPDIR)/ActivityWidgetsController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityWidgetsController.cpp' object='ActivityWidgetsController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWidgetsController.o `test -f 'controllers/ActivityWidgetsController.cpp' || echo '$(srcdir)/'`controllers/ActivityWidgetsController.cpp + +ActivityWidgetsController.obj: controllers/ActivityWidgetsController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWidgetsController.obj -MD -MP -MF $(DEPDIR)/ActivityWidgetsController.Tpo -c -o ActivityWidgetsController.obj `if test -f 'controllers/ActivityWidgetsController.cpp'; then $(CYGPATH_W) 'controllers/ActivityWidgetsController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityWidgetsController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWidgetsController.Tpo $(DEPDIR)/ActivityWidgetsController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityWidgetsController.cpp' object='ActivityWidgetsController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWidgetsController.obj `if test -f 'controllers/ActivityWidgetsController.cpp'; then $(CYGPATH_W) 'controllers/ActivityWidgetsController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityWidgetsController.cpp'; fi` + +ActivityMediaMenuController.o: controllers/ActivityMediaMenuController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaMenuController.o -MD -MP -MF $(DEPDIR)/ActivityMediaMenuController.Tpo -c -o ActivityMediaMenuController.o `test -f 'controllers/ActivityMediaMenuController.cpp' || echo '$(srcdir)/'`controllers/ActivityMediaMenuController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaMenuController.Tpo $(DEPDIR)/ActivityMediaMenuController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityMediaMenuController.cpp' object='ActivityMediaMenuController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaMenuController.o `test -f 'controllers/ActivityMediaMenuController.cpp' || echo '$(srcdir)/'`controllers/ActivityMediaMenuController.cpp + +ActivityMediaMenuController.obj: controllers/ActivityMediaMenuController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityMediaMenuController.obj -MD -MP -MF $(DEPDIR)/ActivityMediaMenuController.Tpo -c -o ActivityMediaMenuController.obj `if test -f 'controllers/ActivityMediaMenuController.cpp'; then $(CYGPATH_W) 'controllers/ActivityMediaMenuController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityMediaMenuController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityMediaMenuController.Tpo $(DEPDIR)/ActivityMediaMenuController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityMediaMenuController.cpp' object='ActivityMediaMenuController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityMediaMenuController.obj `if test -f 'controllers/ActivityMediaMenuController.cpp'; then $(CYGPATH_W) 'controllers/ActivityMediaMenuController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityMediaMenuController.cpp'; fi` + +ActivityKeyboardController.o: controllers/ActivityKeyboardController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityKeyboardController.o -MD -MP -MF $(DEPDIR)/ActivityKeyboardController.Tpo -c -o ActivityKeyboardController.o `test -f 'controllers/ActivityKeyboardController.cpp' || echo '$(srcdir)/'`controllers/ActivityKeyboardController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityKeyboardController.Tpo $(DEPDIR)/ActivityKeyboardController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityKeyboardController.cpp' object='ActivityKeyboardController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityKeyboardController.o `test -f 'controllers/ActivityKeyboardController.cpp' || echo '$(srcdir)/'`controllers/ActivityKeyboardController.cpp + +ActivityKeyboardController.obj: controllers/ActivityKeyboardController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityKeyboardController.obj -MD -MP -MF $(DEPDIR)/ActivityKeyboardController.Tpo -c -o ActivityKeyboardController.obj `if test -f 'controllers/ActivityKeyboardController.cpp'; then $(CYGPATH_W) 'controllers/ActivityKeyboardController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityKeyboardController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityKeyboardController.Tpo $(DEPDIR)/ActivityKeyboardController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityKeyboardController.cpp' object='ActivityKeyboardController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityKeyboardController.obj `if test -f 'controllers/ActivityKeyboardController.cpp'; then $(CYGPATH_W) 'controllers/ActivityKeyboardController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityKeyboardController.cpp'; fi` + +ActivityWebController.o: controllers/ActivityWebController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWebController.o -MD -MP -MF $(DEPDIR)/ActivityWebController.Tpo -c -o ActivityWebController.o `test -f 'controllers/ActivityWebController.cpp' || echo '$(srcdir)/'`controllers/ActivityWebController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWebController.Tpo $(DEPDIR)/ActivityWebController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityWebController.cpp' object='ActivityWebController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWebController.o `test -f 'controllers/ActivityWebController.cpp' || echo '$(srcdir)/'`controllers/ActivityWebController.cpp + +ActivityWebController.obj: controllers/ActivityWebController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityWebController.obj -MD -MP -MF $(DEPDIR)/ActivityWebController.Tpo -c -o ActivityWebController.obj `if test -f 'controllers/ActivityWebController.cpp'; then $(CYGPATH_W) 'controllers/ActivityWebController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityWebController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityWebController.Tpo $(DEPDIR)/ActivityWebController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityWebController.cpp' object='ActivityWebController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityWebController.obj `if test -f 'controllers/ActivityWebController.cpp'; then $(CYGPATH_W) 'controllers/ActivityWebController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityWebController.cpp'; fi` + +IOScenarioHomeView.o: views/IO/IOScenarioHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOScenarioHomeView.o -MD -MP -MF $(DEPDIR)/IOScenarioHomeView.Tpo -c -o IOScenarioHomeView.o `test -f 'views/IO/IOScenarioHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOScenarioHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOScenarioHomeView.Tpo $(DEPDIR)/IOScenarioHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOScenarioHomeView.cpp' object='IOScenarioHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOScenarioHomeView.o `test -f 'views/IO/IOScenarioHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOScenarioHomeView.cpp + +IOScenarioHomeView.obj: views/IO/IOScenarioHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOScenarioHomeView.obj -MD -MP -MF $(DEPDIR)/IOScenarioHomeView.Tpo -c -o IOScenarioHomeView.obj `if test -f 'views/IO/IOScenarioHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOScenarioHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOScenarioHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOScenarioHomeView.Tpo $(DEPDIR)/IOScenarioHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOScenarioHomeView.cpp' object='IOScenarioHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOScenarioHomeView.obj `if test -f 'views/IO/IOScenarioHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOScenarioHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOScenarioHomeView.cpp'; fi` + +IOView.o: views/IOView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOView.o -MD -MP -MF $(DEPDIR)/IOView.Tpo -c -o IOView.o `test -f 'views/IOView.cpp' || echo '$(srcdir)/'`views/IOView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOView.Tpo $(DEPDIR)/IOView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IOView.cpp' object='IOView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOView.o `test -f 'views/IOView.cpp' || echo '$(srcdir)/'`views/IOView.cpp + +IOView.obj: views/IOView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOView.obj -MD -MP -MF $(DEPDIR)/IOView.Tpo -c -o IOView.obj `if test -f 'views/IOView.cpp'; then $(CYGPATH_W) 'views/IOView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IOView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOView.Tpo $(DEPDIR)/IOView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IOView.cpp' object='IOView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOView.obj `if test -f 'views/IOView.cpp'; then $(CYGPATH_W) 'views/IOView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IOView.cpp'; fi` + +MainMenuView.o: views/MainMenuView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MainMenuView.o -MD -MP -MF $(DEPDIR)/MainMenuView.Tpo -c -o MainMenuView.o `test -f 'views/MainMenuView.cpp' || echo '$(srcdir)/'`views/MainMenuView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/MainMenuView.Tpo $(DEPDIR)/MainMenuView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/MainMenuView.cpp' object='MainMenuView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MainMenuView.o `test -f 'views/MainMenuView.cpp' || echo '$(srcdir)/'`views/MainMenuView.cpp + +MainMenuView.obj: views/MainMenuView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MainMenuView.obj -MD -MP -MF $(DEPDIR)/MainMenuView.Tpo -c -o MainMenuView.obj `if test -f 'views/MainMenuView.cpp'; then $(CYGPATH_W) 'views/MainMenuView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/MainMenuView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/MainMenuView.Tpo $(DEPDIR)/MainMenuView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/MainMenuView.cpp' object='MainMenuView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MainMenuView.obj `if test -f 'views/MainMenuView.cpp'; then $(CYGPATH_W) 'views/MainMenuView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/MainMenuView.cpp'; fi` + +CalaosModel.o: models/CalaosModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CalaosModel.o -MD -MP -MF $(DEPDIR)/CalaosModel.Tpo -c -o CalaosModel.o `test -f 'models/CalaosModel.cpp' || echo '$(srcdir)/'`models/CalaosModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CalaosModel.Tpo $(DEPDIR)/CalaosModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/CalaosModel.cpp' object='CalaosModel.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CalaosModel.o `test -f 'models/CalaosModel.cpp' || echo '$(srcdir)/'`models/CalaosModel.cpp + +CalaosModel.obj: models/CalaosModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CalaosModel.obj -MD -MP -MF $(DEPDIR)/CalaosModel.Tpo -c -o CalaosModel.obj `if test -f 'models/CalaosModel.cpp'; then $(CYGPATH_W) 'models/CalaosModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/CalaosModel.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CalaosModel.Tpo $(DEPDIR)/CalaosModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/CalaosModel.cpp' object='CalaosModel.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CalaosModel.obj `if test -f 'models/CalaosModel.cpp'; then $(CYGPATH_W) 'models/CalaosModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/CalaosModel.cpp'; fi` + +AudioModel.o: models/AudioModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioModel.o -MD -MP -MF $(DEPDIR)/AudioModel.Tpo -c -o AudioModel.o `test -f 'models/AudioModel.cpp' || echo '$(srcdir)/'`models/AudioModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioModel.Tpo $(DEPDIR)/AudioModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/AudioModel.cpp' object='AudioModel.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioModel.o `test -f 'models/AudioModel.cpp' || echo '$(srcdir)/'`models/AudioModel.cpp + +AudioModel.obj: models/AudioModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioModel.obj -MD -MP -MF $(DEPDIR)/AudioModel.Tpo -c -o AudioModel.obj `if test -f 'models/AudioModel.cpp'; then $(CYGPATH_W) 'models/AudioModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/AudioModel.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioModel.Tpo $(DEPDIR)/AudioModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/AudioModel.cpp' object='AudioModel.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioModel.obj `if test -f 'models/AudioModel.cpp'; then $(CYGPATH_W) 'models/AudioModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/AudioModel.cpp'; fi` + +CameraModel.o: models/CameraModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CameraModel.o -MD -MP -MF $(DEPDIR)/CameraModel.Tpo -c -o CameraModel.o `test -f 'models/CameraModel.cpp' || echo '$(srcdir)/'`models/CameraModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CameraModel.Tpo $(DEPDIR)/CameraModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/CameraModel.cpp' object='CameraModel.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CameraModel.o `test -f 'models/CameraModel.cpp' || echo '$(srcdir)/'`models/CameraModel.cpp + +CameraModel.obj: models/CameraModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CameraModel.obj -MD -MP -MF $(DEPDIR)/CameraModel.Tpo -c -o CameraModel.obj `if test -f 'models/CameraModel.cpp'; then $(CYGPATH_W) 'models/CameraModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/CameraModel.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CameraModel.Tpo $(DEPDIR)/CameraModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/CameraModel.cpp' object='CameraModel.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CameraModel.obj `if test -f 'models/CameraModel.cpp'; then $(CYGPATH_W) 'models/CameraModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/CameraModel.cpp'; fi` + +RoomModel.o: models/RoomModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RoomModel.o -MD -MP -MF $(DEPDIR)/RoomModel.Tpo -c -o RoomModel.o `test -f 'models/RoomModel.cpp' || echo '$(srcdir)/'`models/RoomModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/RoomModel.Tpo $(DEPDIR)/RoomModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/RoomModel.cpp' object='RoomModel.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RoomModel.o `test -f 'models/RoomModel.cpp' || echo '$(srcdir)/'`models/RoomModel.cpp + +RoomModel.obj: models/RoomModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RoomModel.obj -MD -MP -MF $(DEPDIR)/RoomModel.Tpo -c -o RoomModel.obj `if test -f 'models/RoomModel.cpp'; then $(CYGPATH_W) 'models/RoomModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/RoomModel.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/RoomModel.Tpo $(DEPDIR)/RoomModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/RoomModel.cpp' object='RoomModel.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RoomModel.obj `if test -f 'models/RoomModel.cpp'; then $(CYGPATH_W) 'models/RoomModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/RoomModel.cpp'; fi` + +ScenarioModel.o: models/ScenarioModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ScenarioModel.o -MD -MP -MF $(DEPDIR)/ScenarioModel.Tpo -c -o ScenarioModel.o `test -f 'models/ScenarioModel.cpp' || echo '$(srcdir)/'`models/ScenarioModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ScenarioModel.Tpo $(DEPDIR)/ScenarioModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/ScenarioModel.cpp' object='ScenarioModel.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ScenarioModel.o `test -f 'models/ScenarioModel.cpp' || echo '$(srcdir)/'`models/ScenarioModel.cpp + +ScenarioModel.obj: models/ScenarioModel.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ScenarioModel.obj -MD -MP -MF $(DEPDIR)/ScenarioModel.Tpo -c -o ScenarioModel.obj `if test -f 'models/ScenarioModel.cpp'; then $(CYGPATH_W) 'models/ScenarioModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/ScenarioModel.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ScenarioModel.Tpo $(DEPDIR)/ScenarioModel.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='models/ScenarioModel.cpp' object='ScenarioModel.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ScenarioModel.obj `if test -f 'models/ScenarioModel.cpp'; then $(CYGPATH_W) 'models/ScenarioModel.cpp'; else $(CYGPATH_W) '$(srcdir)/models/ScenarioModel.cpp'; fi` + +GenlistItemBase.o: views/GenlistItems/GenlistItemBase.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemBase.o -MD -MP -MF $(DEPDIR)/GenlistItemBase.Tpo -c -o GenlistItemBase.o `test -f 'views/GenlistItems/GenlistItemBase.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemBase.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemBase.Tpo $(DEPDIR)/GenlistItemBase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemBase.cpp' object='GenlistItemBase.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemBase.o `test -f 'views/GenlistItems/GenlistItemBase.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemBase.cpp + +GenlistItemBase.obj: views/GenlistItems/GenlistItemBase.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemBase.obj -MD -MP -MF $(DEPDIR)/GenlistItemBase.Tpo -c -o GenlistItemBase.obj `if test -f 'views/GenlistItems/GenlistItemBase.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemBase.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemBase.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemBase.Tpo $(DEPDIR)/GenlistItemBase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemBase.cpp' object='GenlistItemBase.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemBase.obj `if test -f 'views/GenlistItems/GenlistItemBase.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemBase.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemBase.cpp'; fi` + +GenlistItemSimple.o: views/GenlistItems/GenlistItemSimple.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemSimple.o -MD -MP -MF $(DEPDIR)/GenlistItemSimple.Tpo -c -o GenlistItemSimple.o `test -f 'views/GenlistItems/GenlistItemSimple.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemSimple.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemSimple.Tpo $(DEPDIR)/GenlistItemSimple.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemSimple.cpp' object='GenlistItemSimple.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemSimple.o `test -f 'views/GenlistItems/GenlistItemSimple.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemSimple.cpp + +GenlistItemSimple.obj: views/GenlistItems/GenlistItemSimple.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemSimple.obj -MD -MP -MF $(DEPDIR)/GenlistItemSimple.Tpo -c -o GenlistItemSimple.obj `if test -f 'views/GenlistItems/GenlistItemSimple.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemSimple.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemSimple.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemSimple.Tpo $(DEPDIR)/GenlistItemSimple.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemSimple.cpp' object='GenlistItemSimple.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemSimple.obj `if test -f 'views/GenlistItems/GenlistItemSimple.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemSimple.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemSimple.cpp'; fi` + +GenlistItemSimpleHeader.o: views/GenlistItems/GenlistItemSimpleHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemSimpleHeader.o -MD -MP -MF $(DEPDIR)/GenlistItemSimpleHeader.Tpo -c -o GenlistItemSimpleHeader.o `test -f 'views/GenlistItems/GenlistItemSimpleHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemSimpleHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemSimpleHeader.Tpo $(DEPDIR)/GenlistItemSimpleHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemSimpleHeader.cpp' object='GenlistItemSimpleHeader.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemSimpleHeader.o `test -f 'views/GenlistItems/GenlistItemSimpleHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemSimpleHeader.cpp + +GenlistItemSimpleHeader.obj: views/GenlistItems/GenlistItemSimpleHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemSimpleHeader.obj -MD -MP -MF $(DEPDIR)/GenlistItemSimpleHeader.Tpo -c -o GenlistItemSimpleHeader.obj `if test -f 'views/GenlistItems/GenlistItemSimpleHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemSimpleHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemSimpleHeader.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemSimpleHeader.Tpo $(DEPDIR)/GenlistItemSimpleHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemSimpleHeader.cpp' object='GenlistItemSimpleHeader.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemSimpleHeader.obj `if test -f 'views/GenlistItems/GenlistItemSimpleHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemSimpleHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemSimpleHeader.cpp'; fi` + +IOWODigitalHomeView.o: views/IO/IOWODigitalHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWODigitalHomeView.o -MD -MP -MF $(DEPDIR)/IOWODigitalHomeView.Tpo -c -o IOWODigitalHomeView.o `test -f 'views/IO/IOWODigitalHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWODigitalHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWODigitalHomeView.Tpo $(DEPDIR)/IOWODigitalHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWODigitalHomeView.cpp' object='IOWODigitalHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWODigitalHomeView.o `test -f 'views/IO/IOWODigitalHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWODigitalHomeView.cpp + +IOWODigitalHomeView.obj: views/IO/IOWODigitalHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWODigitalHomeView.obj -MD -MP -MF $(DEPDIR)/IOWODigitalHomeView.Tpo -c -o IOWODigitalHomeView.obj `if test -f 'views/IO/IOWODigitalHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWODigitalHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWODigitalHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWODigitalHomeView.Tpo $(DEPDIR)/IOWODigitalHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWODigitalHomeView.cpp' object='IOWODigitalHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWODigitalHomeView.obj `if test -f 'views/IO/IOWODigitalHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWODigitalHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWODigitalHomeView.cpp'; fi` + +IOWODaliHomeView.o: views/IO/IOWODaliHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWODaliHomeView.o -MD -MP -MF $(DEPDIR)/IOWODaliHomeView.Tpo -c -o IOWODaliHomeView.o `test -f 'views/IO/IOWODaliHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWODaliHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWODaliHomeView.Tpo $(DEPDIR)/IOWODaliHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWODaliHomeView.cpp' object='IOWODaliHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWODaliHomeView.o `test -f 'views/IO/IOWODaliHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWODaliHomeView.cpp + +IOWODaliHomeView.obj: views/IO/IOWODaliHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWODaliHomeView.obj -MD -MP -MF $(DEPDIR)/IOWODaliHomeView.Tpo -c -o IOWODaliHomeView.obj `if test -f 'views/IO/IOWODaliHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWODaliHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWODaliHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWODaliHomeView.Tpo $(DEPDIR)/IOWODaliHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWODaliHomeView.cpp' object='IOWODaliHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWODaliHomeView.obj `if test -f 'views/IO/IOWODaliHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWODaliHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWODaliHomeView.cpp'; fi` + +IOInternalBoolHomeView.o: views/IO/IOInternalBoolHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOInternalBoolHomeView.o -MD -MP -MF $(DEPDIR)/IOInternalBoolHomeView.Tpo -c -o IOInternalBoolHomeView.o `test -f 'views/IO/IOInternalBoolHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOInternalBoolHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOInternalBoolHomeView.Tpo $(DEPDIR)/IOInternalBoolHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOInternalBoolHomeView.cpp' object='IOInternalBoolHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOInternalBoolHomeView.o `test -f 'views/IO/IOInternalBoolHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOInternalBoolHomeView.cpp + +IOInternalBoolHomeView.obj: views/IO/IOInternalBoolHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOInternalBoolHomeView.obj -MD -MP -MF $(DEPDIR)/IOInternalBoolHomeView.Tpo -c -o IOInternalBoolHomeView.obj `if test -f 'views/IO/IOInternalBoolHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOInternalBoolHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOInternalBoolHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOInternalBoolHomeView.Tpo $(DEPDIR)/IOInternalBoolHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOInternalBoolHomeView.cpp' object='IOInternalBoolHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOInternalBoolHomeView.obj `if test -f 'views/IO/IOInternalBoolHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOInternalBoolHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOInternalBoolHomeView.cpp'; fi` + +IOInternalIntHomeView.o: views/IO/IOInternalIntHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOInternalIntHomeView.o -MD -MP -MF $(DEPDIR)/IOInternalIntHomeView.Tpo -c -o IOInternalIntHomeView.o `test -f 'views/IO/IOInternalIntHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOInternalIntHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOInternalIntHomeView.Tpo $(DEPDIR)/IOInternalIntHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOInternalIntHomeView.cpp' object='IOInternalIntHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOInternalIntHomeView.o `test -f 'views/IO/IOInternalIntHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOInternalIntHomeView.cpp + +IOInternalIntHomeView.obj: views/IO/IOInternalIntHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOInternalIntHomeView.obj -MD -MP -MF $(DEPDIR)/IOInternalIntHomeView.Tpo -c -o IOInternalIntHomeView.obj `if test -f 'views/IO/IOInternalIntHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOInternalIntHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOInternalIntHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOInternalIntHomeView.Tpo $(DEPDIR)/IOInternalIntHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOInternalIntHomeView.cpp' object='IOInternalIntHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOInternalIntHomeView.obj `if test -f 'views/IO/IOInternalIntHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOInternalIntHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOInternalIntHomeView.cpp'; fi` + +IOInternalStringHomeView.o: views/IO/IOInternalStringHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOInternalStringHomeView.o -MD -MP -MF $(DEPDIR)/IOInternalStringHomeView.Tpo -c -o IOInternalStringHomeView.o `test -f 'views/IO/IOInternalStringHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOInternalStringHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOInternalStringHomeView.Tpo $(DEPDIR)/IOInternalStringHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOInternalStringHomeView.cpp' object='IOInternalStringHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOInternalStringHomeView.o `test -f 'views/IO/IOInternalStringHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOInternalStringHomeView.cpp + +IOInternalStringHomeView.obj: views/IO/IOInternalStringHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOInternalStringHomeView.obj -MD -MP -MF $(DEPDIR)/IOInternalStringHomeView.Tpo -c -o IOInternalStringHomeView.obj `if test -f 'views/IO/IOInternalStringHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOInternalStringHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOInternalStringHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOInternalStringHomeView.Tpo $(DEPDIR)/IOInternalStringHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOInternalStringHomeView.cpp' object='IOInternalStringHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOInternalStringHomeView.obj `if test -f 'views/IO/IOInternalStringHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOInternalStringHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOInternalStringHomeView.cpp'; fi` + +IOWODaliRVBHomeView.o: views/IO/IOWODaliRVBHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWODaliRVBHomeView.o -MD -MP -MF $(DEPDIR)/IOWODaliRVBHomeView.Tpo -c -o IOWODaliRVBHomeView.o `test -f 'views/IO/IOWODaliRVBHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWODaliRVBHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWODaliRVBHomeView.Tpo $(DEPDIR)/IOWODaliRVBHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWODaliRVBHomeView.cpp' object='IOWODaliRVBHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWODaliRVBHomeView.o `test -f 'views/IO/IOWODaliRVBHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWODaliRVBHomeView.cpp + +IOWODaliRVBHomeView.obj: views/IO/IOWODaliRVBHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWODaliRVBHomeView.obj -MD -MP -MF $(DEPDIR)/IOWODaliRVBHomeView.Tpo -c -o IOWODaliRVBHomeView.obj `if test -f 'views/IO/IOWODaliRVBHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWODaliRVBHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWODaliRVBHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWODaliRVBHomeView.Tpo $(DEPDIR)/IOWODaliRVBHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWODaliRVBHomeView.cpp' object='IOWODaliRVBHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWODaliRVBHomeView.obj `if test -f 'views/IO/IOWODaliRVBHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWODaliRVBHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWODaliRVBHomeView.cpp'; fi` + +IOGenlistScenarioHomeView.o: views/IO/IOGenlistScenarioHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOGenlistScenarioHomeView.o -MD -MP -MF $(DEPDIR)/IOGenlistScenarioHomeView.Tpo -c -o IOGenlistScenarioHomeView.o `test -f 'views/IO/IOGenlistScenarioHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOGenlistScenarioHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOGenlistScenarioHomeView.Tpo $(DEPDIR)/IOGenlistScenarioHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOGenlistScenarioHomeView.cpp' object='IOGenlistScenarioHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOGenlistScenarioHomeView.o `test -f 'views/IO/IOGenlistScenarioHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOGenlistScenarioHomeView.cpp + +IOGenlistScenarioHomeView.obj: views/IO/IOGenlistScenarioHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOGenlistScenarioHomeView.obj -MD -MP -MF $(DEPDIR)/IOGenlistScenarioHomeView.Tpo -c -o IOGenlistScenarioHomeView.obj `if test -f 'views/IO/IOGenlistScenarioHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOGenlistScenarioHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOGenlistScenarioHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOGenlistScenarioHomeView.Tpo $(DEPDIR)/IOGenlistScenarioHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOGenlistScenarioHomeView.cpp' object='IOGenlistScenarioHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOGenlistScenarioHomeView.obj `if test -f 'views/IO/IOGenlistScenarioHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOGenlistScenarioHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOGenlistScenarioHomeView.cpp'; fi` + +IOWIAnalogHomeView.o: views/IO/IOWIAnalogHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWIAnalogHomeView.o -MD -MP -MF $(DEPDIR)/IOWIAnalogHomeView.Tpo -c -o IOWIAnalogHomeView.o `test -f 'views/IO/IOWIAnalogHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWIAnalogHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWIAnalogHomeView.Tpo $(DEPDIR)/IOWIAnalogHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWIAnalogHomeView.cpp' object='IOWIAnalogHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWIAnalogHomeView.o `test -f 'views/IO/IOWIAnalogHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWIAnalogHomeView.cpp + +IOWIAnalogHomeView.obj: views/IO/IOWIAnalogHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWIAnalogHomeView.obj -MD -MP -MF $(DEPDIR)/IOWIAnalogHomeView.Tpo -c -o IOWIAnalogHomeView.obj `if test -f 'views/IO/IOWIAnalogHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWIAnalogHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWIAnalogHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWIAnalogHomeView.Tpo $(DEPDIR)/IOWIAnalogHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWIAnalogHomeView.cpp' object='IOWIAnalogHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWIAnalogHomeView.obj `if test -f 'views/IO/IOWIAnalogHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWIAnalogHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWIAnalogHomeView.cpp'; fi` + +IOWOAnalogHomeView.o: views/IO/IOWOAnalogHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWOAnalogHomeView.o -MD -MP -MF $(DEPDIR)/IOWOAnalogHomeView.Tpo -c -o IOWOAnalogHomeView.o `test -f 'views/IO/IOWOAnalogHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWOAnalogHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWOAnalogHomeView.Tpo $(DEPDIR)/IOWOAnalogHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWOAnalogHomeView.cpp' object='IOWOAnalogHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWOAnalogHomeView.o `test -f 'views/IO/IOWOAnalogHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWOAnalogHomeView.cpp + +IOWOAnalogHomeView.obj: views/IO/IOWOAnalogHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWOAnalogHomeView.obj -MD -MP -MF $(DEPDIR)/IOWOAnalogHomeView.Tpo -c -o IOWOAnalogHomeView.obj `if test -f 'views/IO/IOWOAnalogHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWOAnalogHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWOAnalogHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWOAnalogHomeView.Tpo $(DEPDIR)/IOWOAnalogHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWOAnalogHomeView.cpp' object='IOWOAnalogHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWOAnalogHomeView.obj `if test -f 'views/IO/IOWOAnalogHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWOAnalogHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWOAnalogHomeView.cpp'; fi` + +IOWITempHomeView.o: views/IO/IOWITempHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWITempHomeView.o -MD -MP -MF $(DEPDIR)/IOWITempHomeView.Tpo -c -o IOWITempHomeView.o `test -f 'views/IO/IOWITempHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWITempHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWITempHomeView.Tpo $(DEPDIR)/IOWITempHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWITempHomeView.cpp' object='IOWITempHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWITempHomeView.o `test -f 'views/IO/IOWITempHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWITempHomeView.cpp + +IOWITempHomeView.obj: views/IO/IOWITempHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWITempHomeView.obj -MD -MP -MF $(DEPDIR)/IOWITempHomeView.Tpo -c -o IOWITempHomeView.obj `if test -f 'views/IO/IOWITempHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWITempHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWITempHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWITempHomeView.Tpo $(DEPDIR)/IOWITempHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWITempHomeView.cpp' object='IOWITempHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWITempHomeView.obj `if test -f 'views/IO/IOWITempHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWITempHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWITempHomeView.cpp'; fi` + +IOWOVoletHomeView.o: views/IO/IOWOVoletHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWOVoletHomeView.o -MD -MP -MF $(DEPDIR)/IOWOVoletHomeView.Tpo -c -o IOWOVoletHomeView.o `test -f 'views/IO/IOWOVoletHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWOVoletHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWOVoletHomeView.Tpo $(DEPDIR)/IOWOVoletHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWOVoletHomeView.cpp' object='IOWOVoletHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWOVoletHomeView.o `test -f 'views/IO/IOWOVoletHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWOVoletHomeView.cpp + +IOWOVoletHomeView.obj: views/IO/IOWOVoletHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWOVoletHomeView.obj -MD -MP -MF $(DEPDIR)/IOWOVoletHomeView.Tpo -c -o IOWOVoletHomeView.obj `if test -f 'views/IO/IOWOVoletHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWOVoletHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWOVoletHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWOVoletHomeView.Tpo $(DEPDIR)/IOWOVoletHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWOVoletHomeView.cpp' object='IOWOVoletHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWOVoletHomeView.obj `if test -f 'views/IO/IOWOVoletHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWOVoletHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWOVoletHomeView.cpp'; fi` + +IOWOVoletSmartHomeView.o: views/IO/IOWOVoletSmartHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWOVoletSmartHomeView.o -MD -MP -MF $(DEPDIR)/IOWOVoletSmartHomeView.Tpo -c -o IOWOVoletSmartHomeView.o `test -f 'views/IO/IOWOVoletSmartHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWOVoletSmartHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWOVoletSmartHomeView.Tpo $(DEPDIR)/IOWOVoletSmartHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWOVoletSmartHomeView.cpp' object='IOWOVoletSmartHomeView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWOVoletSmartHomeView.o `test -f 'views/IO/IOWOVoletSmartHomeView.cpp' || echo '$(srcdir)/'`views/IO/IOWOVoletSmartHomeView.cpp + +IOWOVoletSmartHomeView.obj: views/IO/IOWOVoletSmartHomeView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOWOVoletSmartHomeView.obj -MD -MP -MF $(DEPDIR)/IOWOVoletSmartHomeView.Tpo -c -o IOWOVoletSmartHomeView.obj `if test -f 'views/IO/IOWOVoletSmartHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWOVoletSmartHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWOVoletSmartHomeView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOWOVoletSmartHomeView.Tpo $(DEPDIR)/IOWOVoletSmartHomeView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOWOVoletSmartHomeView.cpp' object='IOWOVoletSmartHomeView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOWOVoletSmartHomeView.obj `if test -f 'views/IO/IOWOVoletSmartHomeView.cpp'; then $(CYGPATH_W) 'views/IO/IOWOVoletSmartHomeView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOWOVoletSmartHomeView.cpp'; fi` + +IOGenlistRoomGroup.o: views/IO/IOGenlistRoomGroup.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOGenlistRoomGroup.o -MD -MP -MF $(DEPDIR)/IOGenlistRoomGroup.Tpo -c -o IOGenlistRoomGroup.o `test -f 'views/IO/IOGenlistRoomGroup.cpp' || echo '$(srcdir)/'`views/IO/IOGenlistRoomGroup.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOGenlistRoomGroup.Tpo $(DEPDIR)/IOGenlistRoomGroup.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOGenlistRoomGroup.cpp' object='IOGenlistRoomGroup.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOGenlistRoomGroup.o `test -f 'views/IO/IOGenlistRoomGroup.cpp' || echo '$(srcdir)/'`views/IO/IOGenlistRoomGroup.cpp + +IOGenlistRoomGroup.obj: views/IO/IOGenlistRoomGroup.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOGenlistRoomGroup.obj -MD -MP -MF $(DEPDIR)/IOGenlistRoomGroup.Tpo -c -o IOGenlistRoomGroup.obj `if test -f 'views/IO/IOGenlistRoomGroup.cpp'; then $(CYGPATH_W) 'views/IO/IOGenlistRoomGroup.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOGenlistRoomGroup.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOGenlistRoomGroup.Tpo $(DEPDIR)/IOGenlistRoomGroup.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/IO/IOGenlistRoomGroup.cpp' object='IOGenlistRoomGroup.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOGenlistRoomGroup.obj `if test -f 'views/IO/IOGenlistRoomGroup.cpp'; then $(CYGPATH_W) 'views/IO/IOGenlistRoomGroup.cpp'; else $(CYGPATH_W) '$(srcdir)/views/IO/IOGenlistRoomGroup.cpp'; fi` + +GenlistItemPlaylist.o: views/GenlistItems/GenlistItemPlaylist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemPlaylist.o -MD -MP -MF $(DEPDIR)/GenlistItemPlaylist.Tpo -c -o GenlistItemPlaylist.o `test -f 'views/GenlistItems/GenlistItemPlaylist.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemPlaylist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemPlaylist.Tpo $(DEPDIR)/GenlistItemPlaylist.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemPlaylist.cpp' object='GenlistItemPlaylist.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemPlaylist.o `test -f 'views/GenlistItems/GenlistItemPlaylist.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemPlaylist.cpp + +GenlistItemPlaylist.obj: views/GenlistItems/GenlistItemPlaylist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemPlaylist.obj -MD -MP -MF $(DEPDIR)/GenlistItemPlaylist.Tpo -c -o GenlistItemPlaylist.obj `if test -f 'views/GenlistItems/GenlistItemPlaylist.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemPlaylist.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemPlaylist.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemPlaylist.Tpo $(DEPDIR)/GenlistItemPlaylist.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemPlaylist.cpp' object='GenlistItemPlaylist.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemPlaylist.obj `if test -f 'views/GenlistItems/GenlistItemPlaylist.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemPlaylist.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemPlaylist.cpp'; fi` + +GenlistItemAlbum.o: views/GenlistItems/GenlistItemAlbum.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemAlbum.o -MD -MP -MF $(DEPDIR)/GenlistItemAlbum.Tpo -c -o GenlistItemAlbum.o `test -f 'views/GenlistItems/GenlistItemAlbum.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemAlbum.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemAlbum.Tpo $(DEPDIR)/GenlistItemAlbum.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemAlbum.cpp' object='GenlistItemAlbum.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemAlbum.o `test -f 'views/GenlistItems/GenlistItemAlbum.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemAlbum.cpp + +GenlistItemAlbum.obj: views/GenlistItems/GenlistItemAlbum.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemAlbum.obj -MD -MP -MF $(DEPDIR)/GenlistItemAlbum.Tpo -c -o GenlistItemAlbum.obj `if test -f 'views/GenlistItems/GenlistItemAlbum.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemAlbum.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemAlbum.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemAlbum.Tpo $(DEPDIR)/GenlistItemAlbum.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemAlbum.cpp' object='GenlistItemAlbum.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemAlbum.obj `if test -f 'views/GenlistItems/GenlistItemAlbum.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemAlbum.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemAlbum.cpp'; fi` + +GenlistItemAlbumHeader.o: views/GenlistItems/GenlistItemAlbumHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemAlbumHeader.o -MD -MP -MF $(DEPDIR)/GenlistItemAlbumHeader.Tpo -c -o GenlistItemAlbumHeader.o `test -f 'views/GenlistItems/GenlistItemAlbumHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemAlbumHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemAlbumHeader.Tpo $(DEPDIR)/GenlistItemAlbumHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemAlbumHeader.cpp' object='GenlistItemAlbumHeader.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemAlbumHeader.o `test -f 'views/GenlistItems/GenlistItemAlbumHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemAlbumHeader.cpp + +GenlistItemAlbumHeader.obj: views/GenlistItems/GenlistItemAlbumHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemAlbumHeader.obj -MD -MP -MF $(DEPDIR)/GenlistItemAlbumHeader.Tpo -c -o GenlistItemAlbumHeader.obj `if test -f 'views/GenlistItems/GenlistItemAlbumHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemAlbumHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemAlbumHeader.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemAlbumHeader.Tpo $(DEPDIR)/GenlistItemAlbumHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemAlbumHeader.cpp' object='GenlistItemAlbumHeader.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemAlbumHeader.obj `if test -f 'views/GenlistItems/GenlistItemAlbumHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemAlbumHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemAlbumHeader.cpp'; fi` + +GenlistItemTrack.o: views/GenlistItems/GenlistItemTrack.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemTrack.o -MD -MP -MF $(DEPDIR)/GenlistItemTrack.Tpo -c -o GenlistItemTrack.o `test -f 'views/GenlistItems/GenlistItemTrack.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemTrack.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemTrack.Tpo $(DEPDIR)/GenlistItemTrack.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemTrack.cpp' object='GenlistItemTrack.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemTrack.o `test -f 'views/GenlistItems/GenlistItemTrack.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemTrack.cpp + +GenlistItemTrack.obj: views/GenlistItems/GenlistItemTrack.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemTrack.obj -MD -MP -MF $(DEPDIR)/GenlistItemTrack.Tpo -c -o GenlistItemTrack.obj `if test -f 'views/GenlistItems/GenlistItemTrack.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemTrack.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemTrack.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemTrack.Tpo $(DEPDIR)/GenlistItemTrack.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemTrack.cpp' object='GenlistItemTrack.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemTrack.obj `if test -f 'views/GenlistItems/GenlistItemTrack.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemTrack.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemTrack.cpp'; fi` + +GenlistItemArtist.o: views/GenlistItems/GenlistItemArtist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemArtist.o -MD -MP -MF $(DEPDIR)/GenlistItemArtist.Tpo -c -o GenlistItemArtist.o `test -f 'views/GenlistItems/GenlistItemArtist.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemArtist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemArtist.Tpo $(DEPDIR)/GenlistItemArtist.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemArtist.cpp' object='GenlistItemArtist.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemArtist.o `test -f 'views/GenlistItems/GenlistItemArtist.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemArtist.cpp + +GenlistItemArtist.obj: views/GenlistItems/GenlistItemArtist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemArtist.obj -MD -MP -MF $(DEPDIR)/GenlistItemArtist.Tpo -c -o GenlistItemArtist.obj `if test -f 'views/GenlistItems/GenlistItemArtist.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemArtist.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemArtist.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemArtist.Tpo $(DEPDIR)/GenlistItemArtist.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemArtist.cpp' object='GenlistItemArtist.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemArtist.obj `if test -f 'views/GenlistItems/GenlistItemArtist.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemArtist.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemArtist.cpp'; fi` + +GenlistItemYear.o: views/GenlistItems/GenlistItemYear.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemYear.o -MD -MP -MF $(DEPDIR)/GenlistItemYear.Tpo -c -o GenlistItemYear.o `test -f 'views/GenlistItems/GenlistItemYear.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemYear.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemYear.Tpo $(DEPDIR)/GenlistItemYear.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemYear.cpp' object='GenlistItemYear.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemYear.o `test -f 'views/GenlistItems/GenlistItemYear.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemYear.cpp + +GenlistItemYear.obj: views/GenlistItems/GenlistItemYear.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemYear.obj -MD -MP -MF $(DEPDIR)/GenlistItemYear.Tpo -c -o GenlistItemYear.obj `if test -f 'views/GenlistItems/GenlistItemYear.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemYear.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemYear.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemYear.Tpo $(DEPDIR)/GenlistItemYear.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemYear.cpp' object='GenlistItemYear.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemYear.obj `if test -f 'views/GenlistItems/GenlistItemYear.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemYear.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemYear.cpp'; fi` + +GenlistItemGenre.o: views/GenlistItems/GenlistItemGenre.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemGenre.o -MD -MP -MF $(DEPDIR)/GenlistItemGenre.Tpo -c -o GenlistItemGenre.o `test -f 'views/GenlistItems/GenlistItemGenre.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemGenre.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemGenre.Tpo $(DEPDIR)/GenlistItemGenre.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemGenre.cpp' object='GenlistItemGenre.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemGenre.o `test -f 'views/GenlistItems/GenlistItemGenre.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemGenre.cpp + +GenlistItemGenre.obj: views/GenlistItems/GenlistItemGenre.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemGenre.obj -MD -MP -MF $(DEPDIR)/GenlistItemGenre.Tpo -c -o GenlistItemGenre.obj `if test -f 'views/GenlistItems/GenlistItemGenre.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemGenre.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemGenre.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemGenre.Tpo $(DEPDIR)/GenlistItemGenre.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemGenre.cpp' object='GenlistItemGenre.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemGenre.obj `if test -f 'views/GenlistItems/GenlistItemGenre.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemGenre.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemGenre.cpp'; fi` + +GenlistItemBrowserPlaylist.o: views/GenlistItems/GenlistItemBrowserPlaylist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemBrowserPlaylist.o -MD -MP -MF $(DEPDIR)/GenlistItemBrowserPlaylist.Tpo -c -o GenlistItemBrowserPlaylist.o `test -f 'views/GenlistItems/GenlistItemBrowserPlaylist.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemBrowserPlaylist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemBrowserPlaylist.Tpo $(DEPDIR)/GenlistItemBrowserPlaylist.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemBrowserPlaylist.cpp' object='GenlistItemBrowserPlaylist.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemBrowserPlaylist.o `test -f 'views/GenlistItems/GenlistItemBrowserPlaylist.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemBrowserPlaylist.cpp + +GenlistItemBrowserPlaylist.obj: views/GenlistItems/GenlistItemBrowserPlaylist.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemBrowserPlaylist.obj -MD -MP -MF $(DEPDIR)/GenlistItemBrowserPlaylist.Tpo -c -o GenlistItemBrowserPlaylist.obj `if test -f 'views/GenlistItems/GenlistItemBrowserPlaylist.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemBrowserPlaylist.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemBrowserPlaylist.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemBrowserPlaylist.Tpo $(DEPDIR)/GenlistItemBrowserPlaylist.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemBrowserPlaylist.cpp' object='GenlistItemBrowserPlaylist.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemBrowserPlaylist.obj `if test -f 'views/GenlistItems/GenlistItemBrowserPlaylist.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemBrowserPlaylist.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemBrowserPlaylist.cpp'; fi` + +GenlistItemPlaylistHeader.o: views/GenlistItems/GenlistItemPlaylistHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemPlaylistHeader.o -MD -MP -MF $(DEPDIR)/GenlistItemPlaylistHeader.Tpo -c -o GenlistItemPlaylistHeader.o `test -f 'views/GenlistItems/GenlistItemPlaylistHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemPlaylistHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemPlaylistHeader.Tpo $(DEPDIR)/GenlistItemPlaylistHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemPlaylistHeader.cpp' object='GenlistItemPlaylistHeader.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemPlaylistHeader.o `test -f 'views/GenlistItems/GenlistItemPlaylistHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemPlaylistHeader.cpp + +GenlistItemPlaylistHeader.obj: views/GenlistItems/GenlistItemPlaylistHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemPlaylistHeader.obj -MD -MP -MF $(DEPDIR)/GenlistItemPlaylistHeader.Tpo -c -o GenlistItemPlaylistHeader.obj `if test -f 'views/GenlistItems/GenlistItemPlaylistHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemPlaylistHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemPlaylistHeader.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemPlaylistHeader.Tpo $(DEPDIR)/GenlistItemPlaylistHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemPlaylistHeader.cpp' object='GenlistItemPlaylistHeader.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemPlaylistHeader.obj `if test -f 'views/GenlistItems/GenlistItemPlaylistHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemPlaylistHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemPlaylistHeader.cpp'; fi` + +GenlistItemRadio.o: views/GenlistItems/GenlistItemRadio.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemRadio.o -MD -MP -MF $(DEPDIR)/GenlistItemRadio.Tpo -c -o GenlistItemRadio.o `test -f 'views/GenlistItems/GenlistItemRadio.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemRadio.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemRadio.Tpo $(DEPDIR)/GenlistItemRadio.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemRadio.cpp' object='GenlistItemRadio.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemRadio.o `test -f 'views/GenlistItems/GenlistItemRadio.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemRadio.cpp + +GenlistItemRadio.obj: views/GenlistItems/GenlistItemRadio.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemRadio.obj -MD -MP -MF $(DEPDIR)/GenlistItemRadio.Tpo -c -o GenlistItemRadio.obj `if test -f 'views/GenlistItems/GenlistItemRadio.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemRadio.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemRadio.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemRadio.Tpo $(DEPDIR)/GenlistItemRadio.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemRadio.cpp' object='GenlistItemRadio.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemRadio.obj `if test -f 'views/GenlistItems/GenlistItemRadio.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemRadio.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemRadio.cpp'; fi` + +GenlistItemScenarioSchedule.o: views/GenlistItems/GenlistItemScenarioSchedule.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioSchedule.o -MD -MP -MF $(DEPDIR)/GenlistItemScenarioSchedule.Tpo -c -o GenlistItemScenarioSchedule.o `test -f 'views/GenlistItems/GenlistItemScenarioSchedule.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioSchedule.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioSchedule.Tpo $(DEPDIR)/GenlistItemScenarioSchedule.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioSchedule.cpp' object='GenlistItemScenarioSchedule.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioSchedule.o `test -f 'views/GenlistItems/GenlistItemScenarioSchedule.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioSchedule.cpp + +GenlistItemScenarioSchedule.obj: views/GenlistItems/GenlistItemScenarioSchedule.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioSchedule.obj -MD -MP -MF $(DEPDIR)/GenlistItemScenarioSchedule.Tpo -c -o GenlistItemScenarioSchedule.obj `if test -f 'views/GenlistItems/GenlistItemScenarioSchedule.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioSchedule.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioSchedule.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioSchedule.Tpo $(DEPDIR)/GenlistItemScenarioSchedule.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioSchedule.cpp' object='GenlistItemScenarioSchedule.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioSchedule.obj `if test -f 'views/GenlistItems/GenlistItemScenarioSchedule.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioSchedule.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioSchedule.cpp'; fi` + +GenlistItemScenarioScheduleTime.o: views/GenlistItems/GenlistItemScenarioScheduleTime.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioScheduleTime.o -MD -MP -MF $(DEPDIR)/GenlistItemScenarioScheduleTime.Tpo -c -o GenlistItemScenarioScheduleTime.o `test -f 'views/GenlistItems/GenlistItemScenarioScheduleTime.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioScheduleTime.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioScheduleTime.Tpo $(DEPDIR)/GenlistItemScenarioScheduleTime.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioScheduleTime.cpp' object='GenlistItemScenarioScheduleTime.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioScheduleTime.o `test -f 'views/GenlistItems/GenlistItemScenarioScheduleTime.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioScheduleTime.cpp + +GenlistItemScenarioScheduleTime.obj: views/GenlistItems/GenlistItemScenarioScheduleTime.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioScheduleTime.obj -MD -MP -MF $(DEPDIR)/GenlistItemScenarioScheduleTime.Tpo -c -o GenlistItemScenarioScheduleTime.obj `if test -f 'views/GenlistItems/GenlistItemScenarioScheduleTime.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioScheduleTime.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioScheduleTime.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioScheduleTime.Tpo $(DEPDIR)/GenlistItemScenarioScheduleTime.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioScheduleTime.cpp' object='GenlistItemScenarioScheduleTime.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioScheduleTime.obj `if test -f 'views/GenlistItems/GenlistItemScenarioScheduleTime.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioScheduleTime.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioScheduleTime.cpp'; fi` + +GenlistItemScenarioAction.o: views/GenlistItems/GenlistItemScenarioAction.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioAction.o -MD -MP -MF $(DEPDIR)/GenlistItemScenarioAction.Tpo -c -o GenlistItemScenarioAction.o `test -f 'views/GenlistItems/GenlistItemScenarioAction.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioAction.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioAction.Tpo $(DEPDIR)/GenlistItemScenarioAction.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioAction.cpp' object='GenlistItemScenarioAction.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioAction.o `test -f 'views/GenlistItems/GenlistItemScenarioAction.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioAction.cpp + +GenlistItemScenarioAction.obj: views/GenlistItems/GenlistItemScenarioAction.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioAction.obj -MD -MP -MF $(DEPDIR)/GenlistItemScenarioAction.Tpo -c -o GenlistItemScenarioAction.obj `if test -f 'views/GenlistItems/GenlistItemScenarioAction.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioAction.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioAction.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioAction.Tpo $(DEPDIR)/GenlistItemScenarioAction.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioAction.cpp' object='GenlistItemScenarioAction.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioAction.obj `if test -f 'views/GenlistItems/GenlistItemScenarioAction.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioAction.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioAction.cpp'; fi` + +GenlistItemScenarioHeader.o: views/GenlistItems/GenlistItemScenarioHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioHeader.o -MD -MP -MF $(DEPDIR)/GenlistItemScenarioHeader.Tpo -c -o GenlistItemScenarioHeader.o `test -f 'views/GenlistItems/GenlistItemScenarioHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioHeader.Tpo $(DEPDIR)/GenlistItemScenarioHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioHeader.cpp' object='GenlistItemScenarioHeader.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioHeader.o `test -f 'views/GenlistItems/GenlistItemScenarioHeader.cpp' || echo '$(srcdir)/'`views/GenlistItems/GenlistItemScenarioHeader.cpp + +GenlistItemScenarioHeader.obj: views/GenlistItems/GenlistItemScenarioHeader.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GenlistItemScenarioHeader.obj -MD -MP -MF $(DEPDIR)/GenlistItemScenarioHeader.Tpo -c -o GenlistItemScenarioHeader.obj `if test -f 'views/GenlistItems/GenlistItemScenarioHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioHeader.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/GenlistItemScenarioHeader.Tpo $(DEPDIR)/GenlistItemScenarioHeader.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/GenlistItems/GenlistItemScenarioHeader.cpp' object='GenlistItemScenarioHeader.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GenlistItemScenarioHeader.obj `if test -f 'views/GenlistItems/GenlistItemScenarioHeader.cpp'; then $(CYGPATH_W) 'views/GenlistItems/GenlistItemScenarioHeader.cpp'; else $(CYGPATH_W) '$(srcdir)/views/GenlistItems/GenlistItemScenarioHeader.cpp'; fi` + +PagingView.o: views/PagingView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT PagingView.o -MD -MP -MF $(DEPDIR)/PagingView.Tpo -c -o PagingView.o `test -f 'views/PagingView.cpp' || echo '$(srcdir)/'`views/PagingView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/PagingView.Tpo $(DEPDIR)/PagingView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/PagingView.cpp' object='PagingView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o PagingView.o `test -f 'views/PagingView.cpp' || echo '$(srcdir)/'`views/PagingView.cpp + +PagingView.obj: views/PagingView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT PagingView.obj -MD -MP -MF $(DEPDIR)/PagingView.Tpo -c -o PagingView.obj `if test -f 'views/PagingView.cpp'; then $(CYGPATH_W) 'views/PagingView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/PagingView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/PagingView.Tpo $(DEPDIR)/PagingView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/PagingView.cpp' object='PagingView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o PagingView.obj `if test -f 'views/PagingView.cpp'; then $(CYGPATH_W) 'views/PagingView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/PagingView.cpp'; fi` + +KeyboardView.o: views/KeyboardView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT KeyboardView.o -MD -MP -MF $(DEPDIR)/KeyboardView.Tpo -c -o KeyboardView.o `test -f 'views/KeyboardView.cpp' || echo '$(srcdir)/'`views/KeyboardView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/KeyboardView.Tpo $(DEPDIR)/KeyboardView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/KeyboardView.cpp' object='KeyboardView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o KeyboardView.o `test -f 'views/KeyboardView.cpp' || echo '$(srcdir)/'`views/KeyboardView.cpp + +KeyboardView.obj: views/KeyboardView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT KeyboardView.obj -MD -MP -MF $(DEPDIR)/KeyboardView.Tpo -c -o KeyboardView.obj `if test -f 'views/KeyboardView.cpp'; then $(CYGPATH_W) 'views/KeyboardView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/KeyboardView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/KeyboardView.Tpo $(DEPDIR)/KeyboardView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/KeyboardView.cpp' object='KeyboardView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o KeyboardView.obj `if test -f 'views/KeyboardView.cpp'; then $(CYGPATH_W) 'views/KeyboardView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/KeyboardView.cpp'; fi` + +ActivityCameraListView.o: views/ActivityCameraListView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraListView.o -MD -MP -MF $(DEPDIR)/ActivityCameraListView.Tpo -c -o ActivityCameraListView.o `test -f 'views/ActivityCameraListView.cpp' || echo '$(srcdir)/'`views/ActivityCameraListView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraListView.Tpo $(DEPDIR)/ActivityCameraListView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityCameraListView.cpp' object='ActivityCameraListView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraListView.o `test -f 'views/ActivityCameraListView.cpp' || echo '$(srcdir)/'`views/ActivityCameraListView.cpp + +ActivityCameraListView.obj: views/ActivityCameraListView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraListView.obj -MD -MP -MF $(DEPDIR)/ActivityCameraListView.Tpo -c -o ActivityCameraListView.obj `if test -f 'views/ActivityCameraListView.cpp'; then $(CYGPATH_W) 'views/ActivityCameraListView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityCameraListView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraListView.Tpo $(DEPDIR)/ActivityCameraListView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityCameraListView.cpp' object='ActivityCameraListView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraListView.obj `if test -f 'views/ActivityCameraListView.cpp'; then $(CYGPATH_W) 'views/ActivityCameraListView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityCameraListView.cpp'; fi` + +ActivityCameraSelectView.o: views/ActivityCameraSelectView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraSelectView.o -MD -MP -MF $(DEPDIR)/ActivityCameraSelectView.Tpo -c -o ActivityCameraSelectView.o `test -f 'views/ActivityCameraSelectView.cpp' || echo '$(srcdir)/'`views/ActivityCameraSelectView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraSelectView.Tpo $(DEPDIR)/ActivityCameraSelectView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityCameraSelectView.cpp' object='ActivityCameraSelectView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraSelectView.o `test -f 'views/ActivityCameraSelectView.cpp' || echo '$(srcdir)/'`views/ActivityCameraSelectView.cpp + +ActivityCameraSelectView.obj: views/ActivityCameraSelectView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraSelectView.obj -MD -MP -MF $(DEPDIR)/ActivityCameraSelectView.Tpo -c -o ActivityCameraSelectView.obj `if test -f 'views/ActivityCameraSelectView.cpp'; then $(CYGPATH_W) 'views/ActivityCameraSelectView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityCameraSelectView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraSelectView.Tpo $(DEPDIR)/ActivityCameraSelectView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityCameraSelectView.cpp' object='ActivityCameraSelectView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraSelectView.obj `if test -f 'views/ActivityCameraSelectView.cpp'; then $(CYGPATH_W) 'views/ActivityCameraSelectView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityCameraSelectView.cpp'; fi` + +ActivityAudioListView.o: views/ActivityAudioListView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityAudioListView.o -MD -MP -MF $(DEPDIR)/ActivityAudioListView.Tpo -c -o ActivityAudioListView.o `test -f 'views/ActivityAudioListView.cpp' || echo '$(srcdir)/'`views/ActivityAudioListView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityAudioListView.Tpo $(DEPDIR)/ActivityAudioListView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityAudioListView.cpp' object='ActivityAudioListView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityAudioListView.o `test -f 'views/ActivityAudioListView.cpp' || echo '$(srcdir)/'`views/ActivityAudioListView.cpp + +ActivityAudioListView.obj: views/ActivityAudioListView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityAudioListView.obj -MD -MP -MF $(DEPDIR)/ActivityAudioListView.Tpo -c -o ActivityAudioListView.obj `if test -f 'views/ActivityAudioListView.cpp'; then $(CYGPATH_W) 'views/ActivityAudioListView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityAudioListView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityAudioListView.Tpo $(DEPDIR)/ActivityAudioListView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityAudioListView.cpp' object='ActivityAudioListView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityAudioListView.obj `if test -f 'views/ActivityAudioListView.cpp'; then $(CYGPATH_W) 'views/ActivityAudioListView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityAudioListView.cpp'; fi` + +ActivityAudioPlayerObject.o: views/ActivityAudioPlayerObject.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityAudioPlayerObject.o -MD -MP -MF $(DEPDIR)/ActivityAudioPlayerObject.Tpo -c -o ActivityAudioPlayerObject.o `test -f 'views/ActivityAudioPlayerObject.cpp' || echo '$(srcdir)/'`views/ActivityAudioPlayerObject.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityAudioPlayerObject.Tpo $(DEPDIR)/ActivityAudioPlayerObject.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityAudioPlayerObject.cpp' object='ActivityAudioPlayerObject.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityAudioPlayerObject.o `test -f 'views/ActivityAudioPlayerObject.cpp' || echo '$(srcdir)/'`views/ActivityAudioPlayerObject.cpp + +ActivityAudioPlayerObject.obj: views/ActivityAudioPlayerObject.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityAudioPlayerObject.obj -MD -MP -MF $(DEPDIR)/ActivityAudioPlayerObject.Tpo -c -o ActivityAudioPlayerObject.obj `if test -f 'views/ActivityAudioPlayerObject.cpp'; then $(CYGPATH_W) 'views/ActivityAudioPlayerObject.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityAudioPlayerObject.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityAudioPlayerObject.Tpo $(DEPDIR)/ActivityAudioPlayerObject.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityAudioPlayerObject.cpp' object='ActivityAudioPlayerObject.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityAudioPlayerObject.obj `if test -f 'views/ActivityAudioPlayerObject.cpp'; then $(CYGPATH_W) 'views/ActivityAudioPlayerObject.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityAudioPlayerObject.cpp'; fi` + +ActivityCameraListController.o: controllers/ActivityCameraListController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraListController.o -MD -MP -MF $(DEPDIR)/ActivityCameraListController.Tpo -c -o ActivityCameraListController.o `test -f 'controllers/ActivityCameraListController.cpp' || echo '$(srcdir)/'`controllers/ActivityCameraListController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraListController.Tpo $(DEPDIR)/ActivityCameraListController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityCameraListController.cpp' object='ActivityCameraListController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraListController.o `test -f 'controllers/ActivityCameraListController.cpp' || echo '$(srcdir)/'`controllers/ActivityCameraListController.cpp + +ActivityCameraListController.obj: controllers/ActivityCameraListController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraListController.obj -MD -MP -MF $(DEPDIR)/ActivityCameraListController.Tpo -c -o ActivityCameraListController.obj `if test -f 'controllers/ActivityCameraListController.cpp'; then $(CYGPATH_W) 'controllers/ActivityCameraListController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityCameraListController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraListController.Tpo $(DEPDIR)/ActivityCameraListController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityCameraListController.cpp' object='ActivityCameraListController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraListController.obj `if test -f 'controllers/ActivityCameraListController.cpp'; then $(CYGPATH_W) 'controllers/ActivityCameraListController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityCameraListController.cpp'; fi` + +ActivityCameraSelectController.o: controllers/ActivityCameraSelectController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraSelectController.o -MD -MP -MF $(DEPDIR)/ActivityCameraSelectController.Tpo -c -o ActivityCameraSelectController.o `test -f 'controllers/ActivityCameraSelectController.cpp' || echo '$(srcdir)/'`controllers/ActivityCameraSelectController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraSelectController.Tpo $(DEPDIR)/ActivityCameraSelectController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityCameraSelectController.cpp' object='ActivityCameraSelectController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraSelectController.o `test -f 'controllers/ActivityCameraSelectController.cpp' || echo '$(srcdir)/'`controllers/ActivityCameraSelectController.cpp + +ActivityCameraSelectController.obj: controllers/ActivityCameraSelectController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityCameraSelectController.obj -MD -MP -MF $(DEPDIR)/ActivityCameraSelectController.Tpo -c -o ActivityCameraSelectController.obj `if test -f 'controllers/ActivityCameraSelectController.cpp'; then $(CYGPATH_W) 'controllers/ActivityCameraSelectController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityCameraSelectController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityCameraSelectController.Tpo $(DEPDIR)/ActivityCameraSelectController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityCameraSelectController.cpp' object='ActivityCameraSelectController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityCameraSelectController.obj `if test -f 'controllers/ActivityCameraSelectController.cpp'; then $(CYGPATH_W) 'controllers/ActivityCameraSelectController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityCameraSelectController.cpp'; fi` + +ActivityAudioListController.o: controllers/ActivityAudioListController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityAudioListController.o -MD -MP -MF $(DEPDIR)/ActivityAudioListController.Tpo -c -o ActivityAudioListController.o `test -f 'controllers/ActivityAudioListController.cpp' || echo '$(srcdir)/'`controllers/ActivityAudioListController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityAudioListController.Tpo $(DEPDIR)/ActivityAudioListController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityAudioListController.cpp' object='ActivityAudioListController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityAudioListController.o `test -f 'controllers/ActivityAudioListController.cpp' || echo '$(srcdir)/'`controllers/ActivityAudioListController.cpp + +ActivityAudioListController.obj: controllers/ActivityAudioListController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityAudioListController.obj -MD -MP -MF $(DEPDIR)/ActivityAudioListController.Tpo -c -o ActivityAudioListController.obj `if test -f 'controllers/ActivityAudioListController.cpp'; then $(CYGPATH_W) 'controllers/ActivityAudioListController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityAudioListController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityAudioListController.Tpo $(DEPDIR)/ActivityAudioListController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityAudioListController.cpp' object='ActivityAudioListController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityAudioListController.obj `if test -f 'controllers/ActivityAudioListController.cpp'; then $(CYGPATH_W) 'controllers/ActivityAudioListController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityAudioListController.cpp'; fi` + +ActivityEditScenarioView.o: views/ActivityEditScenarioView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityEditScenarioView.o -MD -MP -MF $(DEPDIR)/ActivityEditScenarioView.Tpo -c -o ActivityEditScenarioView.o `test -f 'views/ActivityEditScenarioView.cpp' || echo '$(srcdir)/'`views/ActivityEditScenarioView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityEditScenarioView.Tpo $(DEPDIR)/ActivityEditScenarioView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityEditScenarioView.cpp' object='ActivityEditScenarioView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityEditScenarioView.o `test -f 'views/ActivityEditScenarioView.cpp' || echo '$(srcdir)/'`views/ActivityEditScenarioView.cpp + +ActivityEditScenarioView.obj: views/ActivityEditScenarioView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityEditScenarioView.obj -MD -MP -MF $(DEPDIR)/ActivityEditScenarioView.Tpo -c -o ActivityEditScenarioView.obj `if test -f 'views/ActivityEditScenarioView.cpp'; then $(CYGPATH_W) 'views/ActivityEditScenarioView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityEditScenarioView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityEditScenarioView.Tpo $(DEPDIR)/ActivityEditScenarioView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityEditScenarioView.cpp' object='ActivityEditScenarioView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityEditScenarioView.obj `if test -f 'views/ActivityEditScenarioView.cpp'; then $(CYGPATH_W) 'views/ActivityEditScenarioView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityEditScenarioView.cpp'; fi` + +ActivityScheduleScenarioView.o: views/ActivityScheduleScenarioView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScheduleScenarioView.o -MD -MP -MF $(DEPDIR)/ActivityScheduleScenarioView.Tpo -c -o ActivityScheduleScenarioView.o `test -f 'views/ActivityScheduleScenarioView.cpp' || echo '$(srcdir)/'`views/ActivityScheduleScenarioView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScheduleScenarioView.Tpo $(DEPDIR)/ActivityScheduleScenarioView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityScheduleScenarioView.cpp' object='ActivityScheduleScenarioView.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScheduleScenarioView.o `test -f 'views/ActivityScheduleScenarioView.cpp' || echo '$(srcdir)/'`views/ActivityScheduleScenarioView.cpp + +ActivityScheduleScenarioView.obj: views/ActivityScheduleScenarioView.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScheduleScenarioView.obj -MD -MP -MF $(DEPDIR)/ActivityScheduleScenarioView.Tpo -c -o ActivityScheduleScenarioView.obj `if test -f 'views/ActivityScheduleScenarioView.cpp'; then $(CYGPATH_W) 'views/ActivityScheduleScenarioView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityScheduleScenarioView.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScheduleScenarioView.Tpo $(DEPDIR)/ActivityScheduleScenarioView.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/ActivityScheduleScenarioView.cpp' object='ActivityScheduleScenarioView.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScheduleScenarioView.obj `if test -f 'views/ActivityScheduleScenarioView.cpp'; then $(CYGPATH_W) 'views/ActivityScheduleScenarioView.cpp'; else $(CYGPATH_W) '$(srcdir)/views/ActivityScheduleScenarioView.cpp'; fi` + +ActivityEditScenarioController.o: controllers/ActivityEditScenarioController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityEditScenarioController.o -MD -MP -MF $(DEPDIR)/ActivityEditScenarioController.Tpo -c -o ActivityEditScenarioController.o `test -f 'controllers/ActivityEditScenarioController.cpp' || echo '$(srcdir)/'`controllers/ActivityEditScenarioController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityEditScenarioController.Tpo $(DEPDIR)/ActivityEditScenarioController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityEditScenarioController.cpp' object='ActivityEditScenarioController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityEditScenarioController.o `test -f 'controllers/ActivityEditScenarioController.cpp' || echo '$(srcdir)/'`controllers/ActivityEditScenarioController.cpp + +ActivityEditScenarioController.obj: controllers/ActivityEditScenarioController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityEditScenarioController.obj -MD -MP -MF $(DEPDIR)/ActivityEditScenarioController.Tpo -c -o ActivityEditScenarioController.obj `if test -f 'controllers/ActivityEditScenarioController.cpp'; then $(CYGPATH_W) 'controllers/ActivityEditScenarioController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityEditScenarioController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityEditScenarioController.Tpo $(DEPDIR)/ActivityEditScenarioController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityEditScenarioController.cpp' object='ActivityEditScenarioController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityEditScenarioController.obj `if test -f 'controllers/ActivityEditScenarioController.cpp'; then $(CYGPATH_W) 'controllers/ActivityEditScenarioController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityEditScenarioController.cpp'; fi` + +ActivityScheduleScenarioController.o: controllers/ActivityScheduleScenarioController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScheduleScenarioController.o -MD -MP -MF $(DEPDIR)/ActivityScheduleScenarioController.Tpo -c -o ActivityScheduleScenarioController.o `test -f 'controllers/ActivityScheduleScenarioController.cpp' || echo '$(srcdir)/'`controllers/ActivityScheduleScenarioController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScheduleScenarioController.Tpo $(DEPDIR)/ActivityScheduleScenarioController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityScheduleScenarioController.cpp' object='ActivityScheduleScenarioController.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScheduleScenarioController.o `test -f 'controllers/ActivityScheduleScenarioController.cpp' || echo '$(srcdir)/'`controllers/ActivityScheduleScenarioController.cpp + +ActivityScheduleScenarioController.obj: controllers/ActivityScheduleScenarioController.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActivityScheduleScenarioController.obj -MD -MP -MF $(DEPDIR)/ActivityScheduleScenarioController.Tpo -c -o ActivityScheduleScenarioController.obj `if test -f 'controllers/ActivityScheduleScenarioController.cpp'; then $(CYGPATH_W) 'controllers/ActivityScheduleScenarioController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityScheduleScenarioController.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActivityScheduleScenarioController.Tpo $(DEPDIR)/ActivityScheduleScenarioController.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='controllers/ActivityScheduleScenarioController.cpp' object='ActivityScheduleScenarioController.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActivityScheduleScenarioController.obj `if test -f 'controllers/ActivityScheduleScenarioController.cpp'; then $(CYGPATH_W) 'controllers/ActivityScheduleScenarioController.cpp'; else $(CYGPATH_W) '$(srcdir)/controllers/ActivityScheduleScenarioController.cpp'; fi` + +Widget.o: views/Widget.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Widget.o -MD -MP -MF $(DEPDIR)/Widget.Tpo -c -o Widget.o `test -f 'views/Widget.cpp' || echo '$(srcdir)/'`views/Widget.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Widget.Tpo $(DEPDIR)/Widget.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/Widget.cpp' object='Widget.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Widget.o `test -f 'views/Widget.cpp' || echo '$(srcdir)/'`views/Widget.cpp + +Widget.obj: views/Widget.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Widget.obj -MD -MP -MF $(DEPDIR)/Widget.Tpo -c -o Widget.obj `if test -f 'views/Widget.cpp'; then $(CYGPATH_W) 'views/Widget.cpp'; else $(CYGPATH_W) '$(srcdir)/views/Widget.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Widget.Tpo $(DEPDIR)/Widget.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='views/Widget.cpp' object='Widget.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Widget.obj `if test -f 'views/Widget.cpp'; then $(CYGPATH_W) 'views/Widget.cpp'; else $(CYGPATH_W) '$(srcdir)/views/Widget.cpp'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + 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; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS + + +# 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/src/bin/calaos_home/Modules.cpp b/src/bin/calaos_home/Modules.cpp new file mode 100644 index 00000000..ad201fa2 --- /dev/null +++ b/src/bin/calaos_home/Modules.cpp @@ -0,0 +1,207 @@ +/****************************************************************************** + ** Copyright (c) 2006-2012, Calaos. All Rights Reserved. + ** + ** This file is part of Calaos Home. + ** + ** Calaos Home is free software; you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation; either version 3 of the License, or + ** (at your option) any later version. + ** + ** Calaos Home 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 Foobar; if not, write to the Free Software + ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + ** + ******************************************************************************/ +#include + +ModuleManager::ModuleManager() +{ + ecore_file_init(); +} + +struct DlCloseHandle +{ + template void operator ()(T &p) const + { + if (p.inst) delete p.inst; + p.inst = NULL; + dlclose(p.handle); + p.handle = NULL; + p.api = NULL; + } +}; +ModuleManager::~ModuleManager() +{ + for_each(modules.begin(), modules.end(), DlCloseHandle()); + for_each(mods_inst.begin(), mods_inst.end(), DlCloseHandle()); +} + +void ModuleManager::SearchModules() +{ + for (uint i = 0;i < search_paths.size();i++) + { + char *fname = NULL; + void *data = NULL; + Eina_List *subdir = ecore_file_ls(search_paths[i].c_str()); + Eina_List *l = NULL; + + EINA_LIST_FOREACH(subdir, l, data) + { + fname = (char *)data; + string p; + + p = search_paths[i]; + + if (fname) + { + p += "/"; + p += fname; + } + if (p[p.length() - 1] != '/') p += "/"; + + if (!ecore_file_is_dir(p.c_str())) + continue; + + p += "module.so"; + + if (!ecore_file_exists(p.c_str())) + continue; + + //try to load the module + void *handle = dlopen(p.c_str(), RTLD_LAZY); + + if (handle) + { + //object can be loaded, check version and + CalaosModuleApi *api = (CalaosModuleApi *)dlsym(handle, "calaos_modapi"); + + if (api->api_version != CALAOS_MODULE_API_VERSION) + { + dlclose(handle); + + Utils::logger("module") << Priority::ERROR << "ModuleManager: module " << p << ". The API version doesn't match" << log4cpp::eol; + + continue; + } + + string::size_type pos = p.find_last_of('/'); + + ModuleDef mdef; + mdef.mod_name = api->name; + mdef.mod_desc = api->desc; + mdef.mod_version = api->version; + mdef.mod_author = api->author; + mdef.mod_icon = p.substr(0, pos + 1) + "icon.edj"; + mdef.mod_fname = p; + mdef.handle = handle; + mdef.inst = NULL; + mdef.api = api; + + Utils::logger("module") << Priority::INFO << "ModuleManager: found module: " << mdef.mod_name << log4cpp::eol; + + modules.push_back(mdef); + } + else + { + Utils::logger("module") << Priority::WARN << "ModuleManager: file " << p << " : failed to dlopen: " << dlerror() << log4cpp::eol; + } + + } + + EINA_LIST_FREE(subdir, data) + free(data); + } +} + +bool ModuleManager::createModuleInstance(Evas *evas, ModuleDef &type, ModuleDef &mdef, string id) +{ + if (!type.handle || !type.api) return false; + + string::size_type pos = type.mod_fname.find_last_of('/'); + string module_path = type.mod_fname.substr(0, pos + 1); + + CalaosModuleBase *cmod = type.api->create_object(evas, id.c_str(), module_path.c_str()); + + if (cmod) + { + mdef.mod_name = type.mod_name; + mdef.mod_desc = type.mod_desc; + mdef.mod_version = type.mod_version; + mdef.mod_author = type.mod_author; + mdef.mod_icon = type.mod_fname.substr(0, pos + 1) + "icon.edj"; + mdef.mod_fname = type.mod_fname; + mdef.inst = cmod; + mdef.handle = type.handle; + mdef.api = type.api; + + Utils::logger("module") << Priority::INFO << "ModuleManager: New module instance: " << mdef.mod_name << log4cpp::eol; + + mods_inst.push_back(mdef); + + return true; + } + + mdef.inst = NULL; + mdef.handle = NULL; + mdef.api = NULL; + + return false; +} + +void ModuleManager::DeleteInstance(ModuleDef &mod) +{ + //safety check + + if (!mod.inst) return; + + vector::iterator it = mods_inst.begin(); + for (int i = 0;i < instanceSize();i++, it++) + { + if (mod.inst == mods_inst[i].inst) + { + CalaosModuleBase *cmod = getModuleInstance(mod); + if (cmod) delete cmod; + mod.inst = NULL; + + mods_inst.erase(it); + + break; + } + } +} + +CalaosModuleBase *ModuleManager::getModuleInstance(ModuleDef &mod) +{ + //safety check + + if (!mod.inst) return NULL; + + bool found = false; + for (int i = 0;i < instanceSize();i++) + { + if (mod.inst == mods_inst[i].inst) found = true; + } + + if (found) return mod.inst; + + return NULL; +} + +vector ModuleManager::getModuleInstances(string mod_fname) +{ + vector mods; + + for (int i = 0;i < instanceSize();i++) + { + if (mods_inst[i].mod_fname == mod_fname) + mods.push_back(mods_inst[i]); + } + + return mods; +} diff --git a/src/bin/calaos_home/Modules.h b/src/bin/calaos_home/Modules.h new file mode 100644 index 00000000..7413d7c5 --- /dev/null +++ b/src/bin/calaos_home/Modules.h @@ -0,0 +1,107 @@ +/****************************************************************************** + ** Copyright (c) 2006-2012, Calaos. All Rights Reserved. + ** + ** This file is part of Calaos Home. + ** + ** Calaos Home is free software; you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation; either version 3 of the License, or + ** (at your option) any later version. + ** + ** Calaos Home 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 Foobar; if not, write to the Free Software + ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + ** + ******************************************************************************/ +#ifndef CALAOS_MODULES +#define CALAOS_MODULES + +#include +#include +#include +#include +#include +#include + +using namespace std; + +class ModuleDef +{ + public: + ModuleDef(): mod_name("\0"), mod_author("\0"), + mod_desc("\0"), mod_version("\0"), + mod_icon("\0"), mod_fname("\0"), + api(NULL), inst(NULL), handle(NULL) + {} + + string mod_name; // module name as returned by module->getName() + string mod_author; // module name as returned by module->getName() + string mod_desc; // module description as returned by module->getDescription() + string mod_version; // module version as returned by module->getVersion() + string mod_icon; // module icon, this is the filename + path of an edje file containing the module icon + // The group "icon" is loaded from the edje file. If nothing is found, it take the + // default icon from the main theme. + string mod_fname; //module filename + + CalaosModuleApi *api; + + CalaosModuleBase *inst; //module instance + + void *handle; //shared object handle +}; + +class ModuleManager +{ + private: + ModuleManager(); + ~ModuleManager(); + + //search paths + vector search_paths; + + //all running modules are stored here + vector mods_inst; + + //all loadable modules are listed here + vector modules; + + public: + static ModuleManager &Instance() + { + static ModuleManager mmanager; + + return mmanager; + } + + void addPath(string path) { search_paths.push_back(path); } + + // Search for loadable modules in paths + void SearchModules(); + + // Get all available modules + vector getModules() { return modules; } + + // Create a new instance of mod_fname + bool createModuleInstance(Evas *evas, ModuleDef &type, ModuleDef &mdef, string id); + + // Delete a module instance + void DeleteInstance(ModuleDef &mod); + + // Get C++ instance of i module + CalaosModuleBase *getModuleInstance(ModuleDef &mod); + + // Get all instance for a specific module type + vector getModuleInstances(string mod_fname); + + //total number of modules instance + int instanceSize() { return mods_inst.size(); } + //total modules available + int availableSize() { return modules.size(); } +}; + +#endif diff --git a/src/bin/calaos_home/controllers/ActivityAudioListController.cpp b/src/bin/calaos_home/controllers/ActivityAudioListController.cpp new file mode 100644 index 00000000..41fc40a6 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityAudioListController.cpp @@ -0,0 +1,179 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityAudioListController.h" +#include "ActivityMediaController.h" + +ActivityAudioListController::ActivityAudioListController(Evas *e, Evas_Object *p, ActivityMediaController *pc): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_AUDIO_LIST), + parentController(pc) +{ + CalaosModel::Instance(); +} + +ActivityAudioListController::~ActivityAudioListController() +{ +} + +void ActivityAudioListController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityAudioListView *audioView = dynamic_cast(view); + + audioView->button_left_click.connect(sigc::mem_fun(*this, &ActivityAudioListController::clickLeft)); + audioView->button_right_click.connect(sigc::mem_fun(*this, &ActivityAudioListController::clickRight)); + audioView->addCallback("audio", "animation,done", sigc::mem_fun(*this, &ActivityAudioListController::doneCallback)); + audioView->player_selected.connect(sigc::mem_fun(*this, &ActivityAudioListController::playerSelectCallback)); + + if (!CalaosModel::Instance().isLoaded()) + { + audioView->ShowLoading(); + + CalaosModel::Instance().home_loaded.connect(sigc::mem_fun(*this, &ActivityAudioListController::load_done)); + + return; + } + + page = 0; + updatePageView(); +} + +void ActivityAudioListController::load_done() +{ + ActivityAudioListView *audioView = dynamic_cast(view); + audioView->HideLoading(); + + page = 0; + updatePageView(); +} + +void ActivityAudioListController::updatePageView() +{ + ActivityAudioListView *audioView = dynamic_cast(view); + + list::iterator it = CalaosModel::Instance().getAudio()->players.begin(); + int i = 0; + + for (int j = 0;j < page * 3;j++) + it++; + + for (int j = 0;j < 3;j++) + { + //disable unused players + audioView->disablePlayer(j); + } + + for (;it != CalaosModel::Instance().getAudio()->players.end() && i < 3; + it++, i++) + { + AudioPlayer *player = (*it); + + audioView->setPlayer(player, i); + } + + if (page == 0) + audioView->DisableLeftButton(); + else + audioView->EnableLeftButton(); + + int page_count = (CalaosModel::Instance().getAudio()->players.size() / 3) - 1; + if (CalaosModel::Instance().getAudio()->players.size() % 3 > 0) + page_count++; + + if (page < page_count && + (CalaosModel::Instance().getAudio()->players.size() > 3)) + audioView->EnableRightButton(); + else + audioView->DisableRightButton(); + + audioView->EmitSignal("show", "calaos"); +} + +void ActivityAudioListController::clickLeft() +{ + page--; + if (page < 0) + { + page = 0; + return; + } + + ActivityAudioListView *audioView = dynamic_cast(view); + audioView->EmitSignal("hide,right", "calaos"); + parentController->setButtonMode("mode,back"); +} + +void ActivityAudioListController::clickRight() +{ + page++; + if (page > (int)(CalaosModel::Instance().getAudio()->players.size() / 3)) + { + page = (CalaosModel::Instance().getAudio()->players.size() / 3); + return; + } + + ActivityAudioListView *audioView = dynamic_cast(view); + audioView->EmitSignal("hide,left", "calaos"); + parentController->setButtonMode("mode,back"); +} + +void ActivityAudioListController::doneCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + updatePageView(); +} + +void ActivityAudioListController::playerSelectCallback(AudioPlayer *player) +{ + //ActivityCameraSelectController *controller = new ActivityCameraSelectController(*it, evas, parent); + //parentController->addSubController(controller); + parentController->setButtonMode("mode,audio_detail"); +} + +bool ActivityAudioListController::handleButtonClick(string button) +{ + if (button == "button.audio.back") + { + ActivityAudioListView *audioView = dynamic_cast(view); + + if (!audioView->isEditMode()) + { + audioView->unselectPlayers(); + parentController->setButtonMode("mode,back"); + } + else + { + audioView->unsetEditMode(); + } + + return true; + } + else if (button == "button.audio.more") + { + ActivityAudioListView *audioView = dynamic_cast(view); + audioView->setEditMode(); + + return true; + } + + return false; +} diff --git a/src/bin/calaos_home/controllers/ActivityAudioListController.h b/src/bin/calaos_home/controllers/ActivityAudioListController.h new file mode 100644 index 00000000..741233fb --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityAudioListController.h @@ -0,0 +1,62 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYAUDIOLISTCONTROLLER_H +#define ACTIVITYAUDIOLISTCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityAudioListView.h" +#include "AudioModel.h" + +using namespace Utils; + +class ActivityMediaController; + +class ActivityAudioListController: public ActivityController +{ + private: + void createView(); + + ActivityMediaController *parentController; + + int page; + + void catchBackButton(); + + void updatePageView(); + + void clickLeft(); + void clickRight(); + + void load_done(); + + void doneCallback(void *data, Evas_Object *edje_object, string emission, string source); + void playerSelectCallback(AudioPlayer *player); + + public: + ActivityAudioListController(Evas *evas, Evas_Object *parent, ActivityMediaController *parentController); + ~ActivityAudioListController(); + + virtual bool handleButtonClick(string button); +}; + +#endif // ACTIVITYAUDIOLISTCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityCameraListController.cpp b/src/bin/calaos_home/controllers/ActivityCameraListController.cpp new file mode 100644 index 00000000..4e1bd9c2 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityCameraListController.cpp @@ -0,0 +1,189 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityCameraListController.h" +#include "ActivityMediaController.h" + +ActivityCameraListController::ActivityCameraListController(Evas *e, Evas_Object *p, ActivityMediaController *pc): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_CAMERA_LIST), + parentController(pc), + cameraSelectController(NULL) +{ + CalaosModel::Instance(); +} + +ActivityCameraListController::~ActivityCameraListController() +{ +} + +void ActivityCameraListController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityCameraListView *cameraView = dynamic_cast(view); + + cameraView->button_left_click.connect(sigc::mem_fun(*this, &ActivityCameraListController::clickLeft)); + cameraView->button_right_click.connect(sigc::mem_fun(*this, &ActivityCameraListController::clickRight)); + cameraView->addCallback("cameras", "animation,done", sigc::mem_fun(*this, &ActivityCameraListController::doneCallback)); + cameraView->addCallback("camera", "select,*", sigc::mem_fun(*this, &ActivityCameraListController::cameraSelectCallback)); + + if (!CalaosModel::Instance().isLoaded()) + { + cameraView->ShowLoading(); + + CalaosModel::Instance().home_loaded.connect(sigc::mem_fun(*this, &ActivityCameraListController::load_done)); + + return; + } + + page = 0; + updatePageView(); + updateScenarios(); +} + +void ActivityCameraListController::load_done() +{ + ActivityCameraListView *cameraView = dynamic_cast(view); + cameraView->HideLoading(); + + page = 0; + updatePageView(); + updateScenarios(); +} + +void ActivityCameraListController::updatePageView() +{ + ActivityCameraListView *cameraView = dynamic_cast(view); + + list::iterator it = CalaosModel::Instance().getCamera()->cameras.begin(); + int i = 0; + + for (int j = 0;j < page * 4;j++) + it++; + + for (int j = 0;j < 4;j++) + { + //disable unused camera + cameraView->disableCamera(j); + } + + for (;it != CalaosModel::Instance().getCamera()->cameras.end() && i < 4; + it++, i++) + { + Camera *camera = (*it); + + cameraView->setCamera(camera, i); + } + + if (page == 0) + cameraView->DisableLeftButton(); + else + cameraView->EnableLeftButton(); + + int page_count = (CalaosModel::Instance().getCamera()->cameras.size() / 4) - 1; + if (CalaosModel::Instance().getCamera()->cameras.size() % 4 > 0) + page_count++; + + if (page < page_count && + (CalaosModel::Instance().getCamera()->cameras.size() > 4)) + cameraView->EnableRightButton(); + else + cameraView->DisableRightButton(); + + cameraView->EmitSignal("show", "calaos"); +} + +void ActivityCameraListController::updateScenarios() +{ + ActivityCameraListView *cameraView = dynamic_cast(view); + + const list &scenarios = CalaosModel::Instance().getHome()->getCacheScenariosPref(); + list page; + + list::const_iterator it = scenarios.begin(); + for (int i = 0;it != scenarios.end();it++, i++) + { + IOBase *io = *it; + page.push_back(io); + + if (page.size() >= 6) + { + cameraView->addScenarioPage(page); + page.clear(); + } + } + + if (page.size() > 0) + { + while (page.size() < 6) page.push_back(NULL); + cameraView->addScenarioPage(page); + } +} + +void ActivityCameraListController::clickLeft() +{ + page--; + if (page < 0) + { + page = 0; + return; + } + + ActivityCameraListView *cameraView = dynamic_cast(view); + cameraView->EmitSignal("hide,right", "calaos"); +} + +void ActivityCameraListController::clickRight() +{ + page++; + if (page > (int)(CalaosModel::Instance().getCamera()->cameras.size() / 4)) + { + page = (CalaosModel::Instance().getCamera()->cameras.size() / 4); + return; + } + + ActivityCameraListView *cameraView = dynamic_cast(view); + cameraView->EmitSignal("hide,left", "calaos"); +} + +void ActivityCameraListController::doneCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + updatePageView(); +} + +void ActivityCameraListController::cameraSelectCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (emission.substr(0, 7) == "select,") + emission = emission.erase(0, 7); + int position; + from_string(emission, position); + + if ((page * 4 + position - 1) >= (int)CalaosModel::Instance().getCamera()->cameras.size()) + return; + + list::iterator it = CalaosModel::Instance().getCamera()->cameras.begin(); + for (int j = 0;j < page * 4 + position - 1;j++) + it++; + + ActivityCameraSelectController *controller = new ActivityCameraSelectController(*it, evas, parent); + parentController->addSubController(controller); +} diff --git a/src/bin/calaos_home/controllers/ActivityCameraListController.h b/src/bin/calaos_home/controllers/ActivityCameraListController.h new file mode 100644 index 00000000..9cf725bb --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityCameraListController.h @@ -0,0 +1,61 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCAMERALISTCONTROLLER_H +#define ACTIVITYCAMERALISTCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityCameraListView.h" +#include "CalaosModel.h" +#include "ActivityCameraSelectController.h" + +using namespace Utils; + +class ActivityMediaController; + +class ActivityCameraListController: public ActivityController +{ + private: + void createView(); + + ActivityMediaController *parentController; + ActivityCameraSelectController *cameraSelectController; + + int page; + + void updatePageView(); + void updateScenarios(); + + void clickLeft(); + void clickRight(); + + void load_done(); + + void doneCallback(void *data, Evas_Object *edje_object, string emission, string source); + void cameraSelectCallback(void *data, Evas_Object *edje_object, string emission, string source); + + public: + ActivityCameraListController(Evas *evas, Evas_Object *parent, ActivityMediaController *parentController); + ~ActivityCameraListController(); +}; + +#endif // ACTIVITYCAMERALISTCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityCameraSelectController.cpp b/src/bin/calaos_home/controllers/ActivityCameraSelectController.cpp new file mode 100644 index 00000000..a1d22a67 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityCameraSelectController.cpp @@ -0,0 +1,66 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityCameraSelectController.h" + +ActivityCameraSelectController::ActivityCameraSelectController(Camera *cam, Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_CAMERA_SELECT), + camera(cam) +{ + CalaosModel::Instance(); +} + +ActivityCameraSelectController::~ActivityCameraSelectController() +{ +} + +void ActivityCameraSelectController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityCameraSelectView *cameraView = dynamic_cast(view); + + if (!CalaosModel::Instance().isLoaded()) + { + cameraView->ShowLoading(); + + CalaosModel::Instance().home_loaded.connect(sigc::mem_fun(*this, &ActivityCameraSelectController::load_done)); + + return; + } + + updateView(); +} + +void ActivityCameraSelectController::load_done() +{ + ActivityCameraSelectView *cameraView = dynamic_cast(view); + cameraView->HideLoading(); + + updateView(); +} + +void ActivityCameraSelectController::updateView() +{ + ActivityCameraSelectView *cameraView = dynamic_cast(view); + cameraView->setCamera(camera); +} diff --git a/src/bin/calaos_home/controllers/ActivityCameraSelectController.h b/src/bin/calaos_home/controllers/ActivityCameraSelectController.h new file mode 100644 index 00000000..a4f23fb7 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityCameraSelectController.h @@ -0,0 +1,48 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCAMERASELECTCONTROLLER_H +#define ACTIVITYCAMERASELECTCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityCameraSelectView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityCameraSelectController: public ActivityController +{ + private: + Camera *camera; + + void createView(); + + void updateView(); + + void load_done(); + + public: + ActivityCameraSelectController(Camera *cam, Evas *evas, Evas_Object *parent); + ~ActivityCameraSelectController(); +}; + +#endif // ACTIVITYCAMERASELECTCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityConfigController.cpp b/src/bin/calaos_home/controllers/ActivityConfigController.cpp new file mode 100644 index 00000000..7330d44a --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityConfigController.cpp @@ -0,0 +1,31 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityConfigController.h" + +ActivityConfigController::ActivityConfigController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_CONFIG) +{ + CalaosModel::Instance(); +} + +ActivityConfigController::~ActivityConfigController() +{ +} diff --git a/src/bin/calaos_home/controllers/ActivityConfigController.h b/src/bin/calaos_home/controllers/ActivityConfigController.h new file mode 100644 index 00000000..d0a344a1 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityConfigController.h @@ -0,0 +1,39 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCONFIGCONTROLLER_H +#define ACTIVITYCONFIGCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityConfigView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityConfigController: public ActivityController +{ + public: + ActivityConfigController(Evas *evas, Evas_Object *parent); + ~ActivityConfigController(); +}; + +#endif // ACTIVITYCONFIGCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityController.cpp b/src/bin/calaos_home/controllers/ActivityController.cpp new file mode 100644 index 00000000..da98044c --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityController.cpp @@ -0,0 +1,74 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityController.h" + +ActivityController::ActivityController(Evas *e, Evas_Object *p, int v): + evas(e), + parent(p), + viewType(v), + view(NULL) +{ +} + +ActivityController::~ActivityController() +{ + DELETE_NULL(view); +} + +BaseView *ActivityController::getView() +{ + createView(); + + return dynamic_cast(view); +} + +void ActivityController::createView() +{ + if (view) return; + + try + { + view = ActivityViewFactory::CreateView(evas, parent, viewType); + } + catch (exception const& e) + { + Utils::logger("root") << Priority::CRIT << "ActivityController: Can't create view !" << log4cpp::eol; + throw; + } + + view->activity_quit.connect(sigc::mem_fun(wants_quit, &sigc::signal::emit)); + view->view_deleted.connect(sigc::mem_fun(*this, &ActivityController::viewDeleted)); + + view->controller = this; +} + +void ActivityController::viewDeleted() +{ + view = NULL; + view_deleted.emit(this); + Utils::logger("root") << Priority::DEBUG << "ActivityController: view deleted" << log4cpp::eol; +} + +void ActivityController::resetView() +{ + if (view) + view->resetView(); +} diff --git a/src/bin/calaos_home/controllers/ActivityController.h b/src/bin/calaos_home/controllers/ActivityController.h new file mode 100644 index 00000000..fa085be8 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityController.h @@ -0,0 +1,66 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCONTROLLER_H +#define ACTIVITYCONTROLLER_H + +#include "config.h" + +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "ActivityView.h" + +using namespace Utils; + +class ActivityController: public sigc::trackable +{ + protected: + Evas *evas; + Evas_Object *parent; + int viewType; + + ActivityView *view; + + virtual void createView(); + void viewDeleted(); + + public: + ActivityController(Evas *evas, Evas_Object *parent, int viewType); + virtual ~ActivityController(); + + BaseView *getView(); + virtual void resetView(); + + sigc::signal wants_quit; + sigc::signal view_deleted; + + virtual bool handleButtonClick(string button) { return false; } + +}; + +#endif // ACTIVITYCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityEditScenarioController.cpp b/src/bin/calaos_home/controllers/ActivityEditScenarioController.cpp new file mode 100644 index 00000000..d0d8589c --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityEditScenarioController.cpp @@ -0,0 +1,67 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityEditScenarioController.h" + +ActivityEditScenarioController::ActivityEditScenarioController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_EDIT_SCENARIO) +{ + CalaosModel::Instance(); +} + +ActivityEditScenarioController::~ActivityEditScenarioController() +{ +} + +void ActivityEditScenarioController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityEditScenarioView *scView = dynamic_cast(view); + scView->buttonValidPressed.connect(sigc::mem_fun(*this, &ActivityEditScenarioController::createScenario)); + if (scenario) + { + scView->setScenarioData(scenario->scenario_data); + } + else + { + ScenarioData sd; + scView->setScenarioData(sd); + } +} + +void ActivityEditScenarioController::createScenario() +{ + ActivityEditScenarioView *scView = dynamic_cast(view); + + if (scenario) + { + scenario->scenario_data = scView->getScenarioData(); + CalaosModel::Instance().getScenario()->modifyScenario(scenario); + } + else + { + CalaosModel::Instance().getScenario()->createScenario(scView->getScenarioData()); + } + + wants_quit.emit(); +} diff --git a/src/bin/calaos_home/controllers/ActivityEditScenarioController.h b/src/bin/calaos_home/controllers/ActivityEditScenarioController.h new file mode 100644 index 00000000..dcf9fda9 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityEditScenarioController.h @@ -0,0 +1,48 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityEditScenarioController_H +#define ActivityEditScenarioController_H + +#include + +#include "ActivityController.h" +#include "ActivityEditScenarioView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityEditScenarioController: public ActivityController +{ + private: + Scenario *scenario; + + void createScenario(); + + virtual void createView(); + + public: + ActivityEditScenarioController(Evas *evas, Evas_Object *parent); + ~ActivityEditScenarioController(); + + void setScenario(Scenario *sc) { scenario = sc; } +}; + +#endif // ActivityEditScenarioController_H diff --git a/src/bin/calaos_home/controllers/ActivityHomeController.cpp b/src/bin/calaos_home/controllers/ActivityHomeController.cpp new file mode 100644 index 00000000..7e5bf948 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityHomeController.cpp @@ -0,0 +1,269 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityHomeController.h" + +ActivityHomeController::ActivityHomeController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_HOME) +{ + CalaosModel::Instance(); +} + +ActivityHomeController::~ActivityHomeController() +{ +} + +void ActivityHomeController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityHomeView *homeView = dynamic_cast(view); + + homeView->room_left_click.connect(sigc::mem_fun(*this, &ActivityHomeController::clickRoomLeft)); + homeView->room_right_click.connect(sigc::mem_fun(*this, &ActivityHomeController::clickRoomRight)); + homeView->room_click.connect(sigc::mem_fun(*this, &ActivityHomeController::clickRoom)); + + if (!CalaosModel::Instance().isLoaded()) + { + homeView->ShowLoading(); + + CalaosModel::Instance().home_loaded.connect(sigc::mem_fun(*this, &ActivityHomeController::load_done)); + + return; + } + + CalaosModel::Instance().getHome()->lights_on_changed.connect(sigc::mem_fun(*this, &ActivityHomeController::lights_changed)); + CalaosModel::Instance().getHome()->shutters_up_changed.connect(sigc::mem_fun(*this, &ActivityHomeController::shutter_changed)); + + CalaosModel::Instance().getScenario()->scenario_new.connect(sigc::mem_fun(*this, &ActivityHomeController::scenarioReload)); + CalaosModel::Instance().getScenario()->scenario_change.connect(sigc::mem_fun(*this, &ActivityHomeController::scenarioReload)); + CalaosModel::Instance().getScenario()->scenario_del.connect(sigc::mem_fun(*this, &ActivityHomeController::scenarioReload)); + + page = 0; + updatePageView(); + updateScenarios(); + + lights_changed(CalaosModel::Instance().getHome()->getCacheLightsOn().size()); + shutter_changed(CalaosModel::Instance().getHome()->getCacheShuttersUp().size()); +} + +void ActivityHomeController::clickRoomLeft() +{ + page--; + if (page < 0) page = 0; + + updatePageView(); +} + +void ActivityHomeController::clickRoomRight() +{ + page++; + if (page > (int)(CalaosModel::Instance().getHome()->rooms_type.size() / 6)) + page = (CalaosModel::Instance().getHome()->rooms_type.size() / 6); + + updatePageView(); +} + +void ActivityHomeController::updatePageView() +{ + ActivityHomeView *homeView = dynamic_cast(view); + list::iterator it = CalaosModel::Instance().getHome()->rooms_type.begin(); + int i = 0; + + for (int j = 0;j < page * 6;j++) + it++; + + for (;it != CalaosModel::Instance().getHome()->rooms_type.end() && i < 6; + it++, i++) + { + Room *room = *it; + + IOBase *chauffage = CalaosModel::Instance().getHome()->getChauffageForType(room->type); + + homeView->setRoom(room->type, i, chauffage); + } + + for (;i < 6;i++) + { + //hide unused rooms + homeView->hideRoom(i); + } + + if (page == 0) + homeView->DisableLeftButton(); + else + homeView->EnableLeftButton(); + + int page_count = (CalaosModel::Instance().getHome()->rooms_type.size() / 6) - 1; + if (CalaosModel::Instance().getHome()->rooms_type.size() % 6 > 0) + page_count++; + + if (page < page_count && + (CalaosModel::Instance().getHome()->rooms_type.size() > 6)) + homeView->EnableRightButton(); + else + homeView->DisableRightButton(); +} + +void ActivityHomeController::load_done() +{ + ActivityHomeView *homeView = dynamic_cast(view); + homeView->HideLoading(); + + CalaosModel::Instance().getHome()->lights_on_changed.connect(sigc::mem_fun(*this, &ActivityHomeController::lights_changed)); + CalaosModel::Instance().getHome()->shutters_up_changed.connect(sigc::mem_fun(*this, &ActivityHomeController::shutter_changed)); + + page = 0; + updatePageView(); + updateScenarios(); + + lights_changed(CalaosModel::Instance().getHome()->getCacheLightsOn().size()); + shutter_changed(CalaosModel::Instance().getHome()->getCacheShuttersUp().size()); +} + +void ActivityHomeController::updateScenarios() +{ + ActivityHomeView *homeView = dynamic_cast(view); + + const list &scenarios = CalaosModel::Instance().getHome()->getCacheScenariosPref(); + list page; + + //Add the status page first + homeView->addStatusPage(); + + list::const_iterator it = scenarios.begin(); + for (int i = 0;it != scenarios.end();it++, i++) + { + IOBase *io = *it; + page.push_back(io); + + if (page.size() >= 6) + { + homeView->addScenarioPage(page); + page.clear(); + } + } + + if (page.size() > 0) + { + while (page.size() < 6) page.push_back(NULL); + homeView->addScenarioPage(page); + } + + homeView->selectPage(1, 0.35); + + cout << "PageView count: " << homeView->getCurrentPage() << endl; +} + +void ActivityHomeController::scenarioReload(Scenario *sc) +{ + ActivityHomeView *homeView = dynamic_cast(view); + if (!homeView) return; + + const list &scenarios = CalaosModel::Instance().getHome()->getCacheScenariosPref(); + list page; + + int currentpage = homeView->getCurrentPage(); + + int count = homeView->getPageCount(); + cout << "PageView count: " << count << endl; + for (int i = 1;i < count;i++) + { + cout << "PageView i: " << i << endl; + homeView->removePage(1); + } + + list::const_iterator it = scenarios.begin(); + for (int i = 0;it != scenarios.end();it++, i++) + { + IOBase *io = *it; + page.push_back(io); + + if (page.size() >= 6) + { + homeView->addScenarioPage(page); + page.clear(); + } + } + + if (page.size() > 0) + { + while (page.size() < 6) page.push_back(NULL); + homeView->addScenarioPage(page); + } + + if (currentpage >= homeView->getPageCount()) + currentpage = homeView->getPageCount(); + + homeView->selectPage(currentpage); +} + +void ActivityHomeController::clickRoom(int selected_room) +{ + ActivityHomeView *homeView = dynamic_cast(view); + + list::iterator it = CalaosModel::Instance().getHome()->rooms_type.begin(); + + for (int j = 0;j < page * 6 + selected_room && + it != CalaosModel::Instance().getHome()->rooms_type.end();j++) + it++; + + if (it == CalaosModel::Instance().getHome()->rooms_type.end()) + { + Utils::logger("home") << Priority::ERROR << "ActivityHomeController::clickRoom(): Can't get room !" << log4cpp::eol; + + return; + } + + homeView->clearLists(); + homeView->setCurrentRoomDetail(*it); +} + +void ActivityHomeController::lights_changed(int count) +{ + ActivityHomeView *homeView = dynamic_cast(view); + string t; + + if (count <= 0) + t = "Aucune lumière allumée"; + else if (count == 1) + t = "1 lumière est allumée"; + else + t = to_string(count) + " lumières sont allumées"; + + homeView->setLightsOnText(t); +} + +void ActivityHomeController::shutter_changed(int count) +{ + ActivityHomeView *homeView = dynamic_cast(view); + string t; + + if (count <= 0) + t = "Aucune volet ouvert"; + else if (count == 1) + t = "1 volet est ouvert"; + else + t = to_string(count) + " volets sont ouverts"; + + homeView->setShuttersUpText(t); +} diff --git a/src/bin/calaos_home/controllers/ActivityHomeController.h b/src/bin/calaos_home/controllers/ActivityHomeController.h new file mode 100644 index 00000000..415f0008 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityHomeController.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYHOMECONTROLLER_H +#define ACTIVITYHOMECONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityHomeView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityHomeController: public ActivityController +{ + protected: + void createView(); + + int page; + + void clickRoomLeft(); + void clickRoomRight(); + + void updatePageView(); + void updateScenarios(); + + void clickRoom(int room); + + void load_done(); + + void lights_changed(int count); + void shutter_changed(int count); + + void scenarioReload(Scenario *sc); + + public: + ActivityHomeController(Evas *evas, Evas_Object *parent); + ~ActivityHomeController(); +}; + +#endif // ACTIVITYHOMECONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityKeyboardController.cpp b/src/bin/calaos_home/controllers/ActivityKeyboardController.cpp new file mode 100644 index 00000000..2d5b2c12 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityKeyboardController.cpp @@ -0,0 +1,71 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityKeyboardController.h" + +ActivityKeyboardController::ActivityKeyboardController(Evas *e, Evas_Object *p, string _subtitle, ActivityKeyboardCb _cb, bool _multiline, int t): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_KEYBOARD), + multiline(_multiline), + subtitle(_subtitle), + callback(_cb), + type(t) +{ +} + +ActivityKeyboardController::~ActivityKeyboardController() +{ +} + +void ActivityKeyboardController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityKeyboardView *keyboardView = dynamic_cast(view); + keyboardView->setMultiline(multiline); + keyboardView->setSubtitle(subtitle); + keyboardView->validPressed.connect(sigc::mem_fun(*this, &ActivityKeyboardController::validButtonPressed)); +} + +void ActivityKeyboardController::validButtonPressed(string text) +{ + ActivityKeyboardSig sig; + sig.connect(callback); + + if (type == 0) + { + char *s = elm_entry_markup_to_utf8(text.c_str()); + text = s; + free(s); + } + sig.emit(text); + + //Closes the keyboard + wants_quit.emit(); +} + +void ActivityKeyboardController::setText(string t) +{ + if (!view) return; + + ActivityKeyboardView *keyboardView = dynamic_cast(view); + keyboardView->setText(t); +} diff --git a/src/bin/calaos_home/controllers/ActivityKeyboardController.h b/src/bin/calaos_home/controllers/ActivityKeyboardController.h new file mode 100644 index 00000000..cd7266d6 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityKeyboardController.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityKeyboardController_H +#define ActivityKeyboardController_H + +#include + +#include "ActivityController.h" +#include "ActivityKeyboardView.h" +#include "CalaosModel.h" + +using namespace Utils; + +typedef sigc::slot ActivityKeyboardCb; +typedef sigc::signal ActivityKeyboardSig; + +class ActivityKeyboardController: public ActivityController +{ + private: + bool multiline; + string subtitle; + ActivityKeyboardCb callback; + int type; //0 to get a UTF-8 string and 1 to keep evas textblock markup instead + + virtual void createView(); + + void validButtonPressed(string text); + + public: + ActivityKeyboardController(Evas *evas, Evas_Object *parent, string subtitle, ActivityKeyboardCb callback, bool multiline, int type); + ~ActivityKeyboardController(); + + void setText(string t); +}; + +#endif // ActivityKeyboardController_H diff --git a/src/bin/calaos_home/controllers/ActivityMediaController.cpp b/src/bin/calaos_home/controllers/ActivityMediaController.cpp new file mode 100644 index 00000000..cd55cc7a --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityMediaController.cpp @@ -0,0 +1,124 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityMediaController.h" + +#include "ActivityCameraListController.h" +#include "ActivityAudioListController.h" + +#include "ApplicationMain.h" + +ActivityMediaController::ActivityMediaController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_MEDIA) +{ + CalaosModel::Instance(); +} + +ActivityMediaController::~ActivityMediaController() +{ + DELETE_NULL(mainMenuController); +} + +void ActivityMediaController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityMediaView *mediaView = dynamic_cast(view); + mediaView->button_clicked.connect(sigc::mem_fun(*this, &ActivityMediaController::buttonClick)); + + mainMenuController = new ActivityMediaMenuController(evas, parent); + mainMenuController->menu_icon_click.connect(sigc::mem_fun(*this, &ActivityMediaController::menuIconClick)); + mediaView->addView(mainMenuController->getView()); +} + +void ActivityMediaController::menuIconClick(string icon) +{ + if (icon == "eskiss") + { + ecore_exe_run("eskiss -c=FALSE", NULL); + } + else if (icon == "camera") + { + ActivityCameraListController *controller = new ActivityCameraListController(evas, parent, this); + addSubController(controller); + setButtonMode("mode,back"); + } + else if (icon == "music") + { + ActivityAudioListController *controller = new ActivityAudioListController(evas, parent, this); + addSubController(controller); + setButtonMode("mode,back"); + } + else if (icon == "web") + { + ApplicationMain::Instance().ShowWebBrowser(); + } +} + +void ActivityMediaController::buttonClick(string button) +{ + ActivityMediaView *mediaView = dynamic_cast(view); + + if (mediaView->getTopView()->controller) + { + if (mediaView->getTopView()->controller->handleButtonClick(button)) + return; + } + + if (button != "button.back") return; + + mediaView->EmitSignal("mode,menu", "calaos"); + + if (mediaView->getTopView() != mainMenuController->getView()) + { + mediaView->removeTopView(); + mediaView->setPartText("header.label", mediaView->getTopView()->getTitle()); + + //Enable view reactivates view elements (camera video streams, ...) + ActivityView *view = reinterpret_cast(mediaView->getTopView()); + if (view) view->EnableView(); + } +} + +void ActivityMediaController::addSubController(ActivityController *controller) +{ + ActivityMediaView *mediaView = dynamic_cast(view); + controller->view_deleted.connect(sigc::mem_fun(*this, &ActivityMediaController::controllerFinished)); + + //Disable view disactivates view elements (camera video streams, ...) + ActivityView *view = reinterpret_cast(mediaView->getTopView()); + if (view) view->DisableView(); + + mediaView->addView(controller->getView()); + mediaView->setPartText("header.label", controller->getView()->getTitle()); +} + +void ActivityMediaController::controllerFinished(ActivityController *controller) +{ + DELETE_NULL(controller); +} + +void ActivityMediaController::setButtonMode(string mode) +{ + ActivityMediaView *mediaView = dynamic_cast(view); + mediaView->EmitSignal(mode, "calaos"); +} diff --git a/src/bin/calaos_home/controllers/ActivityMediaController.h b/src/bin/calaos_home/controllers/ActivityMediaController.h new file mode 100644 index 00000000..29d116ea --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityMediaController.h @@ -0,0 +1,55 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYMEDIACONTROLLER_H +#define ACTIVITYMEDIACONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityMediaView.h" +#include "CalaosModel.h" + +#include "ActivityMediaMenuController.h" + +using namespace Utils; + +class ActivityMediaController: public ActivityController +{ + private: + ActivityMediaMenuController *mainMenuController; + + virtual void createView(); + + void menuIconClick(string icon); + void buttonClick(string button); + + void controllerFinished(ActivityController *controller); + + public: + ActivityMediaController(Evas *evas, Evas_Object *parent); + ~ActivityMediaController(); + + void addSubController(ActivityController *controller); + + void setButtonMode(string mode); +}; + +#endif // ACTIVITYMEDIACONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityMediaMenuController.cpp b/src/bin/calaos_home/controllers/ActivityMediaMenuController.cpp new file mode 100644 index 00000000..a0e883f9 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityMediaMenuController.cpp @@ -0,0 +1,40 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityMediaMenuController.h" + +ActivityMediaMenuController::ActivityMediaMenuController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_MEDIA_MENU) +{ +} + +ActivityMediaMenuController::~ActivityMediaMenuController() +{ +} + +void ActivityMediaMenuController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityMediaMenuView *mediaMenuView = dynamic_cast(view); + mediaMenuView->menu_item_clicked.connect(sigc::mem_fun(menu_icon_click, &sigc::signal::emit)); +} diff --git a/src/bin/calaos_home/controllers/ActivityMediaMenuController.h b/src/bin/calaos_home/controllers/ActivityMediaMenuController.h new file mode 100644 index 00000000..e64a786a --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityMediaMenuController.h @@ -0,0 +1,44 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYMEDIAMENUCONTROLLER_H +#define ACTIVITYMEDIAMENUCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityMediaMenuView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityMediaMenuController: public ActivityController +{ + private: + void createView(); + + public: + ActivityMediaMenuController(Evas *evas, Evas_Object *parent); + ~ActivityMediaMenuController(); + + sigc::signal menu_icon_click; +}; + +#endif // ACTIVITYMEDIAMENUCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityScenariosController.cpp b/src/bin/calaos_home/controllers/ActivityScenariosController.cpp new file mode 100644 index 00000000..3858f3c2 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityScenariosController.cpp @@ -0,0 +1,101 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityScenariosController.h" +#include "ApplicationMain.h" + +ActivityScenariosController::ActivityScenariosController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_SCENARIOS) +{ + CalaosModel::Instance(); +} + +ActivityScenariosController::~ActivityScenariosController() +{ +} + +void ActivityScenariosController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityScenariosView *scView = dynamic_cast(view); + scView->buttonCreatePressed.connect(sigc::mem_fun(*this, &ActivityScenariosController::createScenario)); + scView->schedule_add_click.connect(sigc::mem_fun(*this, &ActivityScenariosController::scheduleAdd)); + scView->schedule_modify_click.connect(sigc::mem_fun(*this, &ActivityScenariosController::scheduleModify)); + scView->schedule_del_click.connect(sigc::mem_fun(*this, &ActivityScenariosController::scheduleDel)); + + if (!CalaosModel::Instance().isLoaded()) + { + scView->ShowLoading(); + + CalaosModel::Instance().home_loaded.connect(sigc::mem_fun(*this, &ActivityScenariosController::load_done)); + + return; + } + + updateView(); + + CalaosModel::Instance().getScenario()->scenario_new.connect(sigc::mem_fun(*this, &ActivityScenariosController::reloadView)); + CalaosModel::Instance().getScenario()->scenario_change.connect(sigc::mem_fun(*this, &ActivityScenariosController::reloadView)); +} + +void ActivityScenariosController::load_done() +{ + ActivityScenariosView *scView = dynamic_cast(view); + scView->HideLoading(); + + updateView(); + + CalaosModel::Instance().getScenario()->scenario_new.connect(sigc::mem_fun(*this, &ActivityScenariosController::reloadView)); + CalaosModel::Instance().getScenario()->scenario_change.connect(sigc::mem_fun(*this, &ActivityScenariosController::reloadView)); +} + +void ActivityScenariosController::createScenario() +{ + ApplicationMain::Instance().ShowScenarioEditor(); +} + +void ActivityScenariosController::updateView() +{ + ActivityScenariosView *scView = dynamic_cast(view); + scView->loadScenarios(); +} + +void ActivityScenariosController::reloadView(Scenario *sc) +{ + updateView(); +} + +void ActivityScenariosController::scheduleAdd(Scenario *sc) +{ + ApplicationMain::Instance().ShowScenarioSchedule(sc); +} + +void ActivityScenariosController::scheduleModify(Scenario *sc) +{ + ApplicationMain::Instance().ShowScenarioSchedule(sc); +} + +void ActivityScenariosController::scheduleDel(Scenario *sc) +{ + ApplicationMain::Instance().ShowScenarioSchedule(sc); +} diff --git a/src/bin/calaos_home/controllers/ActivityScenariosController.h b/src/bin/calaos_home/controllers/ActivityScenariosController.h new file mode 100644 index 00000000..e20f3cb0 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityScenariosController.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYSCENARIOSCONTROLLER_H +#define ACTIVITYSCENARIOSCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityScenariosView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityScenariosController: public ActivityController +{ + private: + void createScenario(); + + void scheduleAdd(Scenario *sc); + void scheduleModify(Scenario *sc); + void scheduleDel(Scenario *sc); + + void load_done(); + void updateView(); + + virtual void createView(); + + void reloadView(Scenario *sc); + + public: + ActivityScenariosController(Evas *evas, Evas_Object *parent); + ~ActivityScenariosController(); +}; + +#endif // ACTIVITYSCENARIOSCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ActivityScheduleScenarioController.cpp b/src/bin/calaos_home/controllers/ActivityScheduleScenarioController.cpp new file mode 100644 index 00000000..4e05a938 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityScheduleScenarioController.cpp @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityScheduleScenarioController.h" + +ActivityScheduleScenarioController::ActivityScheduleScenarioController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_SCHEDULE_SCENARIO) +{ + CalaosModel::Instance(); +} + +ActivityScheduleScenarioController::~ActivityScheduleScenarioController() +{ +} + +void ActivityScheduleScenarioController::createView() +{ + if (view) return; + + ActivityController::createView(); + + ActivityScheduleScenarioView *scView = dynamic_cast(view); + if (scenario->isScheduled()) + { + scView->setTimeRangeInfos(scenario->ioScenario->range_infos); + scView->buttonValidPressed.connect(sigc::mem_fun(*this, &ActivityScheduleScenarioController::validModifySchedule)); + } + else + { + scView->buttonValidPressed.connect(sigc::mem_fun(*this, &ActivityScheduleScenarioController::validAddSchedule)); + } +} + +void ActivityScheduleScenarioController::validAddSchedule(TimeRangeInfos &tr) +{ + +} + +void ActivityScheduleScenarioController::validModifySchedule(TimeRangeInfos &tr) +{ + +} diff --git a/src/bin/calaos_home/controllers/ActivityScheduleScenarioController.h b/src/bin/calaos_home/controllers/ActivityScheduleScenarioController.h new file mode 100644 index 00000000..a05b5390 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityScheduleScenarioController.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityScheduleScenarioController_H +#define ActivityScheduleScenarioController_H + +#include + +#include "ActivityController.h" +#include "ActivityScheduleScenarioView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityScheduleScenarioController: public ActivityController +{ + private: + Scenario *scenario; + + void validAddSchedule(TimeRangeInfos &tr); + void validModifySchedule(TimeRangeInfos &tr); + + virtual void createView(); + + public: + ActivityScheduleScenarioController(Evas *evas, Evas_Object *parent); + ~ActivityScheduleScenarioController(); + + void setScenario(Scenario *sc) { scenario = sc; } +}; + +#endif // ActivityScheduleScenarioController_H diff --git a/src/bin/calaos_home/controllers/ActivityWebController.cpp b/src/bin/calaos_home/controllers/ActivityWebController.cpp new file mode 100644 index 00000000..8252f25e --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityWebController.cpp @@ -0,0 +1,40 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityWebController.h" + +ActivityWebController::ActivityWebController(Evas *e, Evas_Object *p, string _url): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_WEB) +{ +} + +ActivityWebController::~ActivityWebController() +{ +} + +void ActivityWebController::createView() +{ + if (view) return; + + ActivityController::createView(); + + //ActivityWebView *webView = dynamic_cast(view); + //keyboardView->validPressed.connect(sigc::mem_fun(*this, &ActivityWebController::validButtonPressed)); +} diff --git a/src/bin/calaos_home/controllers/ActivityWebController.h b/src/bin/calaos_home/controllers/ActivityWebController.h new file mode 100644 index 00000000..2eab7fe1 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityWebController.h @@ -0,0 +1,42 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityWebController_H +#define ActivityWebController_H + +#include + +#include "ActivityController.h" +#include "ActivityWebView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityWebController: public ActivityController +{ + private: + virtual void createView(); + + public: + ActivityWebController(Evas *evas, Evas_Object *parent, string url = ""); + ~ActivityWebController(); +}; + +#endif // ActivityWebController_H diff --git a/src/bin/calaos_home/controllers/ActivityWidgetsController.cpp b/src/bin/calaos_home/controllers/ActivityWidgetsController.cpp new file mode 100644 index 00000000..8526d894 --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityWidgetsController.cpp @@ -0,0 +1,65 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityWidgetsController.h" + +ActivityWidgetsController::ActivityWidgetsController(Evas *e, Evas_Object *p): + ActivityController(e, p, ActivityViewFactory::ACTIVITY_VIEW_WIDGETS) +{ + CalaosModel::Instance(); +} + +ActivityWidgetsController::~ActivityWidgetsController() +{ +} + +void ActivityWidgetsController::dimView() +{ + ActivityWidgetsView *wview = dynamic_cast(view); + if (!wview) return; + + wview->dimView(); +} + +void ActivityWidgetsController::setEditMode() +{ + ActivityWidgetsView *wview = dynamic_cast(view); + if (!wview) return; + + wview->EditMode(); +} + +void ActivityWidgetsController::validEdit() +{ + ActivityWidgetsView *wview = dynamic_cast(view); + if (!wview) return; + + wview->SaveWidgets(); + wview->NormalMode(); +} + +void ActivityWidgetsController::cancelEdit() +{ + ActivityWidgetsView *wview = dynamic_cast(view); + if (!wview) return; + + wview->ResetPosition(); + wview->NormalMode(); +} diff --git a/src/bin/calaos_home/controllers/ActivityWidgetsController.h b/src/bin/calaos_home/controllers/ActivityWidgetsController.h new file mode 100644 index 00000000..12a83b7f --- /dev/null +++ b/src/bin/calaos_home/controllers/ActivityWidgetsController.h @@ -0,0 +1,45 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYWIDGETSCONTROLLER_H +#define ACTIVITYWIDGETSCONTROLLER_H + +#include + +#include "ActivityController.h" +#include "ActivityWidgetsView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityWidgetsController: public ActivityController +{ + public: + ActivityWidgetsController(Evas *evas, Evas_Object *parent); + ~ActivityWidgetsController(); + + void dimView(); + void setEditMode(); + + void validEdit(); + void cancelEdit(); +}; + +#endif // ACTIVITYWIDGETSCONTROLLER_H diff --git a/src/bin/calaos_home/controllers/ApplicationController.cpp b/src/bin/calaos_home/controllers/ApplicationController.cpp new file mode 100644 index 00000000..ec973c02 --- /dev/null +++ b/src/bin/calaos_home/controllers/ApplicationController.cpp @@ -0,0 +1,345 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ApplicationController.h" +#include "ApplicationMain.h" + +ApplicationController::ApplicationController(Evas *e, Evas_Object *l): + evas(e), + layout(l), + mouseCursor(NULL), + menu_hidden(false), + homeController(NULL), + mediaController(NULL), + scenariosController(NULL), + configController(NULL), + keyboardController(NULL), + webController(NULL), + editScController(NULL), + scheduleScController(NULL) +{ + if (Utils::get_config_option("show_cursor") == "true") + { + mouseCursor = new EdjeObject(ApplicationMain::getTheme(), evas); + + try + { + mouseCursor->LoadEdje("calaos/cursor"); + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "ApplicationController: Can't load mouse cursor" << log4cpp::eol; + throw; + } + + int w, h; + edje_object_size_min_get(mouseCursor->getEvasObject(), &w, &h); + mouseCursor->Resize(w, h); + mouseCursor->Show(); + + ecore_evas_object_cursor_set(ecore_evas_ecore_evas_get(evas), mouseCursor->getEvasObject(), EVAS_LAYER_MAX - 32, w / 2, h / 2); + } + else + { + Evas_Object *cursor = evas_object_rectangle_add(evas); + evas_object_color_set(cursor, 0, 0, 0, 0); + evas_object_resize(cursor, 1, 1); + evas_object_show(cursor); + + ecore_evas_object_cursor_set(ecore_evas_ecore_evas_get(evas), cursor, EVAS_LAYER_MAX - 32, 0, 0); + } + + menuView = new MainMenuView(evas, layout); + + menuView->setVersionString(get_config_option("fw_version")); + + menuView->on_home_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuHomeClick)); + menuView->on_media_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuMediaClick)); + menuView->on_scenario_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuScenarioClick)); + menuView->on_config_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuConfigClick)); + + menuView->on_reboot_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuRebootClick)); + menuView->on_suspend_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuSuspendClick)); + menuView->on_widget_click.connect(sigc::mem_fun(*this, &ApplicationController::onMenuWidgetClick)); + + //Start the model instance + CalaosModel::Instance().home_loaded.connect(sigc::mem_fun(*this, &ApplicationController::home_loaded)); + CalaosModel::Instance().login_failed.connect(sigc::mem_fun(*this, &ApplicationController::login_failed)); + + contentView = new MainContentView(evas, layout); + elm_object_part_content_set(layout, "calaos.main.content", contentView->getSmartObject()); + + widgetsController = new ActivityWidgetsController(evas, layout); + + contentView->addView(widgetsController->getView()); + + menuView->on_menu_open.connect(sigc::mem_fun(*widgetsController, &ActivityWidgetsController::dimView)); + menuView->on_menu_close.connect(sigc::mem_fun(*widgetsController, &ActivityWidgetsController::resetView)); + menuView->on_widget_valid_click.connect(sigc::mem_fun(*widgetsController, &ActivityWidgetsController::validEdit)); + menuView->on_widget_cancel_click.connect(sigc::mem_fun(*widgetsController, &ActivityWidgetsController::cancelEdit)); +} + +ApplicationController::~ApplicationController() +{ + DELETE_NULL(mouseCursor); + DELETE_NULL(menuView); + DELETE_NULL(contentView); + + DELETE_NULL(widgetsController); + DELETE_NULL(homeController); + DELETE_NULL(mediaController); + DELETE_NULL(scenariosController); + DELETE_NULL(configController); + + DELETE_NULL(keyboardController); + DELETE_NULL(webController); + + DELETE_NULL(editScController); + DELETE_NULL(scheduleScController); +} + +void ApplicationController::resetOtherViews() +{ + if (contentView->getTopView() != widgetsController->getView()) + { + contentView->removeTopView(); + homeController = NULL; + mediaController = NULL; + scenariosController = NULL; + configController = NULL; + } +} + +void ApplicationController::onMenuHomeClick() +{ + if (!homeController) + { + resetOtherViews(); + + homeController = new ActivityHomeController(evas, layout); + homeController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityQuit)); + homeController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + + contentView->addView(homeController->getView()); + } + else + { + homeController->resetView(); + } +} + +void ApplicationController::onMenuMediaClick() +{ + if (!mediaController) + { + resetOtherViews(); + + mediaController = new ActivityMediaController(evas, layout); + mediaController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityQuit)); + mediaController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + + contentView->addView(mediaController->getView()); + } + else + { + mediaController->resetView(); + } +} + +void ApplicationController::onMenuScenarioClick() +{ + if (!scenariosController) + { + resetOtherViews(); + + scenariosController = new ActivityScenariosController(evas, layout); + scenariosController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityQuit)); + scenariosController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + + contentView->addView(scenariosController->getView()); + } + else + { + scenariosController->resetView(); + } +} + +void ApplicationController::onMenuConfigClick() +{ + if (!configController) + { + resetOtherViews(); + + configController = new ActivityConfigController(evas, layout); + configController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityQuit)); + configController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + + contentView->addView(configController->getView()); + } + else + { + configController->resetView(); + } +} + +void ApplicationController::ShowKeyboard(string subtitle, ActivityKeyboardCb callback, bool multiline, string oldtext, int type) +{ + if (!keyboardController) + { + keyboardController = new ActivityKeyboardController(evas, layout, subtitle, callback, multiline, type); + keyboardController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityKeyboardQuit)); + keyboardController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + + contentView->addView(keyboardController->getView()); + if (menu_hidden) menuView->ShowMenu(); + menuView->DisableMenu(); + + keyboardController->setText(oldtext); + } +} + +void ApplicationController::ShowWebBrowser(string url) +{ + if (!webController) + { + webController = new ActivityWebController(evas, layout, url); + webController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityWebQuit)); + webController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + + contentView->addView(webController->getView()); + menuView->HideMenu(); + menu_hidden = true; + } +} + +void ApplicationController::ShowScenarioEditor(Scenario *scenario) +{ + if (!editScController) + { + editScController = new ActivityEditScenarioController(evas, layout); + editScController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityEditScenarioQuit)); + editScController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + editScController->setScenario(scenario); + + contentView->addView(editScController->getView()); + menuView->DisableMenu(); + } +} + +void ApplicationController::ShowScenarioSchedule(Scenario *scenario) +{ + if (!scheduleScController) + { + scheduleScController = new ActivityScheduleScenarioController(evas, layout); + scheduleScController->wants_quit.connect(sigc::mem_fun(*this, &ApplicationController::activityScheduleScenarioQuit)); + scheduleScController->view_deleted.connect(sigc::mem_fun(*this, &ApplicationController::controllerFinished)); + scheduleScController->setScenario(scenario); + + contentView->addView(scheduleScController->getView()); + menuView->DisableMenu(); + } +} + +void ApplicationController::onMenuRebootClick() +{ + cout << "onMenuRebootClick()" << endl; + menuView->CloseLinkMenu(); +} + +void ApplicationController::onMenuWidgetClick() +{ + menuView->CloseLinkMenu(); + + widgetsController->setEditMode(); +} + +void ApplicationController::onMenuSuspendClick() +{ + cout << "onMenuSuspendClick()" << endl; + menuView->CloseLinkMenu(); +} + +void ApplicationController::home_loaded() +{ + cout << CalaosModel::Instance().toString() << endl; +} + +void ApplicationController::login_failed(string host) +{ + //TODO: Do something with that information +} + +void ApplicationController::controllerFinished(ActivityController *controller) +{ + DELETE_NULL(controller); +} + +void ApplicationController::activityQuit() +{ + resetOtherViews(); + menuView->UnselectAllMenu(); +} + +void ApplicationController::activityKeyboardQuit() +{ + if (!keyboardController) return; + if (contentView->getTopView() == keyboardController->getView()) + { + contentView->removeTopView(); + menuView->EnableMenu(); + keyboardController = NULL; + + if (menu_hidden) menuView->HideMenu(); + } +} + +void ApplicationController::activityWebQuit() +{ + if (!webController) return; + if (contentView->getTopView() == webController->getView()) + { + contentView->removeTopView(); + menuView->ShowMenu(); + webController = NULL; + menu_hidden = false; + } +} + +void ApplicationController::activityEditScenarioQuit() +{ + if (!editScController) return; + if (contentView->getTopView() == editScController->getView()) + { + contentView->removeTopView(); + menuView->EnableMenu(); + editScController = NULL; + } +} + +void ApplicationController::activityScheduleScenarioQuit() +{ + if (!scheduleScController) return; + if (contentView->getTopView() == scheduleScController->getView()) + { + contentView->removeTopView(); + menuView->EnableMenu(); + scheduleScController = NULL; + } +} diff --git a/src/bin/calaos_home/controllers/ApplicationController.h b/src/bin/calaos_home/controllers/ApplicationController.h new file mode 100644 index 00000000..9f422471 --- /dev/null +++ b/src/bin/calaos_home/controllers/ApplicationController.h @@ -0,0 +1,106 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef APPLICATIONCONTROLLER_H +#define APPLICATIONCONTROLLER_H + +#include + +#include +#include +#include "EdjeObject.h" + +#include "MainMenuView.h" +#include "MainContentView.h" +#include "ActivityController.h" + +#include "CalaosModel.h" + +#include "ActivityHomeController.h" +#include "ActivityMediaController.h" +#include "ActivityScenariosController.h" +#include "ActivityConfigController.h" +#include "ActivityWidgetsController.h" +#include "ActivityKeyboardController.h" +#include "ActivityWebController.h" +#include "ActivityEditScenarioController.h" +#include "ActivityScheduleScenarioController.h" + +using namespace Utils; + +class ApplicationController: public sigc::trackable +{ + private: + Evas *evas; + Evas_Object *layout; + Evas_Object *main_pager; /* This is the main elementary pager, which is holding all "pages" (home, media, camera, ...) */ + + MainMenuView *menuView; + MainContentView *contentView; + EdjeObject *mouseCursor; + + bool menu_hidden; + + /* The main "pages" comes here */ + ActivityWidgetsController *widgetsController; + ActivityHomeController *homeController; + ActivityMediaController *mediaController; + ActivityScenariosController *scenariosController; + ActivityConfigController *configController; + ActivityKeyboardController *keyboardController; + ActivityWebController *webController; + ActivityEditScenarioController *editScController; + ActivityScheduleScenarioController *scheduleScController; + + void onMenuHomeClick(); + void onMenuMediaClick(); + void onMenuScenarioClick(); + void onMenuConfigClick(); + + void onMenuRebootClick(); + void onMenuWidgetClick(); + void onMenuSuspendClick(); + + /* CalaosModel signals */ + void home_loaded(); + void login_failed(string host); + + void activityQuit(); + void activityKeyboardQuit(); + void activityWebQuit(); + void activityEditScenarioQuit(); + void activityScheduleScenarioQuit(); + + void controllerFinished(ActivityController *controller); + void resetOtherViews(); + + public: + ApplicationController(Evas *evas, Evas_Object *layout); + ~ApplicationController(); + + void ShowKeyboard(string subtitle, ActivityKeyboardCb callback, bool multiline, string oldtext = "", int type = 0); + void ShowWebBrowser(string url); + + void ShowScenarioEditor(Scenario *scenario); + void ShowScenarioSchedule(Scenario *scenario); + +}; + +#endif // APPLICATIONCONTROLLER_H diff --git a/src/bin/calaos_home/main.cpp b/src/bin/calaos_home/main.cpp new file mode 100644 index 00000000..e58e2d45 --- /dev/null +++ b/src/bin/calaos_home/main.cpp @@ -0,0 +1,43 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ApplicationMain.h" + +using namespace Utils; + +int main(int argc, char **argv) +{ + Utils::InitLoggingSystem(string(DEFAULT_CONFIG_PATH) + "calaos_gui_log.conf"); + + try + { + ApplicationMain::Instance(argc, argv).Run(); //Start main app instance + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "An exception occured: " << e.what() << log4cpp::eol; + } + catch(...) + { + Utils::logger("root") << Priority::CRIT << "An unknown exception occured !" << log4cpp::eol; + } + + return 0; +} diff --git a/src/bin/calaos_home/main_cover.cpp b/src/bin/calaos_home/main_cover.cpp new file mode 100644 index 00000000..d16bc4fb --- /dev/null +++ b/src/bin/calaos_home/main_cover.cpp @@ -0,0 +1,243 @@ +/****************************************************************************** +** Copyright (c) 2007-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +//----------------------------------------------------------------------------- +// +// Calaos thumbnailer using Evas buffer +// +//----------------------------------------------------------------------------- +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +//Usefull utility functions +template +bool is_of_type(const std::string &str) +{ + std::istringstream iss(str); + T tmp; + return (iss >> tmp) && (iss.eof()); +} +template +bool from_string(const std::string &str, T &dest) +{ + std::istringstream iss(str); + return iss >> dest != 0; +} +template +std::string to_string( const T & Value ) +{ + std::ostringstream oss; + oss << Value; + return oss.str(); +} + +typedef struct _ThumbSize +{ + int w, h; +} ThumbSize; + +struct CurlFile +{ + string filename; + FILE *stream; +}; + +static size_t thumb_fwrite(void *buffer, size_t size, size_t nmemb, void *stream) +{ + struct CurlFile *out = (struct CurlFile *)stream; + if(out && !out->stream) + { + out->stream = fopen(out->filename.c_str(), "wb"); + if(!out->stream) + return -1; /* failure, can't open file to write */ + } + return fwrite(buffer, size, nmemb, out->stream); +} + +static void split(const string &str, vector &tokens, const string &delimiters = " ", int max = 0); +static bool CreateThumb_Evas(string &input_file, string &output_file, ThumbSize &thumb_sizes); + +int main (int argc, char **argv) +{ + if (argc != 4) + { + cout << "Calaos thumbnailer" << endl << "\tUsage:" << endl; + cout << "\t\t" << argv[0] << " " << endl << endl; + cout << "\tWhere is an image file supported by Evas. can be an http link and then the file is downloaded first." << endl; + cout << "\tAnd is of the form: 123x123" << endl; + cout << endl << "Thumb is saved in in JPG format." << endl; + + return 1; + } + + //parse cmd line + string input_file = argv[1]; + string output_file = argv[2]; + bool to_del = false; + + ThumbSize size; + vector token; + + string s = argv[3]; + split(s, token, "x", 2); + if (token.size() != 2) + { + cout << "calaos_thumb: Can't parse size..." << endl; + return 1; + } + from_string(token[0], size.w); + from_string(token[1], size.h); + + //Check if it's an url and download it + if (input_file.compare(0, 7, "http://") == 0 || + input_file.compare(0, 8, "https://") == 0) + { + CURL *curl; + CURLcode res; + CurlFile cfile; + cfile.filename = output_file + "_tmp"; + cfile.stream = NULL; + + to_del = true; + + curl = curl_easy_init(); + if(curl) + { + curl_easy_setopt(curl, CURLOPT_URL, input_file.c_str()); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0"); + curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false); + curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, false); + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true); + curl_easy_setopt(curl, CURLOPT_NOSIGNAL, true); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, thumb_fwrite); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, &cfile); + res = curl_easy_perform(curl); + + /* always cleanup */ + curl_easy_cleanup(curl); + + if(CURLE_OK != res) + { + /* we failed */ + fprintf(stderr, "curl told us %d\n", res); + return 1; + } + + if(cfile.stream) + fclose(cfile.stream); + + input_file = cfile.filename; + + curl_global_cleanup(); + } + } + + + bool ret = CreateThumb_Evas(input_file, output_file, size); + + if (to_del) + ecore_file_unlink(input_file.c_str()); + + if (ret) + return 0; + + cout << "calaos_thumb: Unable to do thumbnails..." << endl; + return 1; +} + +bool CreateThumb_Evas(string &input_file, string &output_file, ThumbSize &thumb_size) +{ + evas_init(); + ecore_init(); + + Ecore_Evas *ee = ecore_evas_buffer_new(thumb_size.w, thumb_size.h); + if (!ee) return false; + + Evas_Object *im = ecore_evas_object_image_new(ee); + if (!im) { ecore_evas_free(ee); return false; } + + evas_object_move(im, 0, 0); + evas_object_resize(im, thumb_size.w, thumb_size.h); + evas_object_image_fill_set(im, 0, 0, thumb_size.w, thumb_size.h); + evas_object_image_size_set(im, thumb_size.w, thumb_size.h); + evas_object_show(im); + Ecore_Evas *ee_im = (Ecore_Evas *)evas_object_data_get(im, "Ecore_Evas"); + Evas *evas_im = ecore_evas_get(ee_im); + + Evas_Object *image = evas_object_image_add(evas_im); + evas_object_image_file_set(image, input_file.c_str(), NULL); + evas_object_image_fill_set(image, 0, 0, thumb_size.w, thumb_size.h); + evas_object_move(image, 0, 0); + evas_object_resize(image, thumb_size.w, thumb_size.h); + evas_object_show(image); + + ecore_evas_buffer_pixels_get(ee); + if (!evas_object_image_save(im, output_file.c_str(), NULL, "quality=85 compress=9")) + cout << "evas_object_image_save() failed..." << endl; + + evas_object_del(image); + evas_object_del(im); + ecore_evas_free(ee); + + ecore_shutdown(); + evas_shutdown(); + + return true; +} + +void split(const string &str, vector &tokens, const string &delimiters, int max /* = 0 */) +{ + // Skip delimiters at beginning. + string::size_type lastPos = str.find_first_not_of(delimiters, 0); + // Find first "non-delimiter". + string::size_type pos = str.find_first_of(delimiters, lastPos); + + int counter = 0; + + while (string::npos != pos || string::npos != lastPos) + { + if (counter + 1 >= max && max > 0) + { + tokens.push_back(str.substr(lastPos, string::npos)); + break; + } + + // Found a token, add it to the vector. + tokens.push_back(str.substr(lastPos, pos - lastPos)); + // Skip delimiters. Note the "not_of" + lastPos = str.find_first_not_of(delimiters, pos); + // Find next "non-delimiter" + pos = str.find_first_of(delimiters, lastPos); + + counter++; + } + + while ((int)tokens.size() < max) tokens.push_back(""); +} diff --git a/src/bin/calaos_home/models/AudioModel.cpp b/src/bin/calaos_home/models/AudioModel.cpp new file mode 100644 index 00000000..69303903 --- /dev/null +++ b/src/bin/calaos_home/models/AudioModel.cpp @@ -0,0 +1,963 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "AudioModel.h" +#include "CalaosModel.h" +#include + +static Eina_Bool exe_callback(void *data, int type, void *event) +{ + AudioModel *model = reinterpret_cast(data); + Ecore_Exe_Event_Del *ev = reinterpret_cast(event); + + model->executableDone(ev); + + return EINA_TRUE; +} + +AudioModel::AudioModel(CalaosConnection *con): + connection(con) +{ + ecore_file_mkdir(DEFAULT_CONFIG_PATH".cover_cache"); + ecore_event_handler_add(ECORE_EXE_EVENT_DEL, exe_callback, this); +} + +AudioModel::~AudioModel() +{ + for_each(players.begin(), players.end(), Delete()); +} + +void AudioModel::load() +{ + connection->SendCommand("audio ?", sigc::mem_fun(*this, &AudioModel::audio_count_cb)); +} + +void AudioModel::audio_count_cb(bool success, vector result, void *data) +{ + if (!success) return; + + if (result.size() < 2) return; + + if (is_of_type(result[1])) + { + int count; + from_string(result[1], count); + + load_count = 0; + + if (count == 0) + { + //No audio players found. + load_done.emit(); + } + + for (int i = 0;i < count;i++) + { + AudioPlayer *player = new AudioPlayer(connection); + players.push_back(player); + + player->params.Add("num", to_string(i)); + + load_count++; + player->load_done.connect(sigc::mem_fun(*this, &AudioModel::load_audio_done)); + + string cmd = "audio get " + to_string(i); + connection->SendCommand(cmd, sigc::mem_fun(*player, &AudioPlayer::audio_get_cb)); + } + } + else + { + //Load of audio players failed because of a wrong reply + load_done.emit(); + } +} + +void AudioModel::load_audio_done(AudioPlayer *audio) +{ + load_count--; + + cout << "[AUDIO load done]" << endl; + + if (load_count <= 0) + { + cout << "[AUDIO LOAD DONE sending signal]" << endl; + load_done.emit(); + } +} + +void AudioPlayer::audio_get_cb(bool success, vector result, void *data) +{ + for (uint b = 2;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + params.Add(tmp[0], tmp[1]); + } + + string cmd; + + //Query some more infos + cmd = "audio " + params["num"] + " volume?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_volume_get_cb)); + + cmd = "audio " + params["num"] + " status?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_status_get_cb)); + + cmd = "audio " + params["num"] + " songinfo?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_songinfo_get_cb)); + + cmd = "audio " + params["num"] + " playlist size?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_playlist_size_get_cb)); + + cmd = "audio " + params["num"] + " database stats?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_db_stats_get_cb)); + + IOBase *amp = getAmplifier(); + if (amp) + { + amp->sendUserCommand("states?", sigc::mem_fun(*this, &AudioPlayer::getAmpStates_cb)); + amp->sendUserCommand("query input_sources ?", sigc::mem_fun(*this, &AudioPlayer::getInputSource_cb)); + } + + load_done.emit(this); +} + +void AudioPlayer::audio_volume_get_cb(bool success, vector result, void *data) +{ + if (result.size() != 3) return; + + vector tmp; + Utils::split(result[2], tmp, ":", 2); + + from_string(tmp[1], volume); + player_volume_changed.emit(); +} + +void AudioPlayer::audio_status_get_cb(bool success, vector result, void *data) +{ + if (result.size() != 3) return; + + vector tmp; + Utils::split(result[2], tmp, ":", 2); + + if (tmp[1] == "playing") tmp[1] = "play"; + params.Add("status", tmp[1]); + player_status_changed.emit(); +} + +void AudioPlayer::audio_songinfo_get_cb(bool success, vector result, void *data) +{ + if (result.size() < 3) return; + + for (uint i = 2;i < result.size();i++) + { + vector tmp; + Utils::split(result[i], tmp, ":", 2); + + if (tmp.size() != 2) continue; + + if (tmp[0] == "duration") + { + from_string(tmp[1], duration); + current_song_info.Add(tmp[0], Utils::time2string_digit((long)duration)); + } + else + { + current_song_info.Add(tmp[0], tmp[1]); + } + } + + player_track_changed.emit(); +} + +void AudioPlayer::notifyChange(string msg) +{ + vector notif; + split(msg, notif, " "); + + if (notif.size() < 3) return; + if (notif[1] != params["num"]) return; + + if (notif[0] == "audio") + { + if (notif[2] == "songchanged") + { + string cmd = "audio " + params["num"] + " status?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_status_get_cb)); + + cmd = "audio " + params["num"] + " songinfo?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_songinfo_get_cb)); + } + } + else if (notif[0] == "audio_playlist") + { + if (notif[2] != "playlist") return; + + if (notif[3] == "cleared") + { + playlist_size = 0; + player_playlist_changed.emit(); + } + else if (notif[3] == "tracksadded") + { + string cmd = "audio " + params["num"] + " playlist size?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_playlist_size_get_added_cb)); + } + else if (notif[3] == "reload") + { + string cmd = "audio " + params["num"] + " playlist size?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_playlist_size_get_cb)); + } + else if (notif[3] == "delete") + { + playlist_size--; + if (playlist_size < 0) playlist_size = 0; + + int del; + from_string(notif[4], del); + + player_playlist_tracks_deleted.emit(del); + } + else if (notif[3] == "move") + { + int from, to; + from_string(notif[4], from); + from_string(notif[5], to); + + player_playlist_tracks_moved.emit(from, to); + } + } + else if (notif[0] == "audio_status") + { + if (notif[2] == "play" || notif[2] == "playing") + params.Add("status", "play"); + else if (notif[2] == "pause") + params.Add("status", "pause"); + else if (notif[2] == "stop") + params.Add("status", "stop"); + else + return; + + player_status_changed.emit(); + } + else if (notif[0] == "audio_volume") + { + if (notif[2] != "change") return; + string v = Utils::url_decode(notif[3]); + + if (v[0] == '+') + { + v.erase(v.begin()); + int t; + from_string(v, t); + volume += t; + if (volume > 100) volume = 100; + } + else if (v[0] == '-') + { + v.erase(v.begin()); + int t; + from_string(v, t); + volume -= t; + if (volume < 0) volume = 0; + } + else + { + from_string(v, volume); + } + + player_volume_changed.emit(); + } +} + +void AudioPlayer::setVolume(int volume) +{ + if (volume < 0) volume = 0; + if (volume > 100) volume = 100; + + string cmd = "audio " + params["num"] + " volume " + to_string(volume); + connection->SendCommand(cmd); +} + +void AudioPlayer::play() +{ + string cmd = "audio " + params["num"] + " play"; + connection->SendCommand(cmd); +} + +void AudioPlayer::pause() +{ + string cmd = "audio " + params["num"] + " pause"; + connection->SendCommand(cmd); +} + +void AudioPlayer::stop() +{ + string cmd = "audio " + params["num"] + " stop"; + connection->SendCommand(cmd); +} + +void AudioPlayer::next() +{ + string cmd = "audio " + params["num"] + " next"; + connection->SendCommand(cmd); +} + +void AudioPlayer::previous() +{ + string cmd = "audio " + params["num"] + " previous"; + connection->SendCommand(cmd); +} + +void AudioPlayer::on() +{ + string cmd = "audio " + params["num"] + " on"; + connection->SendCommand(cmd); +} + +void AudioPlayer::off() +{ + string cmd = "audio " + params["num"] + " off"; + connection->SendCommand(cmd); +} + +string AudioPlayer::getStatus() +{ + return params["status"]; +} + +void AudioPlayer::registerChange() +{ + changeReg++; + + //Reload database stats in case of changes + string cmd = "audio " + params["num"] + " database stats?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_db_stats_get_cb)); + + if (!timer_change) + timer_change = new EcoreTimer(0.5, (sigc::slot)sigc::mem_fun(*this, &AudioPlayer::timerChangeTick)); +} + +void AudioPlayer::unregisterChange() +{ + changeReg--; + + if (changeReg < 0) + { + Utils::logger("network") << Priority::WARN << "AudioPlayer: WARNING, unregisterChange() called too many times !" << log4cpp::eol; + changeReg = 0; + } + + if (changeReg == 0) + DELETE_NULL(timer_change); +} + +void AudioPlayer::timerChangeTick() +{ + if (time_inprocess) return; + + string cmd = "audio " + params["num"] + " time?"; + time_inprocess = true; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::audio_time_get_cb)); +} + +void AudioPlayer::audio_time_get_cb(bool success, vector result, void *data) +{ + time_inprocess = false; + + if (result.size() != 3) return; + + vector tmp; + Utils::split(result[2], tmp, ":", 2); + + from_string(tmp[1], elapsed_time); + params.Add("time", Utils::time2string_digit((long)elapsed_time)); + player_time_changed.emit(); +} + +void AudioPlayer::setTime(double time) +{ + string cmd = "audio " + params["num"] + " time " + to_string(time); + connection->SendCommand(cmd); +} + +void AudioPlayer::audio_playlist_size_get_cb(bool success, vector result, void *data) +{ + if (result.size() != 4) return; + + from_string(result[3], playlist_size); + player_playlist_changed.emit(); +} + +void AudioPlayer::audio_playlist_size_get_added_cb(bool success, vector result, void *data) +{ + if (result.size() != 4) return; + + int nb_added = playlist_size; + from_string(result[3], playlist_size); + nb_added = playlist_size - nb_added; + + if (nb_added < 0) + player_playlist_changed.emit(); + else + player_playlist_tracks_added.emit(nb_added); +} + +void AudioPlayer::audio_db_stats_get_cb(bool success, vector result, void *data) +{ + if (result.size() < 4) return; + + for (uint b = 3;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + db_stats.Add(tmp[0], tmp[1]); + } +} + +void AudioPlayer::playItem(int item) +{ + string cmd = "audio " + params["num"] + " playlist " + to_string(item) + " play"; + connection->SendCommand(cmd); +} + +void AudioPlayer::getPlaylistItem(int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " playlist " + to_string(item) + " getitem?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::playlist_item_get_cb), data); +} + +void AudioPlayer::playlist_item_get_cb(bool success, vector result, void *data) +{ + PlayerInfoData *user_data = reinterpret_cast(data); + if (!user_data) return; //Probably leaking here ! + + if (result.size() < 4) return; + + Params infos; + + for (uint b = 4;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + infos.Add(tmp[0], tmp[1]); + } + + PlayerInfo_signal sig; + sig.connect(user_data->callback); + sig.emit(infos); + + delete user_data; +} + +void AudioPlayer::removePlaylistItem(int item) +{ + string cmd = "audio " + params["num"] + " playlist " + to_string(item) + " delete"; + connection->SendCommand(cmd); +} + +void AudioPlayer::getCurrentCover(PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " cover?"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::cover_cb), data); +} + +void AudioPlayer::cover_cb(bool success, vector result, void *data) +{ + PlayerInfoData *user_data = reinterpret_cast(data); + if (!user_data) return; //Probably leaking here ! + + if (result.size() < 3) return; + + Params infos; + + vector tmp; + Utils::split(result[2], tmp, ":", 2); + if (tmp.size() < 2) return; + + infos.Add("cover", tmp[1]); + + PlayerInfo_signal sig; + sig.connect(user_data->callback); + sig.emit(infos); + + delete user_data; +} + +bool AudioPlayer::hasCover() +{ + if (current_song_info["coverart"] == "1") + return true; + + return false; +} + +Params &AudioPlayer::getDBStats() +{ + return db_stats; +} + +void AudioPlayer::getDBAlbumItem(int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database albums " + to_string(item) + " 1"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBAlbumArtistItem(int item, int artist_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database artist_albums " + to_string(item) + " 1 artist_id:" + to_string(artist_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBAlbumYearItem(int item, int year_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database year_albums " + to_string(item) + " 1 year:" + to_string(year_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBArtistGenreItem(int item, int genre_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database genre_artists " + to_string(item) + " 1 genre_id:" + to_string(genre_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::db_default_item_get_cb(bool success, vector result, void *data) +{ + PlayerInfoData *user_data = reinterpret_cast(data); + if (!user_data) return; //Probably leaking here ! + + if (result.size() < 4) return; + + Params infos; + + for (uint b = 4;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + infos.Add(tmp[0], tmp[1]); + } + + PlayerInfo_signal sig; + sig.connect(user_data->callback); + sig.emit(infos); + + delete user_data; +} + +void AudioPlayer::db_default_item_list_get_cb(bool success, vector result, void *data) +{ + PlayerInfoData *user_data = reinterpret_cast(data); + if (!user_data) return; //Probably leaking here ! + + if (result.size() < 4) return; + + list infos; + Params item; + int cpt = 0; + + for (uint b = 4;b < result.size();b++) + { + string tmp = result[b]; + vector tk; + split(tmp, tk, ":", 2); + if (tk.size() != 2) continue; + + if (tk[0] == "id") + { + if (cpt > 0) infos.push_back(item); + item.clear(); + cpt++; + } + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (item.size() > 0) infos.push_back(item); + + PlayerInfoList_signal sig; + sig.connect(user_data->callback_list); + sig.emit(infos); + + delete user_data; +} + +void AudioPlayer::getDBAlbumTrackCount(int album_item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database album_titles 0 1 album_id:" + to_string(album_item); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_album_track_count_get_cb), data); +} + +void AudioPlayer::getDBArtistAlbumCount(int artist_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database artist_albums 0 1 artist_id:" + to_string(artist_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_album_track_count_get_cb), data); +} + +void AudioPlayer::getDBYearAlbumCount(int year_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database year_albums 0 1 year:" + to_string(year_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_album_track_count_get_cb), data); +} + +void AudioPlayer::getDBGenreArtistCount(int genre_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database genre_artists 0 1 genre_id:" + to_string(genre_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_album_track_count_get_cb), data); +} + +void AudioPlayer::getDBPlaylistTrackCount(int playlist_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database playlist_titles 0 1 playlist_id:" + to_string(playlist_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_album_track_count_get_cb), data); +} + +void AudioPlayer::playlistDelete(string id) +{ + string cmd = "audio " + params["num"] + " database playlist delete playlist_id:" + to_string(id); + connection->SendCommand(cmd); +} + +void AudioPlayer::db_album_track_count_get_cb(bool success, vector result, void *data) +{ + PlayerInfoData *user_data = reinterpret_cast(data); + if (!user_data) return; //Probably leaking here ! + + if (result.size() < 5) return; + + Params infos; + + for (uint b = 4;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + if (tmp[0] == "count") + { + infos.Add(tmp[0], tmp[1]); + break; + } + } + + PlayerInfo_signal sig; + sig.connect(user_data->callback); + sig.emit(infos); + + delete user_data; +} + +void AudioPlayer::getDBAlbumTrackItem(int album_id, int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database album_titles " + to_string(item) + " 1 album_id:" + to_string(album_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBPlaylistTrackItem(int playlist_id, int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database playlist_titles " + to_string(item) + " 1 playlist_id:" + to_string(playlist_id); + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBAlbumCoverItem(Params &item, PlayerInfo_cb callback, int size) +{ + if (!item.Exists("cover_url")) return; + + string fname = to_string(DEFAULT_CONFIG_PATH) + ".cover_cache/album_" + item["cover_id"]; + + string cmdsize; + switch (size) + { + default: + case AUDIO_COVER_SIZE_SMALL: cmdsize = "40x40"; fname += "_small.jpg"; break; + case AUDIO_COVER_SIZE_MEDIUM: cmdsize = "100x100"; fname += "_medium.jpg"; break; + case AUDIO_COVER_SIZE_BIG: cmdsize = "250x250"; fname += "_big.jpg"; break; + } + + if (ecore_file_exists(fname.c_str())) + { + PlayerInfo_signal sig; + sig.connect(callback); + Params p; + p.Add("filename", fname); + sig.emit(p); + + return; + } + + PlayerInfoData *data = new PlayerInfoData(); + data->cover_fname = fname; + data->callback = callback; + data->item = item; + + string cmd = "calaos_thumb " + item["cover_url"] + " " + fname + " " + cmdsize; + data->thumb_exe = ecore_exe_run(cmd.c_str(), data); + if (!data->thumb_exe) + { + PlayerInfo_signal sig; + sig.connect(callback); + Params p; + sig.emit(p); + + delete data; + } +} + +void AudioModel::executableDone(Ecore_Exe_Event_Del *event) +{ + if (!event) return; + PlayerInfoData *data = reinterpret_cast(ecore_exe_data_get(event->exe)); + if (!data) return; + if (data->thumb_exe != event->exe) return; + + PlayerInfo_signal sig; + sig.connect(data->callback); + Params p; + p.Add("filename", data->cover_fname); + sig.emit(p); + + delete data; +} + +IOBase *AudioPlayer::getAmplifier() +{ + if (!params.Exists("amp_id")) return NULL; + + map::const_iterator it = CalaosModel::Instance().getHome()->getCacheOutputs().find(params["amp_id"]); + if (it == CalaosModel::Instance().getHome()->getCacheOutputs().end()) + return NULL; + + return (*it).second; +} + +void AudioPlayer::getInputSource_cb(bool success, vector result, void *data) +{ + if (!success) return; + + amplifier_inputs.clear(); + for (unsigned int i = 4;i < result.size();i++) + { + vector tok; + int num; + split(result[i], tok, ":", 2); + from_string(tok[0], num); + + amplifier_inputs[num] = tok[1]; + } +} + +void AudioPlayer::getAmpStates_cb(bool success, vector result, void *data) +{ + if (!success) return; + + IOBase *amp = getAmplifier(); + if (!amp) return; + + for (unsigned int i = 2;i < result.size();i++) + { + vector tok; + split(result[i], tok, ":", 2); + + amp->params.Add(tok[0], tok[1]); + } +} + +string AudioPlayer::getAmplifierStatus(string key) +{ + IOBase *amp = getAmplifier(); + if (!amp) return ""; + + return amp->params[key]; +} + +string AudioPlayer::itemTypeToString(int type) +{ + switch (type) + { + case DB_ITEM_TRACK: return "track_id"; + case DB_ITEM_ALBUM: return "album_id"; + case DB_ITEM_ARTIST: return "artist_id"; + case DB_ITEM_GENRE: return "genre_id"; + case DB_ITEM_YEAR: return "year"; + case DB_ITEM_PLAYLIST: return "playlist_id"; + case DB_ITEM_FOLDER: return "folder_id"; + case DB_ITEM_RADIO: return "radio_id"; + default: + return ""; + } +} + +int AudioPlayer::itemStringToType(string type) +{ + if (type == "track_id") return DB_ITEM_TRACK; + else if (type == "album_id") return DB_ITEM_ALBUM; + else if (type == "artist_id") return DB_ITEM_ARTIST; + else if (type == "genre_id") return DB_ITEM_GENRE; + else if (type == "year") return DB_ITEM_YEAR; + else if (type == "playlist_id") return DB_ITEM_PLAYLIST; + else if (type == "folder_id") return DB_ITEM_FOLDER; + else if (type == "radio_id") return DB_ITEM_RADIO; + else return DB_ITEM_NONE; +} + +void AudioPlayer::addItem(int type, string id) +{ + string cmd = "audio " + params["num"] + " playlist add "; + if (type == DB_ITEM_DIRECTURL) + cmd += id; + else + cmd += itemTypeToString(type) + ":" + id; + + connection->SendCommand(cmd); +} + +void AudioPlayer::playItem(int type, string id) +{ + string cmd = "audio " + params["num"] + " playlist play "; + if (type == DB_ITEM_DIRECTURL) + cmd += id; + else + cmd += itemTypeToString(type) + ":" + id; + + connection->SendCommand(cmd); +} + +void AudioPlayer::getDBArtistItem(int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database artists " + to_string(item) + " 1"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBYearItem(int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database years " + to_string(item) + " 1"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBGenreItem(int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database genres " + to_string(item) + " 1"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBPlaylistItem(int item, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database playlists " + to_string(item) + " 1"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBFolder(string folder_id, PlayerInfoList_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback_list = callback; + string cmd = "audio " + params["num"] + " database music_folder 0 999999"; + if (folder_id != "") cmd += " folder_id:" + folder_id; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_list_get_cb), data); +} + +void AudioPlayer::getDBSearch(string search, PlayerInfoList_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback_list = callback; + string cmd = "audio " + params["num"] + " database search 0 999999"; + cmd += " search_terms:" + search; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_list_get_cb), data); +} + +void AudioPlayer::getDBTrackInfos(string track_id, PlayerInfo_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback = callback; + string cmd = "audio " + params["num"] + " database track_infos track_id:" + track_id; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_get_cb), data); +} + +void AudioPlayer::getDBAllRadio(PlayerInfoList_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback_list = callback; + string cmd = "audio " + params["num"] + " database radios 0 999999"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_list_get_cb), data); +} + +void AudioPlayer::getDBRadio(string radio_id, string subitem_id, PlayerInfoList_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback_list = callback; + string cmd = "audio " + params["num"] + " database radio_items 0 999999 radio_id:" + radio_id; + if (subitem_id != "") cmd += " item_id:" + subitem_id; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_list_get_cb), data); +} + +void AudioPlayer::getDBRadioSearch(string radio_id, string subitem_id, string search, PlayerInfoList_cb callback) +{ + PlayerInfoData *data = new PlayerInfoData(); + data->callback_list = callback; + string cmd = "audio " + params["num"] + " database radio_items 0 999999 radio_id:" + radio_id; + cmd += " item_id:" + subitem_id; + cmd += " search:" + search; + connection->SendCommand(cmd, sigc::mem_fun(*this, &AudioPlayer::db_default_item_list_get_cb), data); +} diff --git a/src/bin/calaos_home/models/AudioModel.h b/src/bin/calaos_home/models/AudioModel.h new file mode 100644 index 00000000..3a085bb7 --- /dev/null +++ b/src/bin/calaos_home/models/AudioModel.h @@ -0,0 +1,222 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef AUDIOMODEL_H +#define AUDIOMODEL_H + +#include + +#include "CalaosConnection.h" + +using namespace Utils; + +typedef sigc::slot PlayerInfo_cb; +typedef sigc::signal PlayerInfo_signal; +typedef sigc::slot &> PlayerInfoList_cb; +typedef sigc::signal &> PlayerInfoList_signal; + +class IOBase; + +class PlayerInfoData +{ + public: + PlayerInfo_cb callback; + PlayerInfoList_cb callback_list; + + Params item; + string cover_fname; + Ecore_Exe *thumb_exe; +}; + +class AudioPlayer: public sigc::trackable +{ + private: + CalaosConnection *connection; + + int volume; + int changeReg; + int playlist_size; + + EcoreTimer *timer_change; + bool time_inprocess; + + double duration; + double elapsed_time; + + Params db_stats; + + map amplifier_inputs; + + string itemTypeToString(int type); + int itemStringToType(string type); + + void timerChangeTick(); + + void notifyChange(string notif); + + void audio_volume_get_cb(bool success, vector result, void *data); + void audio_status_get_cb(bool success, vector result, void *data); + void audio_songinfo_get_cb(bool success, vector result, void *data); + void audio_time_get_cb(bool success, vector result, void *data); + void audio_playlist_size_get_cb(bool success, vector result, void *data); + void audio_playlist_size_get_added_cb(bool success, vector result, void *data); + void playlist_item_get_cb(bool success, vector result, void *data); + void cover_cb(bool success, vector result, void *data); + void audio_db_stats_get_cb(bool success, vector result, void *data); + + void db_default_item_get_cb(bool success, vector result, void *data); + void db_default_item_list_get_cb(bool success, vector result, void *data); + + void db_album_track_count_get_cb(bool success, vector result, void *data); + + void getInputSource_cb(bool success, vector result, void *data); + void getAmpStates_cb(bool success, vector result, void *data); + + public: + AudioPlayer(CalaosConnection *c): + connection(c), + changeReg(0), + timer_change(NULL), + time_inprocess(false) + { + connection->getListener()->notify_audio_change.connect( + sigc::mem_fun(*this, &AudioPlayer::notifyChange)); + } + + void audio_get_cb(bool success, vector result, void *data); + + Params params; + + int getVolume() { return volume; } + void setVolume(int volume); + double getDuration() { return duration; } + double getTimeElapsed() { return elapsed_time; } + void setTime(double t); + + string getStatus(); + + int getPlaylistSize() { return playlist_size; } + + void play(); + void pause(); + void stop(); + void next(); + void previous(); + void on(); + void off(); + + //each view wanting player updates need to register/unregister, so that + //the model can optimize network queries. + void registerChange(); + void unregisterChange(); + + void playItem(int item); + void getPlaylistItem(int item, PlayerInfo_cb callback); + void removePlaylistItem(int item); + + //Add or play an item from the database + enum { DB_ITEM_NONE = 0, DB_ITEM_TRACK, DB_ITEM_ALBUM, DB_ITEM_ARTIST, + DB_ITEM_GENRE, DB_ITEM_YEAR, DB_ITEM_PLAYLIST, DB_ITEM_FOLDER, + DB_ITEM_RADIO, DB_ITEM_DIRECTURL }; + void playItem(int type, string id); + void addItem(int type, string id); + + bool hasCover(); + void getCurrentCover(PlayerInfo_cb callback); + + //Amplifier + IOBase *getAmplifier(); + map getInputSources() { return amplifier_inputs; } + string getAmplifierStatus(string key); + + //Database queries + Params &getDBStats(); + + void playlistDelete(string id); + + void getDBAlbumItem(int item, PlayerInfo_cb callback); + void getDBArtistItem(int item, PlayerInfo_cb callback); + void getDBYearItem(int item, PlayerInfo_cb callback); + void getDBGenreItem(int item, PlayerInfo_cb callback); + void getDBPlaylistItem(int item, PlayerInfo_cb callback); + + void getDBAlbumTrackCount(int album_id, PlayerInfo_cb callback); + void getDBArtistAlbumCount(int artist_id, PlayerInfo_cb callback); + void getDBYearAlbumCount(int year_id, PlayerInfo_cb callback); + void getDBGenreArtistCount(int genre_id, PlayerInfo_cb callback); + void getDBPlaylistTrackCount(int playlist_id, PlayerInfo_cb callback); + + void getDBAlbumTrackItem(int album_id, int item, PlayerInfo_cb callback); + void getDBAlbumArtistItem(int item, int artist_id, PlayerInfo_cb callback); + void getDBAlbumYearItem(int item, int year_id, PlayerInfo_cb callback); + void getDBArtistGenreItem(int item, int genre_id, PlayerInfo_cb callback); + void getDBPlaylistTrackItem(int playlist_id, int item, PlayerInfo_cb callback); + + void getDBFolder(string folder_id, PlayerInfoList_cb callback); + void getDBTrackInfos(string track_id, PlayerInfo_cb callback); + void getDBAllRadio(PlayerInfoList_cb callback); + void getDBRadio(string radio_id, string subitem_id, PlayerInfoList_cb callback); + void getDBRadioSearch(string radio_id, string subitem_id, string search, PlayerInfoList_cb callback); + void getDBSearch(string search, PlayerInfoList_cb callback); + + enum { AUDIO_COVER_SIZE_NONE = 0, AUDIO_COVER_SIZE_SMALL, AUDIO_COVER_SIZE_MEDIUM, AUDIO_COVER_SIZE_BIG }; + void getDBAlbumCoverItem(Params &item, PlayerInfo_cb callback, int size = AUDIO_COVER_SIZE_NONE); + + Params current_song_info; + + sigc::signal load_done; + + //Public notification of player changes + sigc::signal player_status_changed; + sigc::signal player_track_changed; + sigc::signal player_volume_changed; + sigc::signal player_time_changed; + + //Playlist notification + sigc::signal player_playlist_changed; + sigc::signal player_playlist_tracks_added; + sigc::signal player_playlist_tracks_deleted; + sigc::signal player_playlist_tracks_moved; +}; + +class AudioModel: public sigc::trackable +{ + private: + CalaosConnection *connection; + + int load_count; + void load_audio_done(AudioPlayer *audio); + + void audio_count_cb(bool success, vector result, void *data); + + public: + AudioModel(CalaosConnection *connection); + ~AudioModel(); + + void load(); + + list players; + + sigc::signal load_done; + + void executableDone(Ecore_Exe_Event_Del *event); +}; + +#endif // AUDIOMODEL_H diff --git a/src/bin/calaos_home/models/CalaosModel.cpp b/src/bin/calaos_home/models/CalaosModel.cpp new file mode 100644 index 00000000..7933ea47 --- /dev/null +++ b/src/bin/calaos_home/models/CalaosModel.cpp @@ -0,0 +1,188 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "CalaosModel.h" + +CalaosModel::CalaosModel(): + discover(NULL), + connection(NULL), + room_model(NULL), + camera_model(NULL), + audio_model(NULL), + scenario_model(NULL), + loaded(false) +{ + discover = new CalaosDiscover(); + discover->server_found.connect(sigc::mem_fun(*this, &CalaosModel::discover_found)); + discover->login_error.connect(sigc::mem_fun(*this, &CalaosModel::discover_error_login)); +} + +CalaosModel::~CalaosModel() +{ + DELETE_NULL(room_model); + DELETE_NULL(camera_model); + DELETE_NULL(audio_model); + DELETE_NULL(scenario_model); + + DELETE_NULL(discover); + DELETE_NULL(connection); +} + +void CalaosModel::discover_found(string address) +{ + server_address = address; + + DELETE_NULL(discover) + + Utils::logger("network") << Priority::INFO << "CalaosModel: found server: " << server_address << log4cpp::eol; + + connection = new CalaosConnection(server_address); + connection->connection_ok.connect(sigc::mem_fun(*this, &CalaosModel::connection_ok)); + connection->lost_connection.connect(sigc::mem_fun(*this, &CalaosModel::lost_connection)); + + load_count = 0; + + DELETE_NULL(room_model) + room_model = new RoomModel(connection); + room_model->load_done.connect(sigc::mem_fun(*this, &CalaosModel::load_home_done)); + + DELETE_NULL(camera_model) + camera_model = new CameraModel(connection); + camera_model->load_done.connect(sigc::mem_fun(*this, &CalaosModel::load_done)); + + DELETE_NULL(audio_model) + audio_model = new AudioModel(connection); + audio_model->load_done.connect(sigc::mem_fun(*this, &CalaosModel::load_done)); + + DELETE_NULL(scenario_model) + scenario_model = new ScenarioModel(connection); + scenario_model->load_done.connect(sigc::mem_fun(*this, &CalaosModel::load_done)); +} + +void CalaosModel::discover_error_login(string address) +{ + /* this has to be redispatched to the gui and ask user for username/password */ + server_address = address; + + DELETE_NULL(discover) + + Utils::logger("network") << Priority::ERROR << "CalaosModel: Failed to login to server: " << server_address << log4cpp::eol; + + login_failed.emit(server_address); +} + +void CalaosModel::connection_ok() +{ + Utils::logger("network") << Priority::INFO << "CalaosModel: Connection success, loading home" << log4cpp::eol; + + //First load home and wait it finishes loading all IO (they are needed by AudioModel/CameraModel) + room_model->load(); +} + +void CalaosModel::lost_connection() +{ + Utils::logger("network") << Priority::ERROR << "CalaosModel: Lost Connection !" << log4cpp::eol; + + DELETE_NULL(room_model) + DELETE_NULL(camera_model) + DELETE_NULL(audio_model) + + loaded = false; +} + +void CalaosModel::load_done() +{ + load_count--; + + if (load_count <= 0) + { + Utils::logger("network") << Priority::INFO << "CalaosModel: Home loaded" << log4cpp::eol; + + home_loaded.emit(); + + loaded = true; + } +} + +void CalaosModel::load_home_done() +{ + camera_model->load(); + load_count++; + audio_model->load(); + load_count++; + scenario_model->load(); + load_count++; +} + +string CalaosModel::toString() +{ + stringstream s; + + if (room_model) + { + for (list::iterator i = room_model->rooms.begin();i != room_model->rooms.end();i++) + { + Room *room = *i; + s << "[" << room->type << " - " << room->name << "] - " << room->hits << endl; + + for (list::iterator j = room->ios.begin();j != room->ios.end();j++) + { + IOBase *io = *j; + + s << "\t" << io->params["type"] << " - " << io->params["id"] << " - " << io->params["name"] << " - " << io->params["hits"] << endl; + } + } + } + + if (camera_model) + { + for (list::iterator i = camera_model->cameras.begin();i != camera_model->cameras.end();i++) + { + Camera *camera = *i; + + s << "[Camera]" << endl << "\t"; + s << camera->params["name"] << " - " << camera->params["jpeg_url"] << endl; + } + } + + if (audio_model) + { + for (list::iterator i = audio_model->players.begin();i != audio_model->players.end();i++) + { + AudioPlayer *audio = *i; + + s << "[Audio]" << endl << "\t"; + s << audio->params["name"] << " - " << audio->params["id"] << endl; + } + } + + if (scenario_model) + { + for (list::iterator i = scenario_model->scenarios.begin();i != scenario_model->scenarios.end();i++) + { + Scenario *sc = *i; + + s << "[Scenario]" << endl << "\t"; + s << sc->ioScenario->params["name"] << " - " << sc->ioScenario->params["id"] << endl; + } + } + + return s.str(); +} diff --git a/src/bin/calaos_home/models/CalaosModel.h b/src/bin/calaos_home/models/CalaosModel.h new file mode 100644 index 00000000..a3349a9a --- /dev/null +++ b/src/bin/calaos_home/models/CalaosModel.h @@ -0,0 +1,84 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef CALAOSMODEL_H +#define CALAOSMODEL_H + +#include + +#include "CalaosDiscover.h" +#include "CalaosConnection.h" + +#include "RoomModel.h" +#include "CameraModel.h" +#include "AudioModel.h" +#include "ScenarioModel.h" + +using namespace Utils; + +class CalaosModel +{ + private: + CalaosModel(); + + CalaosDiscover *discover; + CalaosConnection *connection; + string server_address; + + RoomModel *room_model; + CameraModel *camera_model; + AudioModel *audio_model; + ScenarioModel *scenario_model; + + void discover_found(string address); + void discover_error_login(string address); + void connection_ok(); + void lost_connection(); + + int load_count; + void load_home_done(); + void load_done(); + bool loaded; + + void StartDiscover(); + + public: + static CalaosModel &Instance() + { + static CalaosModel inst; + return inst; + } + + ~CalaosModel(); + + string toString(); + + RoomModel *getHome() { return room_model; } + CameraModel *getCamera() { return camera_model; } + AudioModel *getAudio() { return audio_model; } + ScenarioModel *getScenario() { return scenario_model; } + + bool isLoaded() { return loaded; } + + sigc::signal login_failed; + sigc::signal home_loaded; +}; + +#endif // CALAOSMODEL_H diff --git a/src/bin/calaos_home/models/CameraModel.cpp b/src/bin/calaos_home/models/CameraModel.cpp new file mode 100644 index 00000000..a3d069e5 --- /dev/null +++ b/src/bin/calaos_home/models/CameraModel.cpp @@ -0,0 +1,176 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "CameraModel.h" +#include "CalaosModel.h" + +CameraModel::CameraModel(CalaosConnection *con): + connection(con) +{ +} + +CameraModel::~CameraModel() +{ + for_each(cameras.begin(), cameras.end(), Delete()); +} + +void CameraModel::load() +{ + connection->SendCommand("camera ?", sigc::mem_fun(*this, &CameraModel::camera_count_cb)); +} + +void CameraModel::camera_count_cb(bool success, vector result, void *data) +{ + if (!success) return; + + if (result.size() < 2) return; + + if (is_of_type(result[1])) + { + int count; + from_string(result[1], count); + + load_count = 0; + + if (count == 0) + { + //No camera found + load_done.emit(); + } + + for (int i = 0;i < count;i++) + { + Camera *cam = new Camera(connection); + cameras.push_back(cam); + + cam->params.Add("num", to_string(cameras.size() - 1)); + + load_count++; + cam->load_done.connect(sigc::mem_fun(*this, &CameraModel::load_camera_done)); + + string cmd = "camera get " + to_string(i); + connection->SendCommand(cmd, sigc::mem_fun(*cam, &Camera::camera_get_cb)); + } + } + else + { + //Load of camera failed because of a wrong reply + load_done.emit(); + } +} + +void CameraModel::load_camera_done(Camera *camera) +{ + load_count--; + + cout << "[CAMERA load done]" << endl; + + if (load_count <= 0) + { + cout << "[CAMERA LOAD DONE sending signal]" << endl; + load_done.emit(); + } +} + +void Camera::camera_get_cb(bool success, vector result, void *data) +{ + for (uint b = 2;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + params.Add(tmp[0], tmp[1]); + } + + load_done.emit(this); +} + +Room *Camera::getRoom() +{ + if (room) return room; + + map::const_iterator it = CalaosModel::Instance().getHome()->getCacheOutputs().find(params["oid"]); + if (it == CalaosModel::Instance().getHome()->getCacheOutputs().end()) + return NULL; + + IOBase *output = (*it).second; + return output->getRoom(); +} + +void Camera::sendAction_cb(bool success, vector result, void *data) +{ + //do nothing... +} + +void Camera::MoveCenter() +{ + string cmd = "camera move " + params["num"] + " home"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::MoveUp() +{ + string cmd = "camera move " + params["num"] + " up"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::MoveDown() +{ + string cmd = "camera move " + params["num"] + " down"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::MoveLeft() +{ + string cmd = "camera move " + params["num"] + " left"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::MoveRight() +{ + string cmd = "camera move " + params["num"] + " right"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::ZoomIn() +{ + string cmd = "camera move " + params["num"] + " zoomin"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::ZoomOut() +{ + string cmd = "camera move " + params["num"] + " zoomout"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::Recall(int position) +{ + string cmd = "camera move " + params["num"] + " " + to_string(position); + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} + +void Camera::Save(int position) +{ + string cmd = "camera save " + params["num"] + " " + to_string(position); + connection->SendCommand(cmd, sigc::mem_fun(*this, &Camera::sendAction_cb)); +} diff --git a/src/bin/calaos_home/models/CameraModel.h b/src/bin/calaos_home/models/CameraModel.h new file mode 100644 index 00000000..7fedc5b7 --- /dev/null +++ b/src/bin/calaos_home/models/CameraModel.h @@ -0,0 +1,87 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef CAMERAMODEL_H +#define CAMERAMODEL_H + +#include + +#include "CalaosConnection.h" +#include "RoomModel.h" + +using namespace Utils; + +class Camera: public sigc::trackable +{ + private: + CalaosConnection *connection; + + Room *room; + + void sendAction_cb(bool success, vector result, void *data); + + public: + Camera(CalaosConnection *c): + connection(c), + room(NULL) + {} + + void camera_get_cb(bool success, vector result, void *data); + + Params params; + + //Return the room where the camera is + Room *getRoom(); + + void MoveCenter(); + void MoveUp(); + void MoveDown(); + void MoveLeft(); + void MoveRight(); + void ZoomIn(); + void ZoomOut(); + void Recall(int position); + void Save(int position); + + sigc::signal load_done; +}; + +class CameraModel: public sigc::trackable +{ + private: + CalaosConnection *connection; + + int load_count; + void load_camera_done(Camera *camera); + + void camera_count_cb(bool success, vector result, void *data); + + public: + CameraModel(CalaosConnection *connection); + ~CameraModel(); + + void load(); + + list cameras; + + sigc::signal load_done; +}; + +#endif // CAMERAMODEL_H diff --git a/src/bin/calaos_home/models/RoomModel.cpp b/src/bin/calaos_home/models/RoomModel.cpp new file mode 100644 index 00000000..37ac80fa --- /dev/null +++ b/src/bin/calaos_home/models/RoomModel.cpp @@ -0,0 +1,1577 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "RoomModel.h" + +bool IOHitsCompare(const IOBase *lhs, const IOBase *rhs) +{ + return ((IOBase *)lhs)->params["hits"] > ((IOBase *)rhs)->params["hits"]; +} + +bool IOScenarioCompare(const IOBase *lhs, const IOBase *rhs) +{ + return ((IOBase *)lhs)->params["scenarioPref"] > ((IOBase *)rhs)->params["scenarioPref"]; +} + +bool RoomHitsCompare(const Room *lhs, const Room *rhs) +{ + return lhs->hits > rhs->hits; +} + +RoomModel::RoomModel(CalaosConnection *con): + connection(con) +{ + connection->getListener()->notify_room_delete.connect( + sigc::mem_fun(*this, &RoomModel::notifyRoomDel)); + connection->getListener()->notify_room_new.connect( + sigc::mem_fun(*this, &RoomModel::notifyRoomAdd)); +} + +RoomModel::~RoomModel() +{ + for_each(rooms.begin(), rooms.end(), Delete()); +} + +void RoomModel::load() +{ + room_loaded = 0; + connection->SendCommand("home ?", sigc::mem_fun(*this, &RoomModel::home_get_cb)); +} + +void RoomModel::home_get_cb(bool success, vector result, void *data) +{ + if (!success) return; + + for (uint i = 1;i < result.size();i++) + { + vector tmp; + split(result[i], tmp, ":", 2); + int nb; + if (tmp.size() < 2) continue; + from_string(tmp[1], nb); + + for(int j = 0;j < nb;j++) + { + Room *room = new Room(connection, this); + room->type = tmp[0]; + + rooms.push_back(room); + + room_loaded++; + room->load_done.connect(sigc::mem_fun(*this, &RoomModel::load_room_done)); + + string cmd = "room " + room->type + " get " + to_string(j); + connection->SendCommand(cmd, sigc::mem_fun(*room, &Room::new_room_cb)); + } + } + + if (room_loaded <= 0) + load_done.emit(); +} + +void RoomModel::load_room_done(Room *room) +{ + room_loaded--; + + cout << "[ROOM load done]" << endl; + + if (room_loaded <= 0) + { + rooms.sort(RoomHitsCompare); + cacheScenarios.sort(IOHitsCompare); + cacheScenariosPref = cacheScenarios; + cacheScenariosPref.sort(IOScenarioCompare); + + updateRoomType(); + + cout << "[ROOM LOAD DONE sending signal]" << endl; + + load_done.emit(); + } +} + +void Room::new_room_cb(bool success, vector result, void *data) +{ + if (!success) return; + + io_loaded = 0; + for (uint b = 2;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + if (tmp[0] == "input") + loadNewIO(tmp[1], IOBase::IO_INPUT); + else if (tmp[0] == "output") + loadNewIO(tmp[1], IOBase::IO_OUTPUT); + else if(tmp[0] == "name") + name = tmp[1]; + else if(tmp[0] == "hits") + Utils::from_string(tmp[1], hits); + } + + if (io_loaded <= 0) + load_done.emit(this); +} + +void Room::loadNewIO(string id, int io_type) +{ + IOBase *io = new IOBase(connection, this, io_type); + ios.push_back(io); + + io->params.Add("id", id); + + string cmd; + if (io_type == IOBase::IO_INPUT) + cmd = "input "; + else + cmd = "output "; + cmd += id + " get"; + + io->load_done.connect(sigc::mem_fun(*this, &Room::load_io_done)); + io_loaded++; + + connection->SendCommand(cmd, sigc::mem_fun(*io, &IOBase::new_io_cb)); +} + +void Room::load_io_done(IOBase *io) +{ + io_loaded--; + + //Put everything in cache so we can use it easily later + if (io->io_type == IOBase::IO_INPUT) + model->cacheInputs[io->params["id"]] = io; + else + model->cacheOutputs[io->params["id"]] = io; + + if (io->params["chauffage_id"] != "") + model->chauffageList.push_back(io); + + string type = io->params["type"]; + if ((type == "scenario" || + type == "Scenario") && io->io_type == IOBase::IO_OUTPUT) + { + model->cacheScenarios.push_back(io); + } + + if ((type == "WODigital" && io->params["gtype"] == "light") || + type == "WODali" || + type == "WODaliRVB") + { + int value; + from_string(io->params["state"], value); + + if (io->params["state"] == "true" || value > 0) + { + RoomIO roomIO; + roomIO.io = io; + roomIO.room = this; + + model->cacheLightsOn[io] = roomIO; + } + } + + if (type == "WOVolet" || + type == "WOVoletSmart") + { + int value = 100; + + vector tokens; + split(io->params["state"], tokens); + if (tokens.size() > 1) + from_string(tokens[1], value); + + if (io->params["state"] == "false" || value < 100 || io->params["state"] == "down") + { + RoomIO roomIO; + roomIO.io = io; + roomIO.room = this; + + model->cacheShuttersUp[io] = roomIO; + } + } + + if (io_loaded <= 0) + { + ios.sort(IOHitsCompare); + + updateVisibleIO(); + + load_done.emit(this); + } +} + +void Room::updateVisibleIO() +{ + visible_ios.clear(); + scenario_ios.clear(); + + list::iterator it = ios.begin(); + for (;it != ios.end();it++) + { + IOBase *io = *it; + + if (io->params["type"] != "scenario" && + io->params.Exists("auto_scenario")) + continue; + + if (io->params["type"] == "WODigital" || + (io->params["type"] == "InternalBool" && io->io_type == IOBase::IO_OUTPUT) || + (io->params["type"] == "InternalInt" && io->io_type == IOBase::IO_OUTPUT) || + (io->params["type"] == "InternalString" && io->io_type == IOBase::IO_OUTPUT) || + io->params["type"] == "OWTemp" || + (io->params["type"] == "scenario" && io->io_type == IOBase::IO_OUTPUT) || + io->params["type"] == "WIAnalog" || + io->params["type"] == "WITemp" || + io->params["type"] == "WODali" || + io->params["type"] == "WODaliRVB" || + io->params["type"] == "WOVolet" || + io->params["type"] == "WOVoletSmart" || + io->params["type"] == "X10Output" || + io->params["type"] == "WOAnalog") + { + if (io->params["visible"] == "true") + visible_ios.push_back(io); + + scenario_ios.push_back(io); + } + + if (io->params["type"] == "CamOutput" || + io->params["type"] == "AudioOutput") + { + scenario_ios.push_back(io); + } + } + + visible_ios.sort(IOHitsCompare); + scenario_ios.sort(IOHitsCompare); +} + +IOBase *RoomModel::getChauffageForType(string type) +{ + list l; + list::iterator it = rooms_type.begin(); + + for (;it != rooms_type.end();it++) + { + if ((*it)->type == type) + l.push_back((*it)); + } + + it = l.begin(); + l.sort(RoomHitsCompare); + + for (;it != l.end();it++) + { + IOBase *io = (*it)->getChauffage(); + + if (io) + return io; + } + + return NULL; +} + +IOBase *Room::getChauffage() +{ + list::iterator it = visible_ios.begin(); + for (;it != visible_ios.end();it++) + { + IOBase *io = (*it); + if (io->params["type"] == "WITemp" || + io->params["type"] == "OWTemp") + return io; + } + + return NULL; +} + +void IOBase::new_io_cb(bool success, vector result, void *data) +{ + if (!success) return; + + for (uint b = 1;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + params.Add(tmp[0], tmp[1]); + } + + load_done.emit(this); +} + +void RoomModel::updateRoomType() +{ + rooms_type.clear(); + + list::iterator it, itr; + for (it = rooms.begin(); it != rooms.end();it++) + { + Room *room = *it; + + if (room->type == "Internal") + continue; + + bool found = false; + for (itr = rooms_type.begin(); itr != rooms_type.end();itr++) + { + if ((*itr)->type == room->type) + found = true; + } + if (found) + continue; + + rooms_type.push_back(room); + } +} + +void IOBase::sendAction(string command) +{ + string cmd; + + if (io_type == IO_INPUT) + cmd = "input "; + else + cmd = "output "; + + cmd += params["id"] + " set " + url_encode(command); + + connection->SendCommand(cmd, sigc::mem_fun(*this, &IOBase::sendAction_cb)); +} + +void IOBase::sendUserCommand(string command, CommandDone_cb callback, void *data) +{ + string cmd; + + if (io_type == IO_INPUT) + cmd = "input "; + else + cmd = "output "; + + cmd += params["id"] + " " + command; + + connection->SendCommand(cmd, callback, data); +} + +void IOBase::sendAction_cb(bool success, vector result, void *data) +{ + //do nothing... +} + +void IOBase::notifyChange(string notif) +{ + vector tok; + split(notif, tok); + + if (tok.size() < 3) return; + + if (io_type == IO_INPUT && params["type"] == "InPlageHoraire" && + tok[0] == "input_range_change") + { + //Reload InPlageHoraire + loadPlage(); + + return; + } + + if ((io_type == IO_INPUT && tok[0] != "input") || + (io_type == IO_OUTPUT && tok[0] != "output")) + return; + + for_each(tok.begin(), tok.end(), UrlDecode()); + vector p; + split(tok[2], p, ":", 2); + + if (params["type"] == "scenario" || params["type"] == "Scenario") + { + if (params["ioBoolState"] == tok[1] && p[0] == "state") + { + params.Add("state", p[1]); + io_changed.emit(); + + return; + } + } + + if (tok[1] == params["id"]) + { + params.Add(p[0], p[1]); + io_changed.emit(); + + if (p[0] == "visible") + room->updateVisibleIO(); //update visibility + + checkCacheChange(); + + //Also update WITemp if we change consigne + if (params["chauffage_id"] != "" && params["type"] == "InternalInt") + { + IOBase *temp = room->model->getTempFromConsigne(this); + if (temp) + temp->io_changed.emit(); + } + } +} + +void IOBase::checkCacheChange() +{ + string type = params["type"]; + + if ((type == "WODigital" && params["gtype"] == "light") || + type == "WODali" || + type == "WODaliRVB") + { + int value; + from_string(params["state"], value); + + RoomIOCache::iterator it = room->model->cacheLightsOn.find(this); + + if (params["state"] == "true" || value > 0) + { + if (it == room->model->cacheLightsOn.end()) + { + RoomIO roomIO; + roomIO.io = this; + roomIO.room = room; + + room->model->cacheLightsOn[this] = roomIO; + room->model->lights_on_changed.emit(room->model->cacheLightsOn.size()); + } + } + else + { + if (it != room->model->cacheLightsOn.end()) + { + room->model->cacheLightsOn.erase(it); + room->model->lights_on_changed.emit(room->model->cacheLightsOn.size()); + } + } + } + + if (type == "WOVolet" || + type == "WOVoletSmart") + { + int value = 100; + + vector tokens; + split(params["state"], tokens); + if (tokens.size() > 1) + from_string(tokens[1], value); + + RoomIOCache::iterator it = room->model->cacheShuttersUp.find(this); + + if (params["state"] == "false" || value < 100 || params["state"] == "down") + { + if (it == room->model->cacheShuttersUp.end()) + { + RoomIO roomIO; + roomIO.io = this; + roomIO.room = room; + + room->model->cacheShuttersUp[this] = roomIO; + room->model->shutters_up_changed.emit(room->model->cacheShuttersUp.size()); + } + } + else + { + if (it != room->model->cacheShuttersUp.end()) + { + room->model->cacheShuttersUp.erase(it); + room->model->shutters_up_changed.emit(room->model->cacheShuttersUp.size()); + } + } + } +} + +void Room::notifyChange(string notif) +{ + vector tok; + split(notif, tok); + Params p; + + for (unsigned int i = 0;i < tok.size();i++) + { + vector t; + split(url_decode(tok[i]), t, ":", 2); + + for_each(t.begin(), t.end(), UrlDecode()); + + p.Add(t[0], t[1]); + } + + if (p.Exists("input_del") && + p["room_name"] == name && + p["room_type"] == type) + { + //an input is deleted from this room + map::const_iterator it = model->getCacheInputs().find(p["input_del"]); + if (it != model->getCacheInputs().end()) + { + IOBase *io = it->second; + io->room = NULL; + ios.erase(find(ios.begin(), ios.end(), io)); + ios.sort(IOHitsCompare); + updateVisibleIO(); + } + } + + if (p.Exists("output_del") && + p["room_name"] == name && + p["room_type"] == type) + { + //an output is deleted from this room + map::const_iterator it = model->getCacheOutputs().find(p["output_del"]); + if (it != model->getCacheOutputs().end()) + { + IOBase *io = it->second; + io->room = NULL; + ios.erase(find(ios.begin(), ios.end(), io)); + ios.sort(IOHitsCompare); + updateVisibleIO(); + } + } + + if (p.Exists("input_add") && + p["room_name"] == name && + p["room_type"] == type) + { + //an input is deleted from this room + map::const_iterator it = model->getCacheInputs().find(p["input_add"]); + if (it != model->getCacheInputs().end()) + { + IOBase *io = it->second; + io->room = this; + ios.push_back(io); + ios.sort(IOHitsCompare); + updateVisibleIO(); + } + } + + if (p.Exists("output_add") && + p["room_name"] == name && + p["room_type"] == type) + { + //an output is deleted from this room + map::const_iterator it = model->getCacheOutputs().find(p["output_add"]); + if (it != model->getCacheOutputs().end()) + { + IOBase *io = it->second; + io->room = this; + ios.push_back(it->second); + ios.sort(IOHitsCompare); + updateVisibleIO(); + } + } + + if (p["old_room_name"] == name && p["room_type"] == type) + { + name = p["new_room_name"]; + room_changed.emit(); + } + else if (p["old_room_type"] == type && p["room_name"] == name) + { + type = p["new_room_type"]; + room_changed.emit(); + } + else if (p["room_type"] == type && p["room_name"] == name) + { + from_string(p["new_room_hits"], hits); + + room_changed.emit(); + } +} + +void RoomModel::notifyRoomChange(string notif) +{ + vector tok; + split(notif, tok); + Params p; + + for (unsigned int i = 0;i < tok.size();i++) + { + vector t; + split(tok[i], t, ":", 2); + + for_each(t.begin(), t.end(), UrlDecode()); + + p.Add(t[0], t[1]); + } + + list::iterator it, itr; + for (it = rooms.begin(); it != rooms.end();it++) + { + Room *room = *it; + + if (p["room_type"] == room->type && p["room_name"] == room->name) + { + from_string(p["new_room_hits"], room->hits); + + rooms.sort(RoomHitsCompare); + updateRoomType(); + } + } +} + +void Room::notifyIOAdd(string notif) +{ + vector tok, split_id, split_room_name, split_room_type; + split(notif, tok); + + if (tok.size() < 4) return; + + split(url_decode(tok[1]), split_id, ":", 2); + split(url_decode(tok[2]), split_room_name, ":", 2); + split(url_decode(tok[3]), split_room_type, ":", 2); + + if (split_id.size() < 2 || + split_room_name.size() < 2 || + split_room_type.size() < 2) + return; + + if (name != split_room_name[1] || type != split_room_type[1]) + return; + + if (tok[0] == "new_input") + loadNewIOFromNotif(split_id[1], IOBase::IO_INPUT); + else if (tok[0] == "new_output") + loadNewIOFromNotif(split_id[1], IOBase::IO_OUTPUT); +} + +void Room::loadNewIOFromNotif(string id, int io_type) +{ + IOBase *io = new IOBase(connection, this, io_type); + ios.push_back(io); + + io->params.Add("id", id); + + string cmd; + if (io_type == IOBase::IO_INPUT) + cmd = "input "; + else + cmd = "output "; + cmd += id + " get"; + + io->load_done.connect(sigc::mem_fun(*this, &Room::load_io_notif_done)); + + connection->SendCommand(cmd, sigc::mem_fun(*io, &IOBase::new_io_cb)); +} + +void Room::load_io_notif_done(IOBase *io) +{ + //Put everything in cache so we can use it easily later + if (io->io_type == IOBase::IO_INPUT) + model->cacheInputs[io->params["id"]] = io; + else + model->cacheOutputs[io->params["id"]] = io; + + if (io->params["chauffage_id"] != "") + model->chauffageList.push_back(io); + + string type = io->params["type"]; + if ((type == "scenario" || + type == "Scenario") && io->io_type == IOBase::IO_OUTPUT) + { + model->cacheScenarios.push_back(io); + //Sort cached scenarios again + model->cacheScenariosPref = model->cacheScenarios; + model->cacheScenariosPref.sort(IOScenarioCompare); + } + + if ((type == "WODigital" && io->params["gtype"] == "light") || + type == "WODali" || + type == "WODaliRVB") + { + int value; + from_string(io->params["state"], value); + + if (io->params["state"] == "true" || value > 0) + { + RoomIO roomIO; + roomIO.io = io; + roomIO.room = this; + + model->cacheLightsOn[io] = roomIO; + } + } + + if (type == "WOVolet" || + type == "WOVoletSmart") + { + int value = 100; + + vector tokens; + split(io->params["state"], tokens); + if (tokens.size() > 1) + from_string(tokens[1], value); + + if (io->params["state"] == "false" || value < 100 || io->params["state"] == "down") + { + RoomIO roomIO; + roomIO.io = io; + roomIO.room = this; + + model->cacheShuttersUp[io] = roomIO; + } + } + + ios.sort(IOHitsCompare); + + updateVisibleIO(); + + io_added.emit(io); +} + +void Room::notifyIODel(string notif) +{ + vector tok, split_room_name, split_room_type; + split(notif, tok); + + if (tok.size() < 4) return; + + split(url_decode(tok[2]), split_room_name, ":", 2); + split(url_decode(tok[3]), split_room_type, ":", 2); + + if (split_room_name.size() < 2 || + split_room_type.size() < 2) + return; + + if (name != split_room_name[1] || type != split_room_type[1]) + return; + + list::iterator it; + for (it = ios.begin(); it != ios.end();it++) + { + IOBase *io = (*it); + + if (io->params["id"] == tok[1]) + { + //Remove from cache + if (tok[0] == "delete_input" && io->io_type == IOBase::IO_INPUT) + { + model->cacheInputs.erase(model->cacheInputs.find(io->params["id"])); + } + else if (tok[0] == "delete_output" && io->io_type == IOBase::IO_OUTPUT) + { + model->cacheOutputs.erase(model->cacheOutputs.find(io->params["id"])); + if (io->params["type"] == "scenario" || io->params["type"] == "Scenario") + { + model->cacheScenarios.erase(find(model->cacheScenarios.begin(), model->cacheScenarios.end(), io)); + //Sort cached scenarios again + model->cacheScenariosPref = model->cacheScenarios; + model->cacheScenariosPref.sort(IOScenarioCompare); + } + } + else + { + continue; + } + + list::iterator cit; + for (cit = model->chauffageList.begin();cit != model->chauffageList.end();cit++) + { + if (*cit == io) + { + model->chauffageList.erase(cit); + break; + } + } + + if (io->params["type"] == "WOVolet" || + io->params["type"] == "WOVoletSmart") + { + RoomIOCache::iterator sit = model->cacheShuttersUp.find(io); + if (sit != model->cacheShuttersUp.end()) + model->cacheShuttersUp.erase(sit); + } + + if (io->params["type"] == "WODali" || + io->params["type"] == "WODaliRVB" || + io->params["type"] == "WODigital") + { + RoomIOCache::iterator sit = model->cacheShuttersUp.find(io); + if (sit != model->cacheShuttersUp.end()) + model->cacheShuttersUp.erase(sit); + } + + io_deleted.emit(io); + + delete io; + ios.erase(it); + + updateVisibleIO(); + + break; + } + } +} + +void RoomModel::notifyRoomAdd(string notif) +{ + vector tok; + split(notif, tok); + Params p; + + for (unsigned int i = 0;i < tok.size();i++) + { + vector t; + split(tok[i], t, ":", 2); + + for_each(t.begin(), t.end(), UrlDecode()); + + p.Add(t[0], t[1]); + } + + Room *room = new Room(connection, this); + room->type = p["type"]; + room->name = p["name"]; + room->hits = 0; + + rooms.push_back(room); + rooms.sort(RoomHitsCompare); + updateRoomType(); + + room_added.emit(room); +} + +void RoomModel::notifyRoomDel(string notif) +{ + vector tok; + split(notif, tok); + Params p; + + for (unsigned int i = 0;i < tok.size();i++) + { + vector t; + split(tok[i], t, ":", 2); + + for_each(t.begin(), t.end(), UrlDecode()); + + p.Add(t[0], t[1]); + } + + list::iterator it, itr; + for (it = rooms.begin(); it != rooms.end();it++) + { + Room *room = *it; + + if (p["type"] == room->type && p["name"] == room->name) + { + room_deleted.emit(room); + rooms.erase(it); + + delete room; + + break; + } + } +} + +list RoomModel::getRoomsForType(string type) +{ + list rtypes; + + list::iterator it, itr; + for (it = rooms.begin(); it != rooms.end();it++) + { + Room *room = *it; + + if (room->type != type) + continue; + + rtypes.push_back(room); + } + + rtypes.sort(RoomHitsCompare); + + return rtypes; +} + +IOBase *RoomModel::getConsigneFromTemp(IOBase *temp) +{ + if (!temp || temp->params["type"] != "WITemp" || temp->params["chauffage_id"] == "") + return NULL; + + list::iterator it; + for (it = chauffageList.begin();it != chauffageList.end();it++) + { + IOBase *io = (*it); + + if (io->params["type"] == "InternalInt" && + io->params["chauffage_id"] == temp->params["chauffage_id"]) + return io; + } + + return NULL; +} + +IOBase *RoomModel::getTempFromConsigne(IOBase *consigne) +{ + if (!consigne || consigne->params["type"] != "InternalInt" || consigne->params["chauffage_id"] == "") + return NULL; + + list::iterator it; + for (it = chauffageList.begin();it != chauffageList.end();it++) + { + IOBase *io = (*it); + + if (io->params["type"] == "WITemp" && + io->params["chauffage_id"] == consigne->params["chauffage_id"]) + return io; + } + + return NULL; +} + +map > RoomModel::getLightsOnForRooms() +{ + map > lmap; + + RoomIOCache::iterator it = cacheLightsOn.begin(); + for (;it != cacheLightsOn.end();it++) + { + RoomIO &rio = (*it).second; + + if (lmap.find(rio.room) == lmap.end()) + { + list l; + l.push_back(rio.io); + lmap[rio.room] = l; + } + else + { + list &l = lmap[rio.room]; + l.push_back(rio.io); + } + } + + return lmap; +} + +map > RoomModel::getShuttersUpForRooms() +{ + map > lmap; + + RoomIOCache::iterator it = cacheShuttersUp.begin(); + for (;it != cacheShuttersUp.end();it++) + { + RoomIO &rio = (*it).second; + + if (lmap.find(rio.room) == lmap.end()) + { + list l; + l.push_back(rio.io); + lmap[rio.room] = l; + } + else + { + list &l = lmap[rio.room]; + l.push_back(rio.io); + } + } + + return lmap; +} + +string IOBase::getIconForIO() +{ + if (params["type"] == "WODigital" || + params["type"] == "WODali" || + params["type"] == "WODaliRVB" || + params["type"] == "X10Output") + return "calaos/icons/element/simple/light"; + else if (params["type"] == "scenario") + return "calaos/icons/element/simple/scenario"; + else if (params["type"] == "InternalBool") + return "calaos/icons/element/simple/internal_bool"; + else if (params["type"] == "InternalInt") + return "calaos/icons/element/simple/internal_int"; + else if (params["type"] == "InternalString") + return "calaos/icons/element/simple/internal_string"; + else if (params["type"] == "WOVolet" || + params["type"] == "WOVoletSmart") + return "calaos/icons/element/simple/volet"; + else if (params["type"] == "WIAnalog" || + params["type"] == "WOAnalog") + return "calaos/icons/element/simple/analog"; + else if (params["type"] == "WITemp" || + params["type"] == "OWTemp") + return "calaos/icons/element/simple/temp"; + else if (params["type"] == "CamOutput") + return "calaos/icons/element/simple/camera"; + else if (params["type"] == "AudioOutput") + return "calaos/icons/element/simple/music"; + + return ""; +} + +void IOBase::getRGBValueFromState(int &r, int &g, int &b) +{ + int val = 0; + string state = params["state"]; + + if (Utils::is_of_type(state)) + { + from_string(state, val); + } + + r = ((val >> 16) * 100) / 255; + g = (((val >> 8) & 0x0000FF) * 100) / 255; + b = ((val & 0x0000FF) * 100) / 255; +} + +int IOBase::computeStateFromRGBValue(int r, int g, int b) +{ + int val = (((int)(r * 255 / 100)) << 16) + + (((int)(g * 255 / 100)) << 8) + + ((int)(b * 255 / 100)); + + return val; +} + +double IOBase::getDaliValueFromState() +{ + double val = 0.0; + string state = params["state"]; + + if (Utils::is_of_type(state)) + { + from_string(state, val); + } + else if (state.compare(0, 4, "set ") == 0) + { + string s = state; + s.erase(0, 4); + from_string(s, val); + } + else if (state == "true") + { + val = 100.0; + } + else if (state == "false") + { + val = 0.0; + } + + return val; +} + +int IOBase::getPercentVoletSmart() +{ + vector tokens; + int percent; + + Utils::split(params["state"], tokens); + + if (tokens.size() == 2) + from_string(tokens[1], percent); + else + percent = 0; + + return percent; +} + +string IOBase::getStatusVoletSmart() +{ + vector tokens; + Utils::split(params["state"], tokens); + + if (tokens.size() > 0) + return tokens[0]; + + return ""; +} + +vector IOBase::getActionList() +{ + vector v; + + if (params["type"] == "WODigital") + { + v.push_back(IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("toggle", "Inverser l'état de la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("impulse loop %1 %1 %1 %1", "Faire clignoter la lumière", IOActionList::ACTION_TIME_MS)); + v.push_back(IOActionList("impulse %1", "Allumer la lumière pendant X secondes", "Allumer la lumière pendant %1", IOActionList::ACTION_TIME_MS)); + } + else if (params["type"] == "WODali") + { + v.push_back(IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("toggle", "Inverser l'état de la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("set %1", "Mettre la lumière à X pourcent", "Mettre la lumière à %1%", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("set off %1", "Mettre la lumière sans allumer à X pourcent", "Mettre la lumière à %1% sans allumer", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("up %1", "Augmenter l'intensité de X pourcent", "Augmenter l'intensité de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("down %1", "Baisser l'intensité de X pourcent", "Baisser l'intensité de %1%", IOActionList::ACTION_NUMBER)); + } + else if (params["type"] == "WODaliRVB") + { + v.push_back(IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("toggle", "Inverser l'état de la lumière", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("set %1", "Choisir une couleur", "Mettre la couleur", IOActionList::ACTION_COLOR)); + v.push_back(IOActionList("set_red %1", "Choisir l'intensité du rouge", "Mettre le rouge à %1%", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("up_red %1", "Augmenter le rouge de X pourcent", "Augmenter le rouge de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("down_red %1", "Baisser le rouge de X pourcent", "Baisser le rouge de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("set_green %1", "Choisir l'intensité du vert", "Mettre le vert à %1%", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("up_green %1", "Augmenter le vert", "Augmenter le vert de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("down_green %1", "Baisser le vert", "Baisser le vert de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("set_blue %1", "Choisir l'intensité du bleu", "Mettre le bleu à %1%", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("up_blue %1", "Augmenter le blue", "Augmenter le bleu de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("down_blue %1", "Baisser le blue", "Baisser le bleu de %1%", IOActionList::ACTION_NUMBER)); + } + else if (params["type"] == "WOVolet") + { + v.push_back(IOActionList("up", "Monter le volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("down", "Descendre le volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("stop", "Arrêter le volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("toggle", "Inverser l'état du volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("impulse up %1", "Impulsion sur la montée", "Monter le volet de %1", IOActionList::ACTION_TIME_MS)); + v.push_back(IOActionList("impulse down %1", "Impulsion sur la descente", "Descendre le volet de %1", IOActionList::ACTION_TIME_MS)); + } + else if (params["type"] == "WOVoletSmart") + { + v.push_back(IOActionList("up", "Monter le volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("down", "Descendre le volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("stop", "Arrêter le volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("toggle", "Inverser l'état du volet", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("set %1", "Mettre le volet à une position", "Mettre le volet à %1%", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("up %1", "Monter le volet de X pourcent", "Monter le volet de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("down %1", "Descendre le volet de X pourcent", "Descendre le volet de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("calibrate", "Lancer la calibration", IOActionList::ACTION_SIMPLE)); + } + else if (params["type"] == "WOAnalog") + { + v.push_back(IOActionList("%1", "Mettre une valeur", "Mettre la valeur %1", IOActionList::ACTION_NUMBER)); + } + else if (params["type"] == "scenario") + { + v.push_back(IOActionList("true", "Lancer le scénario", IOActionList::ACTION_SIMPLE)); + if (params["auto_scenario"] != "") + v.push_back(IOActionList("false", "Arrêter le scénario", IOActionList::ACTION_SIMPLE)); + } + else if (params["type"] == "InternalString") + { + v.push_back(IOActionList("%1", "Mettre une texte", "Mettre le texte '%1'", IOActionList::ACTION_TEXT)); + } + else if (params["type"] == "InternalInt") + { + v.push_back(IOActionList("%1", "Mettre une valeur", "Mettre la valeur %1", IOActionList::ACTION_NUMBER)); + } + else if (params["type"] == "InternalBool") + { + v.push_back(IOActionList("true", "Activer", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("false", "Désactiver", IOActionList::ACTION_SIMPLE)); + } + else if (params["type"] == "CamOutput") + { + v.push_back(IOActionList("recall %1", "Déplacer à la position mémorisée", "Déplacer à la position %1", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("save %1", "Mémoriser la position", "Sauvegarder à la position %1", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("move up", "Déplacer vers le haut", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("move down", "Déplacer vers le bas", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("move left", "Déplacer vers la gauche", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("move right", "Déplacer vers la droite", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("move home", "Déplacer à la position initiale", IOActionList::ACTION_SIMPLE)); + } + else if (params["type"] == "AudioOutput") + { + v.push_back(IOActionList("play", "Mettre en lecture", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("pause", "Mettre en pause", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("stop", "Arrêter la lecture", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("next", "Piste suivante", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("previous", "Piste précédente", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("volume set %1", "Changer le volume", "Changer le volume à %1%", IOActionList::ACTION_SLIDER)); + v.push_back(IOActionList("volume up %1", "Monter le volume de X pourcent", "Monter le volume de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("volume down %1", "Baisser le volume de X pourcent", "Descendre le volume de %1%", IOActionList::ACTION_NUMBER)); + v.push_back(IOActionList("power on", "Allumer la zone de musique", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("power off", "Eteindre la zone de musique", IOActionList::ACTION_SIMPLE)); + v.push_back(IOActionList("sleep %1", "Eteindre la zone dans X secondes (sleep mode)", "Eteindre la zone dans %1% secondes (sleep mode)", IOActionList::ACTION_NUMBER)); + //TODO: playlist/song selection and playing here + } + + return v; +} + +IOActionList IOBase::getActionFromState() +{ + IOActionList ac; + + if (params["type"] == "WODigital") + { + if (params["state"] == "true") + ac = IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE); + else + ac = IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "WODali") + { + if (params["state"] == "true") + ac = IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE); + else if (params["state"] == "false") + ac = IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE); + else + ac = IOActionList("set %1", "Mettre la lumière à X pourcent", "Mettre la lumière à %1%", IOActionList::ACTION_SLIDER); + + ac.dvalue = getDaliValueFromState(); + } + else if (params["type"] == "WODaliRVB") + { + if (params["state"] == "true") + ac = IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE); + else if (params["state"] == "false") + ac = IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE); + else + ac = IOActionList("set %1", "Choisir une couleur", "Mettre la couleur", IOActionList::ACTION_COLOR); + + getRGBValueFromState(ac.red, ac.green, ac.blue); + } + else if (params["type"] == "WOVolet") + { + ac = IOActionList("up", "Monter le volet", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "WOVoletSmart") + { + ac = IOActionList("up", "Monter le volet", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "WOAnalog") + { + ac = IOActionList("%1", "Mettre une valeur", "Mettre la valeur %1", IOActionList::ACTION_NUMBER); + ac.dvalue = 0.0; + } + else if (params["type"] == "scenario") + { + ac = IOActionList("true", "Lancer le scénario", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "InternalString") + { + ac = IOActionList("%1", "Mettre une texte", "Mettre le texte '%1'", IOActionList::ACTION_TEXT); + ac.svalue = "Un Texte"; + } + else if (params["type"] == "InternalInt") + { + ac = IOActionList("%1", "Mettre une valeur", "Mettre la valeur %1", IOActionList::ACTION_NUMBER); + ac.dvalue = 0.0; + } + else if (params["type"] == "InternalBool") + { + ac = IOActionList("true", "Activer", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "CamOutput") + { + ac = IOActionList("recall %1", "Déplacer à la position mémorisée", "Déplacer à la position %1", IOActionList::ACTION_NUMBER); + ac.dvalue = 0.0; + } + else if (params["type"] == "AudioOutput") + { + ac = IOActionList("play", "Mettre en lecture", IOActionList::ACTION_SIMPLE); + } + + return ac; +} + +IOActionList IOBase::getActionListFromAction(string action) +{ + IOActionList ac; + vector tokens; + + split(action, tokens); + if (tokens.size() < 1) return ac; + + if (params["type"] == "WODigital") + { + if (tokens[0] == "true") ac = IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "false") ac = IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "toggle") ac = IOActionList("toggle", "Inverser l'état de la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "impulse" && tokens[1] == "loop") ac = IOActionList("impulse loop %1 %1 %1 %1", "Faire clignoter la lumière", IOActionList::ACTION_TIME_MS); + else if (tokens[0] == "impulse") ac = IOActionList("impulse %1", "Allumer la lumière pendant X secondes", "Allumer la lumière pendant %1", IOActionList::ACTION_TIME_MS); + + if (tokens.size() > 1) + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (params["type"] == "WODali") + { + if (tokens[0] == "true") ac = IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "false") ac = IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "toggle") ac = IOActionList("toggle", "Inverser l'état de la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "set" && tokens[1] == "off") ac = IOActionList("set off %1", "Mettre la lumière sans allumer à X pourcent", "Mettre la lumière à %1% sans allumer", IOActionList::ACTION_SLIDER); + else if (tokens[0] == "set") ac = IOActionList("set %1", "Mettre la lumière à X pourcent", "Mettre la lumière à %1%", IOActionList::ACTION_SLIDER); + else if (tokens[0] == "up") ac = IOActionList("up %1", "Augmenter l'intensité de X pourcent", "Augmenter l'intensité de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "down") ac = IOActionList("down %1", "Baisser l'intensité de X pourcent", "Baisser l'intensité de %1%", IOActionList::ACTION_NUMBER); + + if (tokens.size() > 1) + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (params["type"] == "WODaliRVB") + { + if (tokens[0] == "true") ac = IOActionList("true", "Allumer la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "false") ac = IOActionList("false", "Eteindre la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "toggle") ac = IOActionList("toggle", "Inverser l'état de la lumière", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "set") ac = IOActionList("set %1", "Choisir une couleur", "Mettre la couleur", IOActionList::ACTION_COLOR); + else if (tokens[0] == "set_red") ac = IOActionList("set_red %1", "Choisir l'intensité du rouge", "Mettre le rouge à %1%", IOActionList::ACTION_SLIDER); + else if (tokens[0] == "up_red") ac = IOActionList("up_red %1", "Augmenter le rouge de X pourcent", "Augmenter le rouge de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "down_red") ac = IOActionList("down_red %1", "Baisser le rouge de X pourcent", "Baisser le rouge de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "set_green") ac = IOActionList("set_green %1", "Choisir l'intensité du vert", "Mettre le vert à %1%", IOActionList::ACTION_SLIDER); + else if (tokens[0] == "up_green") ac = IOActionList("up_green %1", "Augmenter le vert", "Augmenter le vert de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "down_green") ac = IOActionList("down_green %1", "Baisser le vert", "Baisser le vert de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "set_blue") ac = IOActionList("set_blue %1", "Choisir l'intensité du bleu", "Mettre le bleu à %1%", IOActionList::ACTION_SLIDER); + else if (tokens[0] == "up_blue") ac = IOActionList("up_blue %1", "Augmenter le blue", "Augmenter le bleu de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "down_blue") ac = IOActionList("down_blue %1", "Baisser le blue", "Baisser le bleu de %1%", IOActionList::ACTION_NUMBER); + + if (tokens.size() > 1) + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (params["type"] == "WOVolet") + { + if (tokens[0] == "up") ac = IOActionList("up", "Monter le volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "down") ac = IOActionList("down", "Descendre le volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "stop") ac = IOActionList("stop", "Arrêter le volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "toggle") ac = IOActionList("toggle", "Inverser l'état du volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "impulse" && tokens[1] == "up") ac = IOActionList("impulse up %1", "Impulsion sur la montée", "Monter le volet de %1", IOActionList::ACTION_TIME_MS); + else if (tokens[0] == "impulse" && tokens[1] == "down") ac = IOActionList("impulse down %1", "Impulsion sur la descente", "Descendre le volet de %1", IOActionList::ACTION_TIME_MS); + + if (tokens.size() > 1) + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (params["type"] == "WOVoletSmart") + { + if (tokens[0] == "up") ac = IOActionList("up", "Monter le volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "down") ac = IOActionList("down", "Descendre le volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "stop") ac = IOActionList("stop", "Arrêter le volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "toggle") ac = IOActionList("toggle", "Inverser l'état du volet", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "set") ac = IOActionList("set %1", "Mettre le volet à une position", "Mettre le volet à %1%", IOActionList::ACTION_SLIDER); + else if (tokens[0] == "up") ac = IOActionList("up %1", "Monter le volet de X pourcent", "Monter le volet de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "down") ac = IOActionList("down %1", "Descendre le volet de X pourcent", "Descendre le volet de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "calibrate") ac = IOActionList("calibrate", "Lancer la calibration", IOActionList::ACTION_SIMPLE); + + if (tokens.size() > 1) + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (params["type"] == "WOAnalog") + { + ac = IOActionList("%1", "Mettre une valeur", "Mettre la valeur %1", IOActionList::ACTION_NUMBER); + from_string(tokens[0], ac.dvalue); + } + else if (params["type"] == "scenario") + { + if (tokens[0] == "true") ac = IOActionList("true", "Lancer le scénario", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "false") ac = IOActionList("false", "Arrêter le scénario", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "InternalString") + { + ac = IOActionList("%1", "Mettre une texte", "Mettre le texte '%1'", IOActionList::ACTION_TEXT); + ac.svalue = action; + } + else if (params["type"] == "InternalInt") + { + ac = IOActionList("%1", "Mettre une valeur", "Mettre la valeur %1", IOActionList::ACTION_NUMBER); + from_string(tokens[0], ac.dvalue); + } + else if (params["type"] == "InternalBool") + { + if (tokens[0] == "true") ac = IOActionList("true", "Activer", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "false") ac = IOActionList("false", "Désactiver", IOActionList::ACTION_SIMPLE); + } + else if (params["type"] == "CamOutput") + { + if (tokens[0] == "recall") + { + ac = IOActionList("recall %1", "Déplacer à la position mémorisée", "Déplacer à la position %1", IOActionList::ACTION_NUMBER); + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (tokens[0] == "save") ac = IOActionList("save %1", "Mémoriser la position", "Sauvegarder à la position %1", IOActionList::ACTION_NUMBER); + else if (tokens[0] == "move") + { + if (tokens[1] == "up") ac = IOActionList("move up", "Déplacer vers le haut", IOActionList::ACTION_SIMPLE); + else if (tokens[1] == "down") ac = IOActionList("move up", "Déplacer vers le bas", IOActionList::ACTION_SIMPLE); + else if (tokens[1] == "left") ac = IOActionList("move left", "Déplacer vers la gauche", IOActionList::ACTION_SIMPLE); + else if (tokens[1] == "right") ac = IOActionList("move right", "Déplacer vers la droite", IOActionList::ACTION_SIMPLE); + else if (tokens[1] == "home") ac = IOActionList("move home", "Déplacer à la position initiale", IOActionList::ACTION_SIMPLE); + } + } + else if (params["type"] == "AudioOutput") + { + if (tokens[0] == "play") ac = IOActionList("play", "Mettre en lecture", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "pause") ac = IOActionList("pause", "Mettre en pause", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "stop") ac = IOActionList("stop", "Arrêter la lecture", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "next") ac = IOActionList("next", "Piste suivante", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "previous") ac = IOActionList("previous", "Piste précédente", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "volume") + { + if (tokens[1] == "set") ac = IOActionList("volume set %1", "Changer le volume", "Changer le volume à %1%", IOActionList::ACTION_SLIDER); + else if (tokens[1] == "up") ac = IOActionList("volume up %1", "Monter le volume de X pourcent", "Monter le volume de %1%", IOActionList::ACTION_NUMBER); + else if (tokens[1] == "down") ac = IOActionList("volume down %1", "Baisser le volume de X pourcent", "Descendre le volume de %1%", IOActionList::ACTION_NUMBER); + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + else if (tokens[0] == "power" && tokens[1] == "on") ac = IOActionList("power on", "Allumer la zone de musique", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "power" && tokens[1] == "off") ac = IOActionList("power off", "Eteindre la zone de musique", IOActionList::ACTION_SIMPLE); + else if (tokens[0] == "sleep") + { + ac = IOActionList("sleep %1", "Eteindre la zone dans X secondes (sleep mode)", "Eteindre la zone dans %1% secondes (sleep mode)", IOActionList::ACTION_NUMBER); + from_string(tokens[tokens.size() - 1], ac.dvalue); + } + //TODO: playlist/song selection and playing here + } + + return ac; +} + +string IOActionList::getComputedTitle(IOBase *io) +{ + string t = title_computed; + + if (type == ACTION_SLIDER || + type == ACTION_NUMBER) + Utils::replace_str(t, "%1", to_string(dvalue)); + + if (type == ACTION_TEXT) + Utils::replace_str(t, "%1", to_string(svalue)); + + if (type == ACTION_TIME_MS) + Utils::replace_str(t, "%1", Utils::time2string(dvalue / 1000, (long)dvalue % 1000)); + + return t; +} + +string IOActionList::getComputedAction(IOBase *io) +{ + string ac = action; + + if (type == ACTION_SIMPLE) + return ac; + + if (type == ACTION_SLIDER || + type == ACTION_NUMBER) + Utils::replace_str(ac, "%1", to_string(dvalue)); + + if (type == ACTION_TEXT) + Utils::replace_str(ac, "%1", to_string(svalue)); + + if (type == ACTION_TIME_MS) + Utils::replace_str(ac, "%1", Utils::time2string(dvalue / 1000, (long)dvalue % 1000)); + + if (type == ACTION_COLOR) + Utils::replace_str(ac, "%1", to_string(io->computeStateFromRGBValue(red, green, blue))); + + return ac; +} + +void IOBase::loadPlage() +{ + range_infos.range_monday.clear(); + range_infos.range_tuesday.clear(); + range_infos.range_wednesday.clear(); + range_infos.range_thursday.clear(); + range_infos.range_friday.clear(); + range_infos.range_saturday.clear(); + range_infos.range_sunday.clear(); + + if (params["type"] != "InPlageHoraire") + { + Utils::logger("network") << Priority::ERROR << "IOBase:loadPlage(): " << params["id"] + << " is not of type InPlageHoraire, but " << params["type"] + << " instead." << log4cpp::eol; + return; + } + + string cmd = "input " + params["id"] + " plage get"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &IOBase::loadPlage_cb)); +} + +void IOBase::loadPlage_cb(bool success, vector result, void *data) +{ + if (!success) return; + + for (uint i = 3;i < result.size();i++) + { + vector splitter; + split(result[i], splitter, ":", 11); + + TimeRange tr; + + tr.shour = splitter[1]; + tr.smin = splitter[2]; + tr.ssec = splitter[3]; + from_string(splitter[4], tr.start_type); + from_string(splitter[5], tr.start_offset); + if (tr.start_offset < 0) tr.start_offset = -1; + if (tr.start_offset >= 0) tr.start_offset = 1; + + tr.ehour = splitter[6]; + tr.emin = splitter[7]; + tr.esec = splitter[8]; + from_string(splitter[9], tr.end_type); + from_string(splitter[10], tr.end_offset); + if (tr.end_offset < 0) tr.end_offset = -1; + if (tr.end_offset >= 0) tr.end_offset = 1; + + int day; + from_string(splitter[0], day); + switch(day) + { + case 1: range_infos.range_monday.push_back(tr); break; + case 2: range_infos.range_tuesday.push_back(tr); break; + case 3: range_infos.range_wednesday.push_back(tr); break; + case 4: range_infos.range_thursday.push_back(tr); break; + case 5: range_infos.range_friday.push_back(tr); break; + case 6: range_infos.range_saturday.push_back(tr); break; + case 7: range_infos.range_sunday.push_back(tr); break; + default: + Utils::logger("network") << Priority::ERROR << "IOBase:loadPlage(): " << params["id"] + << " unknown range day. Debug infos: " << result[i] << log4cpp::eol; + break; + } + } + + //Load months info + string cmd = "input " + params["id"] + " plage months get"; + connection->SendCommand(cmd, sigc::mem_fun(*this, &IOBase::loadPlageMonths_cb)); +} + +void IOBase::loadPlageMonths_cb(bool success, vector result, void *data) +{ + if (!success) return; + + if (result.size() < 5) + { + Utils::logger("network") << Priority::ERROR << "IOBase:loadPlage(): " << params["id"] + << "error reading months!" << log4cpp::eol; + io_changed.emit(); //io has changed + + return; + } + + string m = result[4]; + //reverse to have a left to right months representation + std::reverse(m.begin(), m.end()); + + try + { + bitset<12> mset(m); + range_infos.range_months = mset; + } + catch(...) + { + Utils::logger("network") << Priority::ERROR << "IOBase:loadPlage(): " << params["id"] + << " wrong parameters for months: " << m << log4cpp::eol; + } + + io_changed.emit(); //io has changed +} diff --git a/src/bin/calaos_home/models/RoomModel.h b/src/bin/calaos_home/models/RoomModel.h new file mode 100644 index 00000000..d2d35969 --- /dev/null +++ b/src/bin/calaos_home/models/RoomModel.h @@ -0,0 +1,289 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ROOMMODEL_H +#define ROOMMODEL_H + +#include +#include "CalaosConnection.h" +#include + +using namespace Utils; + +class IOBase; +class Room; + +bool IOHitsCompare(const IOBase *lhs, const IOBase *rhs); +bool RoomHitsCompare(const Room *lhs, const Room *rhs); + +class IOBase; +class IOActionList +{ + public: + IOActionList(string a, string t, string t2, int ty): //title_computed must be computed with value first + action(a), title(t), title_computed(t2), dvalue(0.0), red(0), green(0), blue(0), type(ty) + {} + IOActionList(string a, string t, int ty): //same title and title_computed + action(a), title(t), title_computed(t), dvalue(0.0), red(0), green(0), blue(0), type(ty) + {} + IOActionList(): + dvalue(0.0), red(0), green(0), blue(0), type(ACTION_NONE) + {} + + string action; + string title; + string title_computed; + + double dvalue; + string svalue; + + //for color type + int red, green, blue; + + enum { ACTION_NONE = 0, ACTION_SIMPLE, ACTION_SLIDER, ACTION_COLOR, ACTION_TEXT, ACTION_NUMBER, ACTION_TIME_MS }; + int type; + + string getComputedAction(IOBase *io); + string getComputedTitle(IOBase *io); + + void copyValueFrom(IOActionList &ac) + { dvalue = ac.dvalue; svalue = ac.svalue; red = ac.red; green = ac.green; blue = ac.blue; } +}; + +class TimeRangeInfos +{ + public: + TimeRangeInfos() + {} + + vector range_monday; + vector range_tuesday; + vector range_wednesday; + vector range_thursday; + vector range_friday; + vector range_saturday; + vector range_sunday; + + //months where InPlageHoraire is activated + enum { JANUARY = 0, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER }; + bitset<12> range_months; +}; + +class Room; +class IOBase: public sigc::trackable +{ + private: + friend class Room; + CalaosConnection* connection; + + Room *room; + + void sendAction_cb(bool success, vector result, void *data); + void notifyChange(string notif); + + void checkCacheChange(); + + void loadPlage_cb(bool success, vector result, void *data); + void loadPlageMonths_cb(bool success, vector result, void *data); + + public: + IOBase(CalaosConnection* con, Room *r, int iotype): + connection(con), + room(r), + io_type(iotype) + { + connection->getListener()->notify_io_change.connect( + sigc::mem_fun(*this, &IOBase::notifyChange)); + } + ~IOBase() + { + io_deleted.emit(); + } + + Params params; + + enum { IO_INPUT, IO_OUTPUT }; + int io_type; + + void new_io_cb(bool success, vector result, void *data); + + void sendAction(string command); + void sendUserCommand(string command, CommandDone_cb callback, void *data = NULL); + Room *getRoom() { return room; } + + //Some utility functions + void getRGBValueFromState(int &r, int &g, int &b); + int computeStateFromRGBValue(int r, int g, int b); + double getDaliValueFromState(); + int getPercentVoletSmart(); + string getStatusVoletSmart(); + + string getIconForIO(); + vector getActionList(); + IOActionList getActionFromState(); + IOActionList getActionListFromAction(string action); //action is from the scenario action + + //InPlageHoraire functions + void loadPlage(); //force a reload of the plage data + + TimeRangeInfos range_infos; + + //signals + sigc::signal load_done; + sigc::signal io_changed; + sigc::signal io_deleted; +}; + +class RoomModel; +class Room: public sigc::trackable +{ + private: + friend class IOBase; + + CalaosConnection* connection; + RoomModel *model; + + int io_loaded; + + void notifyChange(string notif); + void notifyIOAdd(string notif); + void notifyIODel(string notif); + + void updateVisibleIO(); + + public: + Room(CalaosConnection* con, RoomModel *_model): + connection(con), + model(_model) + { + connection->getListener()->notify_io_delete.connect( + sigc::mem_fun(*this, &Room::notifyIODel)); + connection->getListener()->notify_io_new.connect( + sigc::mem_fun(*this, &Room::notifyIOAdd)); + connection->getListener()->notify_room_change.connect( + sigc::mem_fun(*this, &Room::notifyChange)); + } + ~Room() + { + room_deleted.emit(); + for_each(ios.begin(), ios.end(), Delete()); + } + + string name; + string type; + int hits; + + list ios; + list visible_ios; //Contains only visible IO for a GUI + list scenario_ios; //Contains all IO controlable in a scenario + + void new_room_cb(bool success, vector result, void *data); + void load_io_done(IOBase *io); + void load_io_notif_done(IOBase *io); + + void loadNewIO(string id, int io_type); + void loadNewIOFromNotif(string id, int io_type); + + IOBase *getChauffage(); + + sigc::signal load_done; + sigc::signal io_deleted; + sigc::signal io_added; + sigc::signal room_changed; + sigc::signal room_deleted; +}; + +typedef struct _RoomLightsOn +{ + Room *room; + IOBase *io; +} RoomIO; +typedef map RoomIOCache; + +class RoomModel: public sigc::trackable +{ + private: + CalaosConnection *connection; + + int room_loaded; + + void home_get_cb(bool success, vector result, void *data); + + void load_room_done(Room *room); + + void updateRoomType(); + + void updateChauffageIO(); //update association of chauffage IO + + void notifyRoomAdd(string notif); + void notifyRoomDel(string notif); + void notifyRoomChange(string notif); //monitor hits change and sort rooms again if change happens + + /* Caches */ + friend class Room; + friend class IOBase; + + list cacheScenarios; + list cacheScenariosPref; + + RoomIOCache cacheLightsOn; + RoomIOCache cacheShuttersUp; + + map cacheInputs; + map cacheOutputs; + + list chauffageList; + + public: + RoomModel(CalaosConnection *connection); + ~RoomModel(); + + list rooms; //All rooms sorted + list rooms_type; //Only types sorted by hits + + void load(); + + const list &getCacheScenarios() { return cacheScenarios; } + const list &getCacheScenariosPref() { return cacheScenariosPref; } + const RoomIOCache &getCacheLightsOn() { return cacheLightsOn; } + const RoomIOCache &getCacheShuttersUp() { return cacheShuttersUp; } + const map &getCacheInputs() { return cacheInputs; } + const map &getCacheOutputs() { return cacheOutputs; } + + map > getLightsOnForRooms(); + map > getShuttersUpForRooms(); + + list getRoomsForType(string type); + + IOBase *getConsigneFromTemp(IOBase *temp); + IOBase *getTempFromConsigne(IOBase *temp); + + IOBase *getChauffageForType(string type); + + sigc::signal load_done; + + sigc::signal room_deleted; + sigc::signal room_added; + + sigc::signal lights_on_changed; + sigc::signal shutters_up_changed; +}; + +#endif // ROOMMODEL_H diff --git a/src/bin/calaos_home/models/ScenarioModel.cpp b/src/bin/calaos_home/models/ScenarioModel.cpp new file mode 100644 index 00000000..bbaa6d46 --- /dev/null +++ b/src/bin/calaos_home/models/ScenarioModel.cpp @@ -0,0 +1,392 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ScenarioModel.h" +#include "CalaosModel.h" + +ScenarioModel::ScenarioModel(CalaosConnection *con): + connection(con) +{ + connection->getListener()->notify_scenario_add.connect( + sigc::mem_fun(*this, &ScenarioModel::notifyScenarioAdd)); + connection->getListener()->notify_scenario_change.connect( + sigc::mem_fun(*this, &ScenarioModel::notifyScenarioChange)); +} + +ScenarioModel::~ScenarioModel() +{ + for_each(scenarios.begin(), scenarios.end(), Delete()); +} + +void ScenarioModel::load() +{ + connection->SendCommand("scenario list", sigc::mem_fun(*this, &ScenarioModel::scenario_list_cb)); +} + +void ScenarioModel::scenario_list_cb(bool success, vector result, void *data) +{ + if (!success) return; + + if (result.size() == 2) + load_done.emit(); //no scenarios found + + if (result.size() < 3) return; + + load_count = 0; + for (uint i = 2;i < result.size();i++) + { + map::const_iterator it = CalaosModel::Instance().getHome()->getCacheInputs().find(result[i]); + + if (it == CalaosModel::Instance().getHome()->getCacheInputs().end()) + { + Utils::logger("scenario") << Priority::ERROR << "ScenarioModel: Unknown Input \'" << result[i] << "\' !" << log4cpp::eol; + continue; + } + + Scenario *sc = new Scenario(connection); + sc->ioScenario = it->second; + sc->scenario_data.empty = false; + sc->scenario_data.params.Add("id", result[i]); + sc->ioScenario->io_deleted.connect(sigc::bind(sigc::mem_fun(*this, &ScenarioModel::notifyScenarioDel), sc)); + scenarios.push_back(sc); + + load_count++; + sc->load_done.connect(sigc::mem_fun(*this, &ScenarioModel::load_scenario_done)); + + string cmd = "scenario get " + result[i]; + connection->SendCommand(cmd, sigc::mem_fun(*sc, &Scenario::scenario_get_cb)); + } +} + +void ScenarioModel::load_scenario_done(Scenario *sc) +{ + load_count--; + + cout << "[SCENARIO load done] load_count:" << load_count << endl; + + if (load_count <= 0) + { + load_done.emit(); + + cout << "[SCENARIO LOAD DONE sending signal]" << endl; + } +} + +void Scenario::scenario_get_cb(bool success, vector result, void *data) +{ + scenario_data.name = ioScenario->params["name"]; + if (ioScenario->params["visible"] == "true") + { + scenario_data.visible = true; + scenario_data.room = ioScenario->getRoom(); + } + + int step = -1; + for (uint b = 3;b < result.size();b++) + { + vector tmp; + Utils::split(result[b], tmp, ":", 2); + + if (tmp.size() < 2) continue; + + if (tmp[0] == "step") + { + step++; + + ScenarioStep step; + from_string(tmp[1], step.pause); + scenario_data.steps.push_back(step); + + continue; + } + + if (tmp[0] == "step_end") + { + step = ScenarioData::END_STEP; + + continue; + } + + if (step == -1) + { + scenario_data.params.Add(tmp[0], tmp[1]); + + if (tmp[0] != "schedule" && tmp[1] != "false") + { + map::const_iterator it = CalaosModel::Instance().getHome()->getCacheOutputs().find(tmp[1]); + if (it != CalaosModel::Instance().getHome()->getCacheOutputs().end()) + { + ioPlage = (*it).second; + } + } + } + else + { + map::const_iterator it = CalaosModel::Instance().getHome()->getCacheOutputs().find(tmp[0]); + if (it == CalaosModel::Instance().getHome()->getCacheOutputs().end()) + { + Utils::logger("scenario") << Priority::ERROR << "ScenarioModel::scenario_get Unknown action id \'" << tmp[0] << "\' with action \'" << tmp[1] << "\' !" << log4cpp::eol; + continue; + } + IOBase *io = (*it).second; + + IOActionList ac = io->getActionListFromAction(tmp[1]); + ScenarioAction sa; + sa.io = io; + sa.action = ac.getComputedAction(io); + + if (step == ScenarioData::END_STEP) + scenario_data.step_end.actions.push_back(sa); + else + scenario_data.steps[step].actions.push_back(sa); + } + } + + load_done.emit(this); +} + +Room *Scenario::getRoom() +{ + if (!room && ioScenario && ioScenario->getRoom()) + room = ioScenario->getRoom(); + + return room; +} + +string Scenario::getFirstCategory() +{ + vector tok; + split(scenario_data.params["category"], tok, "-"); + if (tok.size() > 0) + return tok[0]; + + return "other"; +} + +string ScenarioData::createRequest() +{ + //request: + // scenario create name:bla visible:true room_name:bla room_type:bla cycle:true step:61000 output_0:actionbla output_1:actionbla step_end output_0:actionbla + + string req = "scenario create name:" + url_encode(name) + " "; + + if (visible && room) + { + req += "visible:true room_name:" + url_encode(room->name) + " "; + req += "room_type:" + url_encode(room->type) + " "; + } + else + { + req += "visible:false "; + } + + if (params["cycle"] == "true") + req += "cycle:true "; + else + req += "cycle:false "; + + //Add each steps + for (uint i = 0;i < steps.size();i++) + { + ScenarioStep &step = steps[i]; + + req += "step:" + to_string(step.pause) + " "; + + for (uint j = 0;j < step.actions.size();j++) + { + ScenarioAction &sa = step.actions[j]; + + req += url_encode(sa.io->params["id"]) + ":" + url_encode(sa.action) + " "; + } + } + + //End step + req += "step_end "; + for (uint j = 0;j < step_end.actions.size();j++) + { + ScenarioAction &sa = step_end.actions[j]; + + req += url_encode(sa.io->params["id"]) + ":" + url_encode(sa.action) + " "; + } + + return req; +} + +string ScenarioData::modifyRequest(IOBase *io) +{ + //request: + // scenario modify input_123 name:bla visible:true room_name:bla room_type:bla cycle:true step:61000 output_0:actionbla output_1:actionbla step_end output_0:actionbla + + string req = "scenario modify " + io->params["id"] + " name:" + url_encode(name) + " "; + + if (visible && room) + { + req += "visible:true room_name:" + url_encode(room->name) + " "; + req += "room_type:" + url_encode(room->type) + " "; + } + else + { + req += "visible:false "; + } + + if (params["cycle"] == "true") + req += "cycle:true "; + else + req += "cycle:false "; + + //Add each steps + for (uint i = 0;i < steps.size();i++) + { + ScenarioStep &step = steps[i]; + + req += "step:" + to_string(step.pause) + " "; + + for (uint j = 0;j < step.actions.size();j++) + { + ScenarioAction &sa = step.actions[j]; + + req += url_encode(sa.io->params["id"]) + ":" + url_encode(sa.action) + " "; + } + } + + //End step + req += "step_end "; + for (uint j = 0;j < step_end.actions.size();j++) + { + ScenarioAction &sa = step_end.actions[j]; + + req += url_encode(sa.io->params["id"]) + ":" + url_encode(sa.action) + " "; + } + + return req; +} + +void ScenarioModel::createScenario(ScenarioData &data) +{ + string cmd = data.createRequest(); + connection->SendCommand(cmd); +} + +void ScenarioModel::modifyScenario(Scenario *sc) +{ + if (!sc || !sc->ioScenario) return; + + string cmd = sc->scenario_data.modifyRequest(sc->ioScenario); + connection->SendCommand(cmd); +} + +void ScenarioModel::deleteScenario(Scenario *sc) +{ + if (!sc || !sc->ioScenario) return; + + string cmd = "scenario delete " + sc->ioScenario->params["id"]; + connection->SendCommand(cmd); +} + +void ScenarioModel::notifyScenarioAdd(string notif) +{ + //We need to delay the load of the scenario because we have to wait for RoomModel to load the scenario id first + EcoreTimer::singleShot(0.5, sigc::bind(sigc::mem_fun(*this, &ScenarioModel::notifyScenarioAddDelayed), notif)); +} + +void ScenarioModel::notifyScenarioAddDelayed(string notif) +{ + vector tok, split_id; + split(notif, tok); + + if (tok.size() < 2) return; + + split(tok[1], split_id, ":", 2); + + if (split_id.size() < 2) + return; + + map::const_iterator it = CalaosModel::Instance().getHome()->getCacheInputs().find(split_id[1]); + + if (it == CalaosModel::Instance().getHome()->getCacheInputs().end()) + { + Utils::logger("scenario") << Priority::ERROR << "ScenarioModel: Unknown Input \'" << split_id[1] << "\' !" << log4cpp::eol; + return; + } + + Scenario *sc = new Scenario(connection); + sc->ioScenario = it->second; + sc->scenario_data.empty = false; + sc->ioScenario->io_deleted.connect(sigc::bind(sigc::mem_fun(*this, &ScenarioModel::notifyScenarioDel), sc)); + sc->scenario_data.params.Add("id", split_id[1]); + scenarios.push_back(sc); + + sc->load_done.connect(sigc::mem_fun(*this, &ScenarioModel::load_new_scenario_done)); + + string cmd = "scenario get " + split_id[1]; + connection->SendCommand(cmd, sigc::mem_fun(*sc, &Scenario::scenario_get_cb)); +} + +void ScenarioModel::load_new_scenario_done(Scenario *sc) +{ + scenario_new.emit(sc); +} + +void ScenarioModel::notifyScenarioDel(Scenario *sc) +{ + if (!sc) + { + Utils::logger("scenario") << Priority::ERROR << "ScenarioModel::notifyScenarioDel sc is NULL!" << log4cpp::eol; + return; + } + + list::iterator it; + it = find(scenarios.begin(), scenarios.end(), sc); + + if (it == scenarios.end()) + { + Utils::logger("scenario") << Priority::ERROR << "ScenarioModel: Unknown scenario \'" << sc->ioScenario->params["id"] << "\' !" << log4cpp::eol; + return; + } + + scenario_del.emit(*it); + + delete *it; + scenarios.erase(it); +} + +void ScenarioModel::notifyScenarioChange(string notif) +{ + vector tok, split_id; + split(notif, tok); + + if (tok.size() < 2) return; + + split(tok[1], split_id, ":", 2); + + if (split_id.size() < 2) + return; + + list::iterator it = scenarios.begin(); + for (;it != scenarios.end();it++) + { + Scenario *sc = *it; + if (sc->ioScenario && sc->ioScenario->params["id"] == split_id[1]) + { + scenario_change.emit(sc); + break; + } + } +} diff --git a/src/bin/calaos_home/models/ScenarioModel.h b/src/bin/calaos_home/models/ScenarioModel.h new file mode 100644 index 00000000..0e261981 --- /dev/null +++ b/src/bin/calaos_home/models/ScenarioModel.h @@ -0,0 +1,171 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef SCENARIOMODEL_H +#define SCENARIOMODEL_H + +#include + +#include "CalaosConnection.h" +#include "RoomModel.h" + +using namespace Utils; + +class ScenarioAction +{ + public: + ScenarioAction() + {} + + IOBase *io; + string action; + + string toString() + { + if (!io) return "Empty action !"; + return io->params["id"] + " : " + action; + } + +}; + +class ScenarioStep +{ + public: + ScenarioStep(): + pause(1000) + {} + + vector actions; + long int pause; //msec + + string toString() + { + string t = "\t\t[STEP] - pause:" + to_string(pause); + for (uint i = 0;i < actions.size();i++) + t += "\n\t\t\t" + actions[i].toString(); + return t; + } +}; + +class ScenarioData +{ + public: + ScenarioData(): + room(NULL), + visible(false), + empty(true) + { + params.Add("cycle", "false"); + params.Add("enabled", "true"); + } + + string name; + Room *room; + bool visible; + + Params params; + + static const int END_STEP = 0xFEDC1234; + + vector steps; + ScenarioStep step_end; + + bool empty; + + string createRequest(); + string modifyRequest(IOBase *io); + + string toString() + { + string t = "[SCENARIO DATA] - name:" + name + " visible:" + to_string(visible) + + "\n" + params.toString(); + for (uint i = 0;i < steps.size();i++) + t += "\n\t[Step " + to_string(i) + "]\n" + steps[i].toString(); + t += "\n\t[Step End]\n" + step_end.toString(); + return t; + } +}; + +class Scenario: public sigc::trackable +{ + private: + CalaosConnection *connection; + + Room *room; + + public: + Scenario(CalaosConnection *c): + connection(c), + room(NULL), + ioScenario(NULL), + ioPlage(NULL) + {} + + void scenario_get_cb(bool success, vector result, void *data); + + IOBase *ioScenario; + IOBase *ioPlage; + + ScenarioData scenario_data; + + string getFirstCategory(); + + bool isScheduled() { if (ioPlage) return true; return false; } + + //Return the room where the scenario is + Room *getRoom(); + + sigc::signal load_done; +}; + +class ScenarioModel: public sigc::trackable +{ + private: + CalaosConnection *connection; + + int load_count; + void load_scenario_done(Scenario *sc); + void load_new_scenario_done(Scenario *sc); + + void scenario_list_cb(bool success, vector result, void *data); + + void notifyScenarioAdd(string notif); + void notifyScenarioAddDelayed(string notif); + void notifyScenarioDel(Scenario *sc); + void notifyScenarioChange(string notif); + + public: + ScenarioModel(CalaosConnection *connection); + ~ScenarioModel(); + + void load(); + void createScenario(ScenarioData &data); + void modifyScenario(Scenario *sc); + void deleteScenario(Scenario *sc); + + list scenarios; + + sigc::signal load_done; + sigc::signal scenario_new; + sigc::signal scenario_del; + sigc::signal scenario_change; +}; + +#endif // SCENARIOMODEL_H diff --git a/src/bin/calaos_home/views/ActivityAudioListView.cpp b/src/bin/calaos_home/views/ActivityAudioListView.cpp new file mode 100644 index 00000000..9f11fc41 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityAudioListView.cpp @@ -0,0 +1,801 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ApplicationMain.h" +#include "ActivityAudioListView.h" +#include "GenlistItems/GenlistItemSimple.h" +#include "GenlistItems/GenlistItemAlbum.h" +#include "GenlistItems/GenlistItemAlbumHeader.h" +#include "GenlistItems/GenlistItemTrack.h" +#include "GenlistItems/GenlistItemArtist.h" +#include "GenlistItems/GenlistItemYear.h" +#include "GenlistItems/GenlistItemGenre.h" +#include "GenlistItems/GenlistItemBrowserPlaylist.h" +#include "GenlistItems/GenlistItemPlaylistHeader.h" +#include "GenlistItems/GenlistItemRadio.h" +#include + +ActivityAudioListView::ActivityAudioListView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/media/audio_list"), + player_current(NULL), + in_edit_mode(false) +{ + players.reserve(3); + for (int i = 0;i < 3;i++) + { + ActivityPlayerObject ac(evas, parent); + players.push_back(ac); + players[players.size() - 1].createEdjeObject(theme, evas); + Swallow(players[players.size() - 1].object, "player.swallow." + to_string(i + 1)); + players[players.size() - 1].player_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::playerSelected)); + } + + addCallback("button.browser.back", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserButtonBack)); + addCallback("button.browser.root", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserButtonRoot)); + + gplaylist = elm_genlist_add(parent); + Swallow(gplaylist, "playlist.swallow"); + elm_object_style_set(gplaylist, "calaos"); + elm_genlist_homogeneous_set(gplaylist, true); + evas_object_show(gplaylist); + + pager_browser = elm_naviframe_add(parent); + evas_object_show(pager_browser); + Swallow(pager_browser, "browser.swallow"); + + addCallback("audio", "*", sigc::mem_fun(*this, &ActivityAudioListView::EdjeCallback)); +} + +ActivityAudioListView::~ActivityAudioListView() +{ + for (unsigned int i = 0;i < players.size();i++) + { + players[i].unsetPlayer(); + DELETE_NULL(players[i].object); + } + + elm_genlist_clear(gplaylist); + DELETE_NULL_FUNC(evas_object_del, gplaylist); + + DELETE_NULL_FUNC(evas_object_del, pager_browser); + + for_each(browser_root_buttons.begin(), browser_root_buttons.end(), Delete()); +} + +void ActivityAudioListView::createRootBrowserPage() +{ + browser_root = new EdjeObject(theme, evas); + browser_root->LoadEdje("calaos/audio/browser/root"); + browser_root->setAutoDelete(true); + + EdjeObject *obj; + Params &stats = player_current->getPlayer()->getDBStats(); + + obj = createRootButton("Mes Albums", "Accédez à tous vos albums.", stats["albums"], 0, 0); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowAlbums)); + + obj = createRootButton("Artistes", "Afficher par artistes.", stats["artists"], 0, 1); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowArtists)); + + obj = createRootButton("Années", "Pistes triées par années.", stats["years"], 1, 0); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowYears)); + + obj = createRootButton("Genres", "Afficher les titres par genres.", stats["genres"], 1, 1); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowGenres)); + + obj = createRootButton("Dossier de musique", "Parcourir la musique par dossier.", "", 2, 0); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowFolders)); + + obj = createRootButton("Playlists", "Vos playlists sauvegardées.", stats["playlists"], 2, 1); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowPlaylists)); + + obj = createRootButton("Radios", "Radios web et services en ligne.", "", 3, 0); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowRadios)); + + obj = createRootButton("Rechercher...", "Chercher dans votre collection.", "", 3, 1); + obj->addCallback("button", "pressed", sigc::mem_fun(*this, &ActivityAudioListView::browserShowSearch)); + + it_browser_root = elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, browser_root->getEvasObject(), "calaos"); +} + +EdjeObject *ActivityAudioListView::createRootButton(string title, string subtitle, string total, int row, int col) +{ + EdjeObject *obj = new EdjeObject(theme, evas); + obj->LoadEdje("calaos/audio/browser/button"); + obj->setPartText("title", title); + obj->setPartText("subtitle", subtitle); + obj->setPartText("total", total); + obj->Show(); + + int w, h; + edje_object_size_min_get(obj->getEvasObject(), &w, &h); + obj->Resize(w, h); + evas_object_size_hint_min_set(obj->getEvasObject(), w, h); + + browser_root_buttons.push_back(obj); + + if (!edje_object_part_table_pack(browser_root->getEvasObject(), "table", obj->getEvasObject(), + col, row, 1, 1)) + Utils::logger("root") << Priority::CRIT << "ActivityAudioListView::createRootButton(), failed to pack object into table !" << log4cpp::eol; + + return obj; +} + +void ActivityAudioListView::resetView() +{ +} + +void ActivityAudioListView::setPlayer(AudioPlayer *player, int position) +{ + players[position].object->setPartText("player.name", player->params["name"]); + players[position].object->EmitSignal("player,active", "calaos"); + players[position].setPlayer(player); +} + +void ActivityAudioListView::disablePlayer(int position) +{ + players[position].unsetPlayer(); + players[position].object->EmitSignal("player,inactive", "calaos"); + players[position].resetPlayer(); +} + +void ActivityAudioListView::EnableLeftButton() +{ + EmitSignal("enable,left", "calaos"); +} + +void ActivityAudioListView::DisableLeftButton() +{ + EmitSignal("disable,left", "calaos"); +} + +void ActivityAudioListView::EnableRightButton() +{ + EmitSignal("enable,right", "calaos"); +} + +void ActivityAudioListView::DisableRightButton() +{ + EmitSignal("disable,right", "calaos"); +} + +void ActivityAudioListView::ShowLoading() +{ + EmitSignal("show,loading", "calaos"); +} + +void ActivityAudioListView::HideLoading() +{ + EmitSignal("hide,loading", "calaos"); +} + +void ActivityAudioListView::EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (emission == "page,right") + { + button_right_click.emit(); + } + else if (emission == "page,left") + { + button_left_click.emit(); + } +} + +void ActivityAudioListView::playerSelected(ActivityPlayerObject *obj) +{ + if (obj == &players[0]) EmitSignal("select,player,1", "calaos"); + if (obj == &players[1]) EmitSignal("select,player,2", "calaos"); + if (obj == &players[2]) EmitSignal("select,player,3", "calaos"); + + player_current = obj; + + obj->handlePlaylist(parent, gplaylist, this); + obj->object->EmitSignal("player,select", "calaos"); + + player_selected.emit(obj->getPlayer()); +} + +void ActivityAudioListView::unselectPlayers() +{ + EmitSignal("unselect,players", "calaos"); + + for (uint i = 0;i < players.size();i++) + { + players[i].object->EmitSignal("player,unselect", "calaos"); + players[i].unsetPlaylist(); + } + + player_current = NULL; +} + +void ActivityAudioListView::setEditMode() +{ + EmitSignal("open,edit,playlist", "calaos"); + in_edit_mode = true; + + Params &stats = player_current->getPlayer()->getDBStats(); + + string s = "Discothèque : " + + stats["albums"] + " albums avec " + + stats["tracks"] + " pistes par " + + stats["artists"] + " artistes."; + setPartText("browser.message", s); + + createRootBrowserPage(); +} + +void ActivityAudioListView::unsetEditMode() +{ + EmitSignal("close,edit,playlist", "calaos"); + in_edit_mode = false; + + for_each(browser_root_buttons.begin(), browser_root_buttons.end(), Delete()); + browser_root_buttons.clear(); + + elm_naviframe_item_pop(pager_browser); +} + +void ActivityAudioListView::browserButtonBack(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + EmitSignal("browser,loading,stop", "calaos"); + if (elm_naviframe_top_item_get(pager_browser) == it_browser_root) return; + + elm_naviframe_item_pop(pager_browser); +} + +void ActivityAudioListView::browserButtonRoot(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + EmitSignal("browser,loading,stop", "calaos"); + + while (elm_naviframe_top_item_get(pager_browser) != it_browser_root) + elm_naviframe_item_pop(pager_browser); +} + +void ActivityAudioListView::browserShowAlbums(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + Params &p = player_current->getPlayer()->getDBStats(); + int count; + from_string(p["albums"], count); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemAlbum *item = new GenlistItemAlbum(evas, parent, player_current->getPlayer(), i, GenlistItemAlbum::ALBUM_LIST); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::albumSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::albumSelected(void *data) +{ + GenlistItemAlbum *item_album = reinterpret_cast(data); + if (!data) return; + + cout << "Click on Item #" << item_album->getItemId() << endl; + cout << "Item infos: " << item_album->getItemInfos().toString() << endl; + + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + int album_id; + from_string(item_album->getItemInfos().get_param("id"), album_id); + + player_current->getPlayer()->getDBAlbumTrackCount(album_id, + sigc::bind(sigc::mem_fun(*this, &ActivityAudioListView::browserShowAlbumTracks), + album_id, + item_album->getItemInfos())); +} + +void ActivityAudioListView::browserShowAlbumTracks(Params &infos, int album_id, Params album_infos) +{ + if (!infos.Exists("count")) return; + + EmitSignal("browser,loading,stop", "calaos"); + + album_infos.Add("count", infos["count"]); + int count; + from_string(infos["count"], count); + + CREATE_GENLIST_HELPER(glist); + + GenlistItemAlbumHeader *header = new GenlistItemAlbumHeader(evas, parent, player_current->getPlayer(), album_infos, album_id); + header->Append(glist); + for (int i = 0;i < count;i++) + { + GenlistItemTrack *item = new GenlistItemTrack(evas, parent, player_current->getPlayer(), i, GenlistItemTrack::TRACK_ALBUM, album_id); + item->Append(glist, NULL); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::browserShowArtists(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + Params &p = player_current->getPlayer()->getDBStats(); + int count; + from_string(p["artists"], count); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemArtist *item = new GenlistItemArtist(evas, parent, player_current->getPlayer(), i, GenlistItemArtist::ARTIST_LIST); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::artistSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::artistSelected(void *data) +{ + GenlistItemArtist *item_artist = reinterpret_cast(data); + if (!data) return; + + cout << "Click on Item #" << item_artist->getItemId() << endl; + cout << "Item infos: " << item_artist->getItemInfos().toString() << endl; + + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + int artist_id; + from_string(item_artist->getItemInfos().get_param("id"), artist_id); + + player_current->getPlayer()->getDBArtistAlbumCount(artist_id, + sigc::bind(sigc::mem_fun(*this, &ActivityAudioListView::browserShowArtistAlbum), + item_artist->getItemInfos())); +} + +void ActivityAudioListView::browserShowArtistAlbum(Params &infos, Params artist_infos) +{ + if (!infos.Exists("count")) return; + + EmitSignal("browser,loading,stop", "calaos"); + + cout << "RESULT infos: " << artist_infos.toString() << endl; + + artist_infos.Add("count", infos["count"]); + int count; + from_string(infos["count"], count); + + int artist_id; + from_string(artist_infos["id"], artist_id); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemAlbum *item = new GenlistItemAlbum(evas, parent, player_current->getPlayer(), i, GenlistItemAlbum::ALBUM_ARTIST, artist_id); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::albumSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::browserShowGenres(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + Params &p = player_current->getPlayer()->getDBStats(); + int count; + from_string(p["genres"], count); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemGenre *item = new GenlistItemGenre(evas, parent, player_current->getPlayer(), i); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::genreSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::genreSelected(void *data) +{ + GenlistItemGenre *item_genre = reinterpret_cast(data); + if (!data) return; + + cout << "Click on Item #" << item_genre->getItemId() << endl; + cout << "Item infos: " << item_genre->getItemInfos().toString() << endl; + + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + int genre_id; + from_string(item_genre->getItemInfos().get_param("id"), genre_id); + + player_current->getPlayer()->getDBGenreArtistCount(genre_id, + sigc::bind(sigc::mem_fun(*this, &ActivityAudioListView::browserShowGenreArtist), + item_genre->getItemInfos())); +} + +void ActivityAudioListView::browserShowGenreArtist(Params &infos, Params genre_infos) +{ + if (!infos.Exists("count")) return; + + EmitSignal("browser,loading,stop", "calaos"); + + cout << "RESULT infos: " << genre_infos.toString() << endl; + + genre_infos.Add("count", infos["count"]); + int count; + from_string(infos["count"], count); + + int genre_id; + from_string(genre_infos["id"], genre_id); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemArtist *item = new GenlistItemArtist(evas, parent, player_current->getPlayer(), i, GenlistItemArtist::ARTIST_GENRE, genre_id); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::artistSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::browserShowYears(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + Params &p = player_current->getPlayer()->getDBStats(); + int count; + from_string(p["years"], count); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemYear *item = new GenlistItemYear(evas, parent, player_current->getPlayer(), i); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::yearSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::yearSelected(void *data) +{ + GenlistItemYear *item_year = reinterpret_cast(data); + if (!data) return; + + cout << "Click on Item #" << item_year->getItemId() << endl; + cout << "Item infos: " << item_year->getItemInfos().toString() << endl; + + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + int year_id; + from_string(item_year->getItemInfos().get_param("year"), year_id); + + player_current->getPlayer()->getDBYearAlbumCount(year_id, + sigc::bind(sigc::mem_fun(*this, &ActivityAudioListView::browserShowYearAlbum), + item_year->getItemInfos())); +} + +void ActivityAudioListView::browserShowYearAlbum(Params &infos, Params year_infos) +{ + if (!infos.Exists("count")) return; + + EmitSignal("browser,loading,stop", "calaos"); + + cout << "RESULT infos: " << year_infos.toString() << endl; + + year_infos.Add("count", infos["count"]); + int count; + from_string(infos["count"], count); + + int year_id; + from_string(year_infos["year"], year_id); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemAlbum *item = new GenlistItemAlbum(evas, parent, player_current->getPlayer(), i, GenlistItemAlbum::ALBUM_YEAR, year_id); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::albumSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::browserShowFolders(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + //load root folder + loadFolderList(""); +} + +void ActivityAudioListView::loadFolderList(string folder_id) +{ + EmitSignal("browser,loading,start", "calaos"); + + player_current->getPlayer()->getDBFolder(folder_id, + sigc::mem_fun(*this, &ActivityAudioListView::itemListLoaded)); +} + +void ActivityAudioListView::itemListLoaded(list &infos) +{ + list::iterator it = infos.begin(); + + CREATE_GENLIST_HELPER(glist); + + for (;it != infos.end();it++) + { + Params &pitem = *it; + + if (pitem["type"] == "track") + { + int track_id; + from_string(pitem["id"], track_id); + GenlistItemTrack *item = new GenlistItemTrack(evas, parent, player_current->getPlayer(), track_id, GenlistItemTrack::TRACK_ID, 0); + item->Append(glist, NULL); + } + else if (pitem["type"] == "folder") + { + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, pitem["name"], true); + item->setIcon("calaos/icons/genlist/folder"); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityAudioListView::folderSelected), + pitem["id"])); + } + else if (pitem["type"] == "playlist") + { + GenlistItemBrowserPlaylist *item = new GenlistItemBrowserPlaylist(evas, parent, player_current->getPlayer(), pitem); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::playlistSelected)); + } + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); + + EmitSignal("browser,loading,stop", "calaos"); +} + +void ActivityAudioListView::folderSelected(void *data, string folder_id) +{ + loadFolderList(folder_id); +} + +void ActivityAudioListView::browserShowPlaylists(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + Params &p = player_current->getPlayer()->getDBStats(); + int count; + from_string(p["playlists"], count); + + CREATE_GENLIST_HELPER(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemBrowserPlaylist *item = new GenlistItemBrowserPlaylist(evas, parent, player_current->getPlayer(), i); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityAudioListView::playlistSelected)); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::playlistSelected(void *data) +{ + GenlistItemBrowserPlaylist *item_pl = reinterpret_cast(data); + if (!data) return; + + cout << "Click on Item #" << item_pl->getItemId() << endl; + cout << "Item infos: " << item_pl->getItemInfos().toString() << endl; + + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + int pl_id; + from_string(item_pl->getItemInfos().get_param("id"), pl_id); + + player_current->getPlayer()->getDBPlaylistTrackCount(pl_id, + sigc::bind(sigc::mem_fun(*this, &ActivityAudioListView::browserShowPlaylistTracks), + item_pl->getItemInfos())); +} + +void ActivityAudioListView::browserShowPlaylistTracks(Params &infos, Params pl_infos) +{ + if (!infos.Exists("count")) return; + + EmitSignal("browser,loading,stop", "calaos"); + + cout << "RESULT infos: " << pl_infos.toString() << endl; + + pl_infos.Add("count", infos["count"]); + int count; + from_string(infos["count"], count); + + int pl_id; + from_string(pl_infos["id"], pl_id); + + CREATE_GENLIST_HELPER(glist); + + GenlistItemPlaylistHeader *header = new GenlistItemPlaylistHeader(evas, parent, player_current->getPlayer(), pl_infos, pl_id); + header->Append(glist); + + for (int i = 0;i < count;i++) + { + GenlistItemTrack *item = new GenlistItemTrack(evas, parent, player_current->getPlayer(), i, GenlistItemTrack::TRACK_PLAYLIST, pl_id); + item->Append(glist); + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); +} + +void ActivityAudioListView::browserShowRadios(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + player_current->getPlayer()->getDBAllRadio(sigc::mem_fun(*this, &ActivityAudioListView::itemRadioLoaded)); +} + +void ActivityAudioListView::radioSelected(void *data, string rid, string subitem_id) +{ + EmitSignal("browser,loading,start", "calaos"); + + if (subitem_id == "") + radio_id = rid; + + player_current->getPlayer()->getDBRadio(rid, subitem_id, sigc::mem_fun(*this, &ActivityAudioListView::itemRadioLoaded)); +} + +void ActivityAudioListView::itemRadioLoaded(list &infos) +{ + list::iterator it = infos.begin(); + + CREATE_GENLIST_HELPER(glist); + elm_genlist_homogeneous_set(glist, false); + elm_genlist_mode_set(glist, ELM_LIST_COMPRESS); + + for (;it != infos.end();it++) + { + Params &pitem = *it; + + cout << "item type: " << pitem.toString() << endl; + + if (pitem["type"] == "xmlbrowser") + { + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, pitem["name"], true); + item->setIcon("calaos/icons/genlist/radio"); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::bind( + sigc::mem_fun(*this, &ActivityAudioListView::radioSelected), + pitem["id"], "")); + } + else + { + if (pitem["isaudio"] == "1") + { + pitem.Add("radio_id", radio_id); + GenlistItemRadio *item = new GenlistItemRadio(evas, parent, player_current->getPlayer(), pitem); + item->Append(glist); + + if (pitem["hasitems"] == "1") + { + item->setUserData(item); + item->item_selected.connect(sigc::bind( + sigc::mem_fun(*this, &ActivityAudioListView::radioSelected), + radio_id ,pitem["id"])); + } + } + else + { + if (pitem["hasitems"] == "1" && pitem["type"] != "search" && pitem["type"] != "xmlbrowser_search") + { + GenlistItemSimple *item; + if (pitem["type"] == "text" || pitem["type"] == "textarea") + item = new GenlistItemSimple(evas, parent, pitem["name"], true, true); + else + item = new GenlistItemSimple(evas, parent, pitem["name"], true); + item->setIcon("calaos/icons/genlist/folder"); + item->Append(glist); + item->setUserData(item); + item->item_selected.connect(sigc::bind( + sigc::mem_fun(*this, &ActivityAudioListView::radioSelected), + radio_id ,pitem["id"])); + } + else + { + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, pitem["name"], false, true); + item->Append(glist); + + if (pitem["type"] == "search" || pitem["type"] == "xmlbrowser_search") + { + item->setIcon("calaos/icons/genlist/search"); + item->item_selected.connect(sigc::bind( + sigc::mem_fun(*this, &ActivityAudioListView::searchRadioSelected), + radio_id ,pitem["id"])); + } + } + } + } + } + + elm_naviframe_item_push(pager_browser, NULL, NULL, NULL, glist, "calaos"); + + EmitSignal("browser,loading,stop", "calaos"); +} + +void ActivityAudioListView::searchRadioSelected(void *data, string radio_id, string subitem_id) +{ + ApplicationMain::Instance().ShowKeyboard("Recherche dans les radios", sigc::bind( + sigc::mem_fun(*this, &ActivityAudioListView::searchRadioKeyboard_cb), + radio_id, subitem_id), false); +} + +void ActivityAudioListView::searchRadioKeyboard_cb(string text, string radio_id, string subitem_id) +{ + EmitSignal("browser,loading,start", "calaos"); + + player_current->getPlayer()->getDBRadioSearch(radio_id, subitem_id, text, sigc::mem_fun(*this, &ActivityAudioListView::itemRadioLoaded)); +} + +void ActivityAudioListView::browserShowSearch(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + ApplicationMain::Instance().ShowKeyboard("Recherche dans la base de données de musique", + sigc::mem_fun(*this, &ActivityAudioListView::searchDBKeyboard_cb), + false); +} + +void ActivityAudioListView::searchDBKeyboard_cb(string text) +{ + if (!player_current) return; + + EmitSignal("browser,loading,start", "calaos"); + + player_current->getPlayer()->getDBSearch(text, sigc::mem_fun(*this, &ActivityAudioListView::itemListLoaded)); +} diff --git a/src/bin/calaos_home/views/ActivityAudioListView.h b/src/bin/calaos_home/views/ActivityAudioListView.h new file mode 100644 index 00000000..2d1b2efd --- /dev/null +++ b/src/bin/calaos_home/views/ActivityAudioListView.h @@ -0,0 +1,131 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYAUDIOLISTVIEW_H +#define ACTIVITYAUDIOLISTVIEW_H + +#include + +#include "CalaosModel.h" +#include "ActivityView.h" + +#include "ActivityAudioPlayerObject.h" + +using namespace Utils; + +#define CREATE_GENLIST_HELPER(glist) \ +Evas_Object *glist = elm_genlist_add(parent); \ +elm_object_style_set(glist, "calaos"); \ +elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); \ +elm_genlist_homogeneous_set(glist, true); \ +evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); \ +evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); \ +evas_object_show(glist); + +class ActivityAudioListView: public ActivityView +{ + private: + vector players; + ActivityPlayerObject *player_current; + + Evas_Object *gplaylist; + + Evas_Object *pager_browser; + EdjeObject *browser_root; + Elm_Object_Item *it_browser_root; + + vector browser_root_buttons; + + bool in_edit_mode; + + string radio_id; + + void EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void playerSelected(ActivityPlayerObject *obj); + + void createRootBrowserPage(); + EdjeObject *createRootButton(string title, string subtitle, string total, int row, int col); + + void browserShowAlbums(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowArtists(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowGenres(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowYears(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowFolders(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowPlaylists(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowRadios(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserShowSearch(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void browserButtonBack(void *data, Evas_Object *_edje, std::string emission, std::string source); + void browserButtonRoot(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void albumSelected(void *data); + void artistSelected(void *data); + void yearSelected(void *data); + void genreSelected(void *data); + void playlistSelected(void *data); + void folderSelected(void *data, string folder_id); + void radioSelected(void *data, string radio_id, string subitem_id); + void searchRadioSelected(void *data, string radio_id, string subitem_id); + void searchRadioKeyboard_cb(string text, string radio_id, string subitem_id); + void searchDBKeyboard_cb(string text); + + void browserShowAlbumTracks(Params &infos, int album_id, Params album_infos); + void browserShowArtistAlbum(Params &infos, Params artist_infos); + void browserShowYearAlbum(Params &infos, Params artist_infos); + void browserShowGenreArtist(Params &infos, Params genre_infos); + void browserShowPlaylistTracks(Params &infos, Params pl_infos); + + void loadFolderList(string folder_id); + void itemListLoaded(list &infos); + void itemRadioLoaded(list &infos); + + public: + ActivityAudioListView(Evas *evas, Evas_Object *parent); + ~ActivityAudioListView(); + + virtual void resetView(); + + void setPlayer(AudioPlayer *player, int position); + void disablePlayer(int position); + + void EnableLeftButton(); + void DisableLeftButton(); + void EnableRightButton(); + void DisableRightButton(); + + void ShowLoading(); + void HideLoading(); + + void unselectPlayers(); + + void setEditMode(); + void unsetEditMode(); + bool isEditMode() { return in_edit_mode; } // return true if in edit mode + + virtual string getTitle() { return "Musique"; } + + sigc::signal button_left_click; + sigc::signal button_right_click; + + sigc::signal player_selected; +}; + +#endif // ACTIVITYAUDIOLISTVIEW_H diff --git a/src/bin/calaos_home/views/ActivityAudioPlayerObject.cpp b/src/bin/calaos_home/views/ActivityAudioPlayerObject.cpp new file mode 100644 index 00000000..884e69fc --- /dev/null +++ b/src/bin/calaos_home/views/ActivityAudioPlayerObject.cpp @@ -0,0 +1,754 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityAudioPlayerObject.h" +#include "GenlistItems/GenlistItemPlaylist.h" +#include +#include +#include +#include + +ActivityPlayerObject::ActivityPlayerObject(Evas *e, Evas_Object *p): + evas(e), + parent(p), + player(NULL), + gplaylist(NULL), + cover(NULL), + cover_small(NULL), + items_parent(NULL), + small_player(NULL), + amp_panel(NULL), + amp_volume(false), + object(NULL) +{ +} + +ActivityPlayerObject::~ActivityPlayerObject() +{ + con_volume.disconnect(); + con_status.disconnect(); + con_track.disconnect(); + con_time.disconnect(); + + con_pl_changed.disconnect(); + con_pl_tracksadded.disconnect(); + con_pl_trackdel.disconnect(); + con_pl_trackmoved.disconnect(); + + DELETE_NULL_FUNC(evas_object_del, cover); + DELETE_NULL_FUNC(evas_object_del, cover_small); +} + +void ActivityPlayerObject::resetPlayer() +{ + if (!object) return; + + object->setPartText("player.name", "Aucune zone"); + object->setPartText("player.volume", "0%"); + object->setPartText("player.type", "Na"); + object->setPartText("player.artist", "Aucun"); + object->setPartText("player.album", "Aucun"); + object->setPartText("player.title", "Aucune"); + object->setPartText("player.year", "Na"); + object->setPartText("player.duration", "0:00"); + + object->EmitSignal("player,stop", "calaos"); + + if (small_player) + { + small_player->setPartText("player.name", "Aucune zone"); + small_player->setPartText("player.volume", "0%"); + small_player->setPartText("player.type", "Na"); + small_player->setPartText("player.artist", "Aucun"); + small_player->setPartText("player.album", "Aucun"); + small_player->setPartText("player.title", "Aucune"); + small_player->setPartText("player.year", "Na"); + small_player->setPartText("player.duration", "0:00"); + + small_player->EmitSignal("player,stop", "calaos"); + } +} + +void ActivityPlayerObject::createEdjeObject(string &theme, Evas *evas) +{ + EdjeObject *obj = new EdjeObject(theme, evas); + obj->LoadEdje("calaos/audio/player"); + obj->Show(); + obj->addCallback("player", "player,volume,*", sigc::mem_fun(*this, &ActivityPlayerObject::changeVolume_cb)); + obj->addCallback("player", "player,play", sigc::mem_fun(*this, &ActivityPlayerObject::play_cb)); + obj->addCallback("player", "player,pause", sigc::mem_fun(*this, &ActivityPlayerObject::pause_cb)); + obj->addCallback("player", "player,stop", sigc::mem_fun(*this, &ActivityPlayerObject::stop_cb)); + obj->addCallback("player", "player,previous", sigc::mem_fun(*this, &ActivityPlayerObject::previous_cb)); + obj->addCallback("player", "player,next", sigc::mem_fun(*this, &ActivityPlayerObject::next_cb)); + obj->addCallback("player", "player,off", sigc::mem_fun(*this, &ActivityPlayerObject::off_cb)); + obj->addCallback("player", "player,on", sigc::mem_fun(*this, &ActivityPlayerObject::on_cb)); + obj->addCallback("player", "player,time,change", sigc::mem_fun(*this, &ActivityPlayerObject::changeTime_cb)); + obj->addCallback("player", "player,select", sigc::mem_fun(*this, &ActivityPlayerObject::selectDetail_cb)); + obj->addCallback("player", "player,amplifier", sigc::mem_fun(*this, &ActivityPlayerObject::amplifierClick_cb)); + + object = obj; + + resetPlayer(); +} + +void ActivityPlayerObject::setPlayer(AudioPlayer *p) +{ + con_volume.disconnect(); + con_status.disconnect(); + con_track.disconnect(); + con_time.disconnect(); + con_pl_changed.disconnect(); + con_pl_tracksadded.disconnect(); + con_pl_trackdel.disconnect(); + con_pl_trackmoved.disconnect(); + player = p; + + if (!player) return; + + //There is an Amplifier linked with this Player + if (player->params.Exists("amp_id")) + object->EmitSignal("player,amplifier", "calaos"); + else + object->EmitSignal("player,no_amplifier", "calaos"); + + player->registerChange(); + cover_fname = "/tmp/calaos_cover_" + player->params["num"] + ".jpg"; + + onVolumeChange(); + onStatusChange(); + onTrackChange(); + + con_volume = player->player_volume_changed.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onVolumeChange)); + con_status = player->player_status_changed.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onStatusChange)); + con_track = player->player_track_changed.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onTrackChange)); + con_time = player->player_time_changed.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onTimeChange)); + + con_pl_changed = player->player_playlist_changed.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onPlaylistChanged)); + con_pl_tracksadded = player->player_playlist_tracks_added.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onPlaylistTracksAdded)); + con_pl_trackdel = player->player_playlist_tracks_deleted.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onPlaylistTrackDeleted)); + con_pl_trackmoved = player->player_playlist_tracks_moved.connect(sigc::mem_fun(*this, &ActivityPlayerObject::onPlaylistTrackMoved)); +} + +void ActivityPlayerObject::unsetPlayer() +{ + if (!player) return; + + player->unregisterChange(); + player = NULL; + + if (gplaylist) + { + elm_genlist_clear(gplaylist); + gplaylist = NULL; + } +} + +void ActivityPlayerObject::handlePlaylist(Evas_Object *parent, Evas_Object *playlist, EdjeObject *splayer) +{ + gplaylist = playlist; + items_parent = parent; + small_player = splayer; + + sigc::connection *con; + con = small_player->addCallback("player", "player,volume,*", sigc::mem_fun(*this, &ActivityPlayerObject::changeVolumeSmall_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,play", sigc::mem_fun(*this, &ActivityPlayerObject::play_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,pause", sigc::mem_fun(*this, &ActivityPlayerObject::pause_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,stop", sigc::mem_fun(*this, &ActivityPlayerObject::stop_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,previous", sigc::mem_fun(*this, &ActivityPlayerObject::previous_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,next", sigc::mem_fun(*this, &ActivityPlayerObject::next_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,off", sigc::mem_fun(*this, &ActivityPlayerObject::off_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,on", sigc::mem_fun(*this, &ActivityPlayerObject::on_cb)); + small_player_connections.push_back(con); + con = small_player->addCallback("player", "player,time,change", sigc::mem_fun(*this, &ActivityPlayerObject::changeTimeSmall_cb)); + small_player_connections.push_back(con); + + //Force update of the small player here. + onTrackChange(); + onVolumeChange(); + onStatusChange(); + onTimeChange(); + + onPlaylistChanged(); +} + +void ActivityPlayerObject::unsetPlaylist() +{ + for (uint i = 0;i < small_player_connections.size();i++) + small_player->delCallback(small_player_connections[i]); + small_player_connections.clear(); + + gplaylist = NULL; + small_player = NULL; + DELETE_NULL_FUNC(evas_object_del, cover_small); +} + +void ActivityPlayerObject::onVolumeChange() +{ + if (!player) return; + + object->setPartText("player.volume", to_string(player->getVolume()) + "%"); + object->setDragValue("player.volume.slider", 0.0, 1.0 - ((double)player->getVolume() / 100.)); + + if (small_player) + { + small_player->setPartText("player.volume", to_string(player->getVolume()) + "%"); + small_player->setDragValue("player.volume.slider", 0.0, 1.0 - ((double)player->getVolume() / 100.)); + } +} + +void ActivityPlayerObject::onStatusChange() +{ + if (!player) return; + + if (player->getStatus() == "play") + object->EmitSignal("player,playing", "calaos"); + else + object->EmitSignal("player,stop", "calaos"); + + if (small_player) + { + if (player->getStatus() == "play") + small_player->EmitSignal("player,playing", "calaos"); + else + small_player->EmitSignal("player,stop", "calaos"); + } +} + +void ActivityPlayerObject::onTrackChange() +{ + if (!player) return; + + string artist, album, title, year, type, duration; + artist = player->current_song_info["artist"]; + album = player->current_song_info["album"]; + title = player->current_song_info["title"]; + year = player->current_song_info["year"]; + type = player->current_song_info["type"]; + duration = player->current_song_info["duration"]; + + if (artist == "") artist = "Aucun"; + if (album == "") album = "Aucun"; + if (title == "") title = "Aucune"; + if (year == "") year = "Na"; + if (type == "") type = "Na"; + if (duration == "") duration = "0:00"; + + object->setPartText("player.type", type); + object->setPartText("player.artist", artist); + object->setPartText("player.album", album); + object->setPartText("player.title", title); + object->setPartText("player.year", year); + object->setPartText("player.duration", duration); + + if (small_player) + { + small_player->setPartText("player.type", type); + small_player->setPartText("player.artist", artist); + small_player->setPartText("player.album", album); + small_player->setPartText("player.title", title); + small_player->setPartText("player.year", year); + small_player->setPartText("player.duration", duration); + } + + if (player->hasCover()) + { + player->getCurrentCover(sigc::mem_fun(*this, &ActivityPlayerObject::coverGet_cb)); + } + else + { + object->EmitSignal("track,nocover", "calaos"); + if (small_player) small_player->EmitSignal("track,nocover", "calaos"); + } +} + +void ActivityPlayerObject::coverGet_cb(Params &infos) +{ + if (infos["cover"] == "") + { + object->EmitSignal("track,nocover", "calaos"); + if (small_player) small_player->EmitSignal("track,nocover", "calaos"); + return; + } + + FileDownloader *downloader = new FileDownloader(infos["cover"], cover_fname, true); + downloader->addCallback(sigc::mem_fun(*this, &ActivityPlayerObject::coverDownload_cb)); + downloader->Start(); +} + +void ActivityPlayerObject::coverDownload_cb(string status, void *data) +{ + if (status == "failed" || status == "aborted") + { + object->EmitSignal("track,nocover", "calaos"); + if (small_player) small_player->EmitSignal("track,nocover", "calaos"); + return; + } + + if (status != "done") + return; + + if (!ecore_file_exists(cover_fname.c_str())) + return; + + if (!cover) + { + cover = elm_icon_add(parent); + object->Swallow(cover, "player.cover"); + evas_object_show(cover); + } + + if (!cover_small && small_player) + { + cover_small = elm_icon_add(parent); + small_player->Swallow(cover_small, "player.cover"); + evas_object_show(cover_small); + } + + elm_image_file_set(cover, cover_fname.c_str(), NULL); + elm_image_preload_disabled_set(cover, false); + if (small_player) + { + elm_image_file_set(cover_small, cover_fname.c_str(), NULL); + elm_image_preload_disabled_set(cover_small, false); + } + + object->EmitSignal("track,cover", "calaos"); + if (small_player) small_player->EmitSignal("track,cover", "calaos"); +} + +void ActivityPlayerObject::onTimeChange() +{ + if (!player) return; + + object->setPartText("player.time", Utils::time2string_digit((long)player->getTimeElapsed())); + object->setDragValue("player.time.slider", player->getTimeElapsed() / player->getDuration(), 0.0); + + if (small_player) + { + small_player->setPartText("player.time", Utils::time2string_digit((long)player->getTimeElapsed())); + small_player->setDragValue("player.time.slider", player->getTimeElapsed() / player->getDuration(), 0.0); + } +} + +void ActivityPlayerObject::changeVolume_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + if (emission == "player,volume,change,move") + { + double val; + object->getDragValue("player.volume.slider", NULL, &val); + val = 1.0 - val; + + player->setVolume((int)(val * 100.0)); + } + else if (emission == "player,volume,plus") + { + player->setVolume(player->getVolume() + 1); + } + else if (emission == "player,volume,moins") + { + player->setVolume(player->getVolume() - 1); + } +} + +void ActivityPlayerObject::changeVolumeSmall_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + if (emission == "player,volume,change,move") + { + double val = 0.0; + if (small_player) small_player->getDragValue("player.volume.slider", NULL, &val); + val = 1.0 - val; + + player->setVolume((int)(val * 100.0)); + } + else if (emission == "player,volume,plus") + { + player->setVolume(player->getVolume() + 1); + } + else if (emission == "player,volume,moins") + { + player->setVolume(player->getVolume() - 1); + } +} + +void ActivityPlayerObject::changeTime_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + double val; + object->getDragValue("player.time.slider", &val, NULL); + + player->setTime(val * player->getDuration()); +} + +void ActivityPlayerObject::changeTimeSmall_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + double val = 0.0; + if (small_player) small_player->getDragValue("player.time.slider", &val, NULL); + + player->setTime(val * player->getDuration()); +} + +void ActivityPlayerObject::play_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->play(); +} + +void ActivityPlayerObject::pause_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->pause(); +} + +void ActivityPlayerObject::stop_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->stop(); +} + +void ActivityPlayerObject::next_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->next(); +} + +void ActivityPlayerObject::previous_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->previous(); +} + +void ActivityPlayerObject::on_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->on(); +} + +void ActivityPlayerObject::off_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player->off(); +} + +void ActivityPlayerObject::selectDetail_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!player) return; + + player_selected.emit(this); +} + +void ActivityPlayerObject::onPlaylistChanged() +{ + if (!gplaylist) return; + + elm_genlist_clear(gplaylist); + + for (int i = 0;i < player->getPlaylistSize();i++) + { + GenlistItemPlaylist *item = new GenlistItemPlaylist(evas, items_parent, player, i); + item->Append(gplaylist); + } +} + +void ActivityPlayerObject::onPlaylistTracksAdded(int count) +{ + if (!gplaylist) return; + + int playlist_size = player->getPlaylistSize(); + for (int i = 0;i < count;i++) + { + GenlistItemPlaylist *item = new GenlistItemPlaylist(evas, items_parent, player, playlist_size - count + i); + item->Append(gplaylist); + } +} + +void ActivityPlayerObject::onPlaylistTrackDeleted(int del_item) +{ + if (!gplaylist) return; + + int playlist_size = player->getPlaylistSize(); + if (del_item < playlist_size / 2) + { + Elm_Object_Item *item = elm_genlist_first_item_get(gplaylist); + int cpt = 0; + while (cpt < del_item) + { + item = elm_genlist_item_next_get(item); + cpt++; + } + elm_object_item_del(item); + } + else + { + Elm_Object_Item *item = elm_genlist_last_item_get(gplaylist); + int cpt = playlist_size - 1; + while (cpt > del_item) + { + item = elm_genlist_item_next_get(item); + cpt--; + } + elm_object_item_del(item); + } +} + +void ActivityPlayerObject::onPlaylistTrackMoved(int from, int to) +{ + if (!gplaylist) return; + + cout << "NOT IMPLEMENTED! Track moved ==== " << from << " --> " << to << endl; +} + +static void _elm_volume_changed(void *data, Evas_Object *obj, void *event_info) +{ + ActivityPlayerObject *o = reinterpret_cast(data); + if (!o) return; + double val = elm_slider_value_get(obj); + + o->amplifierVolumeChanged(val); +} + +static void _elm_volume_start(void *data, Evas_Object *obj, void *event_info) +{ + ActivityPlayerObject *o = reinterpret_cast(data); + if (!o) return; + + o->amplifierVolumeStartChanged(); +} + +static void _elm_volume_stop(void *data, Evas_Object *obj, void *event_info) +{ + ActivityPlayerObject *o = reinterpret_cast(data); + if (!o) return; + + o->amplifierVolumeStopChanged(); +} + +static void _elm_avpopup_dissmissed(void *data, Evas_Object *obj, void *event_info) +{ + ActivityPlayerObject *o = reinterpret_cast(data); + if (!o) return; + + o->popupAVDismissed(); +} + +static void _amp_button_poweron(void *data, Evas_Object *obj, const char *emission, const char *source) +{ + ActivityPlayerObject *o = reinterpret_cast(data); + if (!o) return; + + o->amplifierPowerOn(); +} + +static void _amp_button_poweroff(void *data, Evas_Object *obj, const char *emission, const char *source) +{ + ActivityPlayerObject *o = reinterpret_cast(data); + if (!o) return; + + o->amplifierPowerOff(); +} + +void ActivityPlayerObject::amplifierClick_cb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + //Evas_Object *table = createPaddingTable(evas, parent, 420, 420); + Evas_Object *table = elm_table_add(parent); + evas_object_size_hint_min_set(table, 420, 420); + evas_object_show(table); + + Evas_Object *pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, 400, 10); + elm_table_pack(table, pad, 1, 0, 1, 1); + + pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, 400, 10); + elm_table_pack(table, pad, 1, 2, 1, 1); + + pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, 10, 400); + elm_table_pack(table, pad, 0, 1, 1, 1); + + pad = evas_object_rectangle_add(evas); + evas_object_size_hint_min_set(pad, 10, 400); + elm_table_pack(table, pad, 2, 1, 1, 1); + + amp_panel = elm_layout_add(table); + elm_layout_file_set(amp_panel, ApplicationMain::getTheme(), "calaos/audio/amplifier"); + evas_object_size_hint_fill_set(amp_panel, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(amp_panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(amp_panel); + + Evas_Object *glist = elm_genlist_add(parent); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + map inputs = player->getInputSources(); + map::iterator it = inputs.begin(); + + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, "Source d'entrée"); + header->Append(glist); + for (;it != inputs.end();it++) + { + int source_id = (*it).first; + int *user_data = new int(source_id); + GenlistItemSimple *item = new GenlistItemSimple(evas, glist, (*it).second, true, false, user_data, "check"); + item->Append(glist, header); + item->setAutoDeleteUserData(new DeletorT); + if (to_string(source_id) == player->getAmplifierStatus("input_source")) + item->setSelected(true); + + item->item_selected.connect(sigc::mem_fun(*this, &ActivityPlayerObject::inputSourceSelected)); + } + + elm_object_part_text_set(amp_panel, "title", player->getAmplifier()->params["name"].c_str()); + elm_object_part_text_set(amp_panel, "display.text", player->getAmplifier()->params["display_text"].c_str()); + elm_object_part_content_set(amp_panel, "inputs.swallow", glist); + + Evas_Object *volume = NULL; + if (edje_object_part_exists(elm_layout_edje_get(amp_panel), "volume.slider")) + { + volume = edje_object_part_external_object_get(elm_layout_edje_get(amp_panel), "volume.slider"); + + //double v; + //from_string(player->getAmplifierStatus("volume"), v); + + //elm_slider_value_set(volume, v / 100.0); + amp_volume = false; + EcoreTimer::singleShot(0.1, sigc::mem_fun(*this, &ActivityPlayerObject::amplifierChanged)); + + evas_object_smart_callback_add(volume, "slider,drag,start", _elm_volume_start, this); + evas_object_smart_callback_add(volume, "slider,drag,stop", _elm_volume_stop, this); + evas_object_smart_callback_add(volume, "changed", _elm_volume_changed, this); + } + + IOBase *amp = player->getAmplifier(); + amp->io_changed.connect(sigc::mem_fun(*this, &ActivityPlayerObject::amplifierChanged)); + + edje_object_signal_callback_add(elm_layout_edje_get(amp_panel), "pressed", "button.poweron", _amp_button_poweron, this); + edje_object_signal_callback_add(elm_layout_edje_get(amp_panel), "pressed", "button.poweroff", _amp_button_poweroff, this); + + elm_table_pack(table, amp_panel, 1, 1, 1, 1); + + Evas_Object *popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, table); + elm_object_style_set(popup, "calaos"); + + evas_object_smart_callback_add(popup, "dismissed", _elm_avpopup_dissmissed, this); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); +} + +void ActivityPlayerObject::amplifierVolumeChanged(double vol) +{ + if (!player) return; + IOBase *amp = player->getAmplifier(); + if (!amp) return; + + int v = vol * 100.0; + amp->sendAction("volume " + to_string(v)); +} + +void ActivityPlayerObject::popupAVDismissed() +{ + amp_panel = NULL; +} + +void ActivityPlayerObject::amplifierChanged() +{ + if (!player) return; + if (!amp_panel) return; + if (amp_volume) return; + + Evas_Object *volume = NULL; + if (edje_object_part_exists(elm_layout_edje_get(amp_panel), "volume.slider")) + { + volume = edje_object_part_external_object_get(elm_layout_edje_get(amp_panel), "volume.slider"); + + double v; + from_string(player->getAmplifierStatus("volume"), v); + elm_slider_value_set(volume, v / 100.0); + } + + elm_object_part_text_set(amp_panel, "display.text", player->getAmplifier()->params["display_text"].c_str()); +} + +void ActivityPlayerObject::inputSourceSelected(void *data) +{ + if (!player) return; + IOBase *amp = player->getAmplifier(); + if (!amp) return; + + int *user_data = reinterpret_cast(data); + + int input = *user_data; + amp->sendAction("source " + to_string(input)); +} + +void ActivityPlayerObject::amplifierVolumeStartChanged() +{ + amp_volume = true; +} + +void ActivityPlayerObject::amplifierVolumeStopChanged() +{ + amp_volume = false; +} + +void ActivityPlayerObject::amplifierPowerOn() +{ + if (!player) return; + IOBase *amp = player->getAmplifier(); + if (!amp) return; + + amp->sendAction("power true"); +} + +void ActivityPlayerObject::amplifierPowerOff() +{ + if (!player) return; + IOBase *amp = player->getAmplifier(); + if (!amp) return; + + amp->sendAction("power false"); +} diff --git a/src/bin/calaos_home/views/ActivityAudioPlayerObject.h b/src/bin/calaos_home/views/ActivityAudioPlayerObject.h new file mode 100644 index 00000000..6c1b7af7 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityAudioPlayerObject.h @@ -0,0 +1,118 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYAUDIOPLAYEROBJECT_H +#define ACTIVITYAUDIOPLAYEROBJECT_H + +#include + +#include "ActivityView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityPlayerObject +{ + private: + Evas *evas; + Evas_Object *parent; + + AudioPlayer *player; //the Audio player Object + Evas_Object *gplaylist; + Evas_Object *cover, *cover_small; + Evas_Object *items_parent; + EdjeObject *small_player; + + //AV Amplifier + Evas_Object *amp_panel; + bool amp_volume; + + string cover_fname; + + sigc::connection con_volume; + sigc::connection con_status; + sigc::connection con_track; + sigc::connection con_time; + sigc::connection con_pl_changed; + sigc::connection con_pl_tracksadded; + sigc::connection con_pl_trackdel; + sigc::connection con_pl_trackmoved; + + vector small_player_connections; + + void onVolumeChange(); + void onStatusChange(); + void onTrackChange(); + void onTimeChange(); + + void onPlaylistChanged(); + void onPlaylistTracksAdded(int count); + void onPlaylistTrackDeleted(int del_item); + void onPlaylistTrackMoved(int from, int to); + + void changeVolume_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void changeTime_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void changeVolumeSmall_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void changeTimeSmall_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void play_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void pause_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void stop_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void previous_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void next_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void on_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void off_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void amplifierClick_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void selectDetail_cb(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void coverGet_cb(Params &infos); + void coverDownload_cb(string status, void *data); + + void amplifierChanged(); + void inputSourceSelected(void *data); + + public: + EdjeObject *object; //The elementary video object + + ActivityPlayerObject(Evas *e, Evas_Object *parent); + ~ActivityPlayerObject(); + + void createEdjeObject(string &theme, Evas *evas); + void resetPlayer(); + + void setPlayer(AudioPlayer *p); + void unsetPlayer(); + AudioPlayer *getPlayer() { return player; } + + void handlePlaylist(Evas_Object *parent, Evas_Object *playlist, EdjeObject *small_player); + void unsetPlaylist(); + + void amplifierVolumeStartChanged(); + void amplifierVolumeStopChanged(); + void amplifierVolumeChanged(double vol); + void popupAVDismissed(); + void amplifierPowerOn(); + void amplifierPowerOff(); + + sigc::signal player_selected; +}; + +#endif // ACTIVITYAUDIOPLAYEROBJECT_H diff --git a/src/bin/calaos_home/views/ActivityCameraListView.cpp b/src/bin/calaos_home/views/ActivityCameraListView.cpp new file mode 100644 index 00000000..40323f8a --- /dev/null +++ b/src/bin/calaos_home/views/ActivityCameraListView.cpp @@ -0,0 +1,198 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityCameraListView.h" + +ActivityCameraListView::ActivityCameraListView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/media/camera_list") +{ + ActivityCameraObject ac; + cameras.reserve(4); + for (int i = 0;i < 4;i++) + cameras.push_back(ac); + + addCallback("camera", "*", sigc::mem_fun(*this, &ActivityCameraListView::EdjeCallback)); + + page_view = new PagingView(evas, parent); + Swallow(page_view, "home.pager"); + + page_view->drag_start.connect(sigc::mem_fun(*this, &ActivityCameraListView::pagerDragStart)); + page_view->drag_stop.connect(sigc::mem_fun(*this, &ActivityCameraListView::pagerDragStop)); +} + +ActivityCameraListView::~ActivityCameraListView() +{ + for (int i = 0;i < 4;i++) + DELETE_NULL_FUNC(evas_object_del, cameras[i].video); + + for_each(scenarios.begin(), scenarios.end(), Delete()); + DELETE_NULL(page_view); +} + +void ActivityCameraListView::resetView() +{ +} + +static void _smart_cam_cb(void *data, Evas_Object *obj, void *event_info) +{ + ActivityCameraObject *ac = reinterpret_cast(data); + if (!ac) return; + + ac->view->EmitSignal("show,picture," + to_string(ac->position + 1), "calaos"); + evas_object_smart_callback_del(obj, "frame_decode", _smart_cam_cb); +} + +static void _smart_cam_stop_cb(void *data, Evas_Object *obj, void *event_info) +{ + ActivityCameraObject *ac = reinterpret_cast(data); + if (!ac) return; + + //Restart the playing of stream if it stops + elm_video_play(ac->video); +} + +void ActivityCameraListView::setCamera(Camera *camera, int position) +{ + if (cameras[position].video) + evas_object_del(cameras[position].video); + + Evas_Object *video = elm_video_add(parent); + + Swallow(video, "camera.swallow." + to_string(position + 1)); + elm_video_file_set(video, camera->params["mjpeg_url"].c_str()); + elm_video_play(video); + evas_object_show(video); + + setPartText("camera.title." + to_string(position + 1), camera->params["name"]); + + cameras[position].video = video; + cameras[position].camera = camera; + cameras[position].view = this; //For the C callback + cameras[position].position = position; //For the C callback + + evas_object_smart_callback_add(elm_video_emotion_get(video), "frame_decode", _smart_cam_cb, &cameras[position]); + evas_object_smart_callback_add(elm_video_emotion_get(video), "decode_stop", _smart_cam_stop_cb, &cameras[position]); + evas_object_smart_callback_add(elm_video_emotion_get(video), "playback_finished", _smart_cam_stop_cb, &cameras[position]); +} + +void ActivityCameraListView::disableCamera(int position) +{ + setPartText("camera.title." + to_string(position + 1), "Aucune caméra"); + EmitSignal("hide,picture," + to_string(position + 1), "calaos"); + + if (cameras[position].video) + evas_object_del(cameras[position].video); + + ActivityCameraObject ac; + cameras[position] = ac; +} + +void ActivityCameraListView::EnableLeftButton() +{ + EmitSignal("enable,left", "calaos"); +} + +void ActivityCameraListView::DisableLeftButton() +{ + EmitSignal("disable,left", "calaos"); +} + +void ActivityCameraListView::EnableRightButton() +{ + EmitSignal("enable,right", "calaos"); +} + +void ActivityCameraListView::DisableRightButton() +{ + EmitSignal("disable,right", "calaos"); +} + +void ActivityCameraListView::ShowLoading() +{ + EmitSignal("show,loading", "calaos"); +} + +void ActivityCameraListView::HideLoading() +{ + EmitSignal("hide,loading", "calaos"); +} + +void ActivityCameraListView::EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (emission == "page,right") + { + button_right_click.emit(); + } + else if (emission == "page,left") + { + button_left_click.emit(); + } +} + +void ActivityCameraListView::addScenarioPage(list &scenarios_io) +{ + EdjeObject *container = new EdjeObject(theme, evas); + container->LoadEdje("calaos/page/home/scenario"); + container->setAutoDelete(true); + + list::iterator it = scenarios_io.begin(); + for (int i = 0;it != scenarios_io.end() && i < 6;it++, i++) + { + IOView *ioView = IOViewFactory::CreateIOView(evas, getEvasObject(), IOView::IO_SCENARIO_HOME); + ioView->setIO(*it); + ioView->Show(); + ioView->initView(); + + scenarios.push_back(ioView); + + string _t = "element." + to_string(i + 1); + container->Swallow(ioView, _t); + } + + page_view->addPage(container->getEvasObject()); +} + +void ActivityCameraListView::EnableView() +{ + for (unsigned int i = 0;i < cameras.size();i++) + { + if (cameras[i].video) + elm_video_play(cameras[i].video); + } +} + +void ActivityCameraListView::DisableView() +{ + for (unsigned int i = 0;i < cameras.size();i++) + { + if (cameras[i].video) + elm_video_pause(cameras[i].video); + } +} + +void ActivityCameraListView::pagerDragStart() +{ + EmitSignal("show,edge", "calaos"); +} + +void ActivityCameraListView::pagerDragStop() +{ + EmitSignal("hide,edge", "calaos"); +} diff --git a/src/bin/calaos_home/views/ActivityCameraListView.h b/src/bin/calaos_home/views/ActivityCameraListView.h new file mode 100644 index 00000000..a63d0f2b --- /dev/null +++ b/src/bin/calaos_home/views/ActivityCameraListView.h @@ -0,0 +1,91 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCAMERALISTVIEW_H +#define ACTIVITYCAMERALISTVIEW_H + +#include + +#include "CalaosModel.h" +#include "ActivityView.h" +#include "IOView.h" + +#include + +using namespace Utils; + +class ActivityCameraListView; +class ActivityCameraObject +{ + public: + Camera *camera; //the Camera Object + Evas_Object *video; //The elementary video object + ActivityCameraListView *view; //the view + int position; //position in view + + ActivityCameraObject(): + camera(NULL), + video(NULL), + view(NULL) + { } +}; + +class ActivityCameraListView: public ActivityView +{ + private: + vector cameras; + + vector scenarios; + PagingView *page_view; + + void EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void pagerDragStart(); + void pagerDragStop(); + + public: + ActivityCameraListView(Evas *evas, Evas_Object *parent); + ~ActivityCameraListView(); + + virtual void resetView(); + + void setCamera(Camera *camera, int position); + void disableCamera(int position); + + void EnableLeftButton(); + void DisableLeftButton(); + void EnableRightButton(); + void DisableRightButton(); + + void ShowLoading(); + void HideLoading(); + + void addScenarioPage(list &scenarios_io); + + virtual string getTitle() { return "Vidéosurveillance"; } + + virtual void EnableView(); + virtual void DisableView(); + + sigc::signal button_left_click; + sigc::signal button_right_click; +}; + +#endif // ACTIVITYCAMERALISTVIEW_H diff --git a/src/bin/calaos_home/views/ActivityCameraSelectView.cpp b/src/bin/calaos_home/views/ActivityCameraSelectView.cpp new file mode 100644 index 00000000..5ab91978 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityCameraSelectView.cpp @@ -0,0 +1,267 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityCameraSelectView.h" +#include "GenlistItems/GenlistItemSimple.h" +#include "GenlistItems/GenlistItemSimpleHeader.h" + +ActivityCameraSelectView::ActivityCameraSelectView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/media/camera_select"), + camera_video(NULL), + camera(NULL) +{ + addCallback("camera", "*", sigc::mem_fun(*this, &ActivityCameraSelectView::EdjeCallback)); + + list_item = elm_genlist_add(parent); + Swallow(list_item, "list.swallow"); + elm_object_style_set(list_item, "calaos"); + elm_genlist_select_mode_set(list_item, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_show(list_item); + + addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityCameraSelectView::ButtonCallback)); +} + +ActivityCameraSelectView::~ActivityCameraSelectView() +{ + elm_genlist_clear(list_item); + + DELETE_NULL_FUNC(evas_object_del, camera_video); + DELETE_NULL_FUNC(evas_object_del, list_item); +} + +void ActivityCameraSelectView::resetView() +{ +} + +string ActivityCameraSelectView::getTitle() +{ + return string("Caméra: ") + camera->params["name"]; +} + +void ActivityCameraSelectView::ShowLoading() +{ + EmitSignal("show,loading", "calaos"); +} + +void ActivityCameraSelectView::HideLoading() +{ + EmitSignal("hide,loading", "calaos"); +} + +void ActivityCameraSelectView::EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + +} + +static void _smart_cam_cb(void *data, Evas_Object *obj, void *event_info) +{ + ActivityCameraSelectView *view = reinterpret_cast(data); + if (!view) return; + + view->EmitSignal("show,picture", "calaos"); + evas_object_smart_callback_del(obj, "frame_decode", _smart_cam_cb); +} + +static void _smart_cam_stop_cb(void *data, Evas_Object *obj, void *event_info) +{ + Evas_Object *v = reinterpret_cast(data); + if (!v) return; + + //Restart the playing of stream if it stops + elm_video_play(v); +} + +void ActivityCameraSelectView::setCamera(Camera *cam) +{ + if (!cam) return; + camera = cam; + + if (camera_video) + evas_object_del(camera_video); + + camera_video = elm_video_add(parent); + + Swallow(camera_video, "camera.swallow"); + elm_video_file_set(camera_video, camera->params["mjpeg_url"].c_str()); + elm_video_play(camera_video); + evas_object_show(camera_video); + + evas_object_smart_callback_add(elm_video_emotion_get(camera_video), "frame_decode", _smart_cam_cb, this); + evas_object_smart_callback_add(elm_video_emotion_get(camera_video), "decode_stop", _smart_cam_stop_cb, camera_video); + evas_object_smart_callback_add(elm_video_emotion_get(camera_video), "playback_finished", _smart_cam_stop_cb, camera_video); + + if (camera->params["ptz"] == "true") + EmitSignal("ptz,true", "calaos"); + else + EmitSignal("ptz,false", "calaos"); + + if (camera->params["zoom"] == "true") + EmitSignal("zoom,true", "calaos"); + else + EmitSignal("zoom,false", "calaos"); + + Room *room = cam->getRoom(); + elm_genlist_clear(list_item); + + if (!room) return; + + setPartText("room_title.text", room->name); + + list::iterator it = room->visible_ios.begin(); + for (;it != room->visible_ios.end();it++) + { + IOViewFactory::CreateIOBaseElement(evas, list_item, *it, list_item, "left"/*, group_item*/); + } + + elm_genlist_realized_items_update(list_item); +} + +void ActivityCameraSelectView::ButtonCallback(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (source == "button.position.save") + { + buttonSavePositionClick(); + } + else if (source == "button.ptz.left") + { + camera->MoveLeft(); + } + else if (source == "button.ptz.right") + { + camera->MoveRight(); + } + else if (source == "button.ptz.up") + { + camera->MoveUp(); + } + else if (source == "button.ptz.down") + { + camera->MoveDown(); + } + else if (source == "button.ptz.center") + { + camera->MoveCenter(); + } + else if (source == "button.position.1") + { + camera->Recall(1); + } + else if (source == "button.position.2") + { + camera->Recall(2); + } + else if (source == "button.position.3") + { + camera->Recall(3); + } + else if (source == "button.position.4") + { + camera->Recall(4); + } + else if (source == "button.position.5") + { + camera->Recall(5); + } + else if (source == "button.position.6") + { + camera->Recall(6); + } + else if (source == "button.position.7") + { + camera->Recall(7); + } + else if (source == "button.position.8") + { + camera->Recall(8); + } + else if (source == "button.ptz.zoom_in") + { + camera->ZoomIn(); + } + else if (source == "button.ptz.zoom_out") + { + camera->ZoomOut(); + } +} + +void ActivityCameraSelectView::buttonSavePositionClick() +{ + Evas_Object *table = createPaddingTable(evas, parent, 260, 200); + + pager_position = elm_naviframe_add(parent); + evas_object_show(pager_position); + + Evas_Object *glist = elm_genlist_add(parent); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, "Sauver la position actuelle
Sélectionnez une position."); + header->Append(glist); + for (int i = 0;i < 8;i++) + { + string label = "Position " + to_string(i + 1); + int *user_data = new int(i + 1); + GenlistItemSimple *item = new GenlistItemSimple(evas, glist, label, true, false, user_data); + item->Append(glist, header); + item->setAutoDeleteUserData(new DeletorT); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityCameraSelectView::positionSelected)); + } + + elm_genlist_realized_items_update(glist); + + elm_table_pack(table, glist, 1, 1, 1, 1); + + popup_position = elm_ctxpopup_add(parent); + elm_object_content_set(popup_position, pager_position); + elm_object_style_set(popup_position, "calaos"); + evas_object_size_hint_min_set(popup_position, 300, 240); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup_position, x, y); + evas_object_show(popup_position); + + elm_naviframe_item_push(pager_position, NULL, NULL, NULL, table, "calaos"); +} + +void ActivityCameraSelectView::positionSelected(void *data) +{ + int *user_data = reinterpret_cast(data); + int position = *user_data; + string text = "
Sauvegarde à la position #" + to_string(position) + "
"; + + camera->Save(position); + + EdjeObject *page = new EdjeObject(theme, evas); + page->LoadEdje("calaos/page/media/camera_select/position_save"); + page->setAutoDelete(true); + page->setPartText("text", text); + + elm_naviframe_item_push(pager_position, NULL, NULL, NULL, page->getEvasObject(), "calaos"); + EcoreTimer::singleShot(2.0, sigc::mem_fun(*this, &ActivityCameraSelectView::positionSaved)); +} + +void ActivityCameraSelectView::positionSaved() +{ + evas_object_hide(popup_position); +} diff --git a/src/bin/calaos_home/views/ActivityCameraSelectView.h b/src/bin/calaos_home/views/ActivityCameraSelectView.h new file mode 100644 index 00000000..038c36d0 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityCameraSelectView.h @@ -0,0 +1,64 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCAMERASELECTVIEW_H +#define ACTIVITYCAMERASELECTVIEW_H + +#include + +#include "CalaosModel.h" +#include "ActivityView.h" +#include "IOView.h" + +using namespace Utils; + +class ActivityCameraSelectView: public ActivityView +{ + private: + Evas_Object *camera_video; + Camera *camera; + + Evas_Object *list_item; + + Evas_Object *pager_position; + Evas_Object *popup_position; + + void EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + void ButtonCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void buttonSavePositionClick(); + void positionSelected(void *data); + void positionSaved(); + + public: + ActivityCameraSelectView(Evas *evas, Evas_Object *parent); + ~ActivityCameraSelectView(); + + virtual void resetView(); + + void ShowLoading(); + void HideLoading(); + + virtual string getTitle(); + + void setCamera(Camera *camera); +}; + +#endif // ACTIVITYCAMERASELECTVIEW_H diff --git a/src/bin/calaos_home/views/ActivityConfigView.cpp b/src/bin/calaos_home/views/ActivityConfigView.cpp new file mode 100644 index 00000000..28f0258c --- /dev/null +++ b/src/bin/calaos_home/views/ActivityConfigView.cpp @@ -0,0 +1,35 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityConfigView.h" + +ActivityConfigView::ActivityConfigView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/config") +{ + setPartText("header.label", "Centre de configuration"); +} + +ActivityConfigView::~ActivityConfigView() +{ +} + +void ActivityConfigView::resetView() +{ +} diff --git a/src/bin/calaos_home/views/ActivityConfigView.h b/src/bin/calaos_home/views/ActivityConfigView.h new file mode 100644 index 00000000..6fb8d3e1 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityConfigView.h @@ -0,0 +1,39 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYCONFIGVIEW_H +#define ACTIVITYCONFIGVIEW_H + +#include + +#include "ActivityView.h" + +using namespace Utils; + +class ActivityConfigView: public ActivityView +{ + public: + ActivityConfigView(Evas *evas, Evas_Object *parent); + ~ActivityConfigView(); + + virtual void resetView(); +}; + +#endif // ACTIVITYCONFIGVIEW_H diff --git a/src/bin/calaos_home/views/ActivityEditScenarioView.cpp b/src/bin/calaos_home/views/ActivityEditScenarioView.cpp new file mode 100644 index 00000000..cce4470b --- /dev/null +++ b/src/bin/calaos_home/views/ActivityEditScenarioView.cpp @@ -0,0 +1,691 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityEditScenarioView.h" +#include "ApplicationMain.h" +#include "IOGenlistRoomGroup.h" +#include "GenlistItemSimple.h" +#include "GenlistItemSimpleHeader.h" +#include "GenlistItemScenarioAction.h" + +ActivityEditScenarioView::ActivityEditScenarioView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/edit_scenario"), + pager_step(NULL), + pageName(NULL), + pageActions(NULL), + current_wizstep(1), + home_list(NULL), + actions_list(NULL), + current_step(0) +{ + setPartText("header.label", "Mon nouveau scénario"); + + addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::buttonPressed)); + + pager_step = elm_naviframe_add(parent); + evas_object_show(pager_step); + Swallow(pager_step, "step.content"); +} + +ActivityEditScenarioView::~ActivityEditScenarioView() +{ + DELETE_NULL_FUNC(evas_object_del, pager_step); +} + +void ActivityEditScenarioView::resetView() +{ +} + +void ActivityEditScenarioView::setScenarioData(ScenarioData &data) +{ + scenario_data = data; + + cout << "SCENARIO is empty? :" << scenario_data.toString() << endl; + + if (scenario_data.empty) + scenario_data.name = "Mon Nouveau Scénario"; + + if (scenario_data.steps.size() == 0) + { + //If empty, create at least one default step + ScenarioStep s; + scenario_data.steps.push_back(s); + } + + showStep(current_wizstep); + + EmitSignal("set,step1", "calaos"); +} + +void ActivityEditScenarioView::showStep(int step) +{ + if (step == 1) + { + if (!pageName) + { + pageName = new EdjeObject(ApplicationMain::getTheme(), evas); + pageName->LoadEdje("calaos/scenario/step_1"); + pageName->Show(); + pageName->setAutoDelete(true); + pageName->object_deleted.connect(sigc::mem_fun(*this, &ActivityEditScenarioView::pageNameDeleted)); + pageName->addCallback("button.name", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::pageNameEditName)); + pageName->addCallback("button.*selected", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::pageNameVisiblePressed)); + pageName->setPartText("name.text", "Nom du scénario: " + scenario_data.name + ""); + updateVisibility(); + } + elm_naviframe_item_push(pager_step, NULL, NULL, NULL, pageName->getEvasObject(), "calaos"); + } + else if (step == 2) + { + if (!pageActions) + { + pageActions = new EdjeObject(ApplicationMain::getTheme(), evas); + pageActions->LoadEdje("calaos/scenario/step_2"); + pageActions->Show(); + pageActions->setAutoDelete(true); + pageActions->object_deleted.connect(sigc::mem_fun(*this, &ActivityEditScenarioView::pageActionsDeleted)); + pageActions->addCallback("button.step", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::buttonStepPressed)); + pageActions->addCallback("button.step.add", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::buttonStepAddPressed)); + pageActions->addCallback("button.step.delete", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::buttonStepDelPressed)); + pageActions->addCallback("button.*selected", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::pageActionsCyclePressed)); + updateCycling(); + + //Load page Actions and items + loadPageActions(); + } + elm_naviframe_item_push(pager_step, NULL, NULL, NULL, pageActions->getEvasObject(), "calaos"); + } +} + +void ActivityEditScenarioView::updateVisibility() +{ + if (scenario_data.visible) + { + pageName->EmitSignal("visible.select", "calaos"); + string r = "??"; + if (scenario_data.room) r = scenario_data.room->name; + pageName->setPartText("visible.text", "Afficher dans l'interface: Activé dans \"" + r + "\""); + } + else + { + pageName->EmitSignal("visible.unselect", "calaos"); + pageName->setPartText("visible.text", "Afficher dans l'interface: Ne pas afficher."); + } +} + +void ActivityEditScenarioView::updateCycling() +{ + if (scenario_data.params["cycle"] == "true") + { + pageActions->EmitSignal("cycle.select", "calaos"); + pageActions->setPartText("cycle.text", "Execution en boucle: Activé"); + } + else + { + pageActions->EmitSignal("cycle.unselect", "calaos"); + pageActions->setPartText("cycle.text", "Execution en boucle: Désactivé"); + } +} + +void ActivityEditScenarioView::pageNameEditName(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (!pageName) return; + + ApplicationMain::Instance().ShowKeyboard("Saisir le nom du scénario", + sigc::mem_fun(*this, &ActivityEditScenarioView::pageNameEditName_cb), + false, + scenario_data.name); +} + +void ActivityEditScenarioView::pageNameEditName_cb(string text) +{ + scenario_data.name = text; + if (pageName) + pageName->setPartText("name.text", "Nom du scénario: " + scenario_data.name + ""); +} + +void ActivityEditScenarioView::pageNameVisiblePressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + Evas_Object *table = createPaddingTable(evas, parent, 280, 255); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Visibilité du scénario
Choisissez une pièce."; + GenlistItemSimpleHeader *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *item; + + item = new GenlistItemSimple(evas, parent, "Ne pas afficher", true, false, NULL, "check"); + item->Append(glist); + if (!scenario_data.room) + item->setSelected(true); + item->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::itemRoomSelected), (Room *)NULL)); + + list::iterator it = CalaosModel::Instance().getHome()->rooms.begin(); + for (;it != CalaosModel::Instance().getHome()->rooms.end();it++) + { + Room *room = *it; + item = new GenlistItemSimple(evas, parent, room->name, true, false, NULL, "check"); + item->Append(glist); + if (scenario_data.room == room) + item->setSelected(true); + else + item->setSelected(false); + item->setIcon("calaos/icons/genlist/room"); + item->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::itemRoomSelected), room)); + } + + elm_table_pack(table, glist, 1, 1, 1, 1); + + popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, table); + elm_object_style_set(popup, "calaos"); + elm_ctxpopup_direction_priority_set(popup, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_RIGHT, + ELM_CTXPOPUP_DIRECTION_UP, + ELM_CTXPOPUP_DIRECTION_DOWN); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); +} + +void ActivityEditScenarioView::itemRoomSelected(void *data, Room *room) +{ + scenario_data.room = room; + if (!room) + scenario_data.visible = false; + else + scenario_data.visible = true; + + updateVisibility(); + + elm_ctxpopup_dismiss(popup); +} + +void ActivityEditScenarioView::pageNameDeleted() +{ + pageName = NULL; +} + +void ActivityEditScenarioView::pageActionsDeleted() +{ + pageActions = NULL; + DELETE_NULL_FUNC(evas_object_del, home_list); + DELETE_NULL_FUNC(evas_object_del, actions_list); +} + +void ActivityEditScenarioView::pageActionsCyclePressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (scenario_data.params["cycle"] == "true") + scenario_data.params.Add("cycle", "false"); + else + scenario_data.params.Add("cycle", "true"); + updateCycling(); +} + +void ActivityEditScenarioView::buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (source == "button.next") + { + if (current_wizstep >= 2) return; + + current_wizstep++; + + string _t = "set,step" + to_string(current_wizstep); + EmitSignal(_t, "calaos"); + + showStep(current_wizstep); + + buttonNextPressed.emit(); + } + else if (source == "button.previous") + { + if (current_wizstep <= 1) return; + + current_wizstep--; + + string _t = "set,step" + to_string(current_wizstep); + EmitSignal(_t, "calaos"); + + elm_naviframe_item_pop(pager_step); + + buttonPreviousPressed.emit(); + } + else if (source == "button.cancel") + { + buttonCancelPressed.emit(); + } + else if (source == "button.valid") + { + buttonValidPressed.emit(); + } +} + +void ActivityEditScenarioView::loadPageActions() +{ + //Create genlists + home_list = elm_genlist_add(parent); + pageActions->Swallow(home_list, "home.list"); + elm_genlist_homogeneous_set(home_list, true); + elm_object_style_set(home_list, "calaos"); + evas_object_show(home_list); + + actions_list = elm_genlist_add(parent); + pageActions->Swallow(actions_list, "actions.list"); + elm_object_style_set(actions_list, "calaos"); + evas_object_show(actions_list); + + list::iterator it = CalaosModel::Instance().getHome()->rooms.begin(); + for (;it != CalaosModel::Instance().getHome()->rooms.end();it++) + { + Room *r = *it; + IOGenlistRoomGroupIcon *room = new IOGenlistRoomGroupIcon(evas, home_list, r, ""); + room->Append(home_list); + + list::iterator itio = r->scenario_ios.begin(); + for (;itio != r->scenario_ios.end();itio++) + { + IOBase *io = *itio; + + GenlistItemSimple *item = new GenlistItemSimple(evas, home_list, io->params["name"], false); + item->Append(home_list); + item->setIcon(io->getIconForIO()); + item->setButtonIcon("calaos/icons/action_button/more"); + item->button_pressed.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::actionAddPressed), io)); + } + } + + loadActionsStep(); +} + +void ActivityEditScenarioView::actionAddPressed(IOBase *io) +{ + map::iterator it; + it = room_table.find(io->getRoom()); + + ScenarioAction sa; + IOActionList ac = io->getActionFromState(); + sa.io = io; + sa.action = ac.getComputedAction(io); + + if (current_step == ScenarioData::END_STEP) + scenario_data.step_end.actions.push_back(sa); + else + scenario_data.steps[current_step].actions.push_back(sa); + + GenlistItemScenarioAction *item = new GenlistItemScenarioAction(evas, parent, + scenario_data, + current_step, + (current_step == ScenarioData::END_STEP)? + scenario_data.step_end.actions.size() - 1: + scenario_data.steps[current_step].actions.size() - 1); + item->setAction(ac); + item->delete_action.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::actionDelete), + (current_step == ScenarioData::END_STEP)? + scenario_data.step_end.actions.size() - 1: + scenario_data.steps[current_step].actions.size() - 1, + io->getRoom())); //click on "delete this action" + + if (it == room_table.end()) + { + IOGenlistRoomGroupIcon *groom = new IOGenlistRoomGroupIcon(evas, actions_list, io->getRoom(), ""); + groom->Append(actions_list); + + item->Append(actions_list); + room_table[io->getRoom()] = dynamic_cast(item); + } + else + { + item->InsertAfter(actions_list, it->second); + room_table[io->getRoom()] = dynamic_cast(item); + } + + item->BringInItem(ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); +} + +bool ScRoomCompare(const ScenarioAction lhs, const ScenarioAction rhs) +{ + return ((ScenarioAction)lhs).io->getRoom()->name > ((ScenarioAction)rhs).io->getRoom()->name && + ((ScenarioAction)lhs).io->getRoom()->type > ((ScenarioAction)rhs).io->getRoom()->type; +} + +void ActivityEditScenarioView::loadActionsStep() +{ + if (current_step != ScenarioData::END_STEP) + { + if (current_step >= (int)scenario_data.steps.size()) + current_step = (int)scenario_data.steps.size() - 1; + if (current_step < 0) + current_step = 0; + } + + room_table.clear(); + elm_genlist_clear(actions_list); + + if (edje_object_part_exists(pageActions->getEvasObject(), "button.step")) + { + Evas_Object *button = edje_object_part_external_object_get(pageActions->getEvasObject(), "button.step"); + string _t = (current_step == ScenarioData::END_STEP)? "Etape de fin":"Etape " + to_string(current_step + 1); + elm_object_text_set(button, _t.c_str()); + } + + ScenarioStep &step = (current_step == ScenarioData::END_STEP)? scenario_data.step_end:scenario_data.steps[current_step]; + std::sort(step.actions.begin(), step.actions.end(), ScRoomCompare); + + Room *r = NULL; + IOGenlistRoomGroupIcon *groom = NULL; + GenlistItemBase *base = NULL; + + for (uint i = 0;i < step.actions.size();i++) + { + ScenarioAction &sa = step.actions[i]; + IOBase *io = sa.io; + + if (r != io->getRoom()) + { + r = io->getRoom(); + groom = new IOGenlistRoomGroupIcon(evas, actions_list, r, ""); + groom->Append(actions_list); + } + + GenlistItemScenarioAction *item = new GenlistItemScenarioAction(evas, parent, scenario_data, current_step, i); + IOActionList ac = io->getActionListFromAction(sa.action); + item->setAction(ac); + item->Append(actions_list); + item->delete_action.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::actionDelete), i, r)); //click on "delete this action" + base = dynamic_cast(item); + room_table[r] = base; + } +} + +void ActivityEditScenarioView::actionDelete(GenlistItemScenarioAction *item, void *data, int it, Room *room) +{ + ScenarioStep &step = (current_step == ScenarioData::END_STEP)? scenario_data.step_end:scenario_data.steps[current_step]; + step.actions.erase(step.actions.begin() + it); + + GenlistItemBase *prev = item->getPreviousItem(); + GenlistItemBase *next = item->getNextItem(); + + IOGenlistRoomGroupIcon *rprev = dynamic_cast(prev); + IOGenlistRoomGroupIcon *rnext = dynamic_cast(next); + GenlistItemScenarioAction *aprev = dynamic_cast(prev); + + if ((rprev && rnext) || //previous and next item are room header, so there is no more item in this room + (rprev && !next)) + { + rprev->RemoveItem(); + //delete room cache + room_table.erase(rprev->getRoom()); + } + if (aprev && rnext) //previous is an action and next is a room, change cache to the previous item + { + room_table[room] = aprev; + } + item->RemoveItem(); +} + +void ActivityEditScenarioView::buttonStepPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + Evas_Object *table = createPaddingTable(evas, parent, 300, 260); + + pager_step_popup = elm_naviframe_add(parent); + evas_object_show(pager_step_popup); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Etapes du scénarios
Déroulement de votre scénario"; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *item_show = NULL; + for (uint i = 0;i < scenario_data.steps.size();i++) + { + ScenarioStep &step = scenario_data.steps[i]; + + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, "Etape " + to_string(i + 1), true, false, NULL, "check"); + item->Append(glist, header); + if ((int)i == current_step) + { + item->setSelected(true); + item_show = item; + } + item->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::stepSelect), i)); + + string _t = "Pause: " + time2string(step.pause / 1000, step.pause % 1000); + GenlistItemSimple *item_pause = new GenlistItemSimple(evas, parent, _t, true, false, NULL, "disclosure"); + item_pause->Append(glist, header); + item_pause->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::stepPauseChange), i, item_pause)); + } + + GenlistItemSimple *item_end = new GenlistItemSimple(evas, parent, "Etape de fin", true, false, NULL, "check"); + item_end->Append(glist, header); + if (current_step == ScenarioData::END_STEP) + { + item_end->setSelected(true); + item_show = item_end; + } + item_end->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::stepSelect), ScenarioData::END_STEP)); + + elm_table_pack(table, glist, 1, 1, 1, 1); + + step_popup = elm_ctxpopup_add(parent); + elm_object_content_set(step_popup, pager_step_popup); + elm_object_style_set(step_popup, "calaos"); + elm_ctxpopup_direction_priority_set(step_popup, + ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_UP, + ELM_CTXPOPUP_DIRECTION_RIGHT); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(step_popup, x, y); + evas_object_show(step_popup); + + elm_naviframe_item_push(pager_step_popup, NULL, NULL, NULL, table, "calaos"); + + if (item_show) + item_show->BringInItem(ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); +} + +void ActivityEditScenarioView::stepSelect(void *data, int step) +{ + current_step = step; + loadActionsStep(); + elm_ctxpopup_dismiss(step_popup); +} + +void ActivityEditScenarioView::stepPauseChange(void *data, int step, GenlistItemSimple *item) +{ + EdjeObject *page = new EdjeObject(ApplicationMain::getTheme(), evas); + page->LoadEdje("calaos/popup/page/time"); + page->setAutoDelete(true); + page->addCallback("button.back", "pressed", sigc::mem_fun(*this, &ActivityEditScenarioView::buttonPauseBackClick)); + page->addCallback("button.valid", "pressed", sigc::bind(sigc::mem_fun(*this, &ActivityEditScenarioView::buttonPauseValidTimeClick), step, item)); + string t = "Choisir une durée
Temps de pause avant la prochaine étape"; + page->setPartText("text", t); + + if (edje_object_part_exists(page->getEvasObject(), "button.back")) + { + Evas_Object *button = edje_object_part_external_object_get(page->getEvasObject(), "button.back"); + elm_object_text_set(button, "Etapes"); + } + + long pause = scenario_data.steps[step].pause; + + double sec = (double)pause / 1000.0; + long ms = pause % 1000; + int hours = (int)(sec / 3600.0); + sec -= hours * 3600; + int min = (int)(sec / 60.0); + sec -= min * 60; + + spin_hours = elm_spinner_add(parent); + elm_object_style_set(spin_hours, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_hours, "%.0f
Heures"); + elm_spinner_min_max_set(spin_hours, 0, 99); + elm_spinner_step_set(spin_hours, 1); + elm_spinner_interval_set(spin_hours, 0.15); + elm_spinner_value_set(spin_hours, hours); + evas_object_show(spin_hours); + page->Swallow(spin_hours, "spinner.hours", true); + + spin_min = elm_spinner_add(parent); + elm_object_style_set(spin_min, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_min, "%.0f
Min."); + elm_spinner_min_max_set(spin_min, 0, 59); + elm_spinner_step_set(spin_min, 1); + elm_spinner_interval_set(spin_min, 0.15); + elm_spinner_value_set(spin_min, min); + evas_object_show(spin_min); + page->Swallow(spin_min, "spinner.minutes", true); + + spin_sec = elm_spinner_add(parent); + elm_object_style_set(spin_sec, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_sec, "%.0f
Sec."); + elm_spinner_min_max_set(spin_sec, 0, 59); + elm_spinner_step_set(spin_sec, 1); + elm_spinner_interval_set(spin_sec, 0.15); + elm_spinner_value_set(spin_sec, sec); + evas_object_show(spin_sec); + page->Swallow(spin_sec, "spinner.seconds", true); + + spin_ms = elm_spinner_add(parent); + elm_object_style_set(spin_ms, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_ms, "%.0f
Ms."); + elm_spinner_min_max_set(spin_ms, 0, 999); + elm_spinner_step_set(spin_ms, 1); + elm_spinner_interval_set(spin_ms, 0.15); + elm_spinner_value_set(spin_ms, ms); + evas_object_show(spin_ms); + page->Swallow(spin_ms, "spinner.miliseconds", true); + + elm_naviframe_item_push(pager_step_popup, NULL, NULL, NULL, page->getEvasObject(), "calaos"); +} + +void ActivityEditScenarioView::buttonPauseBackClick(void *data, Evas_Object *edje_object, string emission, string source) +{ + elm_naviframe_item_pop(pager_step_popup); +} + +void ActivityEditScenarioView::buttonPauseValidTimeClick(void *data, Evas_Object *edje_object, string emission, string source, int step, GenlistItemSimple *item) +{ + scenario_data.steps[step].pause = elm_spinner_value_get(spin_hours) * 60.0 * 60.0 * 1000.0 + + elm_spinner_value_get(spin_min) * 60.0 * 1000.0 + + elm_spinner_value_get(spin_sec) * 1000.0 + + elm_spinner_value_get(spin_ms); + + string _t = "Pause: " + time2string(scenario_data.steps[step].pause / 1000, scenario_data.steps[step].pause % 1000); + item->setLabelText(_t); + elm_naviframe_item_pop(pager_step_popup); +} + +void ActivityEditScenarioView::buttonStepAddPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + ScenarioStep step; + scenario_data.steps.push_back(step); + + current_step = scenario_data.steps.size() - 1; + loadActionsStep(); +} + +void ActivityEditScenarioView::buttonStepDelPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + Evas_Object *table = createPaddingTable(evas, parent, 300, 130); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Confirmation
Êtes-vous sûr de vouloir supprimer cette étape?"; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, "Oui, supprimer l'étape", true); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityEditScenarioView::deleteStepValid)); + + item = new GenlistItemSimple(evas, parent, "Non", true); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &ActivityEditScenarioView::deleteStepCancel)); + + elm_table_pack(table, glist, 1, 1, 1, 1); + + popup_del = elm_ctxpopup_add(parent); + elm_object_content_set(popup_del, table); + elm_object_style_set(popup_del, "calaos"); + elm_ctxpopup_direction_priority_set(popup_del, + ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_UP, + ELM_CTXPOPUP_DIRECTION_RIGHT); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup_del, x, y); + evas_object_show(popup_del); +} + +void ActivityEditScenarioView::deleteStepValid(void *data) +{ + if (current_step == ScenarioData::END_STEP) + { + scenario_data.step_end = ScenarioStep(); + } + else + { + if (current_step < 0 || current_step >= (int)scenario_data.steps.size()) + return; + + if (scenario_data.steps.size() > 1) + scenario_data.steps.erase(scenario_data.steps.begin() + current_step); + else + scenario_data.steps[0] = ScenarioStep(); + + if (current_step >= (int)scenario_data.steps.size()) + current_step = scenario_data.steps.size() - 1; + } + + loadActionsStep(); + elm_ctxpopup_dismiss(popup_del); +} + +void ActivityEditScenarioView::deleteStepCancel(void *data) +{ + elm_ctxpopup_dismiss(popup_del); +} + diff --git a/src/bin/calaos_home/views/ActivityEditScenarioView.h b/src/bin/calaos_home/views/ActivityEditScenarioView.h new file mode 100644 index 00000000..0625e7f4 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityEditScenarioView.h @@ -0,0 +1,109 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityEditScenarioView_H +#define ActivityEditScenarioView_H + +#include + +#include "ActivityView.h" +#include "GenlistItemBase.h" +#include "CalaosModel.h" + +using namespace Utils; + +class GenlistItemSimple; +class GenlistItemScenarioAction; + +class ActivityEditScenarioView: public ActivityView +{ + private: + Evas_Object *pager_step, *pager_step_popup, *popup_del; + EdjeObject *pageName, *pageActions; + + int current_wizstep; + + Evas_Object *home_list, *actions_list; + + int current_step; + + ScenarioData scenario_data; + + list cache_ios; //show all controlable ios + + Evas_Object *popup, *step_popup; + + Evas_Object *spin_hours; + Evas_Object *spin_min; + Evas_Object *spin_sec; + Evas_Object *spin_ms; + + map room_table; + + void buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + void showStep(int step); + void pageNameDeleted(); + void pageActionsDeleted(); + void loadPageActions(); + void loadActionsStep(); + string getIconForIO(IOBase *io); + + void pageNameEditName(void *data, Evas_Object *_edje, std::string emission, std::string source); + void pageNameEditName_cb(string text); + + void pageNameVisiblePressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + void pageActionsCyclePressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void itemRoomSelected(void *data, Room *room); + void updateVisibility(); + void updateCycling(); + + void actionAddPressed(IOBase *io); + + void buttonStepPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + void buttonStepAddPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + void buttonStepDelPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void stepSelect(void *data, int step); + void stepPauseChange(void *data, int step, GenlistItemSimple *item); + void buttonPauseBackClick(void *data, Evas_Object *edje_object, string emission, string source); + void buttonPauseValidTimeClick(void *data, Evas_Object *edje_object, string emission, string source, int step, GenlistItemSimple *item); + + void deleteStepValid(void *data); + void deleteStepCancel(void *data); + + void actionDelete(GenlistItemScenarioAction *item, void *data, int it, Room *room); + + public: + ActivityEditScenarioView(Evas *evas, Evas_Object *parent); + ~ActivityEditScenarioView(); + + virtual void resetView(); + + void setScenarioData(ScenarioData &data); + ScenarioData &getScenarioData() { return scenario_data; } + + sigc::signal buttonNextPressed; + sigc::signal buttonPreviousPressed; + sigc::signal buttonCancelPressed; + sigc::signal buttonValidPressed; +}; + +#endif // ActivityEditScenarioView_H diff --git a/src/bin/calaos_home/views/ActivityHomeView.cpp b/src/bin/calaos_home/views/ActivityHomeView.cpp new file mode 100644 index 00000000..1bda635a --- /dev/null +++ b/src/bin/calaos_home/views/ActivityHomeView.cpp @@ -0,0 +1,568 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityHomeView.h" +#include "ApplicationMain.h" + +#include "IOView.h" + +#include "IO/IOGenlistRoomGroup.h" + +ActivityHomeView::ActivityHomeView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/home"), + mode_detail(false), + pageStatus(NULL) +{ + setPartText("header.label", "Ma Maison"); + + rooms.reserve(6); + chauffages.reserve(6); + chauff_change_con.reserve(6); + chauff_del_con.reserve(6); + for (int i = 0;i < 6;i++) + { + rooms.push_back(new EdjeObject(ApplicationMain::getTheme(), evas)); + chauffages.push_back(NULL); + chauff_change_con.push_back(sigc::connection()); + chauff_del_con.push_back(sigc::connection()); + } + + list_top = elm_list_add(parent); + Swallow(list_top, "list.top"); + elm_object_style_set(list_top, "home/room_list"); + evas_object_show(list_top); + + list_left = elm_genlist_add(parent); + Swallow(list_left, "list.left"); + elm_object_style_set(list_left, "calaos"); + elm_genlist_select_mode_set(list_left, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_show(list_left); + + list_right = elm_genlist_add(parent); + Swallow(list_right, "list.right"); + elm_object_style_set(list_right, "calaos"); + elm_genlist_select_mode_set(list_right, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_show(list_right); + + page_view = new PagingView(evas, parent); + Swallow(page_view, "home.pager"); + + page_view->drag_start.connect(sigc::mem_fun(*this, &ActivityHomeView::pagerDragStart)); + page_view->drag_stop.connect(sigc::mem_fun(*this, &ActivityHomeView::pagerDragStop)); + + addCallback("home", "*", sigc::mem_fun(*this, &ActivityHomeView::EdjeCallback)); + addCallback("button.back", "pressed", sigc::mem_fun(*this, &ActivityHomeView::BackToMainViewCb)); +} + +ActivityHomeView::~ActivityHomeView() +{ + for_each(rooms.begin(), rooms.end(), Delete()); + + clearLists(); + + DELETE_NULL_FUNC(evas_object_del, list_top) + DELETE_NULL_FUNC(evas_object_del, list_left) + DELETE_NULL_FUNC(evas_object_del, list_right) + + DELETE_NULL(page_view) +} + +void ActivityHomeView::objectShown() +{ + EmitSignal("show,right", "calaos"); + EmitSignal("show,left", "calaos"); +} + +void ActivityHomeView::objectHidden() +{ + EmitSignal("hide,right", "calaos"); + EmitSignal("hide,left", "calaos"); +} + +void ActivityHomeView::setRoom(string type, int position, IOBase *chauffage) +{ + if (rooms[position]) + delete rooms[position]; + + EmitSignal("reset,rooms", "calaos"); + + string t = type; + + if (type == "salon") t = "lounge"; + if (type == "chambre") t = "bedroom"; + if (type == "cuisine") t = "kitchen"; + if (type == "bureau") t = "office"; + if (type == "sam") t = "diningroom"; + if (type == "cave") t = "cellar"; + if (type == "divers") t = "various"; + if (type == "misc") t = "various"; + if (type == "exterieur") t = "outside"; + if (type == "sdb") t = "bathroom"; + if (type == "hall") t = "corridor"; + if (type == "couloir") t = "corridor"; + + rooms[position] = new EdjeObject(ApplicationMain::getTheme(), evas); + string group = "calaos/room/"; + + if (!rooms[position]->LoadEdje(group + t)) + { + //room not found, load default + if (!rooms[position]->LoadEdje("calaos/room/various")) + { + throw(runtime_error("ActivityHomeView::setRoom(): Can't load edje !")); + } + } + + rooms[position]->Show(); + + if (position > 2) + rooms[position]->EmitSignal("size,small", "calaos"); + else + rooms[position]->EmitSignal("size,normal", "calaos"); + + Swallow(rooms[position], "room." + to_string(position + 1)); + + chauffages[position] = chauffage; + chauff_change_con[position].disconnect(); + chauff_del_con[position].disconnect(); + + if (chauffage) + { + rooms[position]->EmitSignal("chauffage,show", "calaos"); + chauff_change_con[position] = chauffage->io_changed.connect(sigc::bind(sigc::mem_fun(*this, &ActivityHomeView::updateChauffage), position)); + chauff_del_con[position] = chauffage->io_deleted.connect(sigc::bind(sigc::mem_fun(*this, &ActivityHomeView::delChauffage), position)); + + updateChauffage(position); + } + + EmitSignal(string("enable,room,") + to_string(position + 1), "calaos"); //this enable mouse click on unused rooms +} + +void ActivityHomeView::updateChauffage(int pos) +{ + if (pos < 0 || pos >= 6 || !rooms[pos]) + return; + + string t = chauffages[pos]->params["state"]; + rooms[pos]->setPartText("chauffage.temp.small", t + " °C"); + + IOBase *consigne = CalaosModel::Instance().getHome()->getConsigneFromTemp(chauffages[pos]); + if (consigne) + t += " / " + consigne->params["state"] + " °C"; + rooms[pos]->setPartText("chauffage.temp", t); +} + +void ActivityHomeView::delChauffage(int pos) +{ + if (pos < 0 || pos >= 6 || !rooms[pos]) + return; + + chauffages[pos] = NULL; + chauff_change_con[pos].disconnect(); + chauff_del_con[pos].disconnect(); +} + +void ActivityHomeView::hideRoom(int position) +{ + rooms[position]->EmitSignal("hide", "calaos"); + EmitSignal(string("disable,room,") + to_string(position + 1), "calaos"); //this disable mouse click on unused rooms +} + +void ActivityHomeView::resetRooms() +{ + rooms[0]->EmitSignal("size,normal", "calaos"); + rooms[1]->EmitSignal("size,normal", "calaos"); + rooms[2]->EmitSignal("size,normal", "calaos"); + rooms[3]->EmitSignal("size,small", "calaos"); + rooms[4]->EmitSignal("size,small", "calaos"); + rooms[5]->EmitSignal("size,small", "calaos"); + + for (int i = 0;i < 6;i++) + rooms[i]->EmitSignal("unselect", "calaos"); + + mode_detail = false; +} + +void ActivityHomeView::EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (emission.substr(0, 12) == "select,room,") + { + emission.erase(0, 12); + int pos; + from_string(emission, pos); + pos--; + + if (pos < 0 || pos >= 6) return; + + if (pos > 2) + { + rooms[0]->EmitSignal("size,small", "calaos"); + rooms[1]->EmitSignal("size,small", "calaos"); + rooms[2]->EmitSignal("size,small", "calaos"); + rooms[3]->EmitSignal("size,normal", "calaos"); + rooms[4]->EmitSignal("size,normal", "calaos"); + rooms[5]->EmitSignal("size,normal", "calaos"); + } + else + { + rooms[0]->EmitSignal("size,normal", "calaos"); + rooms[1]->EmitSignal("size,normal", "calaos"); + rooms[2]->EmitSignal("size,normal", "calaos"); + rooms[3]->EmitSignal("size,small", "calaos"); + rooms[4]->EmitSignal("size,small", "calaos"); + rooms[5]->EmitSignal("size,small", "calaos"); + } + + for (int i = 0;i < 6;i++) + rooms[i]->EmitSignal("unselect", "calaos"); + + rooms[pos]->EmitSignal("size,big", "calaos"); + + room_selected = pos; + mode_detail = true; + + room_click.emit(room_selected); + } + else if (emission == "room,right") + { + room_right_click.emit(); + } + else if (emission == "room,left") + { + room_left_click.emit(); + } + else if (emission == "mode,normal") + { + resetRooms(); + } +} + +void ActivityHomeView::BackToMainViewCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ +} + +void ActivityHomeView::EnableLeftButton() +{ + EmitSignal("enable,left", "calaos"); +} + +void ActivityHomeView::DisableLeftButton() +{ + EmitSignal("disable,left", "calaos"); +} + +void ActivityHomeView::EnableRightButton() +{ + EmitSignal("enable,right", "calaos"); +} + +void ActivityHomeView::DisableRightButton() +{ + EmitSignal("disable,right", "calaos"); +} + +void ActivityHomeView::ShowLoading() +{ + EmitSignal("show,loading", "calaos"); +} + +void ActivityHomeView::HideLoading() +{ + EmitSignal("hide,loading", "calaos"); +} + +void ActivityHomeView::selectPage_cb() +{ + page_view->bringPage(pageTimer); +} + +void ActivityHomeView::selectPage(int page, double delay) +{ + if (page < 0 || page >= page_view->getPageCount()) + return; + + if (delay > 0.0) + { + pageTimer = page; + EcoreTimer::singleShot(delay, sigc::mem_fun(*this, &ActivityHomeView::selectPage_cb)); + } + else + { + page_view->bringPage(page); + } +} + +void ActivityHomeView::ButtonLightsOffCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + const RoomIOCache &lights = CalaosModel::Instance().getHome()->getCacheLightsOn(); + RoomIOCache::const_iterator it = lights.begin(); + for (int i = 0;it != lights.end();it++, i++) + { + const RoomIO &lo = (*it).second; + + lo.io->sendAction("false"); + } +} + +void ActivityHomeView::ButtonLightsInfoCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + Evas_Object *table = createPaddingTable(evas, parent, 330, 300); + + Evas_Object *glist = elm_genlist_add(parent); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + map > lights = CalaosModel::Instance().getHome()->getLightsOnForRooms(); + map >::iterator it = lights.begin(); + for (;it != lights.end();it++) + { + Room *room = (*it).first; + list &ios = (*it).second; + list::iterator it_io; + + //Create group header + GenlistItemBase *group_item = new IOGenlistRoomGroup(evas, parent, room, ""); + group_item->Append(glist); + + for (it_io = ios.begin();it_io != ios.end();it_io++) + { + IOBase *io = (*it_io); + IOViewFactory::CreateIOBaseElement(evas, glist, io, glist, "left", group_item); + } + } + + elm_table_pack(table, glist, 1, 1, 1, 1); + + Evas_Object *popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, table); + elm_object_style_set(popup, "calaos"); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); +} + +void ActivityHomeView::ButtonShuttersDownCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + const RoomIOCache &shutters = CalaosModel::Instance().getHome()->getCacheShuttersUp(); + RoomIOCache::const_iterator it = shutters.begin(); + for (int i = 0;it != shutters.end();it++, i++) + { + const RoomIO &lo = (*it).second; + + lo.io->sendAction("down"); + } +} + +void ActivityHomeView::ButtonShuttersInfoCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + Evas_Object *table = createPaddingTable(evas, parent, 360, 300); + + Evas_Object *glist = elm_genlist_add(parent); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + map > shutters = CalaosModel::Instance().getHome()->getShuttersUpForRooms(); + map >::iterator it = shutters.begin(); + for (;it != shutters.end();it++) + { + Room *room = (*it).first; + list &ios = (*it).second; + list::iterator it_io; + + //Create group header + GenlistItemBase *group_item = new IOGenlistRoomGroup(evas, parent, room, ""); + group_item->Append(glist); + + for (it_io = ios.begin();it_io != ios.end();it_io++) + { + IOBase *io = (*it_io); + IOViewFactory::CreateIOBaseElement(evas, glist, io, glist, "left", group_item); + } + } + + elm_table_pack(table, glist, 1, 1, 1, 1); + + Evas_Object *popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, table); + elm_object_style_set(popup, "calaos"); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); +} + +void ActivityHomeView::setLightsOnText(string txt) +{ + pageStatus->setPartText("light.text", txt); +} + +void ActivityHomeView::setShuttersUpText(string txt) +{ + pageStatus->setPartText("shutter.text", txt); +} + +void ActivityHomeView::addStatusPage() +{ + pageStatus = new EdjeObject(theme, evas); + pageStatus->LoadEdje("calaos/page/home/status"); + pageStatus->setAutoDelete(true); + + pageStatus->addCallback("button.lights_off", "pressed", sigc::mem_fun(*this, &ActivityHomeView::ButtonLightsOffCb)); + pageStatus->addCallback("button.lights_info", "pressed", sigc::mem_fun(*this, &ActivityHomeView::ButtonLightsInfoCb)); + pageStatus->addCallback("button.shutters_down", "pressed", sigc::mem_fun(*this, &ActivityHomeView::ButtonShuttersDownCb)); + pageStatus->addCallback("button.shutters_info", "pressed", sigc::mem_fun(*this, &ActivityHomeView::ButtonShuttersInfoCb)); + + page_view->addPage(pageStatus->getEvasObject()); +} + +void ActivityHomeView::addScenarioPage(list &scenarios_io) +{ + EdjeObject *container = new EdjeObject(theme, evas); + container->LoadEdje("calaos/page/home/scenario"); + container->setAutoDelete(true); + + list::iterator it = scenarios_io.begin(); + for (int i = 0;it != scenarios_io.end() && i < 6;it++, i++) + { + IOView *ioView = IOViewFactory::CreateIOView(evas, getEvasObject(), IOView::IO_SCENARIO_HOME); + ioView->setIO(*it); + ioView->Show(); + ioView->initView(); + + string _t = "element." + to_string(i + 1); + container->Swallow(ioView, _t, true); + } + + page_view->addPage(container->getEvasObject()); +} + +void ActivityHomeView::removePage(int p) +{ + page_view->delPage(p); +} + +int ActivityHomeView::getPageCount() +{ + return page_view->getPageCount(); +} + +int ActivityHomeView::getCurrentPage() +{ + return page_view->getCurrentPage(); +} + +void ActivityHomeView::resetView() +{ + if (!mode_detail) return; + + //Simulate back button press to get back to initial state + EmitSignal("pressed", "button.back"); +} + +void ActivityHomeView::clearLists() +{ + elm_genlist_clear(list_left); + elm_genlist_clear(list_right); + elm_list_clear(list_top); + + for_each(dataRoomCallbacks.begin(), dataRoomCallbacks.end(), Delete()); +} + +static void _room_list_click(void *data, Evas_Object *obj, void *event_info) +{ + HomeRoomClickData *hdata = reinterpret_cast(data); + if (!hdata) return; + + hdata->view->changeCurrentRoomDetail(hdata->room); +} + +void ActivityHomeView::changeCurrentRoomDetail(Room *room) +{ + //Disable this for now. need to find a better way to go back to + //initial room title + //rooms[room_selected]->setPartText("room.title", room->name); + + elm_genlist_clear(list_left); + elm_genlist_clear(list_right); + + list::iterator it = room->visible_ios.begin(); + for (int i = 0;it != room->visible_ios.end();it++, i++) + { + if (i % 2) + IOViewFactory::CreateIOBaseElement(evas, list_left, *it, list_left, "left"); + else + IOViewFactory::CreateIOBaseElement(evas, list_right, *it, list_right, "right"); + } + + elm_genlist_realized_items_update(list_left); + elm_genlist_realized_items_update(list_right); +} + +static void _del_list_data_cb(void *data, Evas_Object *obj, void *item) +{ + HomeRoomClickData *d = reinterpret_cast(data); + DELETE_NULL(d); +} + +void ActivityHomeView::setCurrentRoomDetail(Room *room) +{ + //Update top room list from current room type + list list_room_type = CalaosModel::Instance().getHome()->getRoomsForType(room->type); + + Elm_Object_Item *item = NULL; + + list::iterator it = list_room_type.begin(); + for (;it != list_room_type.end();it++) + { + Room *r = *it; + + HomeRoomClickData *data = new HomeRoomClickData; + data->view = this; + data->room = r; + + Elm_Object_Item *_item = elm_list_item_append(list_top, r->name.c_str(), NULL, NULL, _room_list_click, data); + elm_object_item_del_cb_set(_item, _del_list_data_cb); + if (room == r) item = _item; + } + + elm_list_go(list_top); + + if (item) + elm_list_item_selected_set(item, true); +} + +void ActivityHomeView::pagerDragStart() +{ + EmitSignal("show,edge", "calaos"); +} + +void ActivityHomeView::pagerDragStop() +{ + EmitSignal("hide,edge", "calaos"); +} diff --git a/src/bin/calaos_home/views/ActivityHomeView.h b/src/bin/calaos_home/views/ActivityHomeView.h new file mode 100644 index 00000000..8ba5041b --- /dev/null +++ b/src/bin/calaos_home/views/ActivityHomeView.h @@ -0,0 +1,122 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYHOMEVIEW_H +#define ACTIVITYHOMEVIEW_H + +#include + +#include "ActivityView.h" +#include + +#include +#include + +using namespace Utils; + +class ActivityHomeView; +class HomeRoomClickData +{ + public: + ActivityHomeView *view; + Room *room; +}; + +class ActivityHomeView: public ActivityView +{ + protected: + virtual void objectShown(); + virtual void objectHidden(); + + vector dataRoomCallbacks; + + vector chauffages; + vector chauff_change_con; + vector chauff_del_con; + vector rooms; + + Evas_Object *list_top; + Evas_Object *list_left; + Evas_Object *list_right; + + PagingView *page_view; + + int room_selected; + bool mode_detail; + + int pageTimer; + + EdjeObject *pageStatus; + + void resetRooms(); + + void EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + void BackToMainViewCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void ButtonLightsOffCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void ButtonLightsInfoCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void ButtonShuttersDownCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void ButtonShuttersInfoCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void selectPage_cb(); + + void updateChauffage(int pos); + void delChauffage(int pos); + + void pagerDragStart(); + void pagerDragStop(); + + public: + ActivityHomeView(Evas *evas, Evas_Object *parent); + ~ActivityHomeView(); + + void setRoom(string type, int position, IOBase *chauffage); + void hideRoom(int position); + + void addStatusPage(); + void addScenarioPage(list &ios); + void removePage(int p); + int getPageCount(); + int getCurrentPage(); + + void selectPage(int page, double delay = 0.0); + + void EnableLeftButton(); + void DisableLeftButton(); + void EnableRightButton(); + void DisableRightButton(); + + void ShowLoading(); + void HideLoading(); + + virtual void resetView(); + + void setLightsOnText(string txt); + void setShuttersUpText(string txt); + + void clearLists(); + void setCurrentRoomDetail(Room *room); + void changeCurrentRoomDetail(Room *room); + + sigc::signal room_left_click; + sigc::signal room_right_click; + sigc::signal room_click; +}; + +#endif // ACTIVITYHOMEVIEW_H diff --git a/src/bin/calaos_home/views/ActivityKeyboardView.cpp b/src/bin/calaos_home/views/ActivityKeyboardView.cpp new file mode 100644 index 00000000..6caedf9c --- /dev/null +++ b/src/bin/calaos_home/views/ActivityKeyboardView.cpp @@ -0,0 +1,79 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityKeyboardView.h" + +ActivityKeyboardView::ActivityKeyboardView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/keyboard") +{ + setPartText("header.label", "Clavier"); + + keyboard = new KeyboardView(evas, parent); + Swallow(keyboard, "keyboard"); + + textblock = elm_entry_add(parent); + elm_entry_scrollable_set(textblock, true); + Swallow(textblock, "textblock"); + evas_object_show(textblock); + elm_object_focus_set(textblock, true); + + addCallback("button.cleartext", "pressed", sigc::mem_fun(*this, &ActivityKeyboardView::clearTextCb)); + addCallback("button.valid", "pressed", sigc::mem_fun(*this, &ActivityKeyboardView::validInputCb)); +} + +ActivityKeyboardView::~ActivityKeyboardView() +{ + DELETE_NULL(keyboard); + DELETE_NULL_FUNC(evas_object_del, textblock); +} + +void ActivityKeyboardView::resetView() +{ +} + +void ActivityKeyboardView::setMultiline(bool multiline) +{ + if (multiline) + elm_object_style_set(textblock, "calaos/multiline"); + else + elm_object_style_set(textblock, "calaos"); +} + +void ActivityKeyboardView::setSubtitle(string subtitle) +{ + setPartText("module.subtitle", subtitle); +} + +void ActivityKeyboardView::clearTextCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + clearText.emit(); + elm_entry_entry_set(textblock, ""); +} + +void ActivityKeyboardView::validInputCb(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + string val = elm_entry_entry_get(textblock); + validPressed.emit(val); +} + +void ActivityKeyboardView::setText(string t) +{ + elm_entry_entry_set(textblock, t.c_str()); +} diff --git a/src/bin/calaos_home/views/ActivityKeyboardView.h b/src/bin/calaos_home/views/ActivityKeyboardView.h new file mode 100644 index 00000000..dca56a32 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityKeyboardView.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityKeyboardView_H +#define ActivityKeyboardView_H + +#include + +#include "ActivityView.h" +#include "KeyboardView.h" + +using namespace Utils; + +class ActivityKeyboardView: public ActivityView +{ + private: + KeyboardView *keyboard; + Evas_Object *textblock; + + void clearTextCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + void validInputCb(void *data, Evas_Object *_edje, std::string emission, std::string source); + + public: + ActivityKeyboardView(Evas *evas, Evas_Object *parent); + ~ActivityKeyboardView(); + + virtual void resetView(); + + void setMultiline(bool multiline); + void setSubtitle(string subtitle); + void setText(string t); + + sigc::signal clearText; + sigc::signal validPressed; +}; + +#endif // ActivityKeyboardView_H diff --git a/src/bin/calaos_home/views/ActivityMediaMenuView.cpp b/src/bin/calaos_home/views/ActivityMediaMenuView.cpp new file mode 100644 index 00000000..2876c7ef --- /dev/null +++ b/src/bin/calaos_home/views/ActivityMediaMenuView.cpp @@ -0,0 +1,95 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityMediaMenuView.h" + +ActivityMediaMenuView::ActivityMediaMenuView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/media/menu") +{ + int pos = 1; + + if (Utils::get_config_option("enable_media_music") != "false") + addIcon(pos++, "music"); + + if (Utils::get_config_option("enable_media_camera") != "false") + addIcon(pos++, "camera"); + + if (Utils::get_config_option("enable_media_photos") != "false") + addIcon(pos++, "photos"); + +#ifdef HAVE_EWEBKIT + if (Utils::get_config_option("enable_media_web") != "false") + addIcon(pos++, "web"); +#endif + + if (Utils::get_config_option("enable_media_eskiss") != "false") + addIcon(pos++, "eskiss"); +} + +ActivityMediaMenuView::~ActivityMediaMenuView() +{ + for_each(items.begin(), items.end(), Delete()); + items.clear(); +} + +void ActivityMediaMenuView::addIcon(int position, string type) +{ + if (Utils::get_config_option("enable_media_" + type) != "false") + { + EdjeObject *obj = new EdjeObject(theme, evas); + obj->LoadEdje("calaos/icons/menu/media/" + type); + obj->addCallback("menu", "click," + type, sigc::mem_fun(*this, &ActivityMediaMenuView::ItemCallback)); + Swallow(obj, string("icon.") + to_string(position)); + obj->EmitSignal("show", "calaos"); + obj->Show(); + items.push_back(obj); + position++; + } +} + +void ActivityMediaMenuView::ItemCallback(void *data, Evas_Object *edje, string emission, string source) +{ + if (source != "menu") return; + + if (emission == "click,music") + { + menu_item_clicked.emit("music"); + } + else if (emission == "click,camera") + { + menu_item_clicked.emit("camera"); + } + else if (emission == "click,photos") + { + menu_item_clicked.emit("photos"); + } + else if (emission == "click,web") + { + menu_item_clicked.emit("web"); + } + else if (emission == "click,eskiss") + { + menu_item_clicked.emit("eskiss"); + } +} + +void ActivityMediaMenuView::resetView() +{ +} diff --git a/src/bin/calaos_home/views/ActivityMediaMenuView.h b/src/bin/calaos_home/views/ActivityMediaMenuView.h new file mode 100644 index 00000000..198fe8d7 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityMediaMenuView.h @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYMEDIAMENUVIEW_H +#define ACTIVITYMEDIAMENUVIEW_H + +#include + +#include "ActivityView.h" + +using namespace Utils; + +class ActivityMediaMenuView: public ActivityView +{ + private: + list items; + + void addIcon(int position, string type); + + void ItemCallback(void *data, Evas_Object *edje, string emission, string source); + + public: + ActivityMediaMenuView(Evas *evas, Evas_Object *parent); + ~ActivityMediaMenuView(); + + virtual void resetView(); + + virtual string getTitle() { return "Multimédia"; } + + sigc::signal menu_item_clicked; +}; + +#endif // ACTIVITYMEDIAMENUVIEW_H diff --git a/src/bin/calaos_home/views/ActivityMediaView.cpp b/src/bin/calaos_home/views/ActivityMediaView.cpp new file mode 100644 index 00000000..4405e67c --- /dev/null +++ b/src/bin/calaos_home/views/ActivityMediaView.cpp @@ -0,0 +1,46 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityMediaView.h" + +ActivityMediaView::ActivityMediaView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/media") +{ + setPartText("header.label", "Multimédia"); + + contentView = new MainContentView(evas, parent); + Swallow(contentView->getSmartObject(), "calaos.main.content"); + + addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityMediaView::buttonPressed)); +} + +ActivityMediaView::~ActivityMediaView() +{ + DELETE_NULL(contentView) +} + +void ActivityMediaView::resetView() +{ +} + +void ActivityMediaView::buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + button_clicked.emit(source); +} diff --git a/src/bin/calaos_home/views/ActivityMediaView.h b/src/bin/calaos_home/views/ActivityMediaView.h new file mode 100644 index 00000000..4ea3f726 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityMediaView.h @@ -0,0 +1,51 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYMEDIAVIEW_H +#define ACTIVITYMEDIAVIEW_H + +#include + +#include "ActivityView.h" +#include "MainContentView.h" + +using namespace Utils; + +class ActivityMediaView: public ActivityView +{ + private: + MainContentView *contentView; + + void buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + + public: + ActivityMediaView(Evas *evas, Evas_Object *parent); + ~ActivityMediaView(); + + virtual void resetView(); + + void addView(BaseView *view) { contentView->addView(view); } + BaseView *getTopView() { return contentView->getTopView(); } + void removeTopView() { contentView->removeTopView(); } + + sigc::signal button_clicked; +}; + +#endif // ACTIVITYMEDIAVIEW_H diff --git a/src/bin/calaos_home/views/ActivityScenariosView.cpp b/src/bin/calaos_home/views/ActivityScenariosView.cpp new file mode 100644 index 00000000..0af7bb39 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityScenariosView.cpp @@ -0,0 +1,233 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityScenariosView.h" +#include "GenlistItemScenarioSchedule.h" +#include "GenlistItemScenarioHeader.h" + +ActivityScenariosView::ActivityScenariosView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/scenarios"), + view_mode(VIEW_MODE_ALL) +{ + setPartText("header.label", "Gestion des scénarios"); + + addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityScenariosView::buttonPressed)); + + schedule_list = elm_genlist_add(parent); + Swallow(schedule_list, "scenario_schedule.list"); + elm_object_style_set(schedule_list, "calaos"); + elm_genlist_homogeneous_set(schedule_list, true); + evas_object_show(schedule_list); + + scenario_list = elm_genlist_add(parent); + Swallow(scenario_list, "scenario.list"); + elm_object_style_set(scenario_list, "calaos"); + elm_genlist_homogeneous_set(scenario_list, true); + evas_object_show(scenario_list); +} + +ActivityScenariosView::~ActivityScenariosView() +{ + DELETE_NULL_FUNC(evas_object_del, schedule_list); + DELETE_NULL_FUNC(evas_object_del, scenario_list); +} + +void ActivityScenariosView::resetView() +{ +} + +void ActivityScenariosView::ShowLoading() +{ + EmitSignal("show,loading", "calaos"); +} + +void ActivityScenariosView::HideLoading() +{ + EmitSignal("hide,loading", "calaos"); +} + +void ActivityScenariosView::buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (source == "button.calendar") + { + Evas_Object *table = createPaddingTable(evas, parent, 330, 300, 10, 10); + + calendar = elm_calendar_add(parent); + elm_object_style_set(calendar, "calaos"); + + elm_calendar_first_day_of_week_set(calendar, ELM_DAY_MONDAY); + + const char *weekdays[] = { "DIM", "LUN", "MAR", "MER", "JEU", "VEN", "SAM" }; + elm_calendar_weekdays_names_set(calendar, weekdays); + + //Mark sundays + struct tm sunday = { 0, 0, 12, 7, 0, 0, 6, 0, -1, 0, NULL }; + elm_calendar_mark_add(calendar, "checked", &sunday, ELM_CALENDAR_WEEKLY); + elm_calendar_marks_draw(calendar); + + evas_object_size_hint_fill_set(calendar, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(calendar, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(calendar); + + elm_table_pack(table, calendar, 1, 1, 1, 1); + + Evas_Object *popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, table); + elm_object_style_set(popup, "calaos"); + elm_ctxpopup_direction_priority_set(popup, + ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_RIGHT, + ELM_CTXPOPUP_DIRECTION_UP); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); + } + else if (source == "button.create") + { + buttonCreatePressed.emit(); + } + else if (source == "button.list.all") + { + view_mode = VIEW_MODE_ALL; + loadScenarioList(); + } + else if (source == "button.list.light") + { + view_mode = VIEW_MODE_LIGHT; + loadScenarioList(); + } + else if (source == "button.list.volet") + { + view_mode = VIEW_MODE_SHUTTER; + loadScenarioList(); + } + else if (source == "button.list.schedule") + { + view_mode = VIEW_MODE_SCHEDULE; + loadScenarioList(); + } +} + +void ActivityScenariosView::loadScenarioList() +{ + elm_genlist_clear(scenario_list); + GenlistItemScenarioHeader *headerLight = NULL, *headerShutter = NULL, *headerOther = NULL; + + if (view_mode == VIEW_MODE_ALL || + view_mode == VIEW_MODE_SCHEDULE) + { + headerLight = new GenlistItemScenarioHeader(evas, parent, "Scénarios Lumière"); + headerLight->Append(scenario_list); + headerShutter = new GenlistItemScenarioHeader(evas, parent, "Scénarios Volets"); + headerShutter->Append(scenario_list); + headerOther = new GenlistItemScenarioHeader(evas, parent, "Scénarios autre"); + headerOther->Append(scenario_list); + } + else if (view_mode == VIEW_MODE_LIGHT) + { + headerLight = new GenlistItemScenarioHeader(evas, parent, "Scénarios Lumière"); + headerLight->Append(scenario_list); + } + else if (view_mode == VIEW_MODE_SHUTTER) + { + headerShutter = new GenlistItemScenarioHeader(evas, parent, "Scénarios Volets"); + headerShutter->Append(scenario_list); + } + + //populate the scenario list + list::iterator it = CalaosModel::Instance().getScenario()->scenarios.begin(); + for (;it != CalaosModel::Instance().getScenario()->scenarios.end();it++) + { + Scenario *sc = *it; + bool cont = true; + + if (sc->getFirstCategory() == "light" && + (view_mode == VIEW_MODE_ALL || view_mode == VIEW_MODE_LIGHT || view_mode == VIEW_MODE_SCHEDULE)) + { + if (view_mode == VIEW_MODE_SCHEDULE) + { + if (sc->isScheduled()) + cont = false; + } + else + cont = false; + } + + if (sc->getFirstCategory() == "shutter" && + (view_mode == VIEW_MODE_ALL || view_mode == VIEW_MODE_SHUTTER || view_mode == VIEW_MODE_SCHEDULE)) + { + if (view_mode == VIEW_MODE_SCHEDULE) + { + if (sc->isScheduled()) + cont = false; + } + else + cont = false; + } + + if (sc->getFirstCategory() == "other" && + (view_mode == VIEW_MODE_ALL || view_mode == VIEW_MODE_SCHEDULE)) + { + if (view_mode == VIEW_MODE_SCHEDULE) + { + if (sc->isScheduled()) + cont = false; + } + else + cont = false; + } + + if (cont) + continue; + + GenlistItemScenarioSchedule *item = new GenlistItemScenarioSchedule(evas, parent, false, sc); + item->schedule_add_click.connect(sigc::mem_fun(schedule_add_click, &sigc::signal::emit)); + item->schedule_modify_click.connect(sigc::mem_fun(schedule_modify_click, &sigc::signal::emit)); + item->schedule_del_click.connect(sigc::mem_fun(schedule_del_click, &sigc::signal::emit)); + if (sc->getFirstCategory() == "light") + item->InsertAfter(scenario_list, headerLight); + else if (sc->getFirstCategory() == "shutter") + item->InsertAfter(scenario_list, headerShutter); + else + item->InsertAfter(scenario_list, headerOther); + } +} + +void ActivityScenariosView::loadScenarios() +{ + elm_genlist_clear(schedule_list); + //------------TEST schedule list +// for (int i = 0;i < 10;i++) +// { +// GenlistItemScenarioSchedule *item = new GenlistItemScenarioSchedule(evas, parent, true); +// item->Append(schedule_list); +// } + //---------------- + if (CalaosModel::Instance().getScenario()->scenarios.size() > 0) + { + GenlistItemScenarioSchedule *item = new GenlistItemScenarioSchedule(evas, parent, true, *CalaosModel::Instance().getScenario()->scenarios.begin()); + item->Append(schedule_list); + } + + loadScenarioList(); +} diff --git a/src/bin/calaos_home/views/ActivityScenariosView.h b/src/bin/calaos_home/views/ActivityScenariosView.h new file mode 100644 index 00000000..1d9f8d8d --- /dev/null +++ b/src/bin/calaos_home/views/ActivityScenariosView.h @@ -0,0 +1,61 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYSCENARIOSVIEW_H +#define ACTIVITYSCENARIOSVIEW_H + +#include + +#include "ActivityView.h" +#include "CalaosModel.h" + +using namespace Utils; + +class ActivityScenariosView: public ActivityView +{ + private: + Evas_Object *calendar; + Evas_Object *schedule_list, *scenario_list; + + enum { VIEW_MODE_ALL, VIEW_MODE_LIGHT, VIEW_MODE_SHUTTER, VIEW_MODE_SCHEDULE }; + int view_mode; + + void buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + void loadScenarioList(); + + public: + ActivityScenariosView(Evas *evas, Evas_Object *parent); + ~ActivityScenariosView(); + + virtual void resetView(); + + void ShowLoading(); + void HideLoading(); + + void loadScenarios(); + + sigc::signal buttonCreatePressed; + + sigc::signal schedule_add_click; + sigc::signal schedule_modify_click; + sigc::signal schedule_del_click; +}; + +#endif // ACTIVITYSCENARIOSVIEW_H diff --git a/src/bin/calaos_home/views/ActivityScheduleScenarioView.cpp b/src/bin/calaos_home/views/ActivityScheduleScenarioView.cpp new file mode 100644 index 00000000..1417f771 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityScheduleScenarioView.cpp @@ -0,0 +1,189 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityScheduleScenarioView.h" +#include "ApplicationMain.h" +#include "GenlistItemScenarioHeader.h" +#include "GenlistItemScenarioScheduleTime.h" + +ActivityScheduleScenarioView::ActivityScheduleScenarioView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/schedule_scenario"), + schedule_list(NULL), + month_list(NULL) +{ + setPartText("header.label", "Planification horaire"); + + addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityScheduleScenarioView::buttonPressed)); + + schedule_list = elm_genlist_add(parent); + Swallow(schedule_list, "schedule.list"); + elm_object_style_set(schedule_list, "calaos"); + elm_genlist_homogeneous_set(schedule_list, true); + evas_object_show(schedule_list); + + month_list = elm_genlist_add(parent); + Swallow(month_list, "month.list"); + elm_object_style_set(month_list, "calaos"); + elm_genlist_homogeneous_set(month_list, true); + evas_object_show(month_list); + elm_genlist_multi_select_set(month_list, true); + + GenlistItemScenarioHeader *header; + GenlistItemSimple *item; + header = new GenlistItemScenarioHeader(evas, parent, "Mois de l'année"); + header->Append(month_list); + + item = new GenlistItemSimple(evas, parent, "Toute l'année", true, false, NULL, "check"); + item->Append(month_list); + item_all = item; + item_all->setSelected(true); + + item = new GenlistItemSimple(evas, parent, "Janvier", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Février", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Mars", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Avril", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Mai", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Juin", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Juillet", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Aout", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Septembre", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Octobre", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Novembre", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Décembre", true, false, NULL, "check"); + item->Append(month_list); + items_months.push_back(item); + + header = new GenlistItemScenarioHeader(evas, parent, "Périodes prédéfinies"); + header->Append(month_list); + + item = new GenlistItemSimple(evas, parent, "Printemps", true, false, NULL, "check"); + item->Append(month_list); + items_periods.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Eté", true, false, NULL, "check"); + item->Append(month_list); + items_periods.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Automne", true, false, NULL, "check"); + item->Append(month_list); + items_periods.push_back(item); + + item = new GenlistItemSimple(evas, parent, "Hiver", true, false, NULL, "check"); + item->Append(month_list); + items_periods.push_back(item); + + //Set up selection callback + item_all->item_selected.connect(sigc::mem_fun(*this, &ActivityScheduleScenarioView::itemAllYearSelected)); + for (uint i = 0;i < items_months.size();i++) + items_months[i]->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityScheduleScenarioView::itemMonthSelected), items_months[i])); + for (uint i = 0;i < items_periods.size();i++) + items_periods[i]->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &ActivityScheduleScenarioView::itemPeriodSelected), items_periods[i])); +} + +ActivityScheduleScenarioView::~ActivityScheduleScenarioView() +{ + DELETE_NULL_FUNC(evas_object_del, schedule_list); + DELETE_NULL_FUNC(evas_object_del, month_list); +} + +void ActivityScheduleScenarioView::resetView() +{ +} + +void ActivityScheduleScenarioView::buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (source == "button.valid") + { + buttonValidPressed.emit(range_infos); + } +} + +void ActivityScheduleScenarioView::itemAllYearSelected(void *data) +{ + if (item_all->isSelected()) + { + for (uint i = 0;i < items_months.size();i++) + items_months[i]->setSelected(false); + for (uint i = 0;i < items_periods.size();i++) + items_periods[i]->setSelected(false); + } +} + +void ActivityScheduleScenarioView::itemMonthSelected(void *data, GenlistItemSimple *item) +{ + if (!elm_genlist_selected_items_get(month_list)) + { + item_all->setSelected(true); + } + else + item_all->setSelected(false); +} + +void ActivityScheduleScenarioView::itemPeriodSelected(void *data, GenlistItemSimple *item) +{ + if (!elm_genlist_selected_items_get(month_list)) + item_all->setSelected(true); + else + item_all->setSelected(false); +} + +void ActivityScheduleScenarioView::reloadTimeRanges() +{ + //------------TEST schedule list + for (int i = 0;i < 5;i++) + { + GenlistItemScenarioScheduleTime *item = new GenlistItemScenarioScheduleTime(evas, parent); + item->Append(schedule_list); + } + //---------------- +} diff --git a/src/bin/calaos_home/views/ActivityScheduleScenarioView.h b/src/bin/calaos_home/views/ActivityScheduleScenarioView.h new file mode 100644 index 00000000..282194ae --- /dev/null +++ b/src/bin/calaos_home/views/ActivityScheduleScenarioView.h @@ -0,0 +1,62 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityScheduleScenarioView_H +#define ActivityScheduleScenarioView_H + +#include + +#include "ActivityView.h" +#include "CalaosModel.h" +#include "GenlistItemSimple.h" + +using namespace Utils; + +class ActivityScheduleScenarioView: public ActivityView +{ + private: + TimeRangeInfos range_infos; + + Evas_Object *schedule_list, *month_list; + + GenlistItemSimple *item_all; + vector items_months; + vector items_periods; + + void buttonPressed(void *data, Evas_Object *_edje, std::string emission, std::string source); + + void itemAllYearSelected(void *data); + void itemMonthSelected(void *data, GenlistItemSimple *item); + void itemPeriodSelected(void *data, GenlistItemSimple *item); + + void reloadTimeRanges(); + + public: + ActivityScheduleScenarioView(Evas *evas, Evas_Object *parent); + ~ActivityScheduleScenarioView(); + + virtual void resetView(); + + void setTimeRangeInfos(TimeRangeInfos &tr) { range_infos = tr; reloadTimeRanges(); } + + sigc::signal buttonValidPressed; +}; + +#endif // ActivityScheduleScenarioView_H diff --git a/src/bin/calaos_home/views/ActivityView.cpp b/src/bin/calaos_home/views/ActivityView.cpp new file mode 100644 index 00000000..1bbf5904 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityView.cpp @@ -0,0 +1,144 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityView.h" + +#include "ActivityHomeView.h" +#include "ActivityMediaView.h" +#include "ActivityScenariosView.h" +#include "ActivityConfigView.h" +#include "ActivityWidgetsView.h" + +#include "ActivityMediaMenuView.h" +#include "ActivityCameraListView.h" +#include "ActivityCameraSelectView.h" +#include "ActivityAudioListView.h" + +#include "ActivityKeyboardView.h" +#include "ActivityWebView.h" + +#include "ActivityEditScenarioView.h" +#include "ActivityScheduleScenarioView.h" + +static void _elm_button_quit(void *data, Evas_Object *obj, void *event_info) +{ + ActivityView *ac = reinterpret_cast(data); + if (!ac) return; + + ac->_button_quit_clicked(); +} + +ActivityView::ActivityView(Evas *e, Evas_Object *parent): + BaseView(e, parent) +{ +} + +ActivityView::ActivityView(Evas *e, Evas_Object *parent, string collection): + BaseView(e, parent), + box_buttons(NULL), + button_quit(NULL) +{ + try + { + LoadEdje(collection); + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "ActivityView: Can't load edje" << log4cpp::eol; + throw; + } + + if (edje_object_part_exists(edje, "button.quit")) + { + button_quit = edje_object_part_external_object_get(edje, "button.quit"); + evas_object_smart_callback_add(button_quit, "clicked", _elm_button_quit, this); + } +} + +ActivityView::~ActivityView() +{ +} + +void ActivityView::_button_quit_clicked() +{ + activity_quit.emit(); +} + +ActivityView *ActivityViewFactory::CreateView(Evas *evas, Evas_Object *parent, int viewType) +{ + ActivityView *view = NULL; + + try + { + switch (viewType) + { + case ACTIVITY_VIEW_HOME: view = new ActivityHomeView(evas, parent); break; + case ACTIVITY_VIEW_MEDIA: view = new ActivityMediaView(evas, parent); break; + case ACTIVITY_VIEW_SCENARIOS: view = new ActivityScenariosView(evas, parent); break; + case ACTIVITY_VIEW_CONFIG: view = new ActivityConfigView(evas, parent); break; + case ACTIVITY_VIEW_MEDIA_MENU: view = new ActivityMediaMenuView(evas, parent); break; + case ACTIVITY_VIEW_CAMERA_LIST: view = new ActivityCameraListView(evas, parent); break; + case ACTIVITY_VIEW_CAMERA_SELECT: view = new ActivityCameraSelectView(evas, parent); break; + case ACTIVITY_VIEW_AUDIO_LIST: view = new ActivityAudioListView(evas, parent); break; + case ACTIVITY_VIEW_WIDGETS: view = new ActivityWidgetsView(evas, parent); break; + case ACTIVITY_VIEW_KEYBOARD: view = new ActivityKeyboardView(evas, parent); break; + case ACTIVITY_VIEW_WEB: view = new ActivityWebView(evas, parent); break; + case ACTIVITY_VIEW_EDIT_SCENARIO: view = new ActivityEditScenarioView(evas, parent); break; + case ACTIVITY_VIEW_SCHEDULE_SCENARIO: view = new ActivityScheduleScenarioView(evas, parent); break; + default: + case ACTIVITY_VIEW_NONE: break; + } + } + catch (exception const& e) + { + Utils::logger("root") << Priority::CRIT << "ActivityViewFactory: Can't create viewType:" << viewTypeString(viewType) << log4cpp::eol; + throw; + } + + if (!view) + { + Utils::logger("root") << Priority::CRIT << "ActivityViewFactory: Can't create viewType:" << viewTypeString(viewType) << log4cpp::eol; + throw; + } + + return view; +} + +string ActivityViewFactory::viewTypeString(int viewType) +{ + switch (viewType) + { + case ACTIVITY_VIEW_HOME: return "ActivityHomeView"; + case ACTIVITY_VIEW_MEDIA: return "ActivityMediaView"; + case ACTIVITY_VIEW_SCENARIOS: return "ActivityScenariosView"; + case ACTIVITY_VIEW_CONFIG: return "ActivityConfigView"; + case ACTIVITY_VIEW_CAMERA_SELECT: return "ActivityCameraSelectView"; + case ACTIVITY_VIEW_CAMERA_LIST: return "ActivityCameraListView"; + case ACTIVITY_VIEW_AUDIO_LIST: return "ActivityAudioListView"; + case ACTIVITY_VIEW_WIDGETS: return "ActivityWidgetsView"; + case ACTIVITY_VIEW_MEDIA_MENU: return "ActivityMediaMenuView"; + case ACTIVITY_VIEW_KEYBOARD: return "ActivityKeyboardView"; + case ACTIVITY_VIEW_WEB: return "ActivityWebView"; + case ACTIVITY_VIEW_EDIT_SCENARIO: return "ActivityEditScenarioView"; + case ACTIVITY_VIEW_SCHEDULE_SCENARIO: return "ActivityScheduleScenarioView"; + default: + case ACTIVITY_VIEW_NONE: return "NONE"; + } +} diff --git a/src/bin/calaos_home/views/ActivityView.h b/src/bin/calaos_home/views/ActivityView.h new file mode 100644 index 00000000..1cc3151a --- /dev/null +++ b/src/bin/calaos_home/views/ActivityView.h @@ -0,0 +1,71 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYVIEW_H +#define ACTIVITYVIEW_H + +#include + +#include "BaseView.h" + +using namespace Utils; + +class ActivityView: public BaseView +{ + public: + void _button_quit_clicked(); + + protected: + Evas_Object *box_buttons; + Evas_Object *button_quit; + + public: + ActivityView(Evas *evas, Evas_Object *parent); + ActivityView(Evas *evas, Evas_Object *parent, string collection); + virtual ~ActivityView(); + + virtual void resetView() = 0; + + virtual void DisableView() { } + virtual void EnableView() { } + + sigc::signal activity_quit; +}; + +class ActivityViewFactory +{ + private: + static string viewTypeString(int viewType); + + public: + enum { ACTIVITY_VIEW_NONE, ACTIVITY_VIEW_HOME, ACTIVITY_VIEW_MEDIA, + ACTIVITY_VIEW_SCENARIOS, ACTIVITY_VIEW_CONFIG, ACTIVITY_VIEW_WIDGETS, + ACTIVITY_VIEW_MEDIA_MENU, + ACTIVITY_VIEW_CAMERA_LIST, ACTIVITY_VIEW_CAMERA_SELECT, + ACTIVITY_VIEW_AUDIO_LIST, + ACTIVITY_VIEW_KEYBOARD, + ACTIVITY_VIEW_WEB, + ACTIVITY_VIEW_EDIT_SCENARIO, ACTIVITY_VIEW_SCHEDULE_SCENARIO + }; + + static ActivityView *CreateView(Evas *evas, Evas_Object *parent, int viewType); +}; + +#endif // ACTIVITYVIEW_H diff --git a/src/bin/calaos_home/views/ActivityWebView.cpp b/src/bin/calaos_home/views/ActivityWebView.cpp new file mode 100644 index 00000000..07a13bc1 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityWebView.cpp @@ -0,0 +1,230 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityWebView.h" +#include "WebKitError.h" + +#include +#include "ApplicationMain.h" + +#ifdef HAVE_EWEBKIT +#include +#endif + +#define USER_AGENT "Mozilla/5.0 (X11; U; Linux x86; fr) AppleWebKit/536.6 (KHTML, like Gecko, Safari/536.6) Calaos/2.0" +#define DEFAULT_BROWSER_URL "https://127.0.0.1/calaos_bookmarks/" + +static void _web_load_started(void *data, Evas_Object *obj, void *event_info) +{ + ActivityWebView *view = reinterpret_cast(data); + if (!view) return; + + view->_webLoadStarted(); +} + +static void _web_load_progress(void *data, Evas_Object *obj, void *event_info) +{ + ActivityWebView *view = reinterpret_cast(data); + if (!view) return; + + view->_webLoadProgress(); +} + +static void _web_load_finished(void *data, Evas_Object *obj, void *event_info) +{ + ActivityWebView *view = reinterpret_cast(data); + if (!view) return; + + Elm_Web_Frame_Load_Error *error = NULL; + + if (event_info) + error = reinterpret_cast(event_info); + + view->_webLoadFinished(error); +} + +static void _web_title_changed(void *data, Evas_Object *obj, void *event_info) +{ + ActivityWebView *view = reinterpret_cast(data); + if (!view) return; + + view->_webTitleChanged(); +} + +static void _web_inputmethod_changed(void *data, Evas_Object *obj, void *event_info) +{ + ActivityWebView *view = reinterpret_cast(data); + if (!view) return; + + bool enabled = (bool)event_info; + + view->_webInputMethodChanged(enabled); +} + +ActivityWebView::ActivityWebView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/web") +{ + setPartText("header.label", "Navigateur Web"); + + keyboard = new KeyboardView(evas, parent); + Swallow(keyboard, "keyboard"); + + if (elm_need_web()) + { + web = elm_web_add(parent); + Swallow(web, "webkit"); + evas_object_show(web); + elm_object_focus_set(web, true); + + elm_web_useragent_set(web, USER_AGENT); + elm_web_inwin_mode_set(web, true); + + evas_object_smart_callback_add(web, "load,started", _web_load_started, this); + evas_object_smart_callback_add(web, "load,progress", _web_load_progress, this); + evas_object_smart_callback_add(web, "load,finished", _web_load_finished, this); + evas_object_smart_callback_add(web, "load,error", _web_load_finished, this); + evas_object_smart_callback_add(web, "title,changed", _web_title_changed, this); + evas_object_smart_callback_add(web, "inputmethod,changed", _web_inputmethod_changed, this); + +#ifdef HAVE_EWEBKIT + Evas_Object *eview = elm_web_webkit_view_get(web); + ewk_view_setting_enable_auto_resize_window_set(eview, false); +#endif + + goToCallback(DEFAULT_BROWSER_URL); + } + + addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityWebView::buttonCallback)); +} + +ActivityWebView::~ActivityWebView() +{ + DELETE_NULL(keyboard); + DELETE_NULL_FUNC(evas_object_del, web); +} + +void ActivityWebView::resetView() +{ +} + +void ActivityWebView::_webLoadStarted() +{ + EmitSignal("start,loading", "calaos"); +} + +void ActivityWebView::_webLoadProgress() +{ + setDragValue("progress.level", elm_web_load_progress_get(web), 0.0); + + string t = to_string((int)(elm_web_load_progress_get(web) * 100)) + " %"; + setPartText("progress.text", t); +} + +void ActivityWebView::_webLoadFinished(Elm_Web_Frame_Load_Error *error) +{ + EmitSignal("hide,keyboard", "calaos"); + EmitSignal("stop,loading", "calaos"); + + if (error && !error->is_cancellation) + { +#ifdef HAVE_EWEBKIT + string t = WEBKIT_ERROR_HTML; + replace_str(t, "{FAILING_URL}", error->failing_url); + replace_str(t, "{DESC}", error->description); + + Evas_Object *eview = elm_web_webkit_view_get(web); + Evas_Object *frame = ewk_view_frame_main_get(eview); + ewk_frame_contents_set(frame, + t.c_str(), + t.length(), + "text/html", + "UTF-8", + error->failing_url); +#endif + } +} + +void ActivityWebView::_webTitleChanged() +{ + const char *t = elm_web_title_get(web); + + if (t) setPartText("page.title", t); +} + +void ActivityWebView::_webInputMethodChanged(bool en) +{ + if (en) + EmitSignal("show,keyboard", "calaos"); + else + EmitSignal("hide,keyboard", "calaos"); +} + +void ActivityWebView::buttonCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (source == "button.back") + elm_web_back(web); + else if (source == "button.forward") + elm_web_forward(web); + else if (source == "button.reload") + elm_web_reload_full(web); + else if (source == "button.stop") + elm_web_stop(web); + else if (source == "button.forward") + elm_web_forward(web); + else if (source == "button.home") + goToCallback(DEFAULT_BROWSER_URL); + else if (source == "button.go") + { + ApplicationMain::Instance().ShowKeyboard("Entrez une URL ci-dessous", + sigc::mem_fun(*this, &ActivityWebView::goToCallback), + false, + elm_web_uri_get(web)); + } + else if (source == "button.bookmark") + { + string url = elm_web_uri_get(web); + + string _url = DEFAULT_BROWSER_URL; + _url += "Bookmark.php?new=" + url_encode(url); + _url += "&title=" + url_encode(elm_web_title_get(web)); + _url += "&thumb_file=/tmp/thumb.png"; + + setDragValue("progress.level", 0.0, 0.0); + setPartText("progress.text", "Saving..."); + EmitSignal("saving,bookmark", "calaos"); + + FileDownloader *fdownloader = new FileDownloader(_url, "/dev/null", true); + fdownloader->Start(); + } +} + +void ActivityWebView::goToCallback(string text) +{ + string url; + + remove_tag(text, "<", ">"); + if (text.substr(0, 7) != "http://" && text.substr(0, 8) != "https://") + url = "http://"; + + url += text; + + elm_web_uri_set(web, url.c_str()); + elm_object_focus_set(web, true); +} diff --git a/src/bin/calaos_home/views/ActivityWebView.h b/src/bin/calaos_home/views/ActivityWebView.h new file mode 100644 index 00000000..8a896247 --- /dev/null +++ b/src/bin/calaos_home/views/ActivityWebView.h @@ -0,0 +1,55 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ActivityWebView_H +#define ActivityWebView_H + +#include + +#include "ActivityView.h" +#include "KeyboardView.h" + +using namespace Utils; + +class ActivityWebView: public ActivityView +{ + private: + KeyboardView *keyboard; + Evas_Object *web; + + void buttonCallback(void *data, Evas_Object *edje_object, string emission, string source); + void goToCallback(string url); + + public: + ActivityWebView(Evas *evas, Evas_Object *parent); + ~ActivityWebView(); + + virtual void resetView(); + + + //Used by C-Callbacks + void _webLoadStarted(); + void _webLoadProgress(); + void _webLoadFinished(Elm_Web_Frame_Load_Error *error); + void _webTitleChanged(); + void _webInputMethodChanged(bool en); +}; + +#endif // ActivityWebView_H diff --git a/src/bin/calaos_home/views/ActivityWidgetsView.cpp b/src/bin/calaos_home/views/ActivityWidgetsView.cpp new file mode 100644 index 00000000..06dda00d --- /dev/null +++ b/src/bin/calaos_home/views/ActivityWidgetsView.cpp @@ -0,0 +1,280 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "ActivityWidgetsView.h" +#include + +ActivityWidgetsView::ActivityWidgetsView(Evas *e, Evas_Object *parent): + ActivityView(e, parent, "calaos/page/widgets") +{ + clipper = evas_object_rectangle_add(evas); + evas_object_color_set(clipper, 0, 0, 0, 0); + evas_object_show(clipper); + + Swallow(clipper, "widgets.swallow", true); + + //Create a temporary dir for modules + if (ecore_file_is_dir("/tmp/calaos_widgets")) + ecore_file_recursive_rm("/tmp/calaos_widgets"); + + ecore_file_mkpath("/tmp/calaos_widgets"); + + //add search paths for python modules + ModuleManager::Instance().addPath("../calaos_modules/build/calaos_modules"); + ModuleManager::Instance().addPath("/usr/share/calaos/modules"); + ModuleManager::Instance().addPath("/mnt/ext3/calaos/modules"); + ModuleManager::Instance().SearchModules(); + + LoadWidgets(); +} + +ActivityWidgetsView::~ActivityWidgetsView() +{ + for_each(widgets.begin(), widgets.end(), Delete()); + widgets.clear(); + + if (timer) delete timer; + timer = NULL; +} + +void ActivityWidgetsView::resetView() +{ + EmitSignal("normal", "calaos"); +} + +void ActivityWidgetsView::dimView() +{ + EmitSignal("fade", "calaos"); +} + +void ActivityWidgetsView::TimerTick() +{ +/* + time_t tt = time(NULL); + struct tm *t = localtime(&tt); + + if (t->tm_mon == 11) //december + { + if (t->tm_mday >= 22 && !xmas_widget) + { + //Create the Xmas widget + xmas_widget = new XmasWidget(theme, evas, xmas_def, "xmas"); + evas_object_clip_set(xmas_widget->get_edje(), clipper); + evas_object_color_set(clipper, 255, 255, 255, 255); + xmas_widget->Show(); + } + } + + if (t->tm_mon == 0) //january + { + if (t->tm_mday < 4 && !xmas_widget) + { + //Create the Xmas widget + xmas_widget = new XmasWidget(theme, evas, xmas_def, "xmas"); + evas_object_clip_set(xmas_widget->get_edje(), clipper); + evas_object_color_set(clipper, 255, 255, 255, 255); + xmas_widget->Show(); + } + + if (t->tm_mday >= 4 && xmas_widget) + { + delete xmas_widget; + xmas_widget = NULL; + if (widgets.size() <= 0) + evas_object_color_set(clipper, 255, 255, 255, 0); + } + } +*/ +} + +void ActivityWidgetsView::DeleteWidget(Widget *w) +{ + //delete the specified widget instance + for (uint i = 0;i < widgets.size();i++) + { + if (w == widgets[i]) + { + delete w; + widgets.erase(std::remove(widgets.begin(), widgets.end(), w), widgets.end()); + + SaveWidgets(); + } + } + + if (widgets.size() <= 0/* && !xmas_widget*/) + evas_object_color_set(clipper, 255, 255, 255, 0); +} + +void ActivityWidgetsView::DeleteAllWidgets() +{ + for_each(widgets.begin(), widgets.end(), Delete()); + widgets.clear(); + SaveWidgets(); + //if (!xmas_widget) evas_object_color_set(clipper, 255, 255, 255, 0); + evas_object_color_set(clipper, 0, 0, 0, 0); +} + +void ActivityWidgetsView::EditMode() +{ + for (uint i = 0;i < widgets.size();i++) + { + widgets[i]->EditMode(); + } +} + +void ActivityWidgetsView::NormalMode() +{ + for (uint i = 0;i < widgets.size();i++) + { + widgets[i]->NormalMode(); + } +} + +void ActivityWidgetsView::_AddWidget(Widget *o) +{ + widgets.push_back(o); + evas_object_clip_set(o->getEvasObject(), clipper); + evas_object_color_set(clipper, 255, 255, 255, 255); +} + +void ActivityWidgetsView::LoadWidgets() +{ + std::string file = WIDGET_CONFIG; + TiXmlDocument document(file); + + if (!document.LoadFile()) + { + Utils::logger("root") << Priority::ERROR << "There was a parse error in " << file << log4cpp::eol; + Utils::logger("root") << Priority::ERROR << document.ErrorDesc() << log4cpp::eol; + Utils::logger("root") << Priority::ERROR << "In file " << file << " At line " << document.ErrorRow() << log4cpp::eol; + + //force save of file + SaveWidgets(); + } + else + { + TiXmlHandle docHandle(&document); + + TiXmlElement *node = docHandle.FirstChildElement("calaos:widgets").FirstChildElement("calaos:widget").ToElement(); + for(; node; node = node->NextSiblingElement()) + { + if (node->ValueStr() == "calaos:widget" && + node->Attribute("id") && + node->Attribute("type") && + node->Attribute("posx") && + node->Attribute("posy") && + node->Attribute("width") && + node->Attribute("height")) + { + string type, id; + + type = node->Attribute("type"); + id = node->Attribute("id"); + + int x, y, w, h; + from_string(node->Attribute("posx"), x); + from_string(node->Attribute("posy"), y); + from_string(node->Attribute("width"), w); + from_string(node->Attribute("height"), h); + + ModuleDef t; + vector mods = ModuleManager::Instance().getModules(); + for (uint i = 0;i < mods.size();i++) + { + if (mods[i].mod_fname == type) + { + t = mods[i]; + AddWidget(t, x, y, w, h, id); + break; + } + } + + Show(); + } + } + + } + + //Check each 6 hours + if (!timer) timer = new EcoreTimer(60.0 * 6.0, (sigc::slot)sigc::mem_fun(*this, &ActivityWidgetsView::TimerTick) ); + TimerTick(); +} + +void ActivityWidgetsView::SaveWidgets() +{ + TiXmlDocument document; + TiXmlDeclaration *decl = new TiXmlDeclaration("1.0", "UTF-8", ""); + TiXmlElement *rootnode = new TiXmlElement("calaos:widgets"); + rootnode->SetAttribute("xmlns:calaos", "http://www.calaos.fr"); + document.LinkEndChild(decl); + document.LinkEndChild(rootnode); + + for (int i = 0;i < (int)widgets.size();i++) + { + widgets[i]->Save(rootnode); + } + + string file = WIDGET_CONFIG; + document.SaveFile(file); +} + +bool ActivityWidgetsView::AddWidget(ModuleDef &type, int x, int y, int w, int h, string id) +{ + for (uint i = 0;i < widgets.size();i++) + { + if (widgets[i]->getId() == id) id = ""; + } + + for (int nid = 0;nid < 9999;nid++) + { + bool failed = false; + for (uint i = 0;i < widgets.size();i++) + { + if (widgets[i]->getId() == to_string(nid)) + failed = true; + } + + if (!failed) + { + id = to_string(nid); + break; + } + } + + //create new widget + try + { + Widget *widget = new Widget(theme, evas, type, id, parent, this); + _AddWidget(widget); + widget->Move(x, y); + widget->Resize(w, h); + widget->Show(); + } + catch(const std::exception &e) + { + Utils::logger("module") << Priority::ERROR << "ActivityWidgetsView: Error creating widget, " << + e.what() << log4cpp::eol; + return false; + } + + SaveWidgets(); + + return true; +} diff --git a/src/bin/calaos_home/views/ActivityWidgetsView.h b/src/bin/calaos_home/views/ActivityWidgetsView.h new file mode 100644 index 00000000..ba2251fb --- /dev/null +++ b/src/bin/calaos_home/views/ActivityWidgetsView.h @@ -0,0 +1,74 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef ACTIVITYWIDGETSVIEW_H +#define ACTIVITYWIDGETSVIEW_H + +#include +#include "ActivityView.h" +#include +#include + +using namespace Utils; + +class ActivityWidgetsView: public ActivityView +{ + private: + Evas_Object *clipper; + + vector widgets; + + //timer to do some maintenance stuff + //like showing/hiding xmas widget + EcoreTimer *timer; + +// ModuleDef xmas_def; +// XmasWidget *xmas_widget; + + void _AddWidget(Widget *o); + void TimerTick(); + + public: + ActivityWidgetsView(Evas *evas, Evas_Object *parent); + ~ActivityWidgetsView(); + + virtual void resetView(); + + void dimView(); + + //Edje callbacks for widgets, so manager can delete them + void Callback(void *data, Evas_Object *edje, std::string emission, std::string source); + + void EditMode(); + void NormalMode(); + void ResetPosition() { for (uint i = 0;i < widgets.size();i++) widgets[i]->Reset(); } + void SaveWidgets(); + + void LoadWidgets(); + + bool AddWidget(ModuleDef &mtype, int x, int y, int w = 0, int h = 0, string id = ""); + void DeleteWidget(Widget *w); + void DeleteAllWidgets(); + + int size() { return widgets.size(); } + Widget *getWidget(int i) { return widgets[i]; } +}; + +#endif // ACTIVITYWIDGETSVIEW_H diff --git a/src/bin/calaos_home/views/BaseView.cpp b/src/bin/calaos_home/views/BaseView.cpp new file mode 100644 index 00000000..b2a257f5 --- /dev/null +++ b/src/bin/calaos_home/views/BaseView.cpp @@ -0,0 +1,41 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "BaseView.h" + +#include "ApplicationMain.h" + +BaseView::BaseView(Evas *e, Evas_Object *p): + EdjeObject(ApplicationMain::getTheme(), e), + parent(p), + controller(NULL) +{ + evas_object_data_set(edje, "BaseView", this); +} + +BaseView::~BaseView() +{ + view_deleted.emit(); +} + +void BaseView::objectDeleted() +{ + Utils::logger("root") << Priority::DEBUG << "BaseView: Edje object deleted (" << collection << ")" << log4cpp::eol; +} diff --git a/src/bin/calaos_home/views/BaseView.h b/src/bin/calaos_home/views/BaseView.h new file mode 100644 index 00000000..3a741cc4 --- /dev/null +++ b/src/bin/calaos_home/views/BaseView.h @@ -0,0 +1,61 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef BASEVIEW_H +#define BASEVIEW_H + +#include "config.h" + +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "EdjeObject.h" + +#include + +using namespace Utils; + +class ActivityController; +class BaseView: public EdjeObject +{ + protected: + Evas_Object *parent; + + virtual void objectDeleted(); + + public: + BaseView(Evas *evas, Evas_Object *parent); + virtual ~BaseView(); + + virtual string getTitle() { return "None"; } + + sigc::signal view_deleted; + + ActivityController *controller; +}; + +#endif // BASEVIEW_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbum.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbum.cpp new file mode 100644 index 00000000..fbbcc43d --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbum.cpp @@ -0,0 +1,143 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemAlbum.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemAlbum, Play) +ITEM_BUTTON_CALLBACK(GenlistItemAlbum, Add) + +GenlistItemAlbum::GenlistItemAlbum(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _item_id, int request_type, int _command_id, void *data): + GenlistItemBase(_evas, _parent, "browser/album", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_id(_item_id), + in_query(false), + cover_downloaded(false), + reqtype(request_type), + command_id(_command_id) +{ +} + +GenlistItemAlbum::~GenlistItemAlbum() +{ +} + +string GenlistItemAlbum::getLabelItem(Evas_Object *obj, string part) +{ + if (!in_query) + { + switch (reqtype) + { + case ALBUM_LIST: player->getDBAlbumItem(item_id, sigc::mem_fun(*this, &GenlistItemAlbum::albumItemGet_cb)); break; + case ALBUM_ARTIST: player->getDBAlbumArtistItem(item_id, command_id, sigc::mem_fun(*this, &GenlistItemAlbum::albumItemGet_cb)); break; + case ALBUM_YEAR: player->getDBAlbumYearItem(item_id, command_id, sigc::mem_fun(*this, &GenlistItemAlbum::albumItemGet_cb)); break; + } + + in_query = true; + } + + if (part == "album.text") + { + if (label_album == "") + return "Chargement ..."; + else + return label_album; + } + else if (part == "artist.text") + return label_artist; + else if (part == "year.text") + return label_year; + + return ""; +} + +Evas_Object *GenlistItemAlbum::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "calaos.cover" && + cover_downloaded && + ecore_file_exists(cover_fname.c_str())) + { + o = elm_icon_add(parent); + elm_image_file_set(o, cover_fname.c_str(), NULL); + elm_image_preload_disabled_set(o, false); + + elm_object_item_signal_emit(item, "show,cover", "calaos"); + } + + return o; +} + +void GenlistItemAlbum::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_ALBUM, item_infos["id"]); +} + +void GenlistItemAlbum::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_ALBUM, item_infos["id"]); +} + +void GenlistItemAlbum::albumItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + label_album = infos["name"]; + label_artist = infos["artist"]; + label_year = infos["year"]; + + player->getDBAlbumCoverItem(infos, sigc::mem_fun(*this, &GenlistItemAlbum::albumItemCoverGet_cb)); + + elm_genlist_item_update(item); +} + +void GenlistItemAlbum::albumItemCoverGet_cb(Params &res) +{ + if (res["filename"] == "") + return; + + if (!ecore_file_exists(res["filename"].c_str())) + return; + + cover_fname = res["filename"]; + cover_downloaded = true; + elm_genlist_item_update(item); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbum.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbum.h new file mode 100644 index 00000000..593acf8a --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbum.h @@ -0,0 +1,62 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GENLISTITEMALBUM_H +#define GENLISTITEMALBUM_H + +#include +#include + +using namespace Utils; + +class GenlistItemAlbum: public GenlistItemBase +{ + private: + string label_album, label_artist, label_year; + AudioPlayer *player; + int item_id; + Params item_infos; + bool in_query; + string cover_fname; + bool cover_downloaded; + int reqtype; + int command_id; + + void albumItemGet_cb(Params &infos); + void albumItemCoverGet_cb(Params &res); + + public: + enum { ALBUM_LIST, ALBUM_ARTIST, ALBUM_YEAR, ALBUM_GENRE }; + + GenlistItemAlbum(Evas *evas, Evas_Object *parent, AudioPlayer *player, int item_id, int request_type, int _command_id = 0, void *data = NULL); + virtual ~GenlistItemAlbum(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + + int getItemId() { return item_id; } + Params getItemInfos() { return item_infos; } +}; + +#endif // GENLISTITEMALBUM_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbumHeader.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbumHeader.cpp new file mode 100644 index 00000000..8012f5d4 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbumHeader.cpp @@ -0,0 +1,154 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemAlbumHeader.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemAlbumHeader, Play) +ITEM_BUTTON_CALLBACK(GenlistItemAlbumHeader, Add) + +GenlistItemAlbumHeader::GenlistItemAlbumHeader(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, Params &_album_infos, int _album_id, void *data): + GenlistItemBase(_evas, _parent, "browser/album_header", ELM_GENLIST_ITEM_GROUP, data), + player(_player), + album_infos(_album_infos), + album_id(_album_id), + in_query(false), + cover_downloaded(false), + dltimer(NULL) +{ +} + +GenlistItemAlbumHeader::~GenlistItemAlbumHeader() +{ + DELETE_NULL(dltimer); +} + +string GenlistItemAlbumHeader::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (part == "text") + { + string album = "Album inconnu"; + if (album_infos.Exists("name")) album = album_infos["name"]; + text = album; + } + else if (part == "text.artist") + { + if (album_infos.Exists("artist")) + text = album_infos["artist"]; + else + text = "Na"; + } + else if (part == "text.album") + { + if (album_infos.Exists("name")) + text = album_infos["name"]; + else + text = "Na"; + } + else if (part == "text.year") + { + if (album_infos.Exists("year")) + text = album_infos["year"]; + else + text = "Na"; + } + else if (part == "text.count") + { + if (album_infos.Exists("count")) + text = album_infos["count"]; + else + text = "Na"; + } + + return text; +} + +Evas_Object *GenlistItemAlbumHeader::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/action_button/label"); + elm_object_text_set(o, "Ajouter"); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "calaos.cover") + { + if (cover_downloaded && + ecore_file_exists(cover_fname.c_str())) + { + o = elm_icon_add(parent); + elm_image_file_set(o, cover_fname.c_str(), NULL); + elm_image_preload_disabled_set(o, false); + + elm_object_item_signal_emit(item, "show,cover", "calaos"); + } + else + { + if (!dltimer) + { + dltimer = new EcoreTimer(0.2, (sigc::slot) + sigc::bind(sigc::mem_fun(*player, &AudioPlayer::getDBAlbumCoverItem), + album_infos, sigc::mem_fun(*this, &GenlistItemAlbumHeader::albumItemCoverGet_cb), AudioPlayer::AUDIO_COVER_SIZE_MEDIUM)); + } + } + } + + return o; +} + +void GenlistItemAlbumHeader::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_ALBUM, album_infos["id"]); +} + +void GenlistItemAlbumHeader::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_ALBUM, album_infos["id"]); +} + +void GenlistItemAlbumHeader::albumItemCoverGet_cb(Params &res) +{ + DELETE_NULL(dltimer); + if (res["filename"] == "") + return; + + if (!ecore_file_exists(res["filename"].c_str())) + return; + + cover_fname = res["filename"]; + cover_downloaded = true; + + elm_genlist_item_fields_update(item, "calaos.cover", ELM_GENLIST_ITEM_FIELD_CONTENT); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbumHeader.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbumHeader.h new file mode 100644 index 00000000..97f1bc54 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemAlbumHeader.h @@ -0,0 +1,56 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemAlbumHeader_H +#define GenlistItemAlbumHeader_H + +#include +#include + +using namespace Utils; + +class GenlistItemAlbumHeader: public GenlistItemBase +{ + private: + AudioPlayer *player; + Params album_infos; + int album_id; + bool in_query; + string cover_fname; + bool cover_downloaded; + + EcoreTimer *dltimer; + + void albumItemGet_cb(Params &infos); + void albumItemCoverGet_cb(Params &res); + + public: + GenlistItemAlbumHeader(Evas *evas, Evas_Object *parent, AudioPlayer *player, Params &album_infos, int album_id, void *data = NULL); + virtual ~GenlistItemAlbumHeader(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); +}; + +#endif // GenlistItemAlbumHeader_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemArtist.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemArtist.cpp new file mode 100644 index 00000000..25cf19e1 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemArtist.cpp @@ -0,0 +1,115 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemArtist.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemArtist, Play) +ITEM_BUTTON_CALLBACK(GenlistItemArtist, Add) + +GenlistItemArtist::GenlistItemArtist(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _item_id, int request_type, int _command_id, void *data): + GenlistItemBase(_evas, _parent, "browser/default", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_id(_item_id), + in_query(false), + reqtype(request_type), + command_id(_command_id) +{ +} + +GenlistItemArtist::~GenlistItemArtist() +{ +} + +string GenlistItemArtist::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!in_query) + { + switch (reqtype) + { + case ARTIST_LIST: player->getDBArtistItem(item_id, sigc::mem_fun(*this, &GenlistItemArtist::artistItemGet_cb)); break; + case ARTIST_GENRE: player->getDBArtistGenreItem(item_id, command_id, sigc::mem_fun(*this, &GenlistItemArtist::artistItemGet_cb)); break; + } + + in_query = true; + } + + if (part == "text") + { + if (item_infos.size() <= 0) + text = "Chargement..."; + else + text = item_infos["name"]; + } + + return text; +} + +Evas_Object *GenlistItemArtist::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), "calaos/icons/genlist/note_on"); + } + + return o; +} + +void GenlistItemArtist::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_ARTIST, item_infos["id"]); +} + +void GenlistItemArtist::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_ARTIST, item_infos["id"]); +} + +void GenlistItemArtist::artistItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemArtist.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemArtist.h new file mode 100644 index 00000000..e22c77d5 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemArtist.h @@ -0,0 +1,58 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemArtist_H +#define GenlistItemArtist_H + +#include +#include + +using namespace Utils; + +class GenlistItemArtist: public GenlistItemBase +{ + private: + AudioPlayer *player; + int item_id; + Params item_infos; + bool in_query; + int reqtype; + int command_id; + + void artistItemGet_cb(Params &infos); + + public: + enum { ARTIST_LIST, ARTIST_GENRE }; + + GenlistItemArtist(Evas *evas, Evas_Object *parent, AudioPlayer *player, int item_id, int request_type, int _command_id = 0, void *data = NULL); + virtual ~GenlistItemArtist(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + + int getItemId() { return item_id; } + Params getItemInfos() { return item_infos; } +}; + +#endif // GenlistItemArtist_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemBase.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemBase.cpp new file mode 100644 index 00000000..565b60ac --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemBase.cpp @@ -0,0 +1,226 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemBase.h" + +static Evas_Object *_item_part_get(void *data, Evas_Object *obj, const char *part); +static void _item_delete(void *data, Evas_Object *obj); +static Eina_Bool _item_state(void *data, Evas_Object *obj, const char *part); +static char *_item_label(void *data, Evas_Object *obj, const char *part); +static void _item_sel_cb(void *data, Evas_Object *obj, void *event_info); + +GenlistItemBase::GenlistItemBase(Evas *_evas, Evas_Object *_parent, string _style, Elm_Genlist_Item_Type _flags, void *select_user_data): + evas(_evas), + parent(_parent), + genlist(NULL), + item(NULL), + style(_style), + user_data(select_user_data), + flags(_flags), + autodel_userdata(NULL) +{ + item_class.item_style = style.c_str(); + item_class.func.text_get = _item_label; + item_class.func.content_get = _item_part_get; + item_class.func.state_get = _item_state; + item_class.func.del = _item_delete; +} + +GenlistItemBase::~GenlistItemBase() +{ + if (autodel_userdata) + { + (*autodel_userdata)(user_data); + delete autodel_userdata; + } + + Utils::logger("root") << Priority::DEBUG << "GenlistItemBase: item deleted" << log4cpp::eol; +} + +void GenlistItemBase::Append(Evas_Object *_genlist, GenlistItemBase *gparent) +{ + genlist = _genlist; + item = elm_genlist_item_append(genlist, + &item_class, + this, + (gparent)?gparent->item:NULL, /* parent item */ + flags, + _item_sel_cb, /* select function */ + this); /* select function data */ + elm_object_item_data_set(item, this); + itemAdded(); +} + +void GenlistItemBase::Prepend(Evas_Object *_genlist, GenlistItemBase *gparent) +{ + genlist = _genlist; + item = elm_genlist_item_prepend(genlist, + &item_class, + this, + (gparent)?gparent->item:NULL, /* parent item */ + flags, + _item_sel_cb, /* select function */ + this); /* select function data */ + elm_object_item_data_set(item, this); + itemAdded(); +} + +void GenlistItemBase::InsertBefore(Evas_Object *_genlist, GenlistItemBase *before, GenlistItemBase *gparent) +{ + genlist = _genlist; + item = elm_genlist_item_insert_before(genlist, + &item_class, + this, + (gparent)?gparent->item:NULL, /* parent item */ + before->item, + flags, + _item_sel_cb, /* select function */ + this); /* select function data */ + elm_object_item_data_set(item, this); + itemAdded(); +} + +void GenlistItemBase::InsertAfter(Evas_Object *_genlist, GenlistItemBase *after, GenlistItemBase *gparent) +{ + genlist = _genlist; + item = elm_genlist_item_insert_after(genlist, + &item_class, + this, + (gparent)?gparent->item:NULL, /* parent item */ + after->item, + flags, + _item_sel_cb, /* select function */ + this); /* select function data */ + elm_object_item_data_set(item, this); + itemAdded(); +} + +void GenlistItemBase::ShowItem(Elm_Genlist_Item_Scrollto_Type type) +{ + elm_genlist_item_show(item, type); +} + +void GenlistItemBase::BringInItem(Elm_Genlist_Item_Scrollto_Type type) +{ + elm_genlist_item_bring_in(item, type); +} + +Evas_Object *GenlistItemBase::getPartItem(Evas_Object *obj, string part) +{ + return NULL; +} + +string GenlistItemBase::getLabelItem(Evas_Object *obj, string part) +{ + return "none"; +} + +bool GenlistItemBase::getStateItem(Evas_Object *obj, string part) +{ + return false; +} + +void GenlistItemBase::itemEmitSignal(string signal, string source) +{ + if (!item) return; + + elm_object_item_signal_emit(item, signal.c_str(), source.c_str()); +} + +void GenlistItemBase::emitSelectedSignal() +{ + item_selected.emit(user_data); +} + +GenlistItemBase * GenlistItemBase::getPreviousItem() +{ + Elm_Object_Item *it = elm_genlist_item_prev_get(item); + if (!it) return NULL; + GenlistItemBase *prev = reinterpret_cast(elm_object_item_data_get(it)); + return prev; +} + +GenlistItemBase * GenlistItemBase::getNextItem() +{ + Elm_Object_Item *it = elm_genlist_item_next_get(item); + if (!it) return NULL; + GenlistItemBase *next = reinterpret_cast(elm_object_item_data_get(it)); + return next; +} + +Evas_Object *_item_part_get(void *data, Evas_Object *obj, const char *part) +{ + GenlistItemBase *item = reinterpret_cast(data); + if (!item) + { + Utils::logger("home") << Priority::ERROR << "GenlistItemBase : _item_part_get(): Can't cast data !" << log4cpp::eol; + return NULL; + } + + return item->getPartItem(obj, part); +} + +void _item_delete(void *data, Evas_Object *obj) +{ + GenlistItemBase *item = reinterpret_cast(data); + if (!item) + { + Utils::logger("home") << Priority::ERROR << "GenlistItemBase : _item_delete(): Can't cast data !" << log4cpp::eol; + return; + } + + delete item; +} + +Eina_Bool _item_state(void *data, Evas_Object *obj, const char *part) +{ + GenlistItemBase *item = reinterpret_cast(data); + if (!item) + { + Utils::logger("home") << Priority::ERROR << "GenlistItemBase : _item_state(): Can't cast data !" << log4cpp::eol; + return false; + } + + return item->getStateItem(obj, part); +} + +char *_item_label(void *data, Evas_Object *obj, const char *part) +{ + GenlistItemBase *item = reinterpret_cast(data); + if (!item) + { + Utils::logger("home") << Priority::ERROR << "GenlistItemBase : _item_label(): Can't cast data !" << log4cpp::eol; + return NULL; + } + + return strdup(item->getLabelItem(obj, part).c_str()); +} + +void _item_sel_cb(void *data, Evas_Object *obj, void *event_info) +{ + GenlistItemBase *item = reinterpret_cast(data); + if (!item) + { + Utils::logger("home") << Priority::ERROR << "GenlistItemBase : _item_sel_cb(): Can't cast data !" << log4cpp::eol; + return; + } + item->emitSelectedSignal(); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemBase.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemBase.h new file mode 100644 index 00000000..92b5a039 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemBase.h @@ -0,0 +1,92 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GENLISTITEMBASE_H +#define GENLISTITEMBASE_H + +#include +#include + +using namespace Utils; + +//This macro is used to add a C callback for elementary buttons on items +#define ITEM_BUTTON_CALLBACK(_class, it_name) \ +static void _item_button_##it_name(void *data, Evas_Object *obj, void *event_info) \ +{ _class *c = reinterpret_cast<_class *>(data); if (data) c->buttonClick##it_name(); } + +class GenlistItemBase: public sigc::trackable +{ + protected: + Evas *evas; + Evas_Object *parent; + Evas_Object *genlist; + + Elm_Object_Item *item; + + Elm_Genlist_Item_Class item_class; + string style; + + void *user_data; + Elm_Genlist_Item_Type flags; + + DeletorBase *autodel_userdata; + + virtual void itemAdded() {} //item was added to a genlist + + public: + GenlistItemBase(Evas *evas, Evas_Object *parent, string style, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE, void *select_user_data = NULL); + virtual ~GenlistItemBase(); + + //Add item to genlist + void Append(Evas_Object *genlist, GenlistItemBase *gparent = NULL); + void Prepend(Evas_Object *genlist, GenlistItemBase *gparent = NULL); + void InsertBefore(Evas_Object *genlist, GenlistItemBase *before, GenlistItemBase *gparent = NULL); + void InsertAfter(Evas_Object *genlist, GenlistItemBase *after, GenlistItemBase *gparent = NULL); + + void RemoveItem() { elm_object_item_del(item); } + GenlistItemBase *getPreviousItem(); + GenlistItemBase *getNextItem(); + + void ShowItem(Elm_Genlist_Item_Scrollto_Type type); + void BringInItem(Elm_Genlist_Item_Scrollto_Type type); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + virtual bool getStateItem(Evas_Object *obj, string part); + + void setSelected(bool sel) { elm_genlist_item_selected_set(item, sel); } + bool isSelected() { return elm_genlist_item_selected_get(item); } + + void updateField(string part, Elm_Genlist_Item_Field_Type type) { elm_genlist_item_fields_update(item, part.c_str(), type); } + + sigc::signal item_selected; + + void setUserData(void *data) { user_data = data; } + void *getUserData() { return user_data; } + void setAutoDeleteUserData(DeletorBase *how_to_delete_user_data) { autodel_userdata = how_to_delete_user_data; } + + void itemEmitSignal(string signal, string source); + + //Used by C callback + void emitSelectedSignal(); +}; + +#endif // GENLISTITEMBASE_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemBrowserPlaylist.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemBrowserPlaylist.cpp new file mode 100644 index 00000000..a3666c4c --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemBrowserPlaylist.cpp @@ -0,0 +1,118 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemBrowserPlaylist.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemBrowserPlaylist, Play) +ITEM_BUTTON_CALLBACK(GenlistItemBrowserPlaylist, Add) + +GenlistItemBrowserPlaylist::GenlistItemBrowserPlaylist(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _item_id, void *data): + GenlistItemBase(_evas, _parent, "browser/default", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_id(_item_id), + in_query(false), + no_query(false) +{ +} + +GenlistItemBrowserPlaylist::GenlistItemBrowserPlaylist(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, Params &infos, void *data): + GenlistItemBase(_evas, _parent, "browser/default", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_infos(infos), + in_query(false), + no_query(true) +{ +} + +GenlistItemBrowserPlaylist::~GenlistItemBrowserPlaylist() +{ +} + +string GenlistItemBrowserPlaylist::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!in_query) + { + if (!no_query) player->getDBPlaylistItem(item_id, sigc::mem_fun(*this, &GenlistItemBrowserPlaylist::playlistItemGet_cb)); + in_query = true; + } + + if (part == "text") + { + if (item_infos.size() <= 0) + text = "Chargement..."; + else + text = item_infos["name"]; + } + + return text; +} + +Evas_Object *GenlistItemBrowserPlaylist::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), "calaos/icons/genlist/playlist"); + } + + return o; +} + +void GenlistItemBrowserPlaylist::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_PLAYLIST, item_infos["id"]); +} + +void GenlistItemBrowserPlaylist::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_PLAYLIST, item_infos["id"]); +} + +void GenlistItemBrowserPlaylist::playlistItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemBrowserPlaylist.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemBrowserPlaylist.h new file mode 100644 index 00000000..6469ff36 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemBrowserPlaylist.h @@ -0,0 +1,56 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemBrowserPlaylist_H +#define GenlistItemBrowserPlaylist_H + +#include +#include + +using namespace Utils; + +class GenlistItemBrowserPlaylist: public GenlistItemBase +{ + private: + AudioPlayer *player; + int item_id; + Params item_infos; + bool in_query; + bool no_query; + + void playlistItemGet_cb(Params &infos); + + public: + GenlistItemBrowserPlaylist(Evas *evas, Evas_Object *parent, AudioPlayer *player, int item_id, void *data = NULL); + GenlistItemBrowserPlaylist(Evas *evas, Evas_Object *parent, AudioPlayer *player, Params &infos, void *data = NULL); + virtual ~GenlistItemBrowserPlaylist(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + + int getItemId() { return item_id; } + Params getItemInfos() { return item_infos; } +}; + +#endif // GenlistItemBrowserPlaylist_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemGenre.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemGenre.cpp new file mode 100644 index 00000000..ae443f69 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemGenre.cpp @@ -0,0 +1,108 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemGenre.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemGenre, Play) +ITEM_BUTTON_CALLBACK(GenlistItemGenre, Add) + +GenlistItemGenre::GenlistItemGenre(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _item_id, void *data): + GenlistItemBase(_evas, _parent, "browser/default", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_id(_item_id), + in_query(false) +{ +} + +GenlistItemGenre::~GenlistItemGenre() +{ +} + +string GenlistItemGenre::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!in_query) + { + player->getDBGenreItem(item_id, sigc::mem_fun(*this, &GenlistItemGenre::genreItemGet_cb)); + in_query = true; + } + + if (part == "text") + { + if (item_infos.size() <= 0) + text = "Chargement..."; + else + text = item_infos["name"]; + } + + return text; +} + +Evas_Object *GenlistItemGenre::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), "calaos/icons/genlist/note_on"); + } + + return o; +} + +void GenlistItemGenre::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_GENRE, item_infos["id"]); +} + +void GenlistItemGenre::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_GENRE, item_infos["id"]); +} + +void GenlistItemGenre::genreItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemGenre.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemGenre.h new file mode 100644 index 00000000..80bd59c5 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemGenre.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemGenre_H +#define GenlistItemGenre_H + +#include +#include + +using namespace Utils; + +class GenlistItemGenre: public GenlistItemBase +{ + private: + AudioPlayer *player; + int item_id; + Params item_infos; + bool in_query; + + void genreItemGet_cb(Params &infos); + + public: + GenlistItemGenre(Evas *evas, Evas_Object *parent, AudioPlayer *player, int item_id, void *data = NULL); + virtual ~GenlistItemGenre(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + + int getItemId() { return item_id; } + Params getItemInfos() { return item_infos; } +}; + +#endif // GenlistItemGenre_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylist.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylist.cpp new file mode 100644 index 00000000..f0c3ad1e --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylist.cpp @@ -0,0 +1,217 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemPlaylist.h" +#include +#include +#include + +ITEM_BUTTON_CALLBACK(GenlistItemPlaylist, Play) +ITEM_BUTTON_CALLBACK(GenlistItemPlaylist, More) + +GenlistItemPlaylist::GenlistItemPlaylist(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _playlist_item, void *data): + GenlistItemBase(_evas, _parent, "playlist", ELM_GENLIST_ITEM_NONE, data), + player(_player), + playlist_item(_playlist_item) +{ +} + +GenlistItemPlaylist::~GenlistItemPlaylist() +{ +} + +string GenlistItemPlaylist::getLabelItem(Evas_Object *obj, string part) +{ + if (label != "") + return label; + + player->getPlaylistItem(playlist_item, sigc::mem_fun(*this, &GenlistItemPlaylist::playlistItemGet_cb)); + + return "Chargement ..."; +} + +Evas_Object *GenlistItemPlaylist::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.more") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/button/position/info"); + evas_object_smart_callback_add(o, "clicked", _item_button_More, this); + } + + return o; +} + +void GenlistItemPlaylist::buttonClickPlay() +{ + player->playItem(playlist_item); +} + +void GenlistItemPlaylist::buttonClickMore() +{ + Evas_Object *table = createPaddingTable(evas, parent, 260, 200); + + Evas_Object *glist = elm_genlist_add(parent); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Info de la piste #" + to_string(playlist_item + 1) + "
Détails de la piste."; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + string infolabel; + if (label == "") + { + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Chargement", "..."); + item->Append(glist, header); + } + else + { + if (item_infos["artist"] != "") + { + infolabel = item_infos["artist"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Artiste :", infolabel); + item->Append(glist, header); + } + if (item_infos["album"] != "") + { + infolabel = item_infos["album"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Album :", infolabel); + item->Append(glist, header); + } + if (item_infos["title"] != "") + { + infolabel = item_infos["title"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Titre :", infolabel); + item->Append(glist, header); + } + if (item_infos["duration"] != "") + { + double dur; + from_string(item_infos["duration"], dur); + infolabel = Utils::time2string_digit((long)dur); + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Durée :", infolabel); + item->Append(glist, header); + } + if (item_infos["genre"] != "") + { + infolabel = item_infos["genre"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Genre :", infolabel); + item->Append(glist, header); + } + if (item_infos["type"] != "") + { + infolabel = item_infos["type"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Type de flux :", infolabel); + item->Append(glist, header); + } + if (item_infos["bitrate"] != "") + { + infolabel = item_infos["bitrate"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Débit :", infolabel); + item->Append(glist, header); + } + if (item_infos["filesize"] != "") + { + long int s; + from_string(item_infos["filesize"], s); + s /= 1024; + s /= 1024; + infolabel = to_string(s) + " Mo"; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Taille :", infolabel); + item->Append(glist, header); + } + if (item_infos["samplerate"] != "") + { + infolabel = item_infos["samplerate"] + " Hz"; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Echantillonage :", infolabel); + item->Append(glist, header); + } + if (item_infos["tagversion"] != "") + { + infolabel = item_infos["tagversion"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Version du tag :", infolabel); + item->Append(glist, header); + } + if (item_infos["comment"] != "") + { + infolabel = item_infos["comment"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Commentaire :", infolabel); + item->Append(glist, header); + } + + GenlistItemSimple *item = new GenlistItemSimple(evas, glist, "Supprimer la piste", true); + item->Append(glist, header); + item->setIcon("calaos/icons/genlist/trash"); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemPlaylist::playlistItemDelete_cb)); + } + + elm_table_pack(table, glist, 1, 1, 1, 1); + + popup_infos = elm_ctxpopup_add(parent); + elm_object_style_set(popup_infos, "calaos"); + evas_object_size_hint_min_set(popup_infos, 300, 240); + + elm_object_content_set(popup_infos, table); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup_infos, x, y); + evas_object_show(popup_infos); +} + +void GenlistItemPlaylist::playlistItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + label = ""; + if (infos["artist"] != "" && infos["title"] != "") + label += infos["artist"] + " - " + infos["title"]; + else if (infos["artist"] != "") + label += infos["artist"]; + else if (infos["title"] != "") + label += infos["title"]; + else + label = "?????"; + + elm_genlist_item_update(item); +} + +void GenlistItemPlaylist::playlistItemDelete_cb(void *data) +{ + evas_object_hide(popup_infos); + player->removePlaylistItem(playlist_item); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylist.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylist.h new file mode 100644 index 00000000..8178aee4 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylist.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GENLISTITEMPLAYLIST_H +#define GENLISTITEMPLAYLIST_H + +#include +#include + +using namespace Utils; + +class GenlistItemPlaylist: public GenlistItemBase +{ + private: + string label; + AudioPlayer *player; + int playlist_item; + Params item_infos; + Evas_Object *popup_infos; + + void playlistItemGet_cb(Params &infos); + void playlistItemDelete_cb(void *data); + + public: + GenlistItemPlaylist(Evas *evas, Evas_Object *parent, AudioPlayer *player, int playlist_item, void *data = NULL); + virtual ~GenlistItemPlaylist(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickMore(); +}; + +#endif // GENLISTITEMPLAYLIST_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylistHeader.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylistHeader.cpp new file mode 100644 index 00000000..123f7459 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylistHeader.cpp @@ -0,0 +1,99 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemPlaylistHeader.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemPlaylistHeader, Play) +ITEM_BUTTON_CALLBACK(GenlistItemPlaylistHeader, Add) +ITEM_BUTTON_CALLBACK(GenlistItemPlaylistHeader, Del) + +GenlistItemPlaylistHeader::GenlistItemPlaylistHeader(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, Params &playlist_infos, int playlist_id, void *data): + GenlistItemBase(_evas, _parent, "browser/playlist_header", ELM_GENLIST_ITEM_GROUP, data), + player(_player), + pl_infos(playlist_infos), + pl_id(playlist_id) +{ +} + +GenlistItemPlaylistHeader::~GenlistItemPlaylistHeader() +{ +} + +string GenlistItemPlaylistHeader::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (part == "text") + text = "Liste de lecture: " + pl_infos["name"] + ""; + else if (part == "text.count") + text = pl_infos["count"]; + + return text; +} + +Evas_Object *GenlistItemPlaylistHeader::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "calaos.button.del") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/action_button/label"); + elm_object_text_set(o, "Supprimer"); + evas_object_smart_callback_add(o, "clicked", _item_button_Del, this); + } + + return o; +} + +void GenlistItemPlaylistHeader::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_PLAYLIST, pl_infos["id"]); +} + +void GenlistItemPlaylistHeader::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_PLAYLIST, pl_infos["id"]); +} + +void GenlistItemPlaylistHeader::buttonClickDel() +{ + player->playlistDelete(pl_infos["id"]); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylistHeader.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylistHeader.h new file mode 100644 index 00000000..1b15960f --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemPlaylistHeader.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemPlaylistHeader_H +#define GenlistItemPlaylistHeader_H + +#include +#include + +using namespace Utils; + +class GenlistItemPlaylistHeader: public GenlistItemBase +{ + private: + AudioPlayer *player; + Params pl_infos; + int pl_id; + + public: + GenlistItemPlaylistHeader(Evas *evas, Evas_Object *parent, AudioPlayer *player, Params &playlist_infos, int playlist_id, void *data = NULL); + virtual ~GenlistItemPlaylistHeader(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + void buttonClickDel(); +}; + +#endif // GenlistItemPlaylistHeader_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemRadio.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemRadio.cpp new file mode 100644 index 00000000..2f7c8f5c --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemRadio.cpp @@ -0,0 +1,96 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemRadio.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemRadio, Play) +ITEM_BUTTON_CALLBACK(GenlistItemRadio, Add) + +GenlistItemRadio::GenlistItemRadio(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, Params item, void *data): + GenlistItemBase(_evas, _parent, "browser/default/noselect", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_infos(item) +{ +} + +GenlistItemRadio::~GenlistItemRadio() +{ +} + +string GenlistItemRadio::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (part == "text") + text = item_infos["name"]; + + return text; +} + +Evas_Object *GenlistItemRadio::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), "calaos/icons/genlist/radio"); + } + + return o; +} + +void GenlistItemRadio::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_RADIO, item_infos["id"] + ":" + item_infos["radio_id"]); +} + +void GenlistItemRadio::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_RADIO, item_infos["id"] + ":" + item_infos["radio_id"]); +} + +void GenlistItemRadio::genreItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemRadio.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemRadio.h new file mode 100644 index 00000000..b27ac17a --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemRadio.h @@ -0,0 +1,51 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemRadio_H +#define GenlistItemRadio_H + +#include +#include + +using namespace Utils; + +class GenlistItemRadio: public GenlistItemBase +{ + private: + AudioPlayer *player; + Params item_infos; + + void genreItemGet_cb(Params &infos); + + public: + GenlistItemRadio(Evas *evas, Evas_Object *parent, AudioPlayer *player, Params item, void *data = NULL); + virtual ~GenlistItemRadio(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + + Params getItemInfos() { return item_infos; } +}; + +#endif // GenlistItemRadio_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioAction.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioAction.cpp new file mode 100644 index 00000000..e6e9c505 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioAction.cpp @@ -0,0 +1,438 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemScenarioAction.h" +#include + +#include +#include + +ITEM_BUTTON_CALLBACK(GenlistItemScenarioAction, Edit) + +GenlistItemScenarioAction::GenlistItemScenarioAction(Evas *_evas, Evas_Object *_parent, ScenarioData &scd, int step, int _action, void *data): + GenlistItemBase(_evas, _parent, "scenario/action", ELM_GENLIST_ITEM_NONE, data), + scenario_data(scd), + sc_step(step), + sc_action(_action) +{ + ScenarioAction &ac = getAction(); + action = ac.io->getActionFromState(); +} + +GenlistItemScenarioAction::~GenlistItemScenarioAction() +{ +} + +ScenarioAction &GenlistItemScenarioAction::getAction() +{ + if (sc_step == ScenarioData::END_STEP) + return scenario_data.step_end.actions[sc_action]; + + return scenario_data.steps[sc_step].actions[sc_action]; +} + +string GenlistItemScenarioAction::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (part == "text") + { + ScenarioAction &ac = getAction(); + text = ac.io->params["name"]; + } + else if (part == "action.text") + { + ScenarioAction &ac = getAction(); + text = action.getComputedTitle(ac.io); + } + + return text; +} + +Evas_Object *GenlistItemScenarioAction::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.edit") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/edit"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Edit, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + ScenarioAction &ac = getAction(); + elm_image_file_set(o, ApplicationMain::getTheme(), ac.io->getIconForIO().c_str()); + } + + return o; +} + +void GenlistItemScenarioAction::buttonClickEdit() +{ + Evas_Object *table = createPaddingTable(evas, parent, 280, 255); + + pager_action = elm_naviframe_add(parent); + evas_object_show(pager_action); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Edition de l'élément
Choisissez l'action qui sera executé."; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *del_item = new GenlistItemSimple(evas, glist, "Supprimer cette action", true); + del_item->Append(glist, header); + del_item->setIcon("calaos/icons/genlist/trash"); + del_item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioAction::deleteItemSelected)); + + createActionList(glist, header); + + elm_table_pack(table, glist, 1, 1, 1, 1); + + popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, pager_action); + elm_object_style_set(popup, "calaos"); + elm_ctxpopup_direction_priority_set(popup, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_UP, + ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_RIGHT); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); + + elm_naviframe_item_push(pager_action, NULL, NULL, NULL, table, "calaos"); +} + +void GenlistItemScenarioAction::deleteItemSelected(void *data) +{ + elm_ctxpopup_dismiss(popup); + + delete_action.emit(this, data); +} + +void GenlistItemScenarioAction::createActionList(Evas_Object *glist, GenlistItemBase *header) +{ + GenlistItemSimple *it = NULL; + + ScenarioAction &ac_current = getAction(); + vector v = ac_current.io->getActionList(); + + for (uint i = 0;i < v.size();i++) + { + IOActionList &ac = v[i]; + ac.copyValueFrom(action); + + if (ac.type == IOActionList::ACTION_SIMPLE) + it = new GenlistItemSimple(evas, glist, ac.title, true); + else + it = new GenlistItemSimple(evas, glist, ac.title, true, false, NULL, "disclosure"); + + it->setIcon("calaos/icons/genlist/action"); + it->Append(glist, header); + + if (ac.type == IOActionList::ACTION_SIMPLE) + it->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioAction::actionSimple), ac)); + else if (ac.type == IOActionList::ACTION_SLIDER) + it->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioAction::actionSlider), ac)); + else if (ac.type == IOActionList::ACTION_NUMBER) + it->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioAction::actionNumber), ac)); + else if (ac.type == IOActionList::ACTION_TEXT) + it->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioAction::actionText), ac)); + else if (ac.type == IOActionList::ACTION_TIME_MS) + it->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioAction::actionTime), ac)); + else if (ac.type == IOActionList::ACTION_COLOR) + it->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioAction::actionColor), ac)); + } +} + +void GenlistItemScenarioAction::actionSimple(void *data, IOActionList ac) +{ + action = ac; + if (sc_step == ScenarioData::END_STEP) + scenario_data.step_end.actions[sc_action].action = + action.getComputedAction(scenario_data.step_end.actions[sc_action].io); + else + scenario_data.steps[sc_step].actions[sc_action].action = + action.getComputedAction(scenario_data.steps[sc_step].actions[sc_action].io); + + elm_genlist_item_fields_update(item, "action.text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioAction::buttonBackClick(void *data, Evas_Object *edje_object, string emission, string source) +{ + elm_naviframe_item_pop(pager_action); +} + +void GenlistItemScenarioAction::buttonValidClick(void *data, Evas_Object *edje_object, string emission, string source) +{ + action = action_temp; + if (sc_step == ScenarioData::END_STEP) + scenario_data.step_end.actions[sc_action].action = + action.getComputedAction(scenario_data.step_end.actions[sc_action].io); + else + scenario_data.steps[sc_step].actions[sc_action].action = + action.getComputedAction(scenario_data.steps[sc_step].actions[sc_action].io); + + elm_genlist_item_fields_update(item, "action.text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioAction::buttonValidTimeClick(void *data, Evas_Object *edje_object, string emission, string source) +{ + action = action_temp; + action.dvalue = elm_spinner_value_get(spin_hours) * 60.0 * 60.0 * 1000.0 + + elm_spinner_value_get(spin_min) * 60.0 * 1000.0 + + elm_spinner_value_get(spin_sec) * 1000.0 + + elm_spinner_value_get(spin_ms); + + elm_genlist_item_fields_update(item, "action.text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioAction::actionSlider(void *data, IOActionList ac) +{ + action_temp = ac; + + page = new EdjeObject(ApplicationMain::getTheme(), evas); + page->LoadEdje("calaos/popup/page/slider"); + page->setAutoDelete(true); + page->addCallback("button.back", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonBackClick)); + page->addCallback("button.valid", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonValidClick)); + page->addCallback("slider_obj:object", "*", sigc::mem_fun(*this, &GenlistItemScenarioAction::sliderSignalCallback)); + page->setDragValue("slider", action_temp.dvalue / 100.0, 0.0); + string t = "Choisir la valeur
" + ac.title + ""; + page->setPartText("text", t); + + elm_naviframe_item_push(pager_action, NULL, NULL, NULL, page->getEvasObject(), "calaos"); +} + +void GenlistItemScenarioAction::sliderSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (emission == "slider,changed") + { + double x; + page->getDragValue("slider", &x, NULL); + + action_temp.dvalue = (int)(x * 100.0); + } +} + +void GenlistItemScenarioAction::actionNumber(void *data, IOActionList ac) +{ + action_temp = ac; + + page = new EdjeObject(ApplicationMain::getTheme(), evas); + page->LoadEdje("calaos/popup/page/number"); + page->setAutoDelete(true); + page->addCallback("button.back", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonBackClick)); + page->addCallback("button.valid", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonValidClick)); + page->addCallback("button.pad.*", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::numberSignalCallback)); + string t = "Choisir un nombre
" + ac.title + ""; + page->setPartText("text", t); + page->setPartText("value", to_string(action_temp.dvalue)); + + elm_naviframe_item_push(pager_action, NULL, NULL, NULL, page->getEvasObject(), "calaos"); +} + +void GenlistItemScenarioAction::numberSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + string val = page->getPartText("value"); + + if (source == "button.pad.0") val += "0"; + else if (source == "button.pad.1") val += "1"; + else if (source == "button.pad.2") val += "2"; + else if (source == "button.pad.3") val += "3"; + else if (source == "button.pad.4") val += "4"; + else if (source == "button.pad.5") val += "5"; + else if (source == "button.pad.6") val += "6"; + else if (source == "button.pad.7") val += "7"; + else if (source == "button.pad.8") val += "8"; + else if (source == "button.pad.9") val += "9"; + else if (source == "button.pad.dot") + { + if (val.find('.') == string::npos) + val += "."; + } + else if (source == "button.pad.del") + { + if (val.length() > 0) + val.erase(val.end() - 1); + } + + if (val.length() > 1 && val[val.length()] != '0') + while (val[0] == '0') val.erase(val.begin()); + + if (val.length() == 0) + val = "0"; + + page->setPartText("value", val); + from_string(val, action_temp.dvalue); +} + +void GenlistItemScenarioAction::actionText(void *data, IOActionList ac) +{ + action_temp = ac; + + //TODO! +} + +void GenlistItemScenarioAction::actionTime(void *data, IOActionList ac) +{ + action_temp = ac; + + page = new EdjeObject(ApplicationMain::getTheme(), evas); + page->LoadEdje("calaos/popup/page/time"); + page->setAutoDelete(true); + page->addCallback("button.back", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonBackClick)); + page->addCallback("button.valid", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonValidTimeClick)); + string t = "Choisir une durée
" + ac.title + ""; + page->setPartText("text", t); + + double sec = action_temp.dvalue / 1000.0; + long ms = (long)action_temp.dvalue % 1000; + int hours = (int)(sec / 3600.0); + sec -= hours * 3600; + int min = (int)(sec / 60.0); + sec -= min * 60; + + spin_hours = elm_spinner_add(parent); + elm_object_style_set(spin_hours, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_hours, "%.0f
Heures"); + elm_spinner_min_max_set(spin_hours, 0, 99); + elm_spinner_step_set(spin_hours, 1); + elm_spinner_interval_set(spin_hours, 0.15); + elm_spinner_value_set(spin_hours, hours); + evas_object_show(spin_hours); + page->Swallow(spin_hours, "spinner.hours", true); + + spin_min = elm_spinner_add(parent); + elm_object_style_set(spin_min, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_min, "%.0f
Min."); + elm_spinner_min_max_set(spin_min, 0, 59); + elm_spinner_step_set(spin_min, 1); + elm_spinner_interval_set(spin_min, 0.15); + elm_spinner_value_set(spin_min, min); + evas_object_show(spin_min); + page->Swallow(spin_min, "spinner.minutes", true); + + spin_sec = elm_spinner_add(parent); + elm_object_style_set(spin_sec, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_sec, "%.0f
Sec."); + elm_spinner_min_max_set(spin_sec, 0, 59); + elm_spinner_step_set(spin_sec, 1); + elm_spinner_interval_set(spin_sec, 0.15); + elm_spinner_value_set(spin_sec, sec); + evas_object_show(spin_sec); + page->Swallow(spin_sec, "spinner.seconds", true); + + spin_ms = elm_spinner_add(parent); + elm_object_style_set(spin_ms, "calaos/time/vertical"); + elm_spinner_label_format_set(spin_ms, "%.0f
Ms."); + elm_spinner_min_max_set(spin_ms, 0, 999); + elm_spinner_step_set(spin_ms, 1); + elm_spinner_interval_set(spin_ms, 0.15); + elm_spinner_value_set(spin_ms, ms); + evas_object_show(spin_ms); + page->Swallow(spin_ms, "spinner.miliseconds", true); + + elm_naviframe_item_push(pager_action, NULL, NULL, NULL, page->getEvasObject(), "calaos"); +} + +void GenlistItemScenarioAction::actionColor(void *data, IOActionList ac) +{ + action_temp = ac; + + page = new EdjeObject(ApplicationMain::getTheme(), evas); + page->LoadEdje("calaos/popup/page/color"); + page->setAutoDelete(true); + page->addCallback("button.back", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonBackClick)); + page->addCallback("button.valid", "pressed", sigc::mem_fun(*this, &GenlistItemScenarioAction::buttonValidClick)); + page->addCallback("slider.red:object", "*", sigc::mem_fun(*this, &GenlistItemScenarioAction::sliderRedSignalCallback)); + page->addCallback("slider.green:object", "*", sigc::mem_fun(*this, &GenlistItemScenarioAction::sliderGreenSignalCallback)); + page->addCallback("slider.blue:object", "*", sigc::mem_fun(*this, &GenlistItemScenarioAction::sliderBlueSignalCallback)); + page->setDragValue("slider", action_temp.dvalue / 100.0, 0.0); + string t = "Choisir la couleur
" + ac.title + ""; + page->setPartText("text", t); + + page->setDragValue("slider.red:slider", action_temp.red / 100.0, 0.0); + page->setDragValue("slider.green:slider", action_temp.green / 100.0, 0.0); + page->setDragValue("slider.blue:slider", action_temp.blue / 100.0, 0.0); + + color_preview = evas_object_rectangle_add(evas); + evas_object_color_set(color_preview, action_temp.red, action_temp.green, action_temp.blue, 255); + evas_object_show(color_preview); + page->Swallow(color_preview, "color.preview", true); + + elm_naviframe_item_push(pager_action, NULL, NULL, NULL, page->getEvasObject(), "calaos"); +} + +void GenlistItemScenarioAction::sliderRedSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (emission == "slider,changed") + { + double x; + page->getDragValue("slider.red:slider", &x, NULL); + + action_temp.red = (int)(x * 100.0); + + evas_object_color_set(color_preview, action_temp.red, action_temp.green, action_temp.blue, 255); + } +} + +void GenlistItemScenarioAction::sliderGreenSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (emission == "slider,changed") + { + double x; + page->getDragValue("slider.green:slider", &x, NULL); + + action_temp.green = (int)(x * 100.0); + + evas_object_color_set(color_preview, action_temp.red, action_temp.green, action_temp.blue, 255); + } +} + +void GenlistItemScenarioAction::sliderBlueSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (emission == "slider,changed") + { + double x; + page->getDragValue("slider.blue:slider", &x, NULL); + + action_temp.blue = (int)(x * 100.0); + + evas_object_color_set(color_preview, action_temp.red, action_temp.green, action_temp.blue, 255); + } +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioAction.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioAction.h new file mode 100644 index 00000000..411c9c44 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioAction.h @@ -0,0 +1,89 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemScenarioAction_H +#define GenlistItemScenarioAction_H + +#include +#include +#include +#include + +using namespace Utils; + +class GenlistItemScenarioAction: public GenlistItemBase +{ + private: + ScenarioData &scenario_data; + int sc_step; + uint sc_action; + + IOActionList action; + IOActionList action_temp; + + Evas_Object *popup; + Evas_Object *pager_action; + + Evas_Object *color_preview; + + EdjeObject *page; + + Evas_Object *spin_hours; + Evas_Object *spin_min; + Evas_Object *spin_sec; + Evas_Object *spin_ms; + + ScenarioAction &getAction(); + void createActionList(Evas_Object *glist, GenlistItemBase *header); + + void actionSimple(void *data, IOActionList ac); + void actionSlider(void *data, IOActionList ac); + void actionNumber(void *data, IOActionList ac); + void actionText(void *data, IOActionList ac); + void actionTime(void *data, IOActionList ac); + void actionColor(void *data, IOActionList ac); + + void buttonBackClick(void *data, Evas_Object *edje_object, string emission, string source); + void buttonValidClick(void *data, Evas_Object *edje_object, string emission, string source); + void buttonValidTimeClick(void *data, Evas_Object *edje_object, string emission, string source); + void sliderSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + void numberSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + void sliderRedSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + void sliderGreenSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + void sliderBlueSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + + void deleteItemSelected(void *data); + + public: + GenlistItemScenarioAction(Evas *evas, Evas_Object *parent, ScenarioData &scd, int step, int action, void *data = NULL); + virtual ~GenlistItemScenarioAction(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickEdit(); + + void setAction(IOActionList &ac) { action = ac; } + + sigc::signal delete_action; +}; + +#endif // GenlistItemScenarioAction_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioHeader.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioHeader.cpp new file mode 100644 index 00000000..dd6d726f --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioHeader.cpp @@ -0,0 +1,52 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "GenlistItemScenarioHeader.h" +#include + +GenlistItemScenarioHeader::GenlistItemScenarioHeader(Evas *_evas, Evas_Object *_parent, string _title): + GenlistItemBase(_evas, _parent, "scenario/header", ELM_GENLIST_ITEM_GROUP), + title(_title) +{ +} + +GenlistItemScenarioHeader::~GenlistItemScenarioHeader() +{ +} + +void GenlistItemScenarioHeader::itemAdded() +{ + elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); +} + +Evas_Object *GenlistItemScenarioHeader::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + return o; +} + +string GenlistItemScenarioHeader::getLabelItem(Evas_Object *obj, string part) +{ + if (part == "elm.text") + return title; + + return ""; +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioHeader.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioHeader.h new file mode 100644 index 00000000..c65504ed --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioHeader.h @@ -0,0 +1,43 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef GenlistItemScenarioHeader_H +#define GenlistItemScenarioHeader_H + +#include +#include + +using namespace Utils; + +class GenlistItemScenarioHeader: public GenlistItemBase +{ + private: + string title; + + virtual void itemAdded(); + public: + GenlistItemScenarioHeader(Evas *evas, Evas_Object *parent, string title); + virtual ~GenlistItemScenarioHeader(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); +}; + +#endif // GenlistItemScenarioHeader_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioSchedule.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioSchedule.cpp new file mode 100644 index 00000000..69a9d599 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioSchedule.cpp @@ -0,0 +1,263 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemScenarioSchedule.h" +#include + +#include +#include + +ITEM_BUTTON_CALLBACK(GenlistItemScenarioSchedule, More) + +GenlistItemScenarioSchedule::GenlistItemScenarioSchedule(Evas *_evas, Evas_Object *_parent, bool scheduleView, Scenario *sc, void *data): + GenlistItemBase(_evas, _parent, (scheduleView)?"scenario/schedule":"scenario/standard", ELM_GENLIST_ITEM_NONE, data), + IOBaseElement(sc->ioScenario), + scenario(sc) +{ +} + +GenlistItemScenarioSchedule::~GenlistItemScenarioSchedule() +{ +} + +void GenlistItemScenarioSchedule::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item); +} + +void GenlistItemScenarioSchedule::initView() +{ + updateView(); +} + +void GenlistItemScenarioSchedule::updateView() +{ + if (scenario->ioScenario) + { + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "time", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "actions.text", ELM_GENLIST_ITEM_FIELD_TEXT); + } +} + +string GenlistItemScenarioSchedule::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!scenario) return text; + + if (part == "text") + { + text = scenario->ioScenario->params["name"]; + } + else if (part == "time") + { + text = "18:35"; + } + else if (part == "actions.text") + { + text = "Aucune actions."; + if (scenario->scenario_data.steps.size() > 1) + text = to_string(scenario->scenario_data.steps.size()) + " étapes."; + else if (scenario->scenario_data.steps.size() == 1 && + scenario->scenario_data.steps[0].actions.size() > 0) + text = to_string(scenario->scenario_data.steps[0].actions.size()) + " actions."; + } + + if (scenario->scenario_data.params["schedule"] != "false") + itemEmitSignal("schedule,true", "calaos"); + else + itemEmitSignal("schedule,false", "calaos"); + + return text; +} + +Evas_Object *GenlistItemScenarioSchedule::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.more") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/button/position/rolldown"); + evas_object_smart_callback_add(o, "clicked", _item_button_More, this); + } + + return o; +} + +void GenlistItemScenarioSchedule::buttonClickMore() +{ + if (!scenario) return; + + Evas_Object *table = createPaddingTable(evas, parent, 280, 260); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Paramètres du scénario
Modifier, supprimer ou ajouter une planification."; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *item; + + item = new GenlistItemSimple(evas, glist, "Modifier le scénario", true); + item->setIcon("calaos/icons/genlist/edit"); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::scenarioModify)); + + item = new GenlistItemSimple(evas, glist, "Supprimer le scénario", true); + item->setIcon("calaos/icons/genlist/trash"); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::scenarioDelete)); + + item = new GenlistItemSimple(evas, glist, "Executer le scénario maintenant", true); + item->setIcon("calaos/icons/genlist/play"); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::scenarioPlay)); + + if (scenario->scenario_data.params["schedule"] == "false") + { + item = new GenlistItemSimple(evas, glist, "Ajouter une planification", true); + item->setIcon("calaos/icons/genlist/plus"); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::scheduleAdd)); + } + else + { + item = new GenlistItemSimple(evas, glist, "Modifier la planification", true); + item->setIcon("calaos/icons/genlist/clock"); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::scheduleModify)); + + item = new GenlistItemSimple(evas, glist, "Supprimer la planification", true); + item->setIcon("calaos/icons/genlist/trash"); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::scheduleDelete)); + } + + elm_table_pack(table, glist, 1, 1, 1, 1); + + pager_popup = elm_naviframe_add(parent); + evas_object_show(pager_popup); + + popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, pager_popup); + elm_object_style_set(popup, "calaos"); + elm_ctxpopup_direction_priority_set(popup, + ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_UP, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_RIGHT); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); + + elm_naviframe_item_push(pager_popup, NULL, NULL, NULL, table, "calaos"); +} + +void GenlistItemScenarioSchedule::scheduleAdd(void *data) +{ + schedule_add_click.emit(scenario); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioSchedule::scheduleModify(void *data) +{ + schedule_modify_click.emit(scenario); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioSchedule::scheduleDelete(void *data) +{ + schedule_del_click.emit(scenario); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioSchedule::scenarioDelete(void *data) +{ + if (!scenario) return; + + Evas_Object *table = createPaddingTable(evas, parent, 280, 260); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Confirmation
Êtes-vous sûr de vouloir supprimer ce scénario?"; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, "Oui, supprimer le scénario", true); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::deleteScenarioValid)); + + item = new GenlistItemSimple(evas, parent, "Non", true); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::deleteScenarioCancel)); + + elm_table_pack(table, glist, 1, 1, 1, 1); + + elm_naviframe_item_push(pager_popup, NULL, NULL, NULL, table, "calaos"); +} + +void GenlistItemScenarioSchedule::deleteScenarioValid(void *data) +{ + if (!scenario) return; + + CalaosModel::Instance().getScenario()->deleteScenario(scenario); + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioSchedule::deleteScenarioCancel(void *data) +{ + if (!scenario) return; + + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioSchedule::scenarioModify(void *data) +{ + if (!scenario) return; + + ApplicationMain::Instance().ShowScenarioEditor(scenario); + + elm_ctxpopup_dismiss(popup); +} + +void GenlistItemScenarioSchedule::scenarioPlay(void *data) +{ + if (!scenario) return; + + scenario->ioScenario->sendAction("true"); + elm_ctxpopup_dismiss(popup); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioSchedule.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioSchedule.h new file mode 100644 index 00000000..3e74b139 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioSchedule.h @@ -0,0 +1,68 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemScenarioSchedule_H +#define GenlistItemScenarioSchedule_H + +#include +#include +#include "ScenarioModel.h" + +using namespace Utils; + +class GenlistItemScenarioSchedule: public GenlistItemBase, public IOBaseElement +{ + private: + Evas_Object *popup, *pager_popup; + + Scenario *scenario; + + void scenarioPlay(void *data); + void scenarioModify(void *data); + void scenarioDelete(void *data); + void scheduleAdd(void *data); + void scheduleModify(void *data); + void scheduleDelete(void *data); + + virtual void ioDeleted(); + + void deleteScenarioValid(void *data); + void deleteScenarioCancel(void *data); + + public: + GenlistItemScenarioSchedule(Evas *evas, Evas_Object *parent, bool scheduleView, Scenario *scenario, void *data = NULL); + virtual ~GenlistItemScenarioSchedule(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickMore(); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + sigc::signal schedule_add_click; + sigc::signal schedule_modify_click; + sigc::signal schedule_del_click; +}; + +#endif // GenlistItemScenarioSchedule_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioScheduleTime.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioScheduleTime.cpp new file mode 100644 index 00000000..8febe9b7 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioScheduleTime.cpp @@ -0,0 +1,96 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemScenarioScheduleTime.h" +#include + +#include +#include + +ITEM_BUTTON_CALLBACK(GenlistItemScenarioScheduleTime, Edit) +ITEM_BUTTON_CALLBACK(GenlistItemScenarioScheduleTime, Delete) + +GenlistItemScenarioScheduleTime::GenlistItemScenarioScheduleTime(Evas *_evas, Evas_Object *_parent, void *data): + GenlistItemBase(_evas, _parent, "scenario/schedule/time", ELM_GENLIST_ITEM_NONE, data) +{ +} + +GenlistItemScenarioScheduleTime::~GenlistItemScenarioScheduleTime() +{ +} + +string GenlistItemScenarioScheduleTime::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (part == "text") + { + text = "Exécution à 12h30"; + } + + itemEmitSignal("monday,active", "calaos"); + itemEmitSignal("tuesday,active", "calaos"); + itemEmitSignal("thirsday,active", "calaos"); + itemEmitSignal("friday,active", "calaos"); + + return text; +} + +Evas_Object *GenlistItemScenarioScheduleTime::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.edit") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/edit"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Edit, this); + } + else if (part == "calaos.button.delete") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/delete"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Delete, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), "calaos/icons/element/simple/play"); + } + + return o; +} + +void GenlistItemScenarioScheduleTime::buttonClickEdit() +{ + +} + +void GenlistItemScenarioScheduleTime::buttonClickDelete() +{ + +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioScheduleTime.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioScheduleTime.h new file mode 100644 index 00000000..38e38aba --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemScenarioScheduleTime.h @@ -0,0 +1,45 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemScenarioScheduleTime_H +#define GenlistItemScenarioScheduleTime_H + +#include +#include + +using namespace Utils; + +class GenlistItemScenarioScheduleTime: public GenlistItemBase +{ + private: + + public: + GenlistItemScenarioScheduleTime(Evas *evas, Evas_Object *parent, void *data = NULL); + virtual ~GenlistItemScenarioScheduleTime(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickEdit(); + void buttonClickDelete(); +}; + +#endif // GenlistItemScenarioScheduleTime_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemSimple.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimple.cpp new file mode 100644 index 00000000..16ff2563 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimple.cpp @@ -0,0 +1,136 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemSimple.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemSimple, Pressed) + +GenlistItemSimple::GenlistItemSimple(Evas *_evas, Evas_Object *_parent, string _label, bool can_select, bool _multiline, void *data, string style_addition): + GenlistItemBase(_evas, _parent, + string(can_select? "simple_select":"simple") + string(_multiline? "/multiline":"") + string((style_addition != "")? "/" + style_addition:""), + ELM_GENLIST_ITEM_NONE, data), + label(_label), + multiline(_multiline) +{ + if (multiline) + { + replace_str(label, "\n", "
"); + replace_str(label, "&", "&"); + } +} + +GenlistItemSimple::~GenlistItemSimple() +{ +} + +string GenlistItemSimple::getLabelItem(Evas_Object *obj, string part) +{ + return label; +} + +Evas_Object *GenlistItemSimple::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "icon") + { + if (icon != "") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), icon.c_str()); + + itemEmitSignal("icon,enabled", "calaos"); + } + else + { + itemEmitSignal("icon,disabled", "calaos"); + } + } + else if (part == "button") + { + if (button_icon != "") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), button_icon.c_str()); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Pressed, this); + + itemEmitSignal("button,enabled", "calaos"); + } + else + { + itemEmitSignal("button,disabled", "calaos"); + } + } + + return o; +} + +void GenlistItemSimple::buttonClickPressed() +{ + button_pressed.emit(); +} + +GenlistItemSimpleKeyValue::GenlistItemSimpleKeyValue(Evas *_evas, Evas_Object *_parent, string _label_key, string _label_value, void *data): + GenlistItemBase(_evas, _parent, "simple_info", ELM_GENLIST_ITEM_NONE, data), + label_key(_label_key), + label_value(_label_value) +{ +} + +GenlistItemSimpleKeyValue::~GenlistItemSimpleKeyValue() +{ +} + +string GenlistItemSimpleKeyValue::getLabelItem(Evas_Object *obj, string part) +{ + if (part == "key.text") + return label_key; + if (part == "value.text") + return label_value; + + return "?"; +} + +Evas_Object *GenlistItemSimpleKeyValue::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "icon") + { + if (icon != "") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), icon.c_str()); + + itemEmitSignal("icon,enabled", "calaos"); + } + else + { + itemEmitSignal("icon,disabled", "calaos"); + } + } + + return o; +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemSimple.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimple.h new file mode 100644 index 00000000..f2eb5175 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimple.h @@ -0,0 +1,72 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GENLISTITEMSIMPLE_H +#define GENLISTITEMSIMPLE_H + +#include +#include + +using namespace Utils; + +class GenlistItemSimple: public GenlistItemBase +{ + private: + string label; + string icon; + string button_icon; + bool multiline; + + public: + GenlistItemSimple(Evas *evas, Evas_Object *parent, string label, bool can_select, bool multiline = false, void *data = NULL, string style_addition = ""); + virtual ~GenlistItemSimple(); + + virtual string getLabelItem(Evas_Object *obj, string part); + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + + void setIcon(string ic) { icon = ic; } + void setButtonIcon(string ic) { button_icon = ic; } + void setLabelText(string t) { label = t; updateField("text", ELM_GENLIST_ITEM_FIELD_TEXT); } + + //private, from c callback + void buttonClickPressed(); + + //public signal + sigc::signal button_pressed; +}; + +class GenlistItemSimpleKeyValue: public GenlistItemBase +{ + private: + string label_key, label_value; + string icon; + + public: + GenlistItemSimpleKeyValue(Evas *evas, Evas_Object *parent, string label_key, string label_value, void *data = NULL); + virtual ~GenlistItemSimpleKeyValue(); + + virtual string getLabelItem(Evas_Object *obj, string part); + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + + void setIcon(string ic) { icon = ic; } +}; + +#endif // GENLISTITEMSIMPLE_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemSimpleHeader.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimpleHeader.cpp new file mode 100644 index 00000000..30fa84bd --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimpleHeader.cpp @@ -0,0 +1,37 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemSimpleHeader.h" + +GenlistItemSimpleHeader::GenlistItemSimpleHeader(Evas *_evas, Evas_Object *_parent, string _label): + GenlistItemBase(_evas, _parent, "simple_header", ELM_GENLIST_ITEM_GROUP), + label(_label) +{ +} + +GenlistItemSimpleHeader::~GenlistItemSimpleHeader() +{ +} + +string GenlistItemSimpleHeader::getLabelItem(Evas_Object *obj, string part) +{ + return label; +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemSimpleHeader.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimpleHeader.h new file mode 100644 index 00000000..7bd75bfe --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemSimpleHeader.h @@ -0,0 +1,42 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GENLISTITEMSIMPLEHEADER_H +#define GENLISTITEMSIMPLEHEADER_H + +#include +#include + +using namespace Utils; + +class GenlistItemSimpleHeader: public GenlistItemBase +{ + private: + string label; + + public: + GenlistItemSimpleHeader(Evas *evas, Evas_Object *parent, string label); + virtual ~GenlistItemSimpleHeader(); + + virtual string getLabelItem(Evas_Object *obj, string part); +}; + +#endif // GENLISTITEMSIMPLEHEADER_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemTrack.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemTrack.cpp new file mode 100644 index 00000000..eeaf3cec --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemTrack.cpp @@ -0,0 +1,248 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemTrack.h" +#include +#include +#include + +ITEM_BUTTON_CALLBACK(GenlistItemTrack, Play) +ITEM_BUTTON_CALLBACK(GenlistItemTrack, Add) +ITEM_BUTTON_CALLBACK(GenlistItemTrack, More) + +GenlistItemTrack::GenlistItemTrack(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _item_id, int request_type, int _command_id = 0, void *data): + GenlistItemBase(_evas, _parent, "browser/track", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_id(_item_id), + in_query(false), + reqtype(request_type), + command_id(_command_id) +{ +} + +GenlistItemTrack::~GenlistItemTrack() +{ +} + +string GenlistItemTrack::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!in_query) + { + switch (reqtype) + { + case TRACK_ALBUM: player->getDBAlbumTrackItem(command_id, item_id, sigc::mem_fun(*this, &GenlistItemTrack::albumItemGet_cb)); break; + case TRACK_PLAYLIST: player->getDBPlaylistTrackItem(command_id, item_id, sigc::mem_fun(*this, &GenlistItemTrack::albumItemGet_cb)); break; + case TRACK_ID: player->getDBTrackInfos(to_string(item_id), sigc::mem_fun(*this, &GenlistItemTrack::albumItemGet_cb)); + } + + in_query = true; + } + + if (part == "text") + { + if (item_infos.size() <= 0) + text = "Chargement..."; + else + text = item_infos["title"]; + } + + return text; +} + +Evas_Object *GenlistItemTrack::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "calaos.button.more") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/button/position/info"); + evas_object_smart_callback_add(o, "clicked", _item_button_More, this); + } + + return o; +} + +void GenlistItemTrack::buttonClickPlay() +{ + switch (reqtype) + { + case TRACK_PLAYLIST: + if (item_infos["remote"] == "1" && + item_infos["url"] != "") //it's a radio, play url + { + player->playItem(AudioPlayer::DB_ITEM_DIRECTURL, item_infos["url"]); + break; + } + case TRACK_ID: + case TRACK_ALBUM: player->playItem(AudioPlayer::DB_ITEM_TRACK, item_infos["id"]); break; + } +} + +void GenlistItemTrack::buttonClickAdd() +{ + switch (reqtype) + { + case TRACK_PLAYLIST: + if (item_infos["remote"] == "1" && + item_infos["url"] != "") //it's a radio, play url + { + player->addItem(AudioPlayer::DB_ITEM_DIRECTURL, item_infos["url"]); + break; + } + case TRACK_ID: + case TRACK_ALBUM: player->addItem(AudioPlayer::DB_ITEM_TRACK, item_infos["id"]); break; + } +} + +void GenlistItemTrack::albumItemGet_cb(Params &infos) +{ + item_infos = infos; + if (!item_infos.Exists("id") && item_infos.Exists("track_id")) + item_infos.Add("id", item_infos["track_id"]); + + cout << "Got infos..." << item_infos.toString() << endl; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void GenlistItemTrack::buttonClickMore() +{ + Evas_Object *table = createPaddingTable(evas, parent, 260, 200); + + Evas_Object *glist = elm_genlist_add(parent); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Info de la piste #" + to_string(item_id + 1) + "
Détails de la piste."; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + string infolabel; + if (item_infos["artist"] != "") + { + infolabel = item_infos["artist"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Artiste :", infolabel); + item->Append(glist, header); + } + if (item_infos["album"] != "") + { + infolabel = item_infos["album"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Album :", infolabel); + item->Append(glist, header); + } + if (item_infos["title"] != "") + { + infolabel = item_infos["title"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Titre :", infolabel); + item->Append(glist, header); + } + if (item_infos["duration"] != "") + { + double dur; + from_string(item_infos["duration"], dur); + infolabel = Utils::time2string_digit((long)dur); + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Durée :", infolabel); + item->Append(glist, header); + } + if (item_infos["genre"] != "") + { + infolabel = item_infos["genre"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Genre :", infolabel); + item->Append(glist, header); + } + if (item_infos["type"] != "") + { + infolabel = item_infos["type"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Type de flux :", infolabel); + item->Append(glist, header); + } + if (item_infos["bitrate"] != "") + { + infolabel = item_infos["bitrate"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Débit :", infolabel); + item->Append(glist, header); + } + if (item_infos["filesize"] != "") + { + long int s; + from_string(item_infos["filesize"], s); + s /= 1024; + s /= 1024; + infolabel = to_string(s) + " Mo"; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Taille :", infolabel); + item->Append(glist, header); + } + if (item_infos["samplerate"] != "") + { + infolabel = item_infos["samplerate"] + " Hz"; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Echantillonage :", infolabel); + item->Append(glist, header); + } + if (item_infos["tagversion"] != "") + { + infolabel = item_infos["tagversion"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Version du tag :", infolabel); + item->Append(glist, header); + } + if (item_infos["comment"] != "") + { + infolabel = item_infos["comment"]; + GenlistItemSimpleKeyValue *item = new GenlistItemSimpleKeyValue(evas, glist, "Commentaire :", infolabel); + item->Append(glist, header); + } + + elm_table_pack(table, glist, 1, 1, 1, 1); + + Evas_Object *popup_position = elm_ctxpopup_add(parent); + elm_object_style_set(popup_position, "calaos"); + evas_object_size_hint_min_set(popup_position, 300, 240); + + elm_object_content_set(popup_position, table); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup_position, x, y); + evas_object_show(popup_position); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemTrack.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemTrack.h new file mode 100644 index 00000000..d5c740b5 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemTrack.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemTrack_H +#define GenlistItemTrack_H + +#include +#include + +using namespace Utils; + +class GenlistItemTrack: public GenlistItemBase +{ + private: + AudioPlayer *player; + int item_id, album_id; + Params item_infos; + bool in_query; + int reqtype; + int command_id; + + void albumItemGet_cb(Params &infos); + + public: + enum { TRACK_ALBUM, TRACK_PLAYLIST, TRACK_ID }; + + GenlistItemTrack(Evas *evas, Evas_Object *parent, AudioPlayer *player, int item_id, int request_type, int _command_id, void *data = NULL); + virtual ~GenlistItemTrack(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + void buttonClickMore(); + + int getItemId() { return item_id; } + Params getItemInfos() { return item_infos; } +}; + +#endif // GenlistItemTrack_H diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemYear.cpp b/src/bin/calaos_home/views/GenlistItems/GenlistItemYear.cpp new file mode 100644 index 00000000..e450c409 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemYear.cpp @@ -0,0 +1,108 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "GenlistItemYear.h" +#include + +ITEM_BUTTON_CALLBACK(GenlistItemYear, Play) +ITEM_BUTTON_CALLBACK(GenlistItemYear, Add) + +GenlistItemYear::GenlistItemYear(Evas *_evas, Evas_Object *_parent, AudioPlayer *_player, int _item_id, void *data): + GenlistItemBase(_evas, _parent, "browser/default", ELM_GENLIST_ITEM_NONE, data), + player(_player), + item_id(_item_id), + in_query(false) +{ +} + +GenlistItemYear::~GenlistItemYear() +{ +} + +string GenlistItemYear::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!in_query) + { + player->getDBYearItem(item_id, sigc::mem_fun(*this, &GenlistItemYear::yearItemGet_cb)); + in_query = true; + } + + if (part == "text") + { + if (item_infos.size() <= 0) + text = "Chargement..."; + else + text = item_infos["year"]; + } + + return text; +} + +Evas_Object *GenlistItemYear::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "calaos.button.play") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Play, this); + } + else if (part == "calaos.button.add") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Add, this); + } + else if (part == "icon") + { + o = elm_icon_add(parent); + elm_image_file_set(o, ApplicationMain::getTheme(), "calaos/icons/genlist/note_on"); + } + + return o; +} + +void GenlistItemYear::buttonClickPlay() +{ + player->playItem(AudioPlayer::DB_ITEM_YEAR, item_infos["year"]); +} + +void GenlistItemYear::buttonClickAdd() +{ + player->addItem(AudioPlayer::DB_ITEM_YEAR, item_infos["year"]); +} + +void GenlistItemYear::yearItemGet_cb(Params &infos) +{ + cout << "Got infos..." << infos.toString() << endl; + item_infos = infos; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/GenlistItems/GenlistItemYear.h b/src/bin/calaos_home/views/GenlistItems/GenlistItemYear.h new file mode 100644 index 00000000..c51150c7 --- /dev/null +++ b/src/bin/calaos_home/views/GenlistItems/GenlistItemYear.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef GenlistItemYear_H +#define GenlistItemYear_H + +#include +#include + +using namespace Utils; + +class GenlistItemYear: public GenlistItemBase +{ + private: + AudioPlayer *player; + int item_id; + Params item_infos; + bool in_query; + + void yearItemGet_cb(Params &infos); + + public: + GenlistItemYear(Evas *evas, Evas_Object *parent, AudioPlayer *player, int item_id, void *data = NULL); + virtual ~GenlistItemYear(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + void buttonClickPlay(); + void buttonClickAdd(); + + int getItemId() { return item_id; } + Params getItemInfos() { return item_infos; } +}; + +#endif // GenlistItemYear_H diff --git a/src/bin/calaos_home/views/IO/IOGenlistRoomGroup.cpp b/src/bin/calaos_home/views/IO/IOGenlistRoomGroup.cpp new file mode 100644 index 00000000..cf360ea3 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOGenlistRoomGroup.cpp @@ -0,0 +1,112 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOGenlistRoomGroup.h" +#include + +IOGenlistRoomGroup::IOGenlistRoomGroup(Evas *_evas, Evas_Object *_parent, Room *_room, string style_addition): + GenlistItemBase(_evas, _parent, string("group_room") + style_addition, ELM_GENLIST_ITEM_GROUP), + room(_room) +{ +} + +IOGenlistRoomGroup::~IOGenlistRoomGroup() +{ +} + +void IOGenlistRoomGroup::itemAdded() +{ + elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); +} + +Evas_Object *IOGenlistRoomGroup::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + return o; +} + +string IOGenlistRoomGroup::getLabelItem(Evas_Object *obj, string part) +{ + return room->name; +} + +IOGenlistRoomGroupIcon::IOGenlistRoomGroupIcon(Evas *_evas, Evas_Object *_parent, Room *_room, string style_addition): + GenlistItemBase(_evas, _parent, string("group_room/icon") + style_addition, ELM_GENLIST_ITEM_GROUP), + room(_room) +{ +} + +IOGenlistRoomGroupIcon::~IOGenlistRoomGroupIcon() +{ +} + +void IOGenlistRoomGroupIcon::itemAdded() +{ + elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY); +} + +Evas_Object *IOGenlistRoomGroupIcon::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (part == "icon") + { + string type = room->type; + string t = type; + + if (type == "salon") t = "lounge"; + if (type == "chambre") t = "bedroom"; + if (type == "cuisine") t = "kitchen"; + if (type == "bureau") t = "office"; + if (type == "sam") t = "diningroom"; + if (type == "cave") t = "cellar"; + if (type == "divers") t = "various"; + if (type == "misc") t = "various"; + if (type == "exterieur") t = "outside"; + if (type == "sdb") t = "bathroom"; + if (type == "hall") t = "corridor"; + if (type == "couloir") t = "corridor"; + + EdjeObject *icon = new EdjeObject(ApplicationMain::getTheme(), evas); + string group = "calaos/icons/room/"; + + try + { + icon->LoadEdje(group + t); + } + catch(...) + { + //room not found, load default + icon->LoadEdje("calaos/icons/room/various"); + } + + icon->setAutoDelete(true); + o = icon->getEvasObject(); + } + + return o; +} + +string IOGenlistRoomGroupIcon::getLabelItem(Evas_Object *obj, string part) +{ + return room->name; +} + diff --git a/src/bin/calaos_home/views/IO/IOGenlistRoomGroup.h b/src/bin/calaos_home/views/IO/IOGenlistRoomGroup.h new file mode 100644 index 00000000..3ef489f7 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOGenlistRoomGroup.h @@ -0,0 +1,61 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOGENLISTROOMGROUP_H +#define IOGENLISTROOMGROUP_H + +#include +#include + +using namespace Utils; + +class IOGenlistRoomGroup: public GenlistItemBase +{ + private: + Room *room; + + virtual void itemAdded(); + + public: + IOGenlistRoomGroup(Evas *evas, Evas_Object *parent, Room *room, string style_addition); + virtual ~IOGenlistRoomGroup(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); +}; + +class IOGenlistRoomGroupIcon: public GenlistItemBase +{ + private: + Room *room; + + virtual void itemAdded(); + + public: + IOGenlistRoomGroupIcon(Evas *evas, Evas_Object *parent, Room *room, string style_addition); + virtual ~IOGenlistRoomGroupIcon(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + Room *getRoom() { return room; } +}; + +#endif // IOGENLISTROOMGROUP_H diff --git a/src/bin/calaos_home/views/IO/IOGenlistScenarioHomeView.cpp b/src/bin/calaos_home/views/IO/IOGenlistScenarioHomeView.cpp new file mode 100644 index 00000000..a7a2d456 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOGenlistScenarioHomeView.cpp @@ -0,0 +1,176 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOGenlistScenarioHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOGenlistScenarioHomeView, Go) + +IOGenlistScenarioHomeView::IOGenlistScenarioHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("scenario_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOGenlistScenarioHomeView::~IOGenlistScenarioHomeView() +{ +} + +void IOGenlistScenarioHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOGenlistScenarioHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.go") + { + object_button = o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + + if (io->params["state"] == "true") + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/stop"); + else + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Go, this); + } + + initView(); + + return o; +} + +string IOGenlistScenarioHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + + return text; +} + +void IOGenlistScenarioHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + //Don't change button state if it's not a SimpleScenario + if (io->params["ioBoolState"] == "") + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + + elm_image_file_set(elm_object_content_get(object_button), ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + + return; + } + + if (io->params["state"] == "true") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } +} + +void IOGenlistScenarioHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + //Don't change button state if it's not a SimpleScenario + if (io->params["ioBoolState"] == "") + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + + elm_image_file_set(elm_object_content_get(object_button), ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + + return; + } + + if (io->params["state"] != state) + { + + if (io->params["state"] == "true") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,anim", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + } + + if (io->params["state"] == "true") + elm_image_file_set(elm_object_content_get(object_button), ApplicationMain::getTheme(), "calaos/icons/action_button/stop"); + else + elm_image_file_set(elm_object_content_get(object_button), ApplicationMain::getTheme(), "calaos/icons/action_button/play"); + + state = io->params["state"]; + } +} + +void IOGenlistScenarioHomeView::buttonClickGo() +{ + if (!io) return; + + io->sendAction("true"); + + if (io->params["ioBoolState"] == "") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,anim", "calaos"); + + elm_image_file_set(elm_object_content_get(object_button), ApplicationMain::getTheme(), "calaos/icons/action_button/stop"); + + //If it's not a SimpleScenario, just flash button when user click it. + EcoreTimer::singleShot(0.7, sigc::mem_fun(*this, &IOGenlistScenarioHomeView::clickFlashButton_cb)); + } +} + +void IOGenlistScenarioHomeView::clickFlashButton_cb() +{ + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + + elm_image_file_set(elm_object_content_get(object_button), ApplicationMain::getTheme(), "calaos/icons/action_button/play"); +} diff --git a/src/bin/calaos_home/views/IO/IOGenlistScenarioHomeView.h b/src/bin/calaos_home/views/IO/IOGenlistScenarioHomeView.h new file mode 100644 index 00000000..51dcf2a6 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOGenlistScenarioHomeView.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOGENLISTSCENARIOHOMEVIEW_H +#define IOGENLISTSCENARIOHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOGenlistScenarioHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + Evas_Object *object_button; + + string state; + + virtual void ioDeleted(); + void clickFlashButton_cb(); + + public: + IOGenlistScenarioHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOGenlistScenarioHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickGo(); +}; + +#endif // IOGENLISTSCENARIOHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOInternalBoolHomeView.cpp b/src/bin/calaos_home/views/IO/IOInternalBoolHomeView.cpp new file mode 100644 index 00000000..a22f3fcf --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOInternalBoolHomeView.cpp @@ -0,0 +1,136 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOInternalBoolHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOInternalBoolHomeView, On) +ITEM_BUTTON_CALLBACK(IOInternalBoolHomeView, Off) + +IOInternalBoolHomeView::IOInternalBoolHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("InternalBool_") + style_addition + ((_io->params["rw"] == "true")?"/rw":""), flags), + IOBaseElement(_io) +{ +} + +IOInternalBoolHomeView::~IOInternalBoolHomeView() +{ +} + +void IOInternalBoolHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOInternalBoolHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.on") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/select"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_On, this); + } + else if (part == "calaos.button.off") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/unselect"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Off, this); + } + + initView(); + + return o; +} + +string IOInternalBoolHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + + return text; +} + +void IOInternalBoolHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->params["state"] == "true") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } +} + +void IOInternalBoolHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->params["state"] == "true") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,anim", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + } +} + +void IOInternalBoolHomeView::buttonClickOn() +{ + if (!io) return; + + io->sendAction("true"); +} + +void IOInternalBoolHomeView::buttonClickOff() +{ + if (!io) return; + + io->sendAction("false"); +} diff --git a/src/bin/calaos_home/views/IO/IOInternalBoolHomeView.h b/src/bin/calaos_home/views/IO/IOInternalBoolHomeView.h new file mode 100644 index 00000000..dc82c2ce --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOInternalBoolHomeView.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOINTERNALBOOLHOMEVIEW_H +#define IOINTERNALBOOLHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOInternalBoolHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOInternalBoolHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOInternalBoolHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickOn(); + void buttonClickOff(); +}; + +#endif // IOINTERNALBOOLHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOInternalIntHomeView.cpp b/src/bin/calaos_home/views/IO/IOInternalIntHomeView.cpp new file mode 100644 index 00000000..03244eb9 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOInternalIntHomeView.cpp @@ -0,0 +1,124 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOInternalIntHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOInternalIntHomeView, More) +ITEM_BUTTON_CALLBACK(IOInternalIntHomeView, Less) + +IOInternalIntHomeView::IOInternalIntHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("InternalInt_") + style_addition + ((_io->params["rw"] == "true")?"/rw":""), flags), + IOBaseElement(_io) +{ +} + +IOInternalIntHomeView::~IOInternalIntHomeView() +{ +} + +void IOInternalIntHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOInternalIntHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.plus") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_More, this); + } + else if (part == "calaos.button.moins") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/less"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Less, this); + } + + initView(); + + return o; +} + +string IOInternalIntHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + if (part == "item.value") + text = io->params["state"]; + + return text; +} + +void IOInternalIntHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOInternalIntHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOInternalIntHomeView::buttonClickMore() +{ + if (!io) return; + + double value; + from_string(io->params["state"], value); + value++; + io->sendAction(to_string(value)); +} + +void IOInternalIntHomeView::buttonClickLess() +{ + if (!io) return; + + double value; + from_string(io->params["state"], value); + value--; + io->sendAction(to_string(value)); +} diff --git a/src/bin/calaos_home/views/IO/IOInternalIntHomeView.h b/src/bin/calaos_home/views/IO/IOInternalIntHomeView.h new file mode 100644 index 00000000..4f4f254f --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOInternalIntHomeView.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOINTERNALINTHOMEVIEW_H +#define IOINTERNALINTHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOInternalIntHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOInternalIntHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOInternalIntHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickMore(); + void buttonClickLess(); +}; + +#endif // IOINTERNALINTHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOInternalStringHomeView.cpp b/src/bin/calaos_home/views/IO/IOInternalStringHomeView.cpp new file mode 100644 index 00000000..e10aaaa6 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOInternalStringHomeView.cpp @@ -0,0 +1,111 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOInternalStringHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOInternalStringHomeView, Text) + +IOInternalStringHomeView::IOInternalStringHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("InternalString_") + style_addition + ((_io->params["rw"] == "true")?"/rw":""), flags), + IOBaseElement(_io) +{ +} + +IOInternalStringHomeView::~IOInternalStringHomeView() +{ +} + +void IOInternalStringHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOInternalStringHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.text") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/keyboard"); + elm_object_style_set(o, "calaos/action_button/pink"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Text, this); + } + + initView(); + + return o; +} + +string IOInternalStringHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + { + if (io->params["state"] == "") + text = io->params["name"]; + else + text = io->params["state"]; + } + + return text; +} + +void IOInternalStringHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOInternalStringHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOInternalStringHomeView::buttonClickText() +{ + if (!io) return; + + ApplicationMain::Instance().ShowKeyboard("Changer la valeur", + sigc::mem_fun(*this, &IOInternalStringHomeView::changeTextCb), + false); +} + +void IOInternalStringHomeView::changeTextCb(string text) +{ + if (!io) return; + + io->sendAction(text); +} diff --git a/src/bin/calaos_home/views/IO/IOInternalStringHomeView.h b/src/bin/calaos_home/views/IO/IOInternalStringHomeView.h new file mode 100644 index 00000000..620cd38c --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOInternalStringHomeView.h @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOINTERNALSTRINGHOMEVIEW_H +#define IOINTERNALSTRINGHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOInternalStringHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + void changeTextCb(string text); + + public: + IOInternalStringHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOInternalStringHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickText(); +}; + +#endif // IOINTERNALSTRINGHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOScenarioHomeView.cpp b/src/bin/calaos_home/views/IO/IOScenarioHomeView.cpp new file mode 100644 index 00000000..4a92e420 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOScenarioHomeView.cpp @@ -0,0 +1,91 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#include "IOScenarioHomeView.h" + +IOScenarioHomeView::IOScenarioHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io): + IOView(_evas, _parent, _io, "calaos/element/scenario_home") +{ + addCallback("object", "go", sigc::mem_fun(*this, &IOScenarioHomeView::clickScenario)); +} + +IOScenarioHomeView::~IOScenarioHomeView() +{ +} + +void IOScenarioHomeView::initView() +{ + if (io) + { + EmitSignal("show,normal", "calaos"); + } + else + { + EmitSignal("show,empty", "calaos"); + EmitSignal("scenario,false", "calaos"); + } + + updateView(); +} + +void IOScenarioHomeView::updateView() +{ + if (io) + { + setPartText("object.text", io->params["name"]); + + //Don't change button state if it's not a SimpleScenario + if (io->params["ioBoolState"] == "") + return; + + //Only send signal if state really changed. + //Without that hack it breaks edje animation for state change + if (io->params["state"] != state) + { + if (io->params["state"] == "true") + EmitSignal("scenario,true", "calaos"); + else + EmitSignal("scenario,false", "calaos"); + + state = io->params["state"]; + } + } +} + +void IOScenarioHomeView::clickScenario(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (!io) return; + + io->sendAction("true"); + + if (io->params["ioBoolState"] == "") + { + EmitSignal("scenario,true", "calaos"); + + //If it's not a SimpleScenario, just flash button when user click it. + EcoreTimer::singleShot(0.7, sigc::mem_fun(*this, &IOScenarioHomeView::clickFlashButton_cb)); + } +} + +void IOScenarioHomeView::clickFlashButton_cb() +{ + EmitSignal("scenario,false", "calaos"); +} diff --git a/src/bin/calaos_home/views/IO/IOScenarioHomeView.h b/src/bin/calaos_home/views/IO/IOScenarioHomeView.h new file mode 100644 index 00000000..77cae793 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOScenarioHomeView.h @@ -0,0 +1,46 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOSCENARIOHOMEVIEW_H +#define IOSCENARIOHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOScenarioHomeView: public IOView +{ + private: + void clickScenario(void *data, Evas_Object *edje_object, string emission, string source); + + string state; + + void clickFlashButton_cb(); + + public: + IOScenarioHomeView(Evas *evas, Evas_Object *parent, IOBase *io); + virtual ~IOScenarioHomeView(); + + virtual void initView(); + virtual void updateView(); +}; + +#endif // IOSCENARIOHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWIAnalogHomeView.cpp b/src/bin/calaos_home/views/IO/IOWIAnalogHomeView.cpp new file mode 100644 index 00000000..88bb8dae --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWIAnalogHomeView.cpp @@ -0,0 +1,82 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWIAnalogHomeView.h" +#include + +IOWIAnalogHomeView::IOWIAnalogHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WIAnalog_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWIAnalogHomeView::~IOWIAnalogHomeView() +{ +} + +void IOWIAnalogHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWIAnalogHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + initView(); + + return o; +} + +string IOWIAnalogHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + else if (part == "item.value") + text = io->params["state"] + " " + io->params["unit"]; + + return text; +} + +void IOWIAnalogHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOWIAnalogHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/IO/IOWIAnalogHomeView.h b/src/bin/calaos_home/views/IO/IOWIAnalogHomeView.h new file mode 100644 index 00000000..19caf9e5 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWIAnalogHomeView.h @@ -0,0 +1,46 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWIANALOGHOMEVIEW_H +#define IOWIANALOGHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWIAnalogHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOWIAnalogHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWIAnalogHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); +}; + +#endif // IOWIANALOGHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWITempHomeView.cpp b/src/bin/calaos_home/views/IO/IOWITempHomeView.cpp new file mode 100644 index 00000000..6e26d667 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWITempHomeView.cpp @@ -0,0 +1,90 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWITempHomeView.h" +#include + +IOWITempHomeView::IOWITempHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WITemp_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWITempHomeView::~IOWITempHomeView() +{ +} + +void IOWITempHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWITempHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + initView(); + + return o; +} + +string IOWITempHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + { + text = io->params["name"]; + } + else if (part == "item.value") + { + text = io->params["state"] + " °C"; + + IOBase *consigne = CalaosModel::Instance().getHome()->getConsigneFromTemp(io); + if (consigne) + text += " / " + consigne->params["state"] + " °C"; + } + + return text; +} + +void IOWITempHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOWITempHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} diff --git a/src/bin/calaos_home/views/IO/IOWITempHomeView.h b/src/bin/calaos_home/views/IO/IOWITempHomeView.h new file mode 100644 index 00000000..57234bcd --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWITempHomeView.h @@ -0,0 +1,46 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWITEMPHOMEVIEW_H +#define IOWITEMPHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWITempHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOWITempHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWITempHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); +}; + +#endif // IOWITEMPHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWOAnalogHomeView.cpp b/src/bin/calaos_home/views/IO/IOWOAnalogHomeView.cpp new file mode 100644 index 00000000..245fb089 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWOAnalogHomeView.cpp @@ -0,0 +1,124 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWOAnalogHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOWOAnalogHomeView, More) +ITEM_BUTTON_CALLBACK(IOWOAnalogHomeView, Less) + +IOWOAnalogHomeView::IOWOAnalogHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WOAnalog_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWOAnalogHomeView::~IOWOAnalogHomeView() +{ +} + +void IOWOAnalogHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWOAnalogHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.plus") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/more"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_More, this); + } + else if (part == "calaos.button.moins") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/less"); + elm_object_style_set(o, "calaos/action_button/blue"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Less, this); + } + + initView(); + + return o; +} + +string IOWOAnalogHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + else if (part == "item.value") + text = io->params["state"] + " " + io->params["unit"]; + + return text; +} + +void IOWOAnalogHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOWOAnalogHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "item.value", ELM_GENLIST_ITEM_FIELD_TEXT); +} + +void IOWOAnalogHomeView::buttonClickMore() +{ + if (!io) return; + + double value; + from_string(io->params["state"], value); + value++; + io->sendAction(to_string(value)); +} + +void IOWOAnalogHomeView::buttonClickLess() +{ + if (!io) return; + + double value; + from_string(io->params["state"], value); + value--; + io->sendAction(to_string(value)); +} diff --git a/src/bin/calaos_home/views/IO/IOWOAnalogHomeView.h b/src/bin/calaos_home/views/IO/IOWOAnalogHomeView.h new file mode 100644 index 00000000..cff609a5 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWOAnalogHomeView.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWOANALOGHOMEVIEW_H +#define IOWOANALOGHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWOAnalogHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOWOAnalogHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWOAnalogHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickMore(); + void buttonClickLess(); +}; + +#endif // IOWOANALOGHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWODaliHomeView.cpp b/src/bin/calaos_home/views/IO/IOWODaliHomeView.cpp new file mode 100644 index 00000000..ce216086 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWODaliHomeView.cpp @@ -0,0 +1,232 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWODaliHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOWODaliHomeView, On) +ITEM_BUTTON_CALLBACK(IOWODaliHomeView, Off) +ITEM_BUTTON_CALLBACK(IOWODaliHomeView, More) +ITEM_BUTTON_CALLBACK(IOWODaliHomeView, Less) + +IOWODaliHomeView::IOWODaliHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WODali_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWODaliHomeView::~IOWODaliHomeView() +{ +} + +void IOWODaliHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWODaliHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + else if (part == "calaos.button.on") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/light_on"); + elm_object_style_set(o, "calaos/action_button/yellow"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_On, this); + } + else if (part == "calaos.button.off") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/light_off"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Off, this); + } + else if (part == "calaos.button.more") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_more"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_More, this); + } + else if (part == "calaos.button.less") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_less"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Less, this); + } + else if (part == "calaos.slider") + { + slider = new EdjeObject(ApplicationMain::getTheme(), evas); + slider->setAutoDelete(true); + slider->object_deleted.connect(sigc::mem_fun(*this, &IOWODaliHomeView::sliderObjectDeleted)); + slider->addCallback("object", "*", sigc::mem_fun(*this, &IOWODaliHomeView::sliderSignalCallback)); + slider->LoadEdje("calaos/slider/horizontal/default"); + slider->Show(); + + slider->setDragValue("slider", io->getDaliValueFromState() / 100.0, 0.0); + + o = slider->getEvasObject(); + } + + initView(); + + return o; +} + +string IOWODaliHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + { + text = io->params["name"]; + } + else if (part == "text.value") + { + double value = io->getDaliValueFromState(); + int percent = (int)value; + + text = to_string(percent) + "%"; + } + + return text; +} + +void IOWODaliHomeView::sliderObjectDeleted() +{ + slider = NULL; +} + +void IOWODaliHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "text.value", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->getDaliValueFromState() > 0.0) + { + itemEmitSignal("text,active,yellow", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } +} + +void IOWODaliHomeView::updateView() +{ + if (!io || !item) + return; + + double value = io->getDaliValueFromState(); + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "text.value", ELM_GENLIST_ITEM_FIELD_TEXT); + slider->setDragValue("slider", value / 100.0, 0.0); + + if (value > 0.0) + { + itemEmitSignal("text,active,yellow", "calaos"); + itemEmitSignal("on,anim", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + } +} + +void IOWODaliHomeView::sliderSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (emission == "slider,start") + { + elm_object_scroll_freeze_push(genlist); + } + else if (emission == "slider,move") + { + } + else if (emission == "slider,changed") + { + double x; + slider->getDragValue("slider", &x, NULL); + + string action = "set "; + action += to_string((int)(x * 100.0)); + + if (io) io->sendAction(action); + + elm_object_scroll_freeze_pop(genlist); + } + +} + +void IOWODaliHomeView::buttonClickOn() +{ + if (!io) return; + + io->sendAction("true"); +} + +void IOWODaliHomeView::buttonClickOff() +{ + if (!io) return; + + io->sendAction("false"); +} + +void IOWODaliHomeView::buttonClickMore() +{ + if (!io) return; + + string action = "set "; + action += to_string((int)(io->getDaliValueFromState() + 1)); + + io->sendAction(action); +} + +void IOWODaliHomeView::buttonClickLess() +{ + if (!io) return; + + string action = "set "; + action += to_string((int)(io->getDaliValueFromState() - 1)); + + io->sendAction(action); +} diff --git a/src/bin/calaos_home/views/IO/IOWODaliHomeView.h b/src/bin/calaos_home/views/IO/IOWODaliHomeView.h new file mode 100644 index 00000000..619079cd --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWODaliHomeView.h @@ -0,0 +1,57 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWODALIHOMEVIEW_H +#define IOWODALIHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWODaliHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + EdjeObject *slider; + + void sliderObjectDeleted(); + + void sliderSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + + public: + IOWODaliHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWODaliHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickOn(); + void buttonClickOff(); + void buttonClickMore(); + void buttonClickLess(); +}; + +#endif // IOWODALIHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWODaliRVBHomeView.cpp b/src/bin/calaos_home/views/IO/IOWODaliRVBHomeView.cpp new file mode 100644 index 00000000..3af1bf9d --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWODaliRVBHomeView.cpp @@ -0,0 +1,433 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWODaliRVBHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, On) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, Off) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, RedMore) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, RedLess) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, GreenMore) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, GreenLess) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, BlueMore) +ITEM_BUTTON_CALLBACK(IOWODaliRVBHomeView, BlueLess) + +IOWODaliRVBHomeView::IOWODaliRVBHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WODaliRVB_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWODaliRVBHomeView::~IOWODaliRVBHomeView() +{ +} + +void IOWODaliRVBHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWODaliRVBHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + else if (part == "calaos.button.on") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/light_on"); + elm_object_style_set(o, "calaos/action_button/yellow"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_On, this); + } + else if (part == "calaos.button.off") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/light_off"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Off, this); + } + else if (part == "calaos.button.red.more") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_more"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_RedMore, this); + } + else if (part == "calaos.button.red.less") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_less"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_RedLess, this); + } + else if (part == "calaos.button.green.more") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_more"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_GreenMore, this); + } + else if (part == "calaos.button.green.less") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_less"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_GreenLess, this); + } + else if (part == "calaos.button.blue.more") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_more"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_BlueMore, this); + } + else if (part == "calaos.button.blue.less") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/slider_less"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_BlueLess, this); + } + else if (part == "calaos.slider.red") + { + slider_red = new EdjeObject(ApplicationMain::getTheme(), evas); + slider_red->setAutoDelete(true); + slider_red->object_deleted.connect(sigc::mem_fun(*this, &IOWODaliRVBHomeView::sliderRedObjectDeleted)); + slider_red->addCallback("object", "*", sigc::mem_fun(*this, &IOWODaliRVBHomeView::sliderSignalCallback), slider_red); + slider_red->LoadEdje("calaos/slider/horizontal/red"); + slider_red->Show(); + + int r, g, b; + io->getRGBValueFromState(r, g, b); + slider_red->setDragValue("slider", r / 100.0, 0.0); + + o = slider_red->getEvasObject(); + } + else if (part == "calaos.slider.green") + { + slider_green = new EdjeObject(ApplicationMain::getTheme(), evas); + slider_green->setAutoDelete(true); + slider_green->object_deleted.connect(sigc::mem_fun(*this, &IOWODaliRVBHomeView::sliderRedObjectDeleted)); + slider_green->addCallback("object", "*", sigc::mem_fun(*this, &IOWODaliRVBHomeView::sliderSignalCallback), slider_green); + slider_green->LoadEdje("calaos/slider/horizontal/green"); + slider_green->Show(); + + int r, g, b; + io->getRGBValueFromState(r, g, b); + slider_green->setDragValue("slider", g / 100.0, 0.0); + + o = slider_green->getEvasObject(); + } + else if (part == "calaos.slider.blue") + { + slider_blue = new EdjeObject(ApplicationMain::getTheme(), evas); + slider_blue->setAutoDelete(true); + slider_blue->object_deleted.connect(sigc::mem_fun(*this, &IOWODaliRVBHomeView::sliderRedObjectDeleted)); + slider_blue->addCallback("object", "*", sigc::mem_fun(*this, &IOWODaliRVBHomeView::sliderSignalCallback), slider_blue); + slider_blue->LoadEdje("calaos/slider/horizontal/blue"); + slider_blue->Show(); + + int r, g, b; + io->getRGBValueFromState(r, g, b); + slider_blue->setDragValue("slider", b / 100.0, 0.0); + + o = slider_blue->getEvasObject(); + } + else if (part == "color.preview") + { + int r, g, b, a = 255; + io->getRGBValueFromState(r, g, b); + if (r == 0 && g == 0 && b == 0) a = 100; + + color_preview = evas_object_rectangle_add(evas); + evas_object_color_set(color_preview, r, g, b, a); + evas_object_show(color_preview); + + o = color_preview; + } + + initView(); + + return o; +} + +string IOWODaliRVBHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + { + text = io->params["name"]; + } + else if (part == "text.value.red") + { + int r, g, b; + io->getRGBValueFromState(r, g, b); + + text = to_string(r) + "%"; + } + else if (part == "text.value.green") + { + int r, g, b; + io->getRGBValueFromState(r, g, b); + + text = to_string(g) + "%"; + } + else if (part == "text.value.blue") + { + int r, g, b; + io->getRGBValueFromState(r, g, b); + + text = to_string(b) + "%"; + } + + return text; +} + +void IOWODaliRVBHomeView::sliderRedObjectDeleted() +{ + slider_red = NULL; +} + +void IOWODaliRVBHomeView::sliderGreenObjectDeleted() +{ + slider_green = NULL; +} + +void IOWODaliRVBHomeView::sliderBlueObjectDeleted() +{ + slider_blue = NULL; +} + +void IOWODaliRVBHomeView::initView() +{ + if (!io || !item) + return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + if (r > 0 || g > 0 || b > 0) + { + itemEmitSignal("text,active,yellow", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } +} + +void IOWODaliRVBHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "text.value.red", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "text.value.green", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "text.value.blue", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "color.preview", ELM_GENLIST_ITEM_FIELD_CONTENT); + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + slider_red->setDragValue("slider", r / 100.0, 0.0); + slider_green->setDragValue("slider", g / 100.0, 0.0); + slider_blue->setDragValue("slider", b / 100.0, 0.0); + + if (r > 0 || g > 0 || b > 0) + { + itemEmitSignal("text,active,yellow", "calaos"); + itemEmitSignal("on,anim", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + } +} + +void IOWODaliRVBHomeView::sliderSignalCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + EdjeObject *slider = reinterpret_cast(data); + if (!slider) return; + + if (emission == "slider,start") + { + elm_object_scroll_freeze_push(genlist); + } + else if (emission == "slider,move") + { + } + else if (emission == "slider,changed") + { + double x; + int r, g, b; + slider->getDragValue("slider", &x, NULL); + + io->getRGBValueFromState(r, g, b); + + if (slider == slider_red) r = x * 100; + if (slider == slider_green) g = x * 100; + if (slider == slider_blue) b = x * 100; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + if (io) io->sendAction(action); + + elm_object_scroll_freeze_pop(genlist); + } + +} + +void IOWODaliRVBHomeView::buttonClickOn() +{ + if (!io) return; + + io->sendAction("true"); +} + +void IOWODaliRVBHomeView::buttonClickOff() +{ + if (!io) return; + + io->sendAction("false"); +} + +void IOWODaliRVBHomeView::buttonClickRedMore() +{ + if (!io) return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + r += 5; + if (r > 100) r = 100; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + io->sendAction(action); +} + +void IOWODaliRVBHomeView::buttonClickRedLess() +{ + if (!io) return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + r -= 5; + if (r < 0) r = 0; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + io->sendAction(action); +} + +void IOWODaliRVBHomeView::buttonClickGreenMore() +{ + if (!io) return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + g += 5; + if (g > 100) g = 100; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + io->sendAction(action); +} + +void IOWODaliRVBHomeView::buttonClickGreenLess() +{ + if (!io) return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + g -= 5; + if (g < 0) g = 0; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + io->sendAction(action); +} + +void IOWODaliRVBHomeView::buttonClickBlueMore() +{ + if (!io) return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + b += 5; + if (b > 100) b = 100; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + io->sendAction(action); +} + +void IOWODaliRVBHomeView::buttonClickBlueLess() +{ + if (!io) return; + + int r, g, b; + io->getRGBValueFromState(r, g, b); + + b -= 5; + if (b < 0) b = 0; + + string action = "set "; + action += to_string(io->computeStateFromRGBValue(r, g, b)); + + io->sendAction(action); +} diff --git a/src/bin/calaos_home/views/IO/IOWODaliRVBHomeView.h b/src/bin/calaos_home/views/IO/IOWODaliRVBHomeView.h new file mode 100644 index 00000000..a47bb57d --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWODaliRVBHomeView.h @@ -0,0 +1,67 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWODALIRVBHOMEVIEW_H +#define IOWODALIRVBHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWODaliRVBHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + EdjeObject *slider_red; + EdjeObject *slider_green; + EdjeObject *slider_blue; + Evas_Object *color_preview; + + void sliderRedObjectDeleted(); + void sliderGreenObjectDeleted(); + void sliderBlueObjectDeleted(); + + void sliderSignalCallback(void *data, Evas_Object *edje_object, string emission, string source); + + public: + IOWODaliRVBHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWODaliRVBHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickOn(); + void buttonClickOff(); + + void buttonClickRedMore(); + void buttonClickRedLess(); + void buttonClickGreenMore(); + void buttonClickGreenLess(); + void buttonClickBlueMore(); + void buttonClickBlueLess(); +}; + +#endif // IOWODALIRVBHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWODigitalHomeView.cpp b/src/bin/calaos_home/views/IO/IOWODigitalHomeView.cpp new file mode 100644 index 00000000..740daa08 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWODigitalHomeView.cpp @@ -0,0 +1,136 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWODigitalHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOWODigitalHomeView, On) +ITEM_BUTTON_CALLBACK(IOWODigitalHomeView, Off) + +IOWODigitalHomeView::IOWODigitalHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WODigital_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWODigitalHomeView::~IOWODigitalHomeView() +{ +} + +void IOWODigitalHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWODigitalHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.on") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/light_on"); + elm_object_style_set(o, "calaos/action_button/yellow"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_On, this); + } + else if (part == "calaos.button.off") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/light_off"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Off, this); + } + + initView(); + + return o; +} + +string IOWODigitalHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + + return text; +} + +void IOWODigitalHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->params["state"] == "true") + { + itemEmitSignal("text,active,yellow", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } +} + +void IOWODigitalHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->params["state"] == "true") + { + itemEmitSignal("text,active,yellow", "calaos"); + itemEmitSignal("on,anim", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + } +} + +void IOWODigitalHomeView::buttonClickOn() +{ + if (!io) return; + + io->sendAction("true"); +} + +void IOWODigitalHomeView::buttonClickOff() +{ + if (!io) return; + + io->sendAction("false"); +} diff --git a/src/bin/calaos_home/views/IO/IOWODigitalHomeView.h b/src/bin/calaos_home/views/IO/IOWODigitalHomeView.h new file mode 100644 index 00000000..15e54624 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWODigitalHomeView.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWODIGITALHOMEVIEW_H +#define IOWODIGITALHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWODigitalHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOWODigitalHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWODigitalHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickOn(); + void buttonClickOff(); +}; + +#endif // IOWODIGITALHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWOVoletHomeView.cpp b/src/bin/calaos_home/views/IO/IOWOVoletHomeView.cpp new file mode 100644 index 00000000..66ddd590 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWOVoletHomeView.cpp @@ -0,0 +1,153 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWOVoletHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOWOVoletHomeView, Up) +ITEM_BUTTON_CALLBACK(IOWOVoletHomeView, Down) +ITEM_BUTTON_CALLBACK(IOWOVoletHomeView, Stop) + +IOWOVoletHomeView::IOWOVoletHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WOVolet_") + style_addition, flags), + IOBaseElement(_io) +{ +} + +IOWOVoletHomeView::~IOWOVoletHomeView() +{ +} + +void IOWOVoletHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWOVoletHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.up") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/up_arrow"); + elm_object_style_set(o, "calaos/action_button/yellow"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Up, this); + } + else if (part == "calaos.button.down") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/down_arrow"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Down, this); + } + else if (part == "calaos.button.stop") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/stop"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Stop, this); + } + + initView(); + + return o; +} + +string IOWOVoletHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + text = io->params["name"]; + + return text; +} + +void IOWOVoletHomeView::initView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->params["state"] == "false") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } +} + +void IOWOVoletHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + + if (io->params["state"] == "false") + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,anim", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,anim", "calaos"); + } +} + +void IOWOVoletHomeView::buttonClickUp() +{ + if (!io) return; + + io->sendAction("up"); +} + +void IOWOVoletHomeView::buttonClickDown() +{ + if (!io) return; + + io->sendAction("down"); +} + +void IOWOVoletHomeView::buttonClickStop() +{ + if (!io) return; + + io->sendAction("stop"); +} diff --git a/src/bin/calaos_home/views/IO/IOWOVoletHomeView.h b/src/bin/calaos_home/views/IO/IOWOVoletHomeView.h new file mode 100644 index 00000000..c78ff293 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWOVoletHomeView.h @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWOVOLETHOMEVIEW_H +#define IOWOVOLETHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWOVoletHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + public: + IOWOVoletHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWOVoletHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickUp(); + void buttonClickDown(); + void buttonClickStop(); +}; + +#endif // IOWOVOLETHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IO/IOWOVoletSmartHomeView.cpp b/src/bin/calaos_home/views/IO/IOWOVoletSmartHomeView.cpp new file mode 100644 index 00000000..8b779cb7 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWOVoletSmartHomeView.cpp @@ -0,0 +1,265 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOWOVoletSmartHomeView.h" +#include + +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, Up) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, Down) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, Stop) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, ImpulseUp) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, ImpulseDown) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, Set25) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, Set50) +ITEM_BUTTON_CALLBACK(IOWOVoletSmartHomeView, Set75) + +IOWOVoletSmartHomeView::IOWOVoletSmartHomeView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string style_addition, Elm_Genlist_Item_Type flags): + GenlistItemBase(_evas, _parent, string("WOVoletSmart_") + style_addition, flags), + IOBaseElement(_io), + window_slider(NULL) +{ +} + +IOWOVoletSmartHomeView::~IOWOVoletSmartHomeView() +{ +} + +void IOWOVoletSmartHomeView::ioDeleted() +{ + IOBaseElement::ioDeleted(); + + DELETE_NULL_FUNC(elm_object_item_del, item) +} + +Evas_Object *IOWOVoletSmartHomeView::getPartItem(Evas_Object *obj, string part) +{ + Evas_Object *o = NULL; + + if (!io) return o; + + if (part == "calaos.button.up") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/up_arrow"); + elm_object_style_set(o, "calaos/action_button/yellow"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Up, this); + } + else if (part == "calaos.button.down") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/down_arrow"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Down, this); + } + else if (part == "calaos.button.stop") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/stop"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_Stop, this); + } + else if (part == "calaos.button.impulse_up") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/impulse_up"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_ImpulseUp, this); + } + else if (part == "calaos.button.impulse_down") + { + o = elm_button_add(parent); + Evas_Object *icon = elm_icon_add(o); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/impulse_down"); + elm_object_style_set(o, "calaos/action_button/default"); + elm_object_content_set(o, icon); + evas_object_smart_callback_add(o, "clicked", _item_button_ImpulseDown, this); + } + else if (part == "calaos.button.25") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/action_button/label"); + elm_object_text_set(o, "25%"); + evas_object_smart_callback_add(o, "clicked", _item_button_Set25, this); + } + else if (part == "calaos.button.50") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/action_button/label"); + elm_object_text_set(o, "50%"); + evas_object_smart_callback_add(o, "clicked", _item_button_Set50, this); + } + else if (part == "calaos.button.75") + { + o = elm_button_add(parent); + elm_object_style_set(o, "calaos/action_button/label"); + elm_object_text_set(o, "75%"); + evas_object_smart_callback_add(o, "clicked", _item_button_Set75, this); + } + else if (part == "calaos.window.slider") + { + window_slider = new EdjeObject(ApplicationMain::getTheme(), evas); + window_slider->setAutoDelete(true); + window_slider->object_deleted.connect(sigc::mem_fun(*this, &IOWOVoletSmartHomeView::sliderObjectDeleted)); + window_slider->LoadEdje("calaos/shutter/slider"); + window_slider->Show(); + + o = window_slider->getEvasObject(); + } + + initView(); + + return o; +} + +string IOWOVoletSmartHomeView::getLabelItem(Evas_Object *obj, string part) +{ + string text; + + if (!io) return text; + + if (part == "text") + { + text = io->params["name"]; + } + else if (part == "shutter.state") + { + int percent = io->getPercentVoletSmart(); + + if (percent == 0) + text = "Etat : Ouvert."; + else if (percent > 0 && percent < 50) + text = "Etat : Ouvert à " + to_string(percent) + "%."; + else if (percent >= 50 && percent < 100) + text = "Etat : Fermé à " + to_string(percent) + "%."; + else if (percent == 100) + text = "Etat : Fermé."; + } + else if (part == "shutter.action") + { + string status = io->getStatusVoletSmart(); + if (status == "stop" || status == "") + text = "Action : Arrêté"; + else if (status == "down") + text = "Action : Fermeture."; + else if (status == "up") + text = "Action : Ouverture."; + } + + return text; +} + +void IOWOVoletSmartHomeView::sliderObjectDeleted() +{ + window_slider = NULL; +} + +void IOWOVoletSmartHomeView::initView() +{ + updateView(); +} + +void IOWOVoletSmartHomeView::updateView() +{ + if (!io || !item) + return; + + elm_genlist_item_fields_update(item, "text", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "shutter.state", ELM_GENLIST_ITEM_FIELD_TEXT); + elm_genlist_item_fields_update(item, "shutter.action", ELM_GENLIST_ITEM_FIELD_TEXT); + + int percent = io->getPercentVoletSmart(); + + if (percent >= 100) + { + itemEmitSignal("text,active,blue", "calaos"); + itemEmitSignal("on,normal", "calaos"); + } + else + { + itemEmitSignal("text,inactive", "calaos"); + itemEmitSignal("off,normal", "calaos"); + } + + if (window_slider) window_slider->setDragValue("object.shutter", 0.0, (double)percent / 100.0); +} + +void IOWOVoletSmartHomeView::buttonClickUp() +{ + if (!io) return; + + io->sendAction("up"); +} + +void IOWOVoletSmartHomeView::buttonClickDown() +{ + if (!io) return; + + io->sendAction("down"); +} + +void IOWOVoletSmartHomeView::buttonClickStop() +{ + if (!io) return; + + io->sendAction("stop"); +} + +void IOWOVoletSmartHomeView::buttonClickImpulseUp() +{ + if (!io) return; + + io->sendAction("up 1"); +} + +void IOWOVoletSmartHomeView::buttonClickImpulseDown() +{ + if (!io) return; + + io->sendAction("down 1"); +} + +void IOWOVoletSmartHomeView::buttonClickSet25() +{ + if (!io) return; + + io->sendAction("set 25"); +} + +void IOWOVoletSmartHomeView::buttonClickSet50() +{ + if (!io) return; + + io->sendAction("set 50"); +} + +void IOWOVoletSmartHomeView::buttonClickSet75() +{ + if (!io) return; + + io->sendAction("set 75"); +} diff --git a/src/bin/calaos_home/views/IO/IOWOVoletSmartHomeView.h b/src/bin/calaos_home/views/IO/IOWOVoletSmartHomeView.h new file mode 100644 index 00000000..204b0069 --- /dev/null +++ b/src/bin/calaos_home/views/IO/IOWOVoletSmartHomeView.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOWOVOLETSMARTHOMEVIEW_H +#define IOWOVOLETSMARTHOMEVIEW_H + +#include +#include + +using namespace Utils; + +class IOWOVoletSmartHomeView: public GenlistItemBase, public IOBaseElement +{ + private: + virtual void ioDeleted(); + + EdjeObject *window_slider; + + void sliderObjectDeleted(); + + public: + IOWOVoletSmartHomeView(Evas *evas, Evas_Object *parent, IOBase *io, string style_addition, Elm_Genlist_Item_Type flags = ELM_GENLIST_ITEM_NONE); + virtual ~IOWOVoletSmartHomeView(); + + virtual Evas_Object *getPartItem(Evas_Object *obj, string part); + virtual string getLabelItem(Evas_Object *obj, string part); + + //Called when the real IO changed + virtual void initView(); + virtual void updateView(); + + void buttonClickUp(); + void buttonClickDown(); + void buttonClickStop(); + void buttonClickImpulseUp(); + void buttonClickImpulseDown(); + void buttonClickSet25(); + void buttonClickSet50(); + void buttonClickSet75(); +}; + +#endif // IOWOVOLETSMARTHOMEVIEW_H diff --git a/src/bin/calaos_home/views/IOView.cpp b/src/bin/calaos_home/views/IOView.cpp new file mode 100644 index 00000000..8ba8a664 --- /dev/null +++ b/src/bin/calaos_home/views/IOView.cpp @@ -0,0 +1,148 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "IOView.h" + +#include "IO/IOScenarioHomeView.h" + +#include "IO/IOWODigitalHomeView.h" +#include "IO/IOGenlistScenarioHomeView.h" +#include "IO/IOWODaliHomeView.h" +#include "IO/IOWODaliRVBHomeView.h" +#include "IO/IOInternalBoolHomeView.h" +#include "IO/IOInternalIntHomeView.h" +#include "IO/IOInternalStringHomeView.h" +#include "IO/IOWIAnalogHomeView.h" +#include "IO/IOWOAnalogHomeView.h" +#include "IO/IOWITempHomeView.h" +#include "IO/IOWOVoletHomeView.h" +#include "IO/IOWOVoletSmartHomeView.h" + +IOView::IOView(Evas *_evas, Evas_Object *_parent, IOBase *_io, string collection): + BaseView(_evas, _parent), + IOBaseElement(_io) +{ + try + { + LoadEdje(collection); + } + catch (exception const &e) + { + Utils::logger("root") << Priority::CRIT << "IOView: Can't load edje" << log4cpp::eol; + throw; + } +} + +IOView::~IOView() +{ +} + +IOBaseElement::IOBaseElement(IOBase *_io): + io(_io) +{ + if (io) + { + con_deleted = io->io_deleted.connect(sigc::mem_fun(*this, &IOBaseElement::ioDeleted)); + con_changed = io->io_changed.connect(sigc::mem_fun(*this, &IOBaseElement::updateView)); + } +} + +IOBaseElement::~IOBaseElement() +{ + if (io) + { + con_deleted.disconnect(); + con_changed.disconnect(); + } +} + +void IOBaseElement::setIO(IOBase *_io) +{ + io = _io; + + if (io) + { + con_deleted = io->io_deleted.connect(sigc::mem_fun(*this, &IOBaseElement::ioDeleted)); + con_changed = io->io_changed.connect(sigc::mem_fun(*this, &IOBaseElement::updateView)); + } + + updateView(); +} + +void IOBaseElement::ioDeleted() +{ + io = NULL; + updateView(); +} + +void IOBaseElement::initView() +{ +} + +IOView *IOViewFactory::CreateIOView(Evas *evas, Evas_Object *parent, IOBase *io, int type) +{ + switch (type) + { + default: + case IOView::IO_NONE: return NULL; break; + case IOView::IO_SCENARIO_HOME: return new IOScenarioHomeView(evas, parent, io); break; + } +} + +IOView *IOViewFactory::CreateIOView(Evas *evas, Evas_Object *parent, int type) +{ + return CreateIOView(evas, parent, NULL, type); +} + +IOBaseElement *IOViewFactory::CreateIOBaseElement(Evas *evas, Evas_Object *parent, IOBase *io, Evas_Object *genlist, string style_addition, GenlistItemBase *gparent) +{ + IOBaseElement *element = NULL; + + if (io->params["type"] == "WODigital") + element = new IOWODigitalHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "scenario") + element = new IOGenlistScenarioHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WODali" || io->params["type"] == "X10Output") + element = new IOWODaliHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WODaliRVB") + element = new IOWODaliRVBHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "InternalBool") + element = new IOInternalBoolHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "InternalInt") + element = new IOInternalIntHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "InternalString") + element = new IOInternalStringHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WIAnalog") + element = new IOWIAnalogHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WOAnalog") + element = new IOWOAnalogHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WITemp") + element = new IOWITempHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WOVolet") + element = new IOWOVoletHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + else if (io->params["type"] == "WOVoletSmart") + element = new IOWOVoletSmartHomeView(evas, parent, io, style_addition, ELM_GENLIST_ITEM_NONE); + + GenlistItemBase *item = dynamic_cast(element); + if (item) + item->Append(genlist, gparent); + + return element; +} diff --git a/src/bin/calaos_home/views/IOView.h b/src/bin/calaos_home/views/IOView.h new file mode 100644 index 00000000..2ced5eb1 --- /dev/null +++ b/src/bin/calaos_home/views/IOView.h @@ -0,0 +1,73 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef IOVIEW_H +#define IOVIEW_H + +#include +#include "BaseView.h" + +#include + +using namespace Utils; + +class IOBaseElement +{ + protected: + IOBase *io; + + sigc::connection con_changed; + sigc::connection con_deleted; + + virtual void ioDeleted(); + + public: + IOBaseElement(IOBase *io); + virtual ~IOBaseElement(); + + virtual IOBase *getIO() { return io; } + virtual void setIO(IOBase *_io); + + virtual void initView(); + virtual void updateView() = 0; +}; + +class GenlistItemBase; +class IOView: public BaseView, public IOBaseElement +{ + public: + enum { IO_NONE = 0, IO_SCENARIO_HOME }; + + public: + IOView(Evas *evas, Evas_Object *parent, IOBase *io, string collection); + IOView(Evas *evas, Evas_Object *parent, IOBase *io); + virtual ~IOView(); +}; + +class IOViewFactory +{ + public: + static IOView *CreateIOView(Evas *evas, Evas_Object *parent, IOBase *io, int type); + static IOView *CreateIOView(Evas *evas, Evas_Object *parent, int type); + + static IOBaseElement *CreateIOBaseElement(Evas *evas, Evas_Object *parent, IOBase *io, Evas_Object *genlist, string style_addition, GenlistItemBase *gparent = NULL); +}; + +#endif // IOVIEW_H diff --git a/src/bin/calaos_home/views/KeyboardView.cpp b/src/bin/calaos_home/views/KeyboardView.cpp new file mode 100644 index 00000000..05004610 --- /dev/null +++ b/src/bin/calaos_home/views/KeyboardView.cpp @@ -0,0 +1,140 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "KeyboardView.h" +#include "Ecore_X.h" + +//Some XKeysims +#define XK_Return 0xff0d +#define XK_BackSpace 0xff08 + +KeyboardView::KeyboardView(Evas *e, Evas_Object *parent): + BaseView(e, parent), + keys_upper(false), + keys_other(false) +{ + try + { + LoadEdje("calaos/keyboard"); + } + catch (exception const &e) + { + Utils::logger("root") << Priority::CRIT << "KeyboardView: Can't load edje" << log4cpp::eol; + throw; + } + + addCallback("keyboard", "*", sigc::mem_fun(*this, &KeyboardView::onKeyboardCallback)); +} + +KeyboardView::~KeyboardView() +{ +} + +void KeyboardView::pressKey(string k) +{ + /* Code from enlightenment/Illume */ + const char *key = NULL; + int glyph; + + /* utf8 -> glyph id (unicode - ucs4) */ + glyph = 0; + evas_string_char_next_get(k.c_str(), 0, &glyph); + if (glyph <= 0) return; + /* glyph id -> keysym */ + if (glyph > 0xff) glyph |= 0x1000000; + + key = ecore_x_keysym_string_get(glyph); + + if (!key) return; + + ecore_x_test_fake_key_press(key); +} + +void KeyboardView::onKeyboardCallback(void *data, Evas_Object *edje_object, string emission, string source) +{ + if (source == "keyboard" && emission == "key,key_maj") + { + keys_upper = !keys_upper; + + if (keys_upper) + EmitSignal("keyboard,upper", "calaos"); + else + EmitSignal("keyboard,lower", "calaos"); + } + else if (source == "keyboard" && emission == "key,key_other") + { + keys_other = !keys_other; + + if (keys_other) + EmitSignal("keyboard,other", "calaos"); + else + EmitSignal("keyboard,normal", "calaos"); + } + else if (source == "keyboard" && emission == "key,key_space") + { + pressKey(" "); + } + else if (source == "keyboard" && emission == "key,key_del") + { + ecore_x_test_fake_key_press(ecore_x_keysym_string_get(XK_BackSpace)); + } + else if (source == "keyboard" && emission == "key,key_enter") + { + ecore_x_test_fake_key_press(ecore_x_keysym_string_get(XK_Return)); + + EmitSignal("hide,keyboard", "calaos"); + } + else if (source == "keyboard" && emission == "key,key_multiply") + { + pressKey("*"); + } + else if (source == "keyboard" && emission == "key,key_question") + { + pressKey("?"); + } + else if (source == "keyboard" && emission == "key,key_quote") + { + pressKey("\""); + } + else if (source == "keyboard" && emission == "key,key_backslash") + { + pressKey("\\"); + } + else if (source == "keyboard" && emission == "key,key_bracket_open") + { + pressKey("["); + } + else if (source == "keyboard" && emission == "key,key_bracket_close") + { + pressKey("]"); + } + else if (source == "keyboard" && emission == "key,key_double_point") + { + pressKey(":"); + } + else if (source == "keyboard" && emission.substr(0, 4) == "key,") + { + emission.erase(0, 4); + if (keys_upper) + std::transform (emission.begin(), emission.end(), emission.begin(), to_upper()); + + pressKey(emission); + } +} diff --git a/src/bin/calaos_home/views/KeyboardView.h b/src/bin/calaos_home/views/KeyboardView.h new file mode 100644 index 00000000..8370f122 --- /dev/null +++ b/src/bin/calaos_home/views/KeyboardView.h @@ -0,0 +1,49 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef KeyboardView_H +#define KeyboardView_H + +#include + +#include "BaseView.h" + +using namespace Utils; + +class KeyboardView: public BaseView +{ + private: + void onKeyboardCallback(void *data, Evas_Object *edje_object, string emission, string source); + + bool keys_upper; + bool keys_other; + + public: + KeyboardView(Evas *evas, Evas_Object *parent); + ~KeyboardView(); + + //simulate a pressed key + void pressKey(string key); + + enum { KEY_ALPHA, KEY_SHIFT, KEY_SPACE, KEY_ENTER }; + sigc::signal key_pressed; +}; + +#endif // KeyboardView_H diff --git a/src/bin/calaos_home/views/MainContentView.cpp b/src/bin/calaos_home/views/MainContentView.cpp new file mode 100644 index 00000000..92367da6 --- /dev/null +++ b/src/bin/calaos_home/views/MainContentView.cpp @@ -0,0 +1,228 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "MainContentView.h" +#include "ApplicationMain.h" + +MainContentView::MainContentView(Evas *e, Evas_Object *p): + BaseView(e, p), + EvasSmart(e, "PageContentView"), + evas(e) +{ + clip = evas_object_rectangle_add(evas); + evas_object_color_set(clip, 255, 255, 255, 255); + AddMemberObject(clip); +} + +MainContentView::~MainContentView() +{ + list::iterator it = views.begin(); + for (;it != views.end();it++) + { + ViewAnimation *va = (*it); + + DelMemberObject(va->animation->getEvasObject()); + delete va->animation; + + if (va->view) + delete va->view; + + delete va; + } + + DelMemberObject(clip); + evas_object_del(clip); +} + +void MainContentView::addView(BaseView *view) +{ + if (!view) + throw(runtime_error("MainContentView::addView(): view is NULL !")); + + int x, y, w, h; + evas_object_geometry_get(clip, &x, &y, &w, &h); + evas_object_show(clip); + + ViewAnimation *va = new ViewAnimation(view); + va->view->EmitSignal("show", "calaos"); + va->view->Show(); + va->animation = new EdjeObject(theme, evas); + va->animation->LoadEdje("elm/pager/base/calaos/fade_invisible"); + va->animation->Swallow(va->view, "elm.swallow.content"); + va->pop_me = false; + va->animation->Move(x, y); + va->animation->Resize(w, h); + evas_object_clip_set(va->animation->getEvasObject(), clip); + va->animation->addCallback("*", "elm,action,hide,finished", sigc::mem_fun(*this, &MainContentView::hideFinished), va); + + AddMemberObject(va->animation->getEvasObject()); + + if (views.size() > 0) + { + ViewAnimation *old_va = views.back(); + old_va->animation->EmitSignal("elm,action,hide", "elm"); + } + + views.push_back(va); + + va->animation->Show(); + va->animation->EmitSignal("elm,action,push", "elm"); +} + +void MainContentView::removeTopView() +{ + if (views.size() <= 0) + return; + + ViewAnimation *va = views.back(); + views.pop_back(); + + va->animation->EmitSignal("elm,action,pop", "elm"); + va->pop_me = true; + + if (views.size() > 0) + { + ViewAnimation *last_va = views.back(); + last_va->view->Show(); + last_va->animation->Show(); + last_va->animation->EmitSignal("elm,action,show", "elm"); + } +} + +void MainContentView::showView(BaseView *view) +{ + Utils::logger("root") << Priority::CRIT << "MainMenuView:showView() not implemented !" << log4cpp::eol; + + if (!view) + throw(runtime_error("MainContentView::showView(): view is NULL !")); +} + +void MainContentView::hideFinished(void *data, Evas_Object *edje_object, string emission, string source) +{ + ViewAnimation *va = reinterpret_cast(data); + if (!va) return; + + if (va->pop_me) + { + DelMemberObject(va->animation->getEvasObject()); + + if (member_count <= 0) + evas_object_hide(clip); + + delete va->animation; + + //Don't delete view if it has been pushed again to MainContentView + list::iterator it = views.begin(); + bool found = false; + for (;it != views.end();it++) + { + ViewAnimation *_va = *it; + if (_va->view == va->view) + { + found = true; + break; + } + } + if (!found && va->view) + delete va->view; + + delete va; + } + else + { + va->animation->Hide(); + va->view->Hide(); + va->animation->EmitSignal("elm,action,reset", "elm"); + edje_object_message_signal_process(va->animation->getEvasObject()); + } +} + +BaseView *MainContentView::getTopView() +{ + if (views.size() <= 0) + return NULL; + + ViewAnimation *va = views.back(); + + return va->view; +} + +class SmartMoveFunctor +{ + private: + int x, y; + public: + SmartMoveFunctor(int _x, int _y): x(_x), y(_y) {} + + void operator()(ViewAnimation *&va) const + { + va->animation->Move(x, y); + } +}; +void MainContentView::SmartMove(int x, int y) +{ + evas_object_move(clip, x, y); + + for_each(views.begin(), views.end(), SmartMoveFunctor(x, y)); +} + +class SmartResizeFunctor +{ + private: + int w, h; + public: + SmartResizeFunctor(int _w, int _h): w(_w), h(_h) {} + + void operator()(ViewAnimation *&va) const + { + va->animation->Resize(w, h); + } +}; +void MainContentView::SmartResize(int w, int h) +{ + evas_object_resize(clip, w, h); + + for_each(views.begin(), views.end(), SmartResizeFunctor(w, h)); +} + +void MainContentView::SmartShow() +{ + evas_object_show(clip); +} + +void MainContentView::SmartHide() +{ + evas_object_hide(clip); +} + +void MainContentView::SmartColorSet(int r, int g, int b, int a) +{ + evas_object_color_set(clip, r, g, b, a); +} + +void MainContentView::SmartClipSet(Evas_Object *_clip) +{ + evas_object_clip_set(clip, _clip); +} + +void MainContentView::SmartClipUnset() +{ + evas_object_clip_unset(clip); +} diff --git a/src/bin/calaos_home/views/MainContentView.h b/src/bin/calaos_home/views/MainContentView.h new file mode 100644 index 00000000..24d76fa7 --- /dev/null +++ b/src/bin/calaos_home/views/MainContentView.h @@ -0,0 +1,83 @@ +/****************************************************************************** +** Copyright (c) 2006-2011, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef MAINCONTENTVIEW_H +#define MAINCONTENTVIEW_H + +#include + +#include "BaseView.h" +#include "EvasSmart.h" + +using namespace Utils; + +class ViewAnimation +{ + private: + void viewDeleted() + { + view = NULL; + } + + public: + ViewAnimation(BaseView *v): + view(v) + { + view->object_deleted.connect(sigc::mem_fun(*this, &ViewAnimation::viewDeleted)); + } + + BaseView *view; + EdjeObject *animation; + bool pop_me; +}; + +class MainContentView: public BaseView, public EvasSmart +{ + private: + Evas *evas; + + list views; + BaseView *top_item; + + Evas_Object *clip; + + void hideFinished(void *data, Evas_Object *edje_object, string emission, string source); + + public: + MainContentView(Evas *evas, Evas_Object *parent); + ~MainContentView(); + + void addView(BaseView *view); + void removeTopView(); + void showView(BaseView *view); + + BaseView *getTopView(); + + + virtual void SmartMove(int x, int y); + virtual void SmartResize(int w, int h); + virtual void SmartShow(); + virtual void SmartHide(); + virtual void SmartColorSet(int r, int g, int b, int a); + virtual void SmartClipSet(Evas_Object *clip); + virtual void SmartClipUnset(); +}; + +#endif // MAINCONTENTVIEW_H diff --git a/src/bin/calaos_home/views/MainMenuView.cpp b/src/bin/calaos_home/views/MainMenuView.cpp new file mode 100644 index 00000000..5de2d934 --- /dev/null +++ b/src/bin/calaos_home/views/MainMenuView.cpp @@ -0,0 +1,222 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "MainMenuView.h" +#include "ApplicationMain.h" + +#define LIST_ITEM_CALLBACK(_class, it_name) \ +static void _item_##it_name##_cb(void *data, Evas_Object *obj, void *event_info) \ +{ _class *menu = reinterpret_cast<_class *>(data); if (data) menu->_click_##it_name(); } \ +void _class::_click_##it_name() { on_##it_name##_click.emit(); } + +LIST_ITEM_CALLBACK(MainMenuView, reboot) +LIST_ITEM_CALLBACK(MainMenuView, widget) +LIST_ITEM_CALLBACK(MainMenuView, suspend) + +MainMenuView::MainMenuView(Evas *e, Evas_Object *p): + BaseView(e, p), + evas(e) +{ + try + { + LoadEdje("calaos/main/menu"); + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "MainMenuView: Can't load edje" << log4cpp::eol; + throw; + } + + addCallback("menu", "*", sigc::mem_fun(*this, &MainMenuView::EdjeCallback)); + addCallback("*", "pressed", sigc::mem_fun(*this, &MainMenuView::ButtonPressedCallback)); + + elm_object_part_content_set(parent, "calaos.main.menu", getEvasObject()); + + list = elm_list_add(parent); + Swallow(list, "menu.homeboard"); + + elm_object_style_set(list, "menu/homeboard"); + elm_list_select_mode_set(list, ELM_OBJECT_SELECT_MODE_ALWAYS); + + evas_object_show(list); + + on_widget_click.connect(sigc::mem_fun(*this, &MainMenuView::editWidgetClick)); + + Show(); +} + +MainMenuView::~MainMenuView() +{ + DELETE_NULL_FUNC(evas_object_del, list) +} + +void MainMenuView::EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source) +{ + if (emission == "home") + on_home_click.emit(); + else if (emission == "media") + on_media_click.emit(); + else if (emission == "scenario") + on_scenario_click.emit(); + else if (emission == "config") + on_config_click.emit(); + else if (emission == "homeboard,open") + { + on_menu_open.emit(); + + elm_list_clear(list); + + Evas_Object *icon; + icon = elm_icon_add(list); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/widget"); + elm_image_resizable_set(icon, true, true); + item_config_widget = elm_list_item_append(list, "Configuration des widgets.", icon, NULL, _item_widget_cb, this); + + icon = elm_icon_add(list); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/screensaver"); + elm_image_resizable_set(icon, true, true); + item_sleep_screen = elm_list_item_append(list, "Mettre en veille l'écran.", icon, NULL, _item_suspend_cb, this); + + icon = elm_icon_add(list); + elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/reboot"); + elm_image_resizable_set(icon, true, true); + item_reboot = elm_list_item_append(list, "Redémarrer la machine.", icon, NULL, _item_reboot_cb, this); + + elm_list_go(list); + + //Update DPMS info on button + edje_object_part_text_set(elm_list_item_object_get(item_sleep_screen), + "object.description", + "Touchez une fois l'écran pour sortir du mode veille."); + if (Utils::get_config_option("dpms_enable") != "true") + edje_object_part_text_set(elm_list_item_object_get(item_sleep_screen), "object.more_infos", + "Auto: Désactivé"); + else + { + int val; + from_string(Utils::get_config_option("dpms_standby"), val); + + string _t = "Auto: " + Utils::time2string(val); + edje_object_part_text_set(elm_list_item_object_get(item_sleep_screen), "object.more_infos", + _t.c_str()); + } + + //Update number of widgets + string nb = to_string(0); //TODO ! + nb += " Widgets"; + edje_object_part_text_set(elm_list_item_object_get(item_config_widget), "object.more_infos", + nb.c_str()); + edje_object_part_text_set(elm_list_item_object_get(item_config_widget), + "object.description", + "Déplacez et configurez vos widgets sur le bureau."); + + //Reboot item + edje_object_part_text_set(elm_list_item_object_get(item_reboot), + "object.description", + "Veuillez patienter pendant la procédure de redémarrage."); + edje_object_part_text_set(elm_list_item_object_get(item_reboot), + "object.more_infos", ""); + } + else if (emission == "homeboard,close") + { + on_menu_close.emit(); + } +} + +void MainMenuView::ButtonPressedCallback(void *data, Evas_Object *_edje, string emission, string source) +{ + if (source == "button.valid") + { + EmitSignal("widget,normal", "calaos"); + on_widget_valid_click.emit(); + } + else if (source == "button.cancel") + { + EmitSignal("widget,normal", "calaos"); + on_widget_cancel_click.emit(); + } +} + +void MainMenuView::editWidgetClick() +{ + EmitSignal("widget,edit", "calaos"); +} + +void MainMenuView::UnselectAllMenu() +{ + EmitSignal("unselect,all", "calaos"); +} + +void MainMenuView::DisableMenu() +{ + EmitSignal("disable", "calaos"); +} + +void MainMenuView::EnableMenu() +{ + EmitSignal("enable", "calaos"); +} + +void MainMenuView::ShowMenu() +{ + EmitSignal("show,menu", "calaos"); + elm_object_signal_emit(parent, "show,menu", "calaos"); +} + +void MainMenuView::HideMenu() +{ + EmitSignal("hide,menu", "calaos"); + elm_object_signal_emit(parent, "hide,menu", "calaos"); +} + +void MainMenuView::SelectHome() +{ + EmitSignal("select,home", "calaos"); +} + +void MainMenuView::SelectMedia() +{ + EmitSignal("select,media", "calaos"); +} + +void MainMenuView::SelectScenario() +{ + EmitSignal("select,scenario", "calaos"); +} + +void MainMenuView::SelectConfig() +{ + EmitSignal("select,config", "calaos"); +} + +void MainMenuView::OpenLinkMenu() +{ + EmitSignal("menu,link,open", "calaos"); +} + +void MainMenuView::CloseLinkMenu() +{ + EmitSignal("menu,link,close", "calaos"); +} + +void MainMenuView::setVersionString(string version) +{ + setPartText("calaos.version", version); +} diff --git a/src/bin/calaos_home/views/MainMenuView.h b/src/bin/calaos_home/views/MainMenuView.h new file mode 100644 index 00000000..712e478c --- /dev/null +++ b/src/bin/calaos_home/views/MainMenuView.h @@ -0,0 +1,91 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef MAINMENUVIEW_H +#define MAINMENUVIEW_H + +#include + +#include "BaseView.h" + +using namespace Utils; + +class MainMenuView: public BaseView +{ + public: + //These are for private use to get callbacks from C code. + void _click_reboot(); + void _click_suspend(); + void _click_widget(); + + private: + Evas *evas; + + Evas_Object *list; + + Elm_Object_Item *item_config_widget; + Elm_Object_Item *item_sleep_screen; + Elm_Object_Item *item_reboot; + + void EdjeCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + void ButtonPressedCallback(void *data, Evas_Object *_edje, std::string emission, std::string source); + void editWidgetClick(); + + public: + MainMenuView(Evas *evas, Evas_Object *parent); + ~MainMenuView(); + + void UnselectAllMenu(); + void DisableMenu(); + void EnableMenu(); + + void ShowMenu(); + void HideMenu(); + + void SelectHome(); + void SelectMedia(); + void SelectScenario(); + void SelectConfig(); + + void OpenLinkMenu(); + void CloseLinkMenu(); + + void setVersionString(string version); + + /** + * UI Signals + */ + sigc::signal on_home_click; + sigc::signal on_media_click; + sigc::signal on_scenario_click; + sigc::signal on_config_click; + + sigc::signal on_reboot_click; + sigc::signal on_suspend_click; + sigc::signal on_widget_click; + + sigc::signal on_menu_open; + sigc::signal on_menu_close; + + sigc::signal on_widget_valid_click; + sigc::signal on_widget_cancel_click; +}; + +#endif // MAINMENUVIEW_H diff --git a/src/bin/calaos_home/views/PagingView.cpp b/src/bin/calaos_home/views/PagingView.cpp new file mode 100644 index 00000000..9e32cd39 --- /dev/null +++ b/src/bin/calaos_home/views/PagingView.cpp @@ -0,0 +1,195 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "PagingView.h" + +static void _cb_object_resize(void *data , Evas *e, Evas_Object *obj, void *event_info) +{ + PagingView *p = reinterpret_cast(data); + if (p) p->_objectResized(); +} + +static void _scroller_anim_stop_cb(void *data , Evas_Object *obj, void *event_info) +{ + PagingView *p = reinterpret_cast(data); + if (p) p->updateSelector(); +} + +static void _scroller_start_cb(void *data , Evas_Object *obj, void *event_info) +{ + PagingView *p = reinterpret_cast(data); + if (p) p->dragStart(); +} + +static void _scroller_stop_cb(void *data , Evas_Object *obj, void *event_info) +{ + PagingView *p = reinterpret_cast(data); + if (p) p->dragStop(); +} + +PagingView::PagingView(Evas *e, Evas_Object *parent): + BaseView(e, parent) +{ + try + { + LoadEdje("calaos/paging_view"); + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "PagingView: Can't load edje" << log4cpp::eol; + throw; + } + + pager_scroller = elm_scroller_add(parent); + elm_scroller_bounce_set(pager_scroller, EINA_TRUE, EINA_FALSE); + elm_scroller_policy_set(pager_scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); + elm_scroller_page_relative_set(pager_scroller, 1.0, 1.0); + + box_content = elm_box_add(pager_scroller); + evas_object_size_hint_weight_set(box_content, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(box_content, EVAS_HINT_FILL, EVAS_HINT_FILL); + elm_box_homogeneous_set(box_content, EINA_TRUE); + elm_box_horizontal_set(box_content, EINA_TRUE); + + elm_object_content_set(pager_scroller, box_content); + evas_object_show(box_content); + elm_object_style_set(pager_scroller, "calaos/pager"); + + evas_object_smart_callback_add(pager_scroller, "scroll,drag,start", _scroller_start_cb, this); + evas_object_smart_callback_add(pager_scroller, "scroll,anim,start", _scroller_start_cb, this); + evas_object_smart_callback_add(pager_scroller, "scroll,anim,stop", _scroller_anim_stop_cb, this); +// evas_object_smart_callback_add(pager_scroller, "scroll,drag,stop", _scroller_stop_cb, this); + evas_object_smart_callback_add(pager_scroller, "scroll,anim,stop", _scroller_stop_cb, this); + + Swallow(pager_scroller, "pager.swallow"); + + // Selector + box_selector = elm_box_add(parent); + elm_box_homogeneous_set(box_selector, EINA_TRUE); + elm_box_horizontal_set(box_selector, EINA_TRUE); + evas_object_show(box_selector); + + Swallow(box_selector, "selector.swallow"); + + evas_object_event_callback_add(pager_scroller, EVAS_CALLBACK_RESIZE, _cb_object_resize, this); +} + +PagingView::~PagingView() +{ + elm_box_clear(box_content); + elm_box_clear(box_selector); + elm_object_content_unset(pager_scroller); + + for (unsigned int i = 0;i < pages.size(); i++) + evas_object_del(pages[i]); + pages.clear(); + + for_each(selectors.begin(), selectors.end(), Delete()); + selectors.clear(); + + DELETE_NULL_FUNC(evas_object_del, box_content) + DELETE_NULL_FUNC(evas_object_del, box_selector) + DELETE_NULL_FUNC(evas_object_del, pager_scroller) +} + +int PagingView::addPage(Evas_Object *content) +{ + evas_object_show(content); + elm_box_pack_end(box_content, content); + pages.push_back(content); + + EdjeObject *o = new EdjeObject(theme, evas); + try + { + o->LoadEdje("calaos/paging_view/selector"); + } + catch(exception const& e) + { + Utils::logger("root") << Priority::CRIT << "PagingView: Can't load edje calaos/paging_view/selector" << log4cpp::eol; + throw; + } + + int w, h; + edje_object_size_min_get(o->getEvasObject(), &w, &h); + evas_object_size_hint_min_set(o->getEvasObject(), w, h); + + o->Show(); + elm_box_pack_end(box_selector, o->getEvasObject()); + selectors.push_back(o); + + _objectResized(); + + bringPage(pages.size() - 1); + + updateSelector(); + + return pages.size(); +} + +void PagingView::delPage(int page) +{ + if (page < 0 || page >= (int)pages.size()) + { + Utils::logger("root") << Priority::CRIT << "PagingView: delPage(" << page << ") out of bound [size: " << pages.size() << "] !" << log4cpp::eol; + return; + } + + elm_box_unpack(box_content, pages[page]); + evas_object_del(pages[page]); + pages.erase(pages.begin() + page); + + elm_box_unpack(box_content, selectors[page]->getEvasObject()); + delete selectors[page]; + selectors.erase(selectors.begin() + page); + + bringPage(0); +} + +void PagingView::updateSelector() +{ + int current = getCurrentPage(); + + for (unsigned int i = 0;i < selectors.size();i++) + { + if ((int)i == current) + selectors[i]->EmitSignal("select", "calaos"); + else + selectors[i]->EmitSignal("unselect", "calaos"); + } +} + +void PagingView::_objectResized() +{ + Evas_Coord w, h; + evas_object_geometry_get(pager_scroller, NULL, NULL, &w, &h); + + for (unsigned int i = 0;i < pages.size();i++) + evas_object_size_hint_min_set(pages[i], w, h); +} + +void PagingView::dragStart() +{ + drag_start.emit(); +} + +void PagingView::dragStop() +{ + drag_stop.emit(); +} diff --git a/src/bin/calaos_home/views/PagingView.h b/src/bin/calaos_home/views/PagingView.h new file mode 100644 index 00000000..2727a650 --- /dev/null +++ b/src/bin/calaos_home/views/PagingView.h @@ -0,0 +1,66 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef PAGINGVIEW_H +#define PAGINGVIEW_H + +#include + +#define CHECK_SCROLL_RETURN(...) \ + if (!edje) \ + { \ + Utils::logger("root") << Priority::CRIT << "PagingView: Scroller object NULL !" << log4cpp::eol; \ + return __VA_ARGS__; \ + } + +class PagingView: public BaseView +{ + protected: + Evas_Object *pager_scroller; + + Evas_Object *box_content; + Evas_Object *box_selector; + + vector pages; + vector selectors; + + public: + PagingView(Evas *evas, Evas_Object *parent); + ~PagingView(); + + int addPage(Evas_Object *content); + void delPage(int page); + + void bringPage(int page) { CHECK_SCROLL_RETURN(); elm_scroller_page_bring_in(pager_scroller, page, 0); } + int getPageCount() { CHECK_SCROLL_RETURN(0); return pages.size(); } + int getCurrentPage() { CHECK_SCROLL_RETURN(0); int n; elm_scroller_current_page_get(pager_scroller, &n, NULL); return n; } + + sigc::signal drag_start; + sigc::signal drag_stop; + + + //private stuff + void updateSelector(); + void dragStart(); + void dragStop(); + void _objectResized(); +}; + +#endif // PAGINGVIEW_H diff --git a/src/bin/calaos_home/views/WebKitError.h b/src/bin/calaos_home/views/WebKitError.h new file mode 100644 index 00000000..3e4fdf10 --- /dev/null +++ b/src/bin/calaos_home/views/WebKitError.h @@ -0,0 +1,85 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef WEBKITERROR_H +#define WEBKITERROR_H + +#define WEBKIT_ERROR_HTML " \ + \ + \ + \ + \ +Erreur de chargement ! \ + \ + \ + \ +
\ +

Erreur !

\ +

\ +Une erreur est survenue lors de la connexion au site: \ +

\ +
\ +{FAILING_URL}
{DESC} \ +
\ +Le navigateur ne peut pas ouvrir la page du site web demandé. \ +
    \ +
  • Avez vous correctement tapé l'adresse du site web? (ex: \"ww.calaos.fr\" au lieu de \"www.calaos.fr)
  • \ +
  • Etes-vous sûr que ce site existe?
  • \ +
  • Est-ce que votre connection Internet est opérationnelle? Veuillez vérifier connection Internet.
  • \ +
  • La centrale Calaos est-elle bien paramétrée pour accéder à Internet? Vérifiez les réglages.
  • \ +
\ +
\ + \ + \ +" + +#endif diff --git a/src/bin/calaos_home/views/Widget.cpp b/src/bin/calaos_home/views/Widget.cpp new file mode 100644 index 00000000..4af93eee --- /dev/null +++ b/src/bin/calaos_home/views/Widget.cpp @@ -0,0 +1,404 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include + +static void _edje_widget_cb(void *data, Evas_Object *obj, const char *emission, const char *source) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(obj, emission, source); +} +static void _evas_move_start_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(NULL, "start,move", "widget"); +} +static void _evas_move_stop_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(NULL, "stop,move", "widget"); +} +static void _evas_move_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(NULL, "moving", "widget"); +} +static void _evas_resize_start_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(NULL, "start,resize", "widget"); +} +static void _evas_resize_stop_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(NULL, "stop,resize", "widget"); +} +static void _evas_resize_move_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Widget *w = reinterpret_cast(data); + if (w) w->Callback(NULL, "resizing", "widget"); +} + +Widget::Widget(string &_theme, Evas *_evas, ModuleDef &_mtype, string _id, Evas_Object *_parent, ActivityWidgetsView *_view): + EdjeObject(_theme, _evas), + parent(_parent), + view(_view), + id(_id), + mtype(_mtype.mod_fname), + timer(NULL), + popup(NULL), + moving(false), + resizing(false) +{ + if (mtype == "xmas" || id == "xmas") + return; + + if (!LoadEdje("calaos/widget/base")) + { + Utils::logger("root").fatal("FATAL ERROR !"); + Utils::logger("root").fatal(" exiting..."); + exit(1); + } + + edje_object_signal_callback_add(edje, "*", "*", _edje_widget_cb, this); + + if (!ModuleManager::Instance().createModuleInstance(evas, _mtype, mdef, id)) + { + string msg = "Error, createModuleInstance(" + mtype + ") failed !"; + throw line_exception(msg.c_str(), __LINE__); + } + + CalaosModuleBase *module = ModuleManager::Instance().getModuleInstance(mdef); + + if (!module) + { + string msg = "Error, getModuleInstance(" + mtype + ") failed !"; + throw line_exception(msg.c_str(), __LINE__); + } + + Evas_Object *o = module->getEvasObject(); + edje_object_part_swallow(edje, "widget", o); + + evas_object_show(o); + + //Box for moving widget + move_box = evas_object_rectangle_add(evas); + evas_object_color_set(move_box, 0, 0, 0, 0); + evas_object_event_callback_add(move_box, EVAS_CALLBACK_MOUSE_DOWN, + _evas_move_start_cb, this); + evas_object_event_callback_add(move_box, EVAS_CALLBACK_MOUSE_MOVE, + _evas_move_move_cb, this); + evas_object_event_callback_add(move_box, EVAS_CALLBACK_MOUSE_UP, + _evas_move_stop_cb, this); + + //Box for resizing widget + resize_box = evas_object_rectangle_add(evas); + evas_object_color_set(resize_box, 0, 0, 0, 0); + evas_object_event_callback_add(resize_box, EVAS_CALLBACK_MOUSE_DOWN, + _evas_resize_start_cb, this); + evas_object_event_callback_add(resize_box, EVAS_CALLBACK_MOUSE_MOVE, + _evas_resize_move_cb, this); + evas_object_event_callback_add(resize_box, EVAS_CALLBACK_MOUSE_UP, + _evas_resize_stop_cb, this); + + edje_object_part_swallow(edje, "widget.resize.bloc", resize_box); + + int w, h; + module->getSizeMin(w, h); + Resize(w, h); + +// set_layer(-5); +} + +Widget::~Widget() +{ + if (mtype == "xmas" || id == "xmas") + return; + + ModuleManager::Instance().DeleteInstance(mdef); + + evas_object_del(move_box); + evas_object_del(resize_box); + + if (timer) + { + delete timer; + timer = NULL; + } +} + +void Widget::Callback(Evas_Object *edje, std::string emission, std::string source) +{ + int x, y, mx, my, w, h, rx, ry; + + if (source == "widget" && emission == "start,move") + { + getGeometry(&x, &y, NULL, NULL); + evas_pointer_output_xy_get(evas, &mx, &my); + offset_x = mx - x; + offset_y = my - y; + + moving = true; + } + else if (source == "widget" && emission == "moving" && moving) + { + evas_pointer_output_xy_get(evas, &mx, &my); + Move(mx - offset_x, my - offset_y); + } + else if (source == "widget" && emission == "stop,move") + { + moving = false; + } + else if (source == "widget" && emission == "start,resize") + { + evas_object_geometry_get(resize_box, &x, &y, NULL, NULL); + evas_pointer_output_xy_get(evas, &mx, &my); + offset_x = mx - x; + offset_y = my - y; + + resizing = true; + } + else if (source == "widget" && emission == "resizing" && resizing) + { + getGeometry(&x, &y, &w, &h); + evas_pointer_output_xy_get(evas, &mx, &my); + + evas_object_geometry_get(resize_box, &rx, &ry, NULL, NULL); + + Resize(mx - offset_x + (x + w - rx) - x, my - offset_y + (y + h - ry) - y); + } + else if (source == "widget" && emission == "stop,resize") + { + resizing = false; + } + else if (source == "button.delete" && emission == "pressed") + { + Evas_Object *table = createPaddingTable(evas, parent, 280, 260); + + Evas_Object *glist = elm_genlist_add(table); + elm_object_style_set(glist, "calaos"); + elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS); + evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(glist); + + string title_label = "Confirmation
Êtes-vous sûr de vouloir supprimer ce widget?"; + GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label); + header->Append(glist); + + GenlistItemSimple *item = new GenlistItemSimple(evas, parent, "Oui, supprimer le widget", true); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &Widget::deleteValid)); + + item = new GenlistItemSimple(evas, parent, "Non", true); + item->Append(glist, header); + item->item_selected.connect(sigc::mem_fun(*this, &Widget::deleteCancel)); + + elm_table_pack(table, glist, 1, 1, 1, 1); + + popup = elm_ctxpopup_add(parent); + elm_object_content_set(popup, table); + elm_object_style_set(popup, "calaos"); + elm_ctxpopup_direction_priority_set(popup, + ELM_CTXPOPUP_DIRECTION_LEFT, + ELM_CTXPOPUP_DIRECTION_RIGHT, + ELM_CTXPOPUP_DIRECTION_DOWN, + ELM_CTXPOPUP_DIRECTION_UP); + + Evas_Coord x,y; + evas_pointer_canvas_xy_get(evas, &x, &y); + evas_object_move(popup, x, y); + evas_object_show(popup); + } +} + +void Widget::deleteValid(void *data) +{ + elm_ctxpopup_dismiss(popup); + view->DeleteWidget(this); +} + +void Widget::deleteCancel(void *data) +{ + elm_ctxpopup_dismiss(popup); +} + +void Widget::Show() +{ + edje_object_signal_emit(edje, "show", "calaos"); + EdjeObject::Show(); +} + +void Widget::Hide() +{ + edje_object_signal_emit(edje, "hide", "calaos"); +} + +void Widget::Move(int x, int y) +{ + //Clamp values + if (x < 0) x = 0; + if (y < 0) y = 0; + int w, h; + getGeometry(NULL, NULL, &w, &h); + if (x + w > WIDTH) x = WIDTH - w; + if (y + h + 100 > HEIGHT) y = HEIGHT - h - 100; + + posx = x; + posy = y; + + EdjeObject::Move(x, y); + evas_object_move(move_box, x, y); +} + +void Widget::Resize(int w, int h) +{ + CalaosModuleBase *module = ModuleManager::Instance().getModuleInstance(mdef); + + int minw, minh, maxw, maxh; + module->getSizeMin(minw, minh); + module->getSizeMax(maxw, maxh); + + if (minw > 0 && w < minw) w = minw; + if (minh > 0 && h < minh) h = minh; + if (maxw > 0 && w > maxw) w = maxw; + if (maxh > 0 && h > maxh) h = maxh; + + width = w; + height = h; + + EdjeObject::Resize(w, h); + evas_object_resize(move_box, w, h); +} + +void Widget::EditMode() +{ + evas_object_show(move_box); + edje_object_signal_emit(edje, "widget,edit", "calaos"); + + CalaosModuleBase *module = ModuleManager::Instance().getModuleInstance(mdef); + int minw, minh, maxw, maxh; + module->getSizeMin(minw, minh); + module->getSizeMax(maxw, maxh); + + if (minw != maxw || minh != maxh) + edje_object_signal_emit(edje, "widget,resizable", "calaos"); + + getGeometry(&old_x, &old_y, &old_w, &old_h); +} + +void Widget::NormalMode() +{ + evas_object_hide(move_box); + edje_object_signal_emit(edje, "widget,normal", "calaos"); +} + +void Widget::Reset() +{ + start_time = ecore_time_get(); + + getGeometry(&start_x, &start_y, &start_w, &start_h); + + //create a timer to do the animation + if (timer) delete timer; + timer = new EcoreTimer(1.0 / 30., (sigc::slot)sigc::mem_fun(*this, &Widget::_ResetAnim) ); +} + +void Widget::_ResetAnim() +{ + int new_x, new_y, new_w, new_h; + + //anim has to be done in 1s. + double time = ecore_time_get() - start_time; + if (time >= 1.0) time = 1.0; + + //calc a DECELERATE value + double time_val = sin(time * PI / 2.0); + + int xoffset, yoffset, woffset, hoffset; + + if (old_x > start_x) xoffset = old_x - start_x; else xoffset = start_x - old_x; + if (old_y > start_y) yoffset = old_y - start_y; else yoffset = start_y - old_y; + if (old_w > start_w) woffset = old_w - start_w; else woffset = start_w - old_w; + if (old_h > start_h) hoffset = old_h - start_h; else hoffset = start_h - old_h; + + if (old_x > start_x) + new_x = start_x + (xoffset * time_val); + else + new_x = start_x - (xoffset * time_val); + + if (old_y > start_y) + new_y = start_y + (yoffset * time_val); + else + new_y = start_y - (yoffset * time_val); + + if (old_w > start_w) + new_w = start_w + (woffset * time_val); + else + new_w = start_w - (woffset * time_val); + + if (old_h > start_h) + new_h = start_h + (hoffset * time_val); + else + new_h = start_h - (hoffset * time_val); + + Move(new_x, new_y); + Resize(new_w, new_h); + + //animation is done, exit timer + if (time_val >= 1.0 && timer) + { + delete timer; + timer = NULL; + } +} + +void Widget::Save(TiXmlElement *pnode) +{ + if (!pnode) return; + + TiXmlElement *node = new TiXmlElement("calaos:widget"); + pnode->LinkEndChild(node); + + node->SetAttribute("id", id); + node->SetAttribute("type", mtype); + node->SetAttribute("posx", to_string(posx)); + node->SetAttribute("posy", to_string(posy)); + node->SetAttribute("width", to_string(width)); + node->SetAttribute("height", to_string(height)); +} + +string Widget::getStringInfo() +{ + CalaosModuleBase *module = ModuleManager::Instance().getModuleInstance(mdef); + + if (!module) + { + string msg = "Error, getModuleInstance(" + mtype + ") failed !"; + throw line_exception(msg.c_str(), __LINE__); + + return "Error !"; + } + + return module->getStringInfo(); +} diff --git a/src/bin/calaos_home/views/Widget.h b/src/bin/calaos_home/views/Widget.h new file mode 100644 index 00000000..d2d44f63 --- /dev/null +++ b/src/bin/calaos_home/views/Widget.h @@ -0,0 +1,88 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef CWidget_H +#define CWidget_H + +#include +#include +#include +#include +#include + +class ActivityWidgetsView; + +class Widget: public EdjeObject +{ + protected: + Evas_Object *parent; + ActivityWidgetsView *view; + + double x, y, start_time; + string id, mtype; + + ModuleDef mdef; + + EcoreTimer *timer; + + Evas_Object *popup; + + int offset_x, offset_y; + int old_x, old_y, old_w, old_h; + int start_x, start_y, start_w, start_h; + bool moving, resizing; + + Evas_Object *move_box, *resize_box; + + int posx, posy, width, height; + + sigc::connection sig_widgetmanager; + + void _ResetAnim(); + + void deleteValid(void *data); + void deleteCancel(void *data); + + public: + Widget(string &_theme, Evas *_evas, ModuleDef &_mtype, string _id, Evas_Object *parent, ActivityWidgetsView *view); + ~Widget(); + + void Callback(Evas_Object *edje, std::string emission, std::string source); + + virtual void Show(); + virtual void Hide(); + virtual void Move(int x, int y); + virtual void Resize(int w, int h); + + virtual void EditMode(); + virtual void NormalMode(); + + //Reset position of widget + virtual void Reset(); + + //Save config & position to xml + virtual void Save(TiXmlElement *node); + + virtual string getId() { return id; } + virtual string getType() { return mtype; } + virtual string getStringInfo(); +}; + +#endif diff --git a/src/bin/calaos_server/Audio/AVRDenon.cpp b/src/bin/calaos_server/Audio/AVRDenon.cpp new file mode 100644 index 00000000..dec681bd --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRDenon.cpp @@ -0,0 +1,284 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "AVRDenon.h" + +using namespace Calaos; + +AVRDenon::AVRDenon(Params &p): + AVReceiver(p, 23) +{ + source_names[AVReceiver::AVR_INPUT_DVD] = "DVD"; + source_names[AVReceiver::AVR_INPUT_BD] = "Blu-ray Disc"; + source_names[AVReceiver::AVR_INPUT_CD] = "CD"; + source_names[AVReceiver::AVR_INPUT_PHONO] = "Phono"; + source_names[AVReceiver::AVR_INPUT_TUNER] = "Tuner"; + source_names[AVReceiver::AVR_INPUT_TV] = "TV"; + source_names[AVReceiver::AVR_INPUT_SAT] = "Sat/CBL"; + source_names[AVReceiver::AVR_INPUT_DVRBDR] = "DVR"; + source_names[AVReceiver::AVR_INPUT_GAME_1] = "Game"; + source_names[AVReceiver::AVR_INPUT_GAME_2] = "Game 2"; + source_names[AVReceiver::AVR_INPUT_AUX] = "V. Aux"; + source_names[AVReceiver::AVR_INPUT_DOCK] = "Dock"; + source_names[AVReceiver::AVR_INPUT_HDRADIO] = "HD Radio"; + source_names[AVReceiver::AVR_INPUT_IPOD] = "iPod"; + source_names[AVReceiver::AVR_INPUT_USB] = "Net/USB"; + source_names[AVReceiver::AVR_INPUT_RHAPSODY] = "Rhapsody"; + source_names[AVReceiver::AVR_INPUT_NAPSTER] = "Napster"; + source_names[AVReceiver::AVR_INPUT_PANDORA] = "Pandora"; + source_names[AVReceiver::AVR_INPUT_LASTFM] = "LastFM"; + source_names[AVReceiver::AVR_INPUT_FLICKR] = "Flickr"; + source_names[AVReceiver::AVR_INPUT_FAV] = "Favorites"; + source_names[AVReceiver::AVR_INPUT_NETRADIO] = "IRadio"; + source_names[AVReceiver::AVR_INPUT_SERVER] = "Server"; + + command_suffix = "\r"; + + Utils::logger("output") << Priority::INFO << "AVRDenon::AVRDenon(" << params["host"] << "): Ok" << log4cpp::eol; +} + +AVRDenon::~AVRDenon() +{ + Utils::logger("output") << Priority::INFO << "AVRDenon::~AVRDenon(): Ok" << log4cpp::eol; +} + +void AVRDenon::connectionEstablished() +{ + //power status? + sendRequest("PW?"); + sendRequest("Z2?"); + sendRequest("Z3?"); + + //input selected? + sendRequest("SI?"); + + //volume? + sendRequest("MV?"); +} + +void AVRDenon::processMessage(string msg) +{ + Utils::logger("output") << Priority::DEBUG << "AVRDenon::processMessage(): Recv: " << msg << log4cpp::eol; + + if (msg.substr(0, 2) == "MV") //master volume changed + { + msg.erase(0, 2); + if (is_of_type(msg)) + { + from_string(msg, volume_main); + volume_main = 99 - volume_main; + if (msg.length() == 2) + volume_main = volume_main * 100 / 99; + else + volume_main = (volume_main / 10) * 100 / 99; + + state_changed_1.emit("volume", to_string(volume_main)); + } + } + else if (msg == "PWSTANDBY") //power off + { + power_main = false; + state_changed_1.emit("power", "false"); + } + else if (msg == "PWON") //power on + { + power_main = true; + state_changed_1.emit("power", "true"); + } + else if (msg.substr(0, 2) == "Z2") //zone 2 changed + { + msg.erase(0, 2); + + if (msg == "ON") + { + power_zone2 = true; + state_changed_2.emit("power", "true"); + } + else if (msg == "OFF") + { + power_zone2 = false; + state_changed_2.emit("power", "false"); + } + else if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_zone2 = inputFromString(msg); + state_changed_2.emit("input_source", to_string(source_zone2)); + } + else if (is_of_type(msg)) //Volume changed + { + from_string(msg, volume_zone2); + volume_zone2 = 99 - volume_zone2; + if (msg.length() == 2) + volume_zone2 = volume_zone2 * 100 / 99; + else + volume_zone2 = (volume_zone2 / 10) * 100 / 99; + + state_changed_2.emit("volume", to_string(volume_zone2)); + } + } + else if (msg.substr(0, 2) == "Z3") //zone 3 changed + { + msg.erase(0, 2); + + if (msg == "ON") + { + power_zone3 = true; + state_changed_3.emit("power", "true"); + } + else if (msg == "OFF") + { + power_zone3 = false; + state_changed_3.emit("power", "false"); + } + else if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_zone3 = inputFromString(msg); + state_changed_3.emit("input_source", to_string(source_zone3)); + } + else if (is_of_type(msg)) //Volume changed + { + from_string(msg, volume_zone3); + volume_zone3 = 99 - volume_zone3; + if (msg.length() == 2) + volume_zone3 = volume_zone3 * 100 / 99; + else + volume_zone3 = (volume_zone3 / 10) * 100 / 99; + + state_changed_3.emit("volume", to_string(volume_zone3)); + } + } + else if (msg.substr(0, 2) == "SI") //main zone input source changed + { + msg.erase(0, 2); + if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_main = inputFromString(msg); + state_changed_1.emit("input_source", to_string(source_main)); + } + } +} + +void AVRDenon::Power(bool on, int zone) +{ + if (zone == 1 && on) + sendRequest("PWON"); + else if (zone == 1 && !on) + sendRequest("PWSTANDBY"); + else if (zone == 2 && on) + sendRequest("Z2ON"); + else if (zone == 2 && !on) + sendRequest("Z2OFF"); + else if (zone == 3 && on) + sendRequest("Z3ON"); + else if (zone == 3 && !on) + sendRequest("Z3OFF"); +} + +int AVRDenon::inputFromString(string source) +{ + if (source == "PHONO") return AVReceiver::AVR_INPUT_PHONO; + if (source == "CD") return AVReceiver::AVR_INPUT_CD; + if (source == "TUNER") return AVReceiver::AVR_INPUT_TUNER; + if (source == "DVD") return AVReceiver::AVR_INPUT_DVD; + if (source == "BD") return AVReceiver::AVR_INPUT_BD; + if (source == "TV") return AVReceiver::AVR_INPUT_TV; + if (source == "SAT/CBL") return AVReceiver::AVR_INPUT_SAT; + if (source == "DVR") return AVReceiver::AVR_INPUT_DVRBDR; + if (source == "GAME") return AVReceiver::AVR_INPUT_GAME_1; + if (source == "GAME2") return AVReceiver::AVR_INPUT_GAME_2; + if (source == "V.AUX") return AVReceiver::AVR_INPUT_AUX; + if (source == "DOCK") return AVReceiver::AVR_INPUT_DOCK; + if (source == "HDRADIO") return AVReceiver::AVR_INPUT_HDRADIO; + if (source == "IPOD") return AVReceiver::AVR_INPUT_IPOD; + if (source == "NET/USB") return AVReceiver::AVR_INPUT_USB; + if (source == "RHAPSODY") return AVReceiver::AVR_INPUT_RHAPSODY; + if (source == "NAPSTER") return AVReceiver::AVR_INPUT_NAPSTER; + if (source == "PANDORA") return AVReceiver::AVR_INPUT_PANDORA; + if (source == "LASTFM") return AVReceiver::AVR_INPUT_LASTFM; + if (source == "FLICKR") return AVReceiver::AVR_INPUT_FLICKR; + if (source == "FAVORITES") return AVReceiver::AVR_INPUT_FAV; + if (source == "IRADIO") return AVReceiver::AVR_INPUT_NETRADIO; + if (source == "SERVER") return AVReceiver::AVR_INPUT_SERVER; + + return AVReceiver::AVR_UNKNOWN; +} + +string AVRDenon::inputToString(int source) +{ + switch (source) + { + case AVReceiver::AVR_INPUT_PHONO: return "PHONO"; + case AVReceiver::AVR_INPUT_CD: return "CD"; + case AVReceiver::AVR_INPUT_TUNER: return "TUNER"; + case AVReceiver::AVR_INPUT_DVD: return "DVD"; + case AVReceiver::AVR_INPUT_BD: return "BD"; + case AVReceiver::AVR_INPUT_TV: return "TV"; + case AVReceiver::AVR_INPUT_SAT: return "SAT/CBL"; + case AVReceiver::AVR_INPUT_DVRBDR: return "DVR"; + case AVReceiver::AVR_INPUT_GAME_1: return "GAME"; + case AVReceiver::AVR_INPUT_GAME_2: return "GAME2"; + case AVReceiver::AVR_INPUT_AUX: return "V.AUX"; + case AVReceiver::AVR_INPUT_DOCK: return "DOCK"; + case AVReceiver::AVR_INPUT_HDRADIO: return "HDRADIO"; + case AVReceiver::AVR_INPUT_IPOD: return "IPOD"; + case AVReceiver::AVR_INPUT_USB: return "NET/USB"; + case AVReceiver::AVR_INPUT_RHAPSODY: return "RHAPSODY"; + case AVReceiver::AVR_INPUT_NAPSTER: return "NAPSTER"; + case AVReceiver::AVR_INPUT_PANDORA: return "PANDORA"; + case AVReceiver::AVR_INPUT_LASTFM: return "LASTFM"; + case AVReceiver::AVR_INPUT_FLICKR: return "FLICKR"; + case AVReceiver::AVR_INPUT_FAV: return "FAVORITES"; + case AVReceiver::AVR_INPUT_NETRADIO: return "IRADIO"; + case AVReceiver::AVR_INPUT_SERVER: return "SERVER"; + default: break; + } + + return ""; +} + +void AVRDenon::setVolume(int volume, int zone) +{ + int v = volume * 99 / 100; + v = 99 - v; + stringstream ss; + ss.width(2); + ss.fill('0'); + + if (zone == 1) ss << "MV" << v; + else if (zone == 2) ss << "Z2" << v; + else if (zone == 3) ss << "Z3" << v; + else return; + + sendRequest(ss.str()); +} + +void AVRDenon::selectInputSource(int source, int zone) +{ + string s = inputToString(source); + if (s == "") return; + + string cmd; + if (zone == 1) cmd = "SI" + s; + else if (zone == 2) cmd = "Z2" + s; + else if (zone == 3) cmd = "Z3" + s; + else return; + + sendRequest(cmd); +} diff --git a/src/bin/calaos_server/Audio/AVRDenon.h b/src/bin/calaos_server/Audio/AVRDenon.h new file mode 100644 index 00000000..5bdc2820 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRDenon.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef AVRDENON_H +#define AVRDENON_H + +#include +#include + +namespace Calaos +{ + +//Manage Denon AV devices +class AVRDenon: public AVReceiver +{ + protected: + + int inputFromString(string source); + string inputToString(int source); + + virtual void processMessage(string msg); + virtual void connectionEstablished(); + + public: + AVRDenon(Params &p); + virtual ~AVRDenon(); + + virtual void Power(bool on, int zone = 1); + virtual void setVolume(int volume, int zone = 1); + virtual void selectInputSource(int source, int zone = 1); + virtual bool hasDisplay() { return false; } +}; + +} + +#endif // AVRDENON_H diff --git a/src/bin/calaos_server/Audio/AVRManager.cpp b/src/bin/calaos_server/Audio/AVRManager.cpp new file mode 100644 index 00000000..50fc9d8b --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRManager.cpp @@ -0,0 +1,102 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include +#include + +using namespace Calaos; + +AVRManager::AVRManager() +{ +} + +AVRManager::~AVRManager() +{ + for (unsigned int i = 0;i < avrs.size();i++) + delete avrs[i]; + + avrs.clear(); +} + +AVRManager &AVRManager::Instance() +{ + static AVRManager inst; + + return inst; +} + +AVReceiver *AVRManager::Create(Params &p) +{ + AVReceiver *receiver = getReceiver(p["host"]); + if (!receiver) + { + if (p["model"] == "pioneer") + receiver = new AVRPioneer(p); + else if (p["model"] == "denon") + receiver = new AVRDenon(p); + else if (p["model"] == "onkyo") + receiver = new AVROnkyo(p); + else if (p["model"] == "marantz") + receiver = new AVRMarantz(p); + else + { + Utils::logger("output") << Priority::INFO << "AVRManager(): Unknown A/V Receiver model " << p["model"] << log4cpp::eol; + return NULL; + } + avrs.push_back(receiver); + } + + receiver->ref_count++; + + return receiver; +} + +void AVRManager::Delete(AVReceiver *obj) +{ + bool found = false; + for (unsigned int i = 0;i < avrs.size() && !found;i++) + { + if (avrs[i] == obj) + { + obj->ref_count--; + found = true; + } + } + + if (obj->ref_count <= 0) + { + avrs.erase(std::remove(avrs.begin(), avrs.end(), obj), avrs.end()); + delete obj; + } +} + +AVReceiver *AVRManager::getReceiver(string host) +{ + for (unsigned int i = 0;i < avrs.size();i++) + { + if (avrs[i]->host == host) + return avrs[i]; + } + + return NULL; +} diff --git a/src/bin/calaos_server/Audio/AVRManager.h b/src/bin/calaos_server/Audio/AVRManager.h new file mode 100644 index 00000000..8e29a858 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRManager.h @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ + +#ifndef AVRMANAGER_H +#define AVRMANAGER_H + +#include +#include +#include + +namespace Calaos +{ + +class AVRManager +{ + private: + AVRManager(); + + vector avrs; + public: + static AVRManager &Instance(); //Singleton + ~AVRManager(); + + AVReceiver *Create(Params &p); + void Delete(AVReceiver *obj); + + AVReceiver *getReceiver(string host); +}; + +} + +#endif // AVRMANAGER_H diff --git a/src/bin/calaos_server/Audio/AVRMarantz.cpp b/src/bin/calaos_server/Audio/AVRMarantz.cpp new file mode 100644 index 00000000..8198fdf3 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRMarantz.cpp @@ -0,0 +1,291 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "AVRMarantz.h" + +using namespace Calaos; + +AVRMarantz::AVRMarantz(Params &p): + AVReceiver(p, 23) +{ + source_names[AVReceiver::AVR_INPUT_PHONO] = "Phono"; + source_names[AVReceiver::AVR_INPUT_CD] = "CD"; + source_names[AVReceiver::AVR_INPUT_DVD] = "DVD"; + source_names[AVReceiver::AVR_INPUT_BD] = "Bluray"; + source_names[AVReceiver::AVR_INPUT_TV] = "TV"; + source_names[AVReceiver::AVR_INPUT_SAT] = "Sat/CBL"; + source_names[AVReceiver::AVR_INPUT_TVSAT] = "Sat"; + source_names[AVReceiver::AVR_INPUT_VCR] = "VCR"; + source_names[AVReceiver::AVR_INPUT_GAME_1] = "Game"; + source_names[AVReceiver::AVR_INPUT_AUX] = "V. Aux"; + source_names[AVReceiver::AVR_INPUT_TUNER] = "Tuner"; + source_names[AVReceiver::AVR_INPUT_HDRADIO] = "HD Radio"; + source_names[AVReceiver::AVR_INPUT_RHAPSODY] = "Rhapsody"; + source_names[AVReceiver::AVR_INPUT_NAPSTER] = "Napster"; + source_names[AVReceiver::AVR_INPUT_PANDORA] = "Pandora"; + source_names[AVReceiver::AVR_INPUT_LASTFM] = "LastFM"; + source_names[AVReceiver::AVR_INPUT_FLICKR] = "Flickr"; + source_names[AVReceiver::AVR_INPUT_FAV] = "Favorites"; + source_names[AVReceiver::AVR_INPUT_NETRADIO] = "IRadio"; + source_names[AVReceiver::AVR_INPUT_SERVER] = "Server"; + source_names[AVReceiver::AVR_INPUT_CDRTAPE] = "CDR"; + source_names[AVReceiver::AVR_INPUT_AUX1] = "Aux 1"; + source_names[AVReceiver::AVR_INPUT_AUX2] = "Aux 2"; + source_names[AVReceiver::AVR_INPUT_USB] = "Net/USB"; + source_names[AVReceiver::AVR_INPUT_IPOD] = "USB/iPod"; + + command_suffix = "\r"; + + Utils::logger("output") << Priority::INFO << "AVRMarantz::AVRMarantz(" << params["host"] << "): Ok" << log4cpp::eol; +} + +AVRMarantz::~AVRMarantz() +{ + Utils::logger("output") << Priority::INFO << "AVRMarantz::~AVRMarantz(): Ok" << log4cpp::eol; +} + +void AVRMarantz::connectionEstablished() +{ + //power status? + sendRequest("PW?"); + sendRequest("ZM?"); + sendRequest("Z2?"); + sendRequest("Z3?"); + + //input selected? + sendRequest("SI?"); + + //volume? + sendRequest("MV?"); +} + +void AVRMarantz::processMessage(string msg) +{ + Utils::logger("output") << Priority::DEBUG << "AVRMarantz::processMessage(): Recv: " << msg << log4cpp::eol; + + if (msg.substr(0, 2) == "MV") //master volume changed + { + msg.erase(0, 2); + if (is_of_type(msg)) + { + from_string(msg, volume_main); + volume_main = 99 - volume_main; + if (msg.length() == 2) + volume_main = volume_main * 100 / 99; + else + volume_main = (volume_main / 10) * 100 / 99; + + state_changed_1.emit("volume", to_string(volume_main)); + } + } + else if (msg == "PWSTANDBY") //power off + { + power_main = false; + state_changed_1.emit("power", "false"); + } + else if (msg == "PWON") //power on + { + power_main = true; + state_changed_1.emit("power", "true"); + } + else if (msg.substr(0, 2) == "Z2") //zone 2 changed + { + msg.erase(0, 2); + + if (msg == "ON") + { + power_zone2 = true; + state_changed_2.emit("power", "true"); + } + else if (msg == "OFF") + { + power_zone2 = false; + state_changed_2.emit("power", "false"); + } + else if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_zone2 = inputFromString(msg); + state_changed_2.emit("input_source", to_string(source_zone2)); + } + else if (is_of_type(msg)) //Volume changed + { + from_string(msg, volume_zone2); + volume_zone2 = 99 - volume_zone2; + if (msg.length() == 2) + volume_zone2 = volume_zone2 * 100 / 99; + else + volume_zone2 = (volume_zone2 / 10) * 100 / 99; + + state_changed_2.emit("volume", to_string(volume_zone2)); + } + } + else if (msg.substr(0, 2) == "Z3") //zone 3 changed + { + msg.erase(0, 2); + + if (msg == "ON") + { + power_zone3 = true; + state_changed_3.emit("power", "true"); + } + else if (msg == "OFF") + { + power_zone3 = false; + state_changed_3.emit("power", "false"); + } + else if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_zone3 = inputFromString(msg); + state_changed_3.emit("input_source", to_string(source_zone3)); + } + else if (is_of_type(msg)) //Volume changed + { + from_string(msg, volume_zone3); + volume_zone3 = 99 - volume_zone3; + if (msg.length() == 2) + volume_zone3 = volume_zone3 * 100 / 99; + else + volume_zone3 = (volume_zone3 / 10) * 100 / 99; + + state_changed_3.emit("volume", to_string(volume_zone3)); + } + } + else if (msg.substr(0, 2) == "SI") //main zone input source changed + { + msg.erase(0, 2); + if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_main = inputFromString(msg); + state_changed_1.emit("input_source", to_string(source_main)); + } + } +} + +void AVRMarantz::Power(bool on, int zone) +{ + if (zone == 1 && on) + sendRequest("PWON"); + else if (zone == 1 && !on) + sendRequest("PWSTANDBY"); + else if (zone == 2 && on) + sendRequest("Z2ON"); + else if (zone == 2 && !on) + sendRequest("Z2OFF"); + else if (zone == 3 && on) + sendRequest("Z3ON"); + else if (zone == 3 && !on) + sendRequest("Z3OFF"); +} + +int AVRMarantz::inputFromString(string source) +{ + if (source == "PHONO") return AVReceiver::AVR_INPUT_PHONO; + if (source == "CD") return AVReceiver::AVR_INPUT_CD; + if (source == "DVD") return AVReceiver::AVR_INPUT_DVD; + if (source == "BD") return AVReceiver::AVR_INPUT_BD; + if (source == "TV") return AVReceiver::AVR_INPUT_TV; + if (source == "SAT/CBL") return AVReceiver::AVR_INPUT_SAT; + if (source == "SAT") return AVReceiver::AVR_INPUT_TVSAT; + if (source == "VCR") return AVReceiver::AVR_INPUT_VCR; + if (source == "GAME") return AVReceiver::AVR_INPUT_GAME_1; + if (source == "V.AUX") return AVReceiver::AVR_INPUT_AUX; + if (source == "TUNER") return AVReceiver::AVR_INPUT_TUNER; + if (source == "HDRADIO") return AVReceiver::AVR_INPUT_HDRADIO; + if (source == "RHAPSODY") return AVReceiver::AVR_INPUT_RHAPSODY; + if (source == "NAPSTER") return AVReceiver::AVR_INPUT_NAPSTER; + if (source == "PANDORA") return AVReceiver::AVR_INPUT_PANDORA; + if (source == "LASTFM") return AVReceiver::AVR_INPUT_LASTFM; + if (source == "FLICKR") return AVReceiver::AVR_INPUT_FLICKR; + if (source == "FAVORITES") return AVReceiver::AVR_INPUT_FAV; + if (source == "IRADIO") return AVReceiver::AVR_INPUT_NETRADIO; + if (source == "SERVER") return AVReceiver::AVR_INPUT_SERVER; + if (source == "CDR") return AVReceiver::AVR_INPUT_CDRTAPE; + if (source == "AUX1") return AVReceiver::AVR_INPUT_AUX1; + if (source == "AUX2") return AVReceiver::AVR_INPUT_AUX2; + if (source == "NET/USB") return AVReceiver::AVR_INPUT_USB; + if (source == "USB/IPOD") return AVReceiver::AVR_INPUT_IPOD; + + return AVReceiver::AVR_UNKNOWN; +} + +string AVRMarantz::inputToString(int source) +{ + switch (source) + { + case AVReceiver::AVR_INPUT_PHONO: return "PHONO"; + case AVReceiver::AVR_INPUT_CD: return "CD"; + case AVReceiver::AVR_INPUT_DVD: return "DVD"; + case AVReceiver::AVR_INPUT_BD: return "BD"; + case AVReceiver::AVR_INPUT_TV: return "TV"; + case AVReceiver::AVR_INPUT_SAT: return "SAT/CBL"; + case AVReceiver::AVR_INPUT_TVSAT: return "SAT"; + case AVReceiver::AVR_INPUT_VCR: return "VCR"; + case AVReceiver::AVR_INPUT_GAME_1: return "GAME"; + case AVReceiver::AVR_INPUT_AUX: return "V.AUX"; + case AVReceiver::AVR_INPUT_TUNER: return "TUNER"; + case AVReceiver::AVR_INPUT_HDRADIO: return "HDRADIO"; + case AVReceiver::AVR_INPUT_RHAPSODY: return "RHAPSODY"; + case AVReceiver::AVR_INPUT_NAPSTER: return "NAPSTER"; + case AVReceiver::AVR_INPUT_PANDORA: return "PANDORA"; + case AVReceiver::AVR_INPUT_LASTFM: return "LASTFM"; + case AVReceiver::AVR_INPUT_FLICKR: return "FLICKR"; + case AVReceiver::AVR_INPUT_FAV: return "FAVORITES"; + case AVReceiver::AVR_INPUT_NETRADIO: return "IRADIO"; + case AVReceiver::AVR_INPUT_SERVER: return "SERVER"; + case AVReceiver::AVR_INPUT_CDRTAPE: return "CDR"; + case AVReceiver::AVR_INPUT_AUX1: return "AUX1"; + case AVReceiver::AVR_INPUT_AUX2: return "AUX2"; + case AVReceiver::AVR_INPUT_USB: return "NET/USB"; + case AVReceiver::AVR_INPUT_IPOD: return "USB/IPOD"; + default: break; + } + + return ""; +} + +void AVRMarantz::setVolume(int volume, int zone) +{ + int v = volume * 99 / 100; + v = 99 - v; + stringstream ss; + ss.width(2); + ss.fill('0'); + + if (zone == 1) ss << "MV" << v; + else if (zone == 2) ss << "Z2" << v; + else if (zone == 3) ss << "Z3" << v; + else return; + + sendRequest(ss.str()); +} + +void AVRMarantz::selectInputSource(int source, int zone) +{ + string s = inputToString(source); + if (s == "") return; + + string cmd; + if (zone == 1) cmd = "SI" + s; + else if (zone == 2) cmd = "Z2" + s; + else if (zone == 3) cmd = "Z3" + s; + else return; + + sendRequest(cmd); +} diff --git a/src/bin/calaos_server/Audio/AVRMarantz.h b/src/bin/calaos_server/Audio/AVRMarantz.h new file mode 100644 index 00000000..ae1b4de6 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRMarantz.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef AVRMarantz_H +#define AVRMarantz_H + +#include +#include + +namespace Calaos +{ + +//Manage Denon AV devices +class AVRMarantz: public AVReceiver +{ + protected: + + int inputFromString(string source); + string inputToString(int source); + + virtual void processMessage(string msg); + virtual void connectionEstablished(); + + public: + AVRMarantz(Params &p); + virtual ~AVRMarantz(); + + virtual void Power(bool on, int zone = 1); + virtual void setVolume(int volume, int zone = 1); + virtual void selectInputSource(int source, int zone = 1); + virtual bool hasDisplay() { return false; } +}; + +} + +#endif // AVRMarantz_H diff --git a/src/bin/calaos_server/Audio/AVROnkyo.cpp b/src/bin/calaos_server/Audio/AVROnkyo.cpp new file mode 100644 index 00000000..e0935488 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVROnkyo.cpp @@ -0,0 +1,378 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include "AVROnkyo.h" + +using namespace Calaos; + +AVROnkyo::AVROnkyo(Params &p): + AVReceiver(p, 60128, AVR_CON_BYTES) +{ + source_names[AVReceiver::AVR_INPUT_DVD] = "DVD / Bluray"; + source_names[AVReceiver::AVR_INPUT_CD] = "CD"; + source_names[AVReceiver::AVR_INPUT_PHONO] = "Phono"; + source_names[AVReceiver::AVR_INPUT_TUNER] = "Tuner"; + source_names[AVReceiver::AVR_INPUT_VIDEO_1] = "VCR/DVR"; + source_names[AVReceiver::AVR_INPUT_VIDEO_2] = "Sat/CBL"; + source_names[AVReceiver::AVR_INPUT_VIDEO_3] = "Game/TV"; + source_names[AVReceiver::AVR_INPUT_VIDEO_4] = "Aux. 1"; + source_names[AVReceiver::AVR_INPUT_VIDEO_5] = "Aux. 2"; + source_names[AVReceiver::AVR_INPUT_VIDEO_6] = "PC"; + source_names[AVReceiver::AVR_INPUT_VIDEO_7] = "Video 7"; + source_names[AVReceiver::AVR_INPUT_TV] = "TV/Tape"; + source_names[AVReceiver::AVR_INPUT_SERVER] = "Music Server DLNA"; + source_names[AVReceiver::AVR_INPUT_NETRADIO] = "Internet Radio"; + source_names[AVReceiver::AVR_INPUT_USB] = "USB Front"; + source_names[AVReceiver::AVR_INPUT_USB2] = "USB Rear"; + source_names[AVReceiver::AVR_INPUT_NETWORK] = "Network"; + source_names[AVReceiver::AVR_INPUT_APORT] = "Universal Port"; + source_names[AVReceiver::AVR_INPUT_MULTIIN] = "Multi Ch. In"; + + Utils::logger("output") << Priority::INFO << "AVROnkyo::AVROnkyo(" << params["host"] << "): Ok" << log4cpp::eol; +} + +AVROnkyo::~AVROnkyo() +{ + Utils::logger("output") << Priority::INFO << "AVROnkyo::~AVROnkyo(): Ok" << log4cpp::eol; +} + +void AVROnkyo::connectionEstablished() +{ + //power status? + sendCustomCommand("PWRQSTN"); + sendCustomCommand("ZPWQSTN"); + sendCustomCommand("PW3QSTN"); + + //input selected? + sendCustomCommand("SLIQSTN"); + sendCustomCommand("SLZQSTN"); + sendCustomCommand("SL3QSTN"); + + //volume? + sendCustomCommand("MVLQSTN"); + sendCustomCommand("ZVLQSTN"); + sendCustomCommand("VL3QSTN"); +} + +void AVROnkyo::sendCustomCommand(string command) +{ + vector eISCP; + + int data_size = command.length() + 3; //2 more bytes for !1 + int msg_size = data_size + 16; //end char + header + + //Header + eISCP.push_back('I'); + eISCP.push_back('S'); + eISCP.push_back('C'); + eISCP.push_back('P'); + + //Header size (big endian) + eISCP.push_back(0x00); + eISCP.push_back(0x00); + eISCP.push_back(0x00); + eISCP.push_back(0x10); + + //data size (big endian) + eISCP.push_back(0x00); + eISCP.push_back(0x00); + eISCP.push_back(0x00); + // the official ISCP docs say this is supposed to be just the data size (eiscpDataSize) + // ** BUT ** + // It only works if you send the size of the entire Message size (eiscpMsgSize) + eISCP.push_back((char)data_size); + + //eISCP version + eISCP.push_back(0x01); + + //reserved + eISCP.push_back(0x00); + eISCP.push_back(0x00); + eISCP.push_back(0x00); + + //data header + eISCP.push_back('!'); + eISCP.push_back('1'); //device type, 1 for receiver + + //data command + eISCP.insert(eISCP.end(), command.begin(), command.end()); + + //end char + eISCP.push_back(0x0D); + + sendRequest(eISCP); +} + +void AVROnkyo::processMessage(vector data) +{ + if (data.size() < 18) //msg is too small, wait for more data to come + { + //We don't have a complete paquet yet, buffurize it. + brecv_buffer.insert(brecv_buffer.end(), data.begin(), data.end()); + + Utils::logger("output") << Priority::DEBUG << "AVReceiver:getData() Bufferize data." << log4cpp::eol; + + return; + } + + if (!brecv_buffer.empty()) + { + //Put last data in buffer + brecv_buffer.insert(data.end(), data.begin(), data.end()); + data = brecv_buffer; + brecv_buffer.clear(); + } + + vector::iterator it = data.begin(); + string msg; + for (int i = 0;it < data.end();it++, i++) + { + if (i < 18) continue; + + if (*it == 0x0A || + *it == 0x0D || + *it == 0x1A) + { + if (!msg.empty()) + { + processMessage(msg); + data.erase(data.begin(), it); + + //remove starting separator chars + while (data.size() > 0 && + (*(data.begin()) == 0x0A || + *(data.begin()) == 0x1A || + *(data.begin()) == 0x0D)) + { + data.erase(data.begin()); + } + + it = data.begin(); + i = 0; + msg.clear(); + } + continue; + } + msg.push_back(*it); + } + + if (!data.empty()) + { + //We don't have a complete paquet yet, buffurize it. + brecv_buffer.insert(data.end(), data.begin(), data.end()); + + Utils::logger("output") << Priority::DEBUG << "AVReceiver:getData() Bufferize data." << log4cpp::eol; + } +} + +void AVROnkyo::processMessage(string msg) +{ + Utils::logger("output") << Priority::DEBUG << "AVROnkyo::processMessage(): Recv new message: " << msg << log4cpp::eol; + + if (msg.substr(0, 3) == "MVL") //master volume changed + { + msg.erase(0, 3); + if (is_of_type(msg)) + { + istringstream iss(msg); + iss >> hex >> volume_main; + + state_changed_1.emit("volume", to_string(volume_main)); + } + } + else if (msg.substr(0, 3) == "ZVL") //zone2 volume changed + { + msg.erase(0, 3); + if (is_of_type(msg)) + { + istringstream iss(msg); + iss >> hex >> volume_zone2; + + state_changed_2.emit("volume", to_string(volume_zone2)); + } + } + else if (msg.substr(0, 3) == "VL3") //zone3 volume changed + { + msg.erase(0, 3); + if (is_of_type(msg)) + { + istringstream iss(msg); + iss >> hex >> volume_zone3; + + state_changed_3.emit("volume", to_string(volume_zone3)); + } + } + else if (msg == "PWR00") //power off + { + power_main = false; + state_changed_1.emit("power", "false"); + } + else if (msg == "PWR01") //power on + { + power_main = true; + state_changed_1.emit("power", "true"); + } + else if (msg == "ZPW00") //power off + { + power_zone2 = false; + state_changed_2.emit("power", "false"); + } + else if (msg == "ZPW01") //power on + { + power_zone2 = true; + state_changed_2.emit("power", "true"); + } + else if (msg == "PW300") //power off + { + power_zone3 = false; + state_changed_3.emit("power", "false"); + } + else if (msg == "PW301") //power on + { + power_zone3 = true; + state_changed_3.emit("power", "true"); + } + else if (msg.substr(0, 3) == "SLI") //main zone input source changed + { + msg.erase(0, 3); + if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_main = inputFromString(msg); + state_changed_1.emit("input_source", to_string(source_main)); + } + } + else if (msg.substr(0, 3) == "SLZ") //zone 2 input source changed + { + msg.erase(0, 3); + if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_zone2 = inputFromString(msg); + state_changed_2.emit("input_source", to_string(source_main)); + } + } + else if (msg.substr(0, 3) == "SL3") //zone 3 input source changed + { + msg.erase(0, 3); + if (inputFromString(msg) != AVReceiver::AVR_UNKNOWN) //this is an input source change + { + source_zone3 = inputFromString(msg); + state_changed_3.emit("input_source", to_string(source_main)); + } + } + +} + +void AVROnkyo::Power(bool on, int zone) +{ + if (zone == 1 && on) + sendCustomCommand("PWR01"); + else if (zone == 1 && !on) + sendCustomCommand("PWR00"); + else if (zone == 2 && on) + sendCustomCommand("ZPW01"); + else if (zone == 2 && !on) + sendCustomCommand("ZPW00"); + else if (zone == 3 && on) + sendCustomCommand("PW301"); + else if (zone == 3 && !on) + sendCustomCommand("PW300"); +} + +int AVROnkyo::inputFromString(string source) +{ + if (source == "00") return AVReceiver::AVR_INPUT_VIDEO_1; + if (source == "01") return AVReceiver::AVR_INPUT_VIDEO_2; + if (source == "02") return AVReceiver::AVR_INPUT_VIDEO_3; + if (source == "03") return AVReceiver::AVR_INPUT_VIDEO_4; + if (source == "04") return AVReceiver::AVR_INPUT_VIDEO_5; + if (source == "05") return AVReceiver::AVR_INPUT_VIDEO_6; + if (source == "06") return AVReceiver::AVR_INPUT_VIDEO_7; + if (source == "10") return AVReceiver::AVR_INPUT_DVD; + if (source == "20") return AVReceiver::AVR_INPUT_TV; + if (source == "22") return AVReceiver::AVR_INPUT_PHONO; + if (source == "23") return AVReceiver::AVR_INPUT_CD; + if (source == "26") return AVReceiver::AVR_INPUT_TUNER; + if (source == "27") return AVReceiver::AVR_INPUT_SERVER; + if (source == "28") return AVReceiver::AVR_INPUT_NETRADIO; + if (source == "29") return AVReceiver::AVR_INPUT_USB; + if (source == "2A") return AVReceiver::AVR_INPUT_USB2; + if (source == "2B") return AVReceiver::AVR_INPUT_NETWORK; + if (source == "40") return AVReceiver::AVR_INPUT_APORT; + if (source == "30") return AVReceiver::AVR_INPUT_MULTIIN; + + return AVReceiver::AVR_UNKNOWN; +} + +string AVROnkyo::inputToString(int source) +{ + switch (source) + { + case AVReceiver::AVR_INPUT_VIDEO_1: return "00"; + case AVReceiver::AVR_INPUT_VIDEO_2: return "01"; + case AVReceiver::AVR_INPUT_VIDEO_3: return "02"; + case AVReceiver::AVR_INPUT_VIDEO_4: return "03"; + case AVReceiver::AVR_INPUT_VIDEO_5: return "04"; + case AVReceiver::AVR_INPUT_VIDEO_6: return "05"; + case AVReceiver::AVR_INPUT_VIDEO_7: return "06"; + case AVReceiver::AVR_INPUT_DVD: return "10"; + case AVReceiver::AVR_INPUT_TV: return "20"; + case AVReceiver::AVR_INPUT_PHONO: return "22"; + case AVReceiver::AVR_INPUT_CD: return "23"; + case AVReceiver::AVR_INPUT_TUNER: return "26"; + case AVReceiver::AVR_INPUT_SERVER: return "27"; + case AVReceiver::AVR_INPUT_NETRADIO: return "28"; + case AVReceiver::AVR_INPUT_USB: return "29"; + case AVReceiver::AVR_INPUT_USB2: return "2A"; + case AVReceiver::AVR_INPUT_NETWORK: return "2B"; + case AVReceiver::AVR_INPUT_APORT: return "40"; + case AVReceiver::AVR_INPUT_MULTIIN: return "30"; + default: break; + } + + return ""; +} + +void AVROnkyo::setVolume(int volume, int zone) +{ + stringstream ss; + ss.width(2); + ss.fill('0'); + + if (zone == 1) ss << "MVL" << uppercase << hex << volume; + else if (zone == 2) ss << "ZVL" << uppercase << hex << volume; + else if (zone == 3) ss << "VL3" << uppercase << hex << volume; + else return; + + sendCustomCommand(ss.str()); +} + +void AVROnkyo::selectInputSource(int source, int zone) +{ + string s = inputToString(source); + if (s == "") return; + + string cmd; + if (zone == 1) cmd = "SLI" + s; + else if (zone == 2) cmd = "SLZ" + s; + else if (zone == 3) cmd = "SL3" + s; + else return; + + sendCustomCommand(cmd); +} diff --git a/src/bin/calaos_server/Audio/AVROnkyo.h b/src/bin/calaos_server/Audio/AVROnkyo.h new file mode 100644 index 00000000..c2fb6e68 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVROnkyo.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef AVROnkyo_H +#define AVROnkyo_H + +#include +#include + +namespace Calaos +{ + +//Manage Denon AV devices +class AVROnkyo: public AVReceiver +{ + protected: + + //buffer to store received data + vector brecv_buffer; + + int inputFromString(string source); + string inputToString(int source); + + virtual void processMessage(vector msg); + virtual void processMessage(string msg); + virtual void connectionEstablished(); + + public: + AVROnkyo(Params &p); + virtual ~AVROnkyo(); + + virtual void Power(bool on, int zone = 1); + virtual void setVolume(int volume, int zone = 1); + virtual void selectInputSource(int source, int zone = 1); + virtual bool hasDisplay() { return false; } + + virtual void sendCustomCommand(string command); +}; + +} + +#endif // AVROnkyo_H diff --git a/src/bin/calaos_server/Audio/AVRPioneer.cpp b/src/bin/calaos_server/Audio/AVRPioneer.cpp new file mode 100644 index 00000000..fd0b6455 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRPioneer.cpp @@ -0,0 +1,370 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +AVRPioneer::AVRPioneer(Params &p): + AVReceiver(p, 23) +{ + source_names[AVReceiver::AVR_INPUT_BD] = "Blu-ray Disc"; + source_names[AVReceiver::AVR_INPUT_DVD] = "DVD"; + source_names[AVReceiver::AVR_INPUT_TVSAT] = "TV/Sat"; + source_names[AVReceiver::AVR_INPUT_DVRBDR] = "DVR/BDR"; + source_names[AVReceiver::AVR_INPUT_VIDEO_1] = "Video 1"; + source_names[AVReceiver::AVR_INPUT_VIDEO_2] = "Video 2"; + source_names[AVReceiver::AVR_INPUT_HDMI_1] = "HDMI 1"; + source_names[AVReceiver::AVR_INPUT_HDMI_2] = "HDMI 2"; + source_names[AVReceiver::AVR_INPUT_HDMI_3] = "HDMI 3"; + source_names[AVReceiver::AVR_INPUT_HDMI_4] = "HDMI 4"; + source_names[AVReceiver::AVR_INPUT_HDMI_5] = "HDMI 5"; + source_names[AVReceiver::AVR_INPUT_HDMI_6] = "HDMI 6"; + source_names[AVReceiver::AVR_INPUT_NETRADIO] = "Home Media Gallery"; + source_names[AVReceiver::AVR_INPUT_IPOD] = "iPod/USB"; + source_names[AVReceiver::AVR_INPUT_CD] = "CD"; + source_names[AVReceiver::AVR_INPUT_CDRTAPE] = "CD-R/Tape"; + source_names[AVReceiver::AVR_INPUT_TUNER] = "Tuner"; + source_names[AVReceiver::AVR_INPUT_PHONO] = "Phono"; + source_names[AVReceiver::AVR_INPUT_MULTIIN] = "Multi Channel In"; + source_names[AVReceiver::AVR_INPUT_APORT] = "Adapter Port"; + source_names[AVReceiver::AVR_INPUT_SIRIUS] = "Sirius"; + + command_suffix = "\r"; + + Utils::logger("output") << Priority::INFO << "AVRPioneer::AVRPioneer(" << params["host"] << "): Ok" << log4cpp::eol; +} + +AVRPioneer::~AVRPioneer() +{ + Utils::logger("output") << Priority::INFO << "AVRPioneer::~AVRPioneer(): Ok" << log4cpp::eol; +} + +void AVRPioneer::connectionEstablished() +{ + sendRequest("?P"); //get power on + sendRequest("?AP"); //get power on zone 2 + sendRequest("?BP"); //get power on zone 3 + sendRequest("?V"); //get master volume + sendRequest("?ZV"); //get zone 2 volume + sendRequest("?YV"); //get zone 3 volume + sendRequest("?F"); //get input source + sendRequest("?ZS"); //get input source for zone 2 + sendRequest("?ZT"); //get input source for zone 3 + sendRequest("?FL"); //get display text +} + +void AVRPioneer::processMessage(string msg) +{ + Utils::logger("output") << Priority::DEBUG << "AVRPioneer::processMessage(): Recv: " << msg << log4cpp::eol; + + if (msg.substr(0, 3) == "VOL") //volume changed + { + msg.erase(0, 3); + if (is_of_type(msg)) + { + from_string(msg, volume_main); + volume_main = volume_main * 100 / 185; + + state_changed_1.emit("volume", to_string(volume_main)); + } + } + else if (msg == "PWR1") //power off + { + power_main = false; + state_changed_1.emit("power", "false"); + } + else if (msg == "PWR0") //power on + { + power_main = true; + state_changed_1.emit("power", "true"); + } + else if (msg == "APR1") //power zone2 off + { + power_zone2 = false; + state_changed_2.emit("power", "false"); + } + else if (msg == "APR0") //power zone2 on + { + power_zone2 = true; + state_changed_2.emit("power", "true"); + } + else if (msg == "BPR1") //power zone3 off + { + power_zone3 = false; + state_changed_3.emit("power", "false"); + } + else if (msg == "BPR0") //power zone3 on + { + power_zone3 = true; + state_changed_3.emit("power", "true"); + } + else if (msg.substr(0, 2) == "ZV") //volume zone 2 changed + { + msg.erase(0, 2); + if (is_of_type(msg)) + { + from_string(msg, volume_zone2); + volume_zone2 = volume_zone2 * 100 / 81; + + state_changed_2.emit("volume", to_string(volume_zone2)); + } + } + else if (msg.substr(0, 2) == "YV") //volume zone 3 changed + { + msg.erase(0, 2); + if (is_of_type(msg)) + { + from_string(msg, volume_zone3); + volume_zone3 = volume_zone3 * 100 / 81; + + state_changed_2.emit("volume", to_string(volume_zone3)); + } + } + else if (msg.substr(0, 2) == "FL") + { + msg.erase(0, 4); + decodeDisplayText(msg); + } + else if (msg.substr(0, 2) == "FN") + { + msg.erase(0, 2); + int in; + from_string(msg, in); + + switch (in) + { + case 25: source_main = AVReceiver::AVR_INPUT_BD; break; + case 4: source_main = AVReceiver::AVR_INPUT_DVD; break; + case 5: source_main = AVReceiver::AVR_INPUT_TVSAT; break; + case 15: source_main = AVReceiver::AVR_INPUT_DVRBDR; break; + case 10: source_main = AVReceiver::AVR_INPUT_VIDEO_1; break; + case 14: source_main = AVReceiver::AVR_INPUT_VIDEO_2; break; + case 19: source_main = AVReceiver::AVR_INPUT_HDMI_1; break; + case 20: source_main = AVReceiver::AVR_INPUT_HDMI_2; break; + case 21: source_main = AVReceiver::AVR_INPUT_HDMI_3; break; + case 22: source_main = AVReceiver::AVR_INPUT_HDMI_4; break; + case 23: source_main = AVReceiver::AVR_INPUT_HDMI_5; break; + case 24: source_main = AVReceiver::AVR_INPUT_HDMI_6; break; + case 26: source_main = AVReceiver::AVR_INPUT_NETRADIO; break; + case 17: source_main = AVReceiver::AVR_INPUT_IPOD; break; + case 1: source_main = AVReceiver::AVR_INPUT_CD; break; + case 3: source_main = AVReceiver::AVR_INPUT_CDRTAPE; break; + case 2: source_main = AVReceiver::AVR_INPUT_TUNER; break; + case 0: source_main = AVReceiver::AVR_INPUT_PHONO; break; + case 12: source_main = AVReceiver::AVR_INPUT_MULTIIN; break; + case 33: source_main = AVReceiver::AVR_INPUT_APORT; break; + case 27: source_main = AVReceiver::AVR_INPUT_SIRIUS; break; + default: return; + } + + state_changed_1.emit("input_source", to_string(source_main)); + } + else if (msg.substr(0, 3) == "Z2F") + { + msg.erase(0, 3); + int in; + from_string(msg, in); + + switch (in) + { + case 4: source_zone2 = AVReceiver::AVR_INPUT_DVD; break; + case 5: source_zone2 = AVReceiver::AVR_INPUT_TVSAT; break; + case 15: source_zone2 = AVReceiver::AVR_INPUT_DVRBDR; break; + case 10: source_zone2 = AVReceiver::AVR_INPUT_VIDEO_1; break; + case 14: source_zone2 = AVReceiver::AVR_INPUT_VIDEO_2; break; + case 26: source_zone2 = AVReceiver::AVR_INPUT_NETRADIO; break; + case 17: source_zone2 = AVReceiver::AVR_INPUT_IPOD; break; + case 1: source_zone2 = AVReceiver::AVR_INPUT_CD; break; + case 3: source_zone2 = AVReceiver::AVR_INPUT_CDRTAPE; break; + case 2: source_zone2 = AVReceiver::AVR_INPUT_TUNER; break; + case 33: source_zone2 = AVReceiver::AVR_INPUT_APORT; break; + case 27: source_zone2 = AVReceiver::AVR_INPUT_SIRIUS; break; + default: return; + } + + state_changed_2.emit("input_source", to_string(source_zone2)); + } + else if (msg.substr(0, 3) == "Z3F") + { + msg.erase(0, 3); + int in; + from_string(msg, in); + + switch (in) + { + case 4: source_zone3 = AVReceiver::AVR_INPUT_DVD; break; + case 5: source_zone3 = AVReceiver::AVR_INPUT_TVSAT; break; + case 15: source_zone3 = AVReceiver::AVR_INPUT_DVRBDR; break; + case 10: source_zone3 = AVReceiver::AVR_INPUT_VIDEO_1; break; + case 14: source_zone3 = AVReceiver::AVR_INPUT_VIDEO_2; break; + case 26: source_zone3 = AVReceiver::AVR_INPUT_NETRADIO; break; + case 17: source_zone3 = AVReceiver::AVR_INPUT_IPOD; break; + case 1: source_zone3 = AVReceiver::AVR_INPUT_CD; break; + case 3: source_zone3 = AVReceiver::AVR_INPUT_CDRTAPE; break; + case 2: source_zone3 = AVReceiver::AVR_INPUT_TUNER; break; + case 33: source_zone3 = AVReceiver::AVR_INPUT_APORT; break; + case 27: source_zone3 = AVReceiver::AVR_INPUT_SIRIUS; break; + default: return; + } + + state_changed_3.emit("input_source", to_string(source_zone3)); + } +} + +void AVRPioneer::Power(bool on, int zone) +{ + if (zone == 1 && on) + sendRequest("PO"); + else if (zone == 1 && !on) + sendRequest("PF"); + else if (zone == 2 && on) + sendRequest("APO"); + else if (zone == 2 && !on) + sendRequest("APF"); + else if (zone == 3 && on) + sendRequest("BPO"); + else if (zone == 3 && !on) + sendRequest("BPF"); +} + +void AVRPioneer::setVolume(int volume, int zone) +{ + if (zone == 1) + { + int v = volume * 185 / 100; + stringstream ss; + ss.width(3); + ss.fill('0'); + ss << v << "VL"; + sendRequest(ss.str()); + } + else if (zone == 2) + { + int v = volume * 81 / 100; + stringstream ss; + ss.width(2); + ss.fill('0'); + ss << v << "ZV"; + sendRequest(ss.str()); + } + else if (zone == 3) + { + int v = volume * 81 / 100; + stringstream ss; + ss.width(2); + ss.fill('0'); + ss << v << "YV"; + sendRequest(ss.str()); + } +} + +void AVRPioneer::decodeDisplayText(string &text) +{ + display_text.clear(); + string tmp; + + for (int i = 0;i < text.length();i++) + { + tmp += text[i]; + if (tmp.length() < 2) continue; + + int c; + istringstream iss(tmp); + iss >> std::hex >> c; + display_text += (char)c; + tmp.clear(); + } + + state_changed_1.emit("display_text", to_string(display_text)); + state_changed_2.emit("display_text", to_string(display_text)); + state_changed_3.emit("display_text", to_string(display_text)); +} + +void AVRPioneer::selectInputSource(int source, int zone) +{ + if (zone == 1) + { + switch (source) + { + case AVReceiver::AVR_INPUT_BD: sendRequest("25FN"); break; + case AVReceiver::AVR_INPUT_DVD: sendRequest("04FN"); break; + case AVReceiver::AVR_INPUT_TVSAT: sendRequest("05FN"); break; + case AVReceiver::AVR_INPUT_DVRBDR: sendRequest("15FN"); break; + case AVReceiver::AVR_INPUT_VIDEO_1: sendRequest("10FN"); break; + case AVReceiver::AVR_INPUT_VIDEO_2: sendRequest("14FN"); break; + case AVReceiver::AVR_INPUT_HDMI_1: sendRequest("19FN"); break; + case AVReceiver::AVR_INPUT_HDMI_2: sendRequest("20FN"); break; + case AVReceiver::AVR_INPUT_HDMI_3: sendRequest("21FN"); break; + case AVReceiver::AVR_INPUT_HDMI_4: sendRequest("22FN"); break; + case AVReceiver::AVR_INPUT_HDMI_5: sendRequest("23FN"); break; + case AVReceiver::AVR_INPUT_HDMI_6: sendRequest("24FN"); break; + case AVReceiver::AVR_INPUT_NETRADIO: sendRequest("26FN"); break; + case AVReceiver::AVR_INPUT_IPOD: sendRequest("17FN"); break; + case AVReceiver::AVR_INPUT_CD: sendRequest("01FN"); break; + case AVReceiver::AVR_INPUT_CDRTAPE: sendRequest("03FN"); break; + case AVReceiver::AVR_INPUT_TUNER: sendRequest("02FN"); break; + case AVReceiver::AVR_INPUT_PHONO: sendRequest("00FN"); break; + case AVReceiver::AVR_INPUT_MULTIIN: sendRequest("12FN"); break; + case AVReceiver::AVR_INPUT_APORT: sendRequest("33FN"); break; + case AVReceiver::AVR_INPUT_SIRIUS: sendRequest("27FN"); break; + default: break; + } + } + else if (zone == 2) + { + switch (source) + { + case AVReceiver::AVR_INPUT_DVD: sendRequest("04ZS"); break; + case AVReceiver::AVR_INPUT_TVSAT: sendRequest("05ZS"); break; + case AVReceiver::AVR_INPUT_DVRBDR: sendRequest("15ZS"); break; + case AVReceiver::AVR_INPUT_VIDEO_1: sendRequest("10ZS"); break; + case AVReceiver::AVR_INPUT_VIDEO_2: sendRequest("14ZS"); break; + case AVReceiver::AVR_INPUT_NETRADIO: sendRequest("26ZS"); break; + case AVReceiver::AVR_INPUT_IPOD: sendRequest("17ZS"); break; + case AVReceiver::AVR_INPUT_CD: sendRequest("01ZS"); break; + case AVReceiver::AVR_INPUT_CDRTAPE: sendRequest("03ZS"); break; + case AVReceiver::AVR_INPUT_TUNER: sendRequest("02ZS"); break; + case AVReceiver::AVR_INPUT_APORT: sendRequest("33ZS"); break; + case AVReceiver::AVR_INPUT_SIRIUS: sendRequest("27ZS"); break; + default: break; + } + } + else if (zone == 3) + { + switch (source) + { + case AVReceiver::AVR_INPUT_DVD: sendRequest("04ZT"); break; + case AVReceiver::AVR_INPUT_TVSAT: sendRequest("05ZT"); break; + case AVReceiver::AVR_INPUT_DVRBDR: sendRequest("15ZT"); break; + case AVReceiver::AVR_INPUT_VIDEO_1: sendRequest("10ZT"); break; + case AVReceiver::AVR_INPUT_VIDEO_2: sendRequest("14ZT"); break; + case AVReceiver::AVR_INPUT_NETRADIO: sendRequest("26ZT"); break; + case AVReceiver::AVR_INPUT_IPOD: sendRequest("17ZT"); break; + case AVReceiver::AVR_INPUT_CD: sendRequest("01ZT"); break; + case AVReceiver::AVR_INPUT_CDRTAPE: sendRequest("03ZT"); break; + case AVReceiver::AVR_INPUT_TUNER: sendRequest("02ZT"); break; + case AVReceiver::AVR_INPUT_APORT: sendRequest("33ZT"); break; + case AVReceiver::AVR_INPUT_SIRIUS: sendRequest("27ZT"); break; + default: break; + } + } +} diff --git a/src/bin/calaos_server/Audio/AVRPioneer.h b/src/bin/calaos_server/Audio/AVRPioneer.h new file mode 100644 index 00000000..6e8a7092 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVRPioneer.h @@ -0,0 +1,52 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef AVRPIONEER_H +#define AVRPIONEER_H + +#include +#include + +namespace Calaos +{ + +//Manage Pioneer device +class AVRPioneer: public AVReceiver +{ + protected: + + void decodeDisplayText(string &text); + + virtual void processMessage(string msg); + virtual void connectionEstablished(); + + public: + AVRPioneer(Params &p); + virtual ~AVRPioneer(); + + virtual void Power(bool on, int zone = 1); + virtual void setVolume(int volume, int zone = 1); + virtual void selectInputSource(int source, int zone = 1); + virtual bool hasDisplay() { return true; } //Pioneer has display infos through ethernet +}; + +} + +#endif // AVRPIONEER_H diff --git a/src/bin/calaos_server/Audio/AVReceiver.cpp b/src/bin/calaos_server/Audio/AVReceiver.cpp new file mode 100644 index 00000000..73687758 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVReceiver.cpp @@ -0,0 +1,407 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +#define AVR_TIMEOUT 40.0 +#define AVR_RECONNECT 10.0 + +static Eina_Bool _con_server_add(void *data, int type, Ecore_Con_Event_Server_Add *ev) +{ + AVReceiver *o = reinterpret_cast(data); + + if (ev && ev->server && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->addConnection(ev->server); + else + Utils::logger("output") << Priority::CRIT + << "AVReceiver(): _con_server_add, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _con_server_del(void *data, int type, Ecore_Con_Event_Server_Del *ev) +{ + AVReceiver *o = reinterpret_cast(data); + + if (ev && ev->server && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->delConnection(ev->server); + else + Utils::logger("output") << Priority::CRIT + << "AVReceiver(): _con_server_del, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _con_server_data(void *data, int type, Ecore_Con_Event_Server_Data *ev) +{ + AVReceiver *o = reinterpret_cast(data); + + if (ev && ev->server && (o != ecore_con_server_data_get(ev->server))) + return ECORE_CALLBACK_PASS_ON; + + if (o) + o->dataGet(ev->server, ev->data, ev->size); + else + Utils::logger("output") << Priority::CRIT + << "AVReceiver(): _con_server_data, failed to get object !" + << log4cpp::eol; + + return ECORE_CALLBACK_RENEW; +} + +AVReceiver::AVReceiver(Params &p, int default_port, int _connection_type): + ref_count(0), + params(p), + econ(NULL), + timer_con(NULL), + isConnected(false), + volume_main(0), + volume_zone2(0), + volume_zone3(0), + power_main(false), + power_zone2(false), + power_zone3(false), + source_main(0), + source_zone2(0), + source_zone3(0), + connection_type(_connection_type) +{ + Utils::logger("output") << Priority::DEBUG << "AVReceiver::AVReceiver(" << params["id"] << "): Ok" << log4cpp::eol; + + if (!params.Exists("visible")) params.Add("visible", "false"); + + host = params["host"]; + port = default_port; + + if (params.Exists("port")) + from_string(params["port"], port); + + ehandler_add = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb)_con_server_add, this); + ehandler_del = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, (Ecore_Event_Handler_Cb)_con_server_del, this); + ehandler_data = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, (Ecore_Event_Handler_Cb)_con_server_data, this); + + timerConnReconnect(); + timer_con = new EcoreTimer(AVR_RECONNECT, (sigc::slot)sigc::mem_fun(*this, &AVReceiver::timerConnReconnect)); +} + +AVReceiver::~AVReceiver() +{ + DELETE_NULL(timer_con); + DELETE_NULL_FUNC(ecore_con_server_del, econ); + DELETE_NULL_FUNC(ecore_event_handler_del, ehandler_add); + DELETE_NULL_FUNC(ecore_event_handler_del, ehandler_del); + DELETE_NULL_FUNC(ecore_event_handler_del, ehandler_data); + + Utils::logger("output") << Priority::DEBUG << "AVReceiver::~AVReceiver(): Ok" << log4cpp::eol; +} + +void AVReceiver::timerConnReconnect() +{ + Utils::logger("output") << Priority::DEBUG << "AVReceiver:timerConnReconnect() Connecting to " << host << ":" << port << log4cpp::eol; + + DELETE_NULL_FUNC(ecore_con_server_del, econ); + econ = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, host.c_str(), port, this); + ecore_con_server_data_set(econ, this); + + Utils::logger("output") << Priority::DEBUG << "AVReceiver:timerConnReconnect(): econ == " << econ << log4cpp::eol; +} + +void AVReceiver::addConnection(Ecore_Con_Server *srv) +{ + if (srv != econ) return; + + DELETE_NULL(timer_con); + isConnected = true; + + connectionEstablished(); + + Utils::logger("output") << Priority::DEBUG << "AVReceiver: main connection established" << log4cpp::eol; +} + +void AVReceiver::delConnection(Ecore_Con_Server *srv) +{ + if (srv != econ) return; + + DELETE_NULL(timer_con); + + Utils::logger("output") << Priority::WARN << "AVReceiver: Main Connection closed !" << log4cpp::eol; + Utils::logger("output") << Priority::WARN << "AVReceiver: Trying to reconnect..." << log4cpp::eol; + + timer_con = new EcoreTimer(AVR_RECONNECT, (sigc::slot)sigc::mem_fun(*this, &AVReceiver::timerConnReconnect)); + + isConnected = false; +} + +void AVReceiver::dataGet(Ecore_Con_Server *srv, void *data, int size) +{ + if (srv != econ) return; + + if (connection_type == AVR_CON_CHAR) + { + string msg((char *)data, size); + dataGet(msg); + } + else if (connection_type == AVR_CON_BYTES) + { + char *cdata = (char *)data; + vector d(cdata, cdata + size); + + //We don't know how to handle these messages, + //so we delegate the processing to the child class + //processMessage(vector) has to be inherited ! + processMessage(d); + } +} + +void AVReceiver::dataGet(string msg) +{ + if (msg.find('\n') == string::npos && + msg.find('\r') == string::npos) + { + //We have not a complete paquet yet, buffurize it. + recv_buffer += msg; + + Utils::logger("output") << Priority::DEBUG << "AVReceiver:getData() Bufferize data." << log4cpp::eol; + + return; + } + + if (!recv_buffer.empty()) + { + //Put last data in buffer + recv_buffer += msg; + msg = recv_buffer; + recv_buffer.clear(); + } + + replace_str(msg, "\r\n", "\n"); + replace_str(msg, "\r", "\n"); + + vector tokens; + split(msg, tokens, "\n"); + + Utils::logger("output") << Priority::DEBUG << "AVReceiver:getData() Got " << tokens.size() << " messages." << log4cpp::eol; + + for(int i = 0; i < tokens.size(); i++) + processMessage(tokens[i]); +} + +void AVReceiver::processMessage(string msg) +{ + Utils::logger("output") << Priority::WARN << "AVReceiver:processMessage(): Should be inherited !" << log4cpp::eol; +} + +void AVReceiver::processMessage(vector msg) +{ + Utils::logger("output") << Priority::WARN << "AVReceiver:processMessage(): Should be inherited !" << log4cpp::eol; +} + +void AVReceiver::sendRequest(string request) +{ + if (!econ || !isConnected) return; + + Utils::logger("output") << Priority::DEBUG << "AVReceiver::sendRequest() Command: " << request << log4cpp::eol; + + request += command_suffix; + + ecore_con_server_send(econ, request.c_str(), request.length()); +} + +void AVReceiver::sendRequest(vector request) +{ + if (!econ || !isConnected) return; + + Utils::logger("output") << Priority::DEBUG << "AVReceiver::sendRequest(), " << request.size() << " bytes" << log4cpp::eol; + + ecore_con_server_send(econ, &request[0], request.size()); +} + +bool AVReceiver::getPower(int zone) +{ + if (zone == 2) return power_zone2; + if (zone == 3) return power_zone3; + return power_main; +} + +int AVReceiver::getVolume(int zone) +{ + if (zone == 2) return volume_zone2; + if (zone == 3) return volume_zone3; + return volume_main; +} + +int AVReceiver::getInputSource(int zone) +{ + if (zone == 2) return source_zone2; + if (zone == 3) return source_zone3; + return source_main; +} + +IOAVReceiver::IOAVReceiver(Params &p): + Input(p), + Output(p), + zone(1) +{ + if (p.Exists("zone")) + from_string(p["zone"], zone); + receiver = AVRManager::Instance().Create(p); + + if (zone == 1 && receiver) + receiver->state_changed_1.connect(sigc::mem_fun(*this, &IOAVReceiver::statusChanged)); + if (zone == 2 && receiver) + receiver->state_changed_2.connect(sigc::mem_fun(*this, &IOAVReceiver::statusChanged)); + if (zone == 3 && receiver) + receiver->state_changed_3.connect(sigc::mem_fun(*this, &IOAVReceiver::statusChanged)); +} + +IOAVReceiver::~IOAVReceiver() +{ + AVRManager::Instance().Delete(receiver); +} + +void IOAVReceiver::statusChanged(string param, string value) +{ + EmitSignalInput(); + + string sig = "input "; + sig += Input::get_param("id") + " "; + sig += url_encode(param + ":" + to_string(value)); + IPC::Instance().SendEvent("events", sig); + + sig = "output "; + sig += Input::get_param("id") + " "; + sig += url_encode(param + ":" + to_string(value)); + IPC::Instance().SendEvent("events", sig); +} + +string IOAVReceiver::get_value_string() +{ + if (!receiver) return ""; + + return to_string(receiver->getInputSource(zone)); +} + +map IOAVReceiver::get_all_values_string() +{ + map m; + + if (!receiver) + return m; + + if (receiver->getPower(zone)) + m["power"] = "true"; + else + m["power"] = "false"; + + m["volume"] = to_string(receiver->getVolume(zone)); + m["input_source"] = to_string(receiver->getInputSource(zone)); + + if (receiver->hasDisplay()) + { + m["has_display"] = "true"; + m["display_text"] = receiver->getDisplayText(); + } + else + m["has_display"] = "false"; + + return m; +} + +void IOAVReceiver::force_input_string(string val) +{ + if (!receiver) return; + + if (val == "power off" || val == "power false") + receiver->Power(false, zone); + else if (val == "power on" || val == "power true") + receiver->Power(true, zone); + else if (val.substr(0, 7) == "volume ") + { + val.erase(0, 7); + int vol; + from_string(val, vol); + receiver->setVolume(vol, zone); + } + else if (val.substr(0, 7) == "source ") + { + val.erase(0, 7); + int source; + from_string(val, source); + receiver->selectInputSource(source, zone); + } + else if (val.substr(0, 7) == "custom ") + { + val.erase(0, 7); + receiver->sendCustomCommand(val); + } +} + +bool IOAVReceiver::set_value(string val) +{ + Utils::logger("output") << Priority::INFO << "IOAVReceiver(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + force_input_string(val); + + return true; +} + +bool IOAVReceiver::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:avr"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + Input::get_params().get_item(i, key, value); + cnode->SetAttribute(key, value); + } + + return true; +} + +map IOAVReceiver::query_param(string param) +{ + map m; + + if (!receiver) return m; + + if (param == "input_sources") + { + AVRList sources = receiver->getSources(); + AVRList::iterator it = sources.begin(); + for (;it != sources.end();it++) + m[to_string((*it).first)] = (*it).second; + } + + return m; +} diff --git a/src/bin/calaos_server/Audio/AVReceiver.h b/src/bin/calaos_server/Audio/AVReceiver.h new file mode 100644 index 00000000..3af13b52 --- /dev/null +++ b/src/bin/calaos_server/Audio/AVReceiver.h @@ -0,0 +1,175 @@ +/****************************************************************************** +** Copyright (c) 2006-2012, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Calaos; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef AVRECEIVER_H +#define AVRECEIVER_H + +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +typedef map AVRList; + +class AVReceiver +{ + friend class AVRManager; + + protected: + int ref_count; + + Params params; + AVRList source_names; + + Ecore_Con_Server *econ; + EcoreTimer *timer_con; + + bool isConnected; + string recv_buffer; + string host; + int port; + + int volume_main, volume_zone2, volume_zone3; + bool power_main, power_zone2, power_zone3; + string display_text; + int source_main, source_zone2, source_zone3; + + string command_suffix; + + Ecore_Event_Handler *ehandler_add; + Ecore_Event_Handler *ehandler_del; + Ecore_Event_Handler *ehandler_data; + + enum { AVR_CON_CHAR = 0, AVR_CON_BYTES }; + int connection_type; + + void timerConnReconnect(); + virtual void processMessage(string msg); + virtual void processMessage(vector msg); + + void sendRequest(string request); + void sendRequest(vector request); + + virtual void connectionEstablished() {} + + void dataGet(string data); + + public: + AVReceiver(Params &p, int default_port, int connection_type = AVR_CON_CHAR); + virtual ~AVReceiver(); + + /* AVR specific functions */ + enum { + AVR_UNKNOWN, + + /* AVR Zones */ + AVR_ZONE_MAIN, AVR_ZONE_2, AVR_ZONE_3, + + /* AVR Input sources */ + //WARNING: After first release, don't move these value it will mess the stored rule's actions + //Instead, add new value to the end. + AVR_INPUT_BD, AVR_INPUT_DVD, AVR_INPUT_TVSAT, AVR_INPUT_DVRBDR, + AVR_INPUT_VIDEO_1, AVR_INPUT_VIDEO_2, AVR_INPUT_VIDEO_3, AVR_INPUT_VIDEO_4, + AVR_INPUT_VIDEO_5, AVR_INPUT_VIDEO_6, AVR_INPUT_VIDEO_7, AVR_INPUT_VIDEO_8, + AVR_INPUT_NETRADIO, AVR_INPUT_IPOD, + AVR_INPUT_HDMI_1, AVR_INPUT_HDMI_2, AVR_INPUT_HDMI_3, AVR_INPUT_HDMI_4, + AVR_INPUT_HDMI_5, AVR_INPUT_HDMI_6, AVR_INPUT_HDMI_7, AVR_INPUT_HDMI_8, + AVR_INPUT_CD, AVR_INPUT_CDRTAPE, AVR_INPUT_TUNER, AVR_INPUT_PHONO, AVR_INPUT_MULTIIN, + AVR_INPUT_APORT, AVR_INPUT_SIRIUS, AVR_INPUT_TV, AVR_INPUT_SAT, AVR_INPUT_GAME_1, + AVR_INPUT_GAME_2, AVR_INPUT_AUX, AVR_INPUT_DOCK, AVR_INPUT_HDRADIO, + AVR_INPUT_RHAPSODY, AVR_INPUT_NAPSTER, AVR_INPUT_PANDORA, AVR_INPUT_LASTFM, + AVR_INPUT_FLICKR, AVR_INPUT_FAV, AVR_INPUT_SERVER, AVR_INPUT_NETWORK, + AVR_INPUT_USB, AVR_INPUT_USB2, AVR_INPUT_USB3, AVR_INPUT_USB4, + AVR_INPUT_USB5, AVR_INPUT_USB6, AVR_INPUT_USB7, AVR_INPUT_USB8, + AVR_INPUT_VCR, AVR_INPUT_AUX1, AVR_INPUT_AUX2, AVR_INPUT_AUX3, AVR_INPUT_AUX4, + AVR_INPUT_AUX5, AVR_INPUT_AUX6, AVR_INPUT_AUX7, AVR_INPUT_AUX8 + }; + + virtual void Power(bool on, int zone = 1) {} + virtual bool getPower(int zone = 1); + virtual void setVolume(int volume, int zone = 1) {} + virtual int getVolume(int zone = 1); + + virtual AVRList getSources() { return source_names; } + virtual void selectInputSource(int source, int zone = 1) {} + virtual int getInputSource(int zone = 1); + + //return true if AVR can send his display status text + virtual bool hasDisplay() { return false; } + virtual string getDisplayText() { return display_text; } + + virtual void sendCustomCommand(string command) { sendRequest(command); } + + sigc::signal state_changed_1; //zone 1 + sigc::signal state_changed_2; //zone 2 + sigc::signal state_changed_3; //zone 3 + + /* This is private for C callbacks */ + void addConnection(Ecore_Con_Server *srv); + void delConnection(Ecore_Con_Server *srv); + void dataGet(Ecore_Con_Server *srv, void *data, int size); +}; + +//Input/Output for A/V Receiver devices +class IOAVReceiver: public Input, public Output, public sigc::trackable +{ + private: + AVReceiver *receiver; + int zone; + + void statusChanged(string param, string value); + + public: + IOAVReceiver(Params &p); + virtual ~IOAVReceiver(); + + /* Input/Output functions */ + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual void set_param(std::string opt, std::string val) + { Input::set_param(opt, val); } + virtual std::string get_param(std::string opt) + { return Input::get_param(opt); } + virtual Params &get_params() + { return Input::get_params(); } + + virtual map query_param(string param); + + //Input + virtual string get_value_string(); + virtual map get_all_values_string(); + virtual void force_input_string(string v); + + //Output + virtual bool set_value(string val); + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node); +}; + +} + +#endif // AVRECEIVER_H diff --git a/src/bin/calaos_server/Audio/AudioDB.cpp b/src/bin/calaos_server/Audio/AudioDB.cpp new file mode 100644 index 00000000..e72a4433 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioDB.cpp @@ -0,0 +1,32 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace std; +using namespace Calaos; + +AudioDB::AudioDB(Params &p): param(p) +{ +} + +AudioDB::~AudioDB() +{ +} diff --git a/src/bin/calaos_server/Audio/AudioDB.h b/src/bin/calaos_server/Audio/AudioDB.h new file mode 100644 index 00000000..a399541c --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioDB.h @@ -0,0 +1,80 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AUDIODB_H +#define S_AUDIODB_H + +#include +#include + +namespace Calaos +{ + +class AudioDB +{ + protected: + Params param; + + public: + AudioDB(Params &p); + virtual ~AudioDB(); + + virtual void getStats(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) {} + + //Album + virtual void getAlbums(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getAlbumsTitles(AudioRequest_cb callback, int from, int nb, string album_id, AudioPlayerData user_data = AudioPlayerData()) {} + + //Artist + virtual void getArtists(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getArtistsAlbums(AudioRequest_cb callback, int from, int nb, string artist_id, AudioPlayerData user_data = AudioPlayerData()) {} + + //Genre + virtual void getGenres(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getGenresArtists(AudioRequest_cb callback, int from, int nb, string genre_id, AudioPlayerData user_data = AudioPlayerData()) {} + + //Year + virtual void getYears(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getYearsAlbums(AudioRequest_cb callback, int from, int nb, string year, AudioPlayerData user_data = AudioPlayerData()) {} + + //Playlists + virtual void getPlaylists(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getPlaylistsTracks(AudioRequest_cb callback, int from, int nb, string playlist_id, AudioPlayerData user_data = AudioPlayerData()) {} + + //Radios + virtual void getRadios(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getRadiosItems(AudioRequest_cb callback, int from, int nb, string radio, string item_id = "", string search = "", AudioPlayerData user_data = AudioPlayerData()) {} + + //Random + virtual void getRandoms(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()) {} + virtual void setRandomsType(string type) {} + //TODO:Random genre selection with " randomplaygenrelist" + + virtual void getSearch(AudioRequest_cb callback, int from, int nb, string search, AudioPlayerData user_data = AudioPlayerData()) {} + + virtual void getMusicFolder(AudioRequest_cb callback, int from, int nb, string folder_id = "", AudioPlayerData user_data = AudioPlayerData()) {} + virtual void getTrackInfos(AudioRequest_cb callback, string track_id, AudioPlayerData user_data = AudioPlayerData()) {} + + //TODO:Favorites +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/AudioInput.cpp b/src/bin/calaos_server/Audio/AudioInput.cpp new file mode 100644 index 00000000..104fb419 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioInput.cpp @@ -0,0 +1,68 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +AudioInput::AudioInput(Params &p, AudioPlayer *_player): + Input(p), + answer(""), + status(ERROR), + player(_player) +{ +} + +AudioInput::~AudioInput() +{ +} + +void AudioInput::hasChanged() +{ +// if (st != status) + { + status = st; + switch (status) + { + default: + case ERROR: answer = "onerror"; break; + case PLAY: answer = "onplay"; break; + case PAUSE: answer = "onpause"; break; + case STOP: answer = "onstop"; break; + case SONG_CHANGE: answer = "onsongchange"; break; + case PLAYLIST_CHANGE: answer = "onplaylistchange"; break; + case VOLUME_CHANGE: answer = "onvolumechange"; break; + } + + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += url_encode(string("state:") + answer); + IPC::Instance().SendEvent("events", sig); + } +} + +std::string AudioInput::get_value_string() +{ + return answer; +} diff --git a/src/bin/calaos_server/Audio/AudioInput.h b/src/bin/calaos_server/Audio/AudioInput.h new file mode 100644 index 00000000..4a90edb0 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioInput.h @@ -0,0 +1,56 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AUDIOINPUT_H +#define S_AUDIOINPUT_H + +#include +#include + +namespace Calaos +{ + +class AudioPlayer; + +class AudioInput: public Input, public sigc::trackable +{ + private: + AudioPlayer *player; + std::string answer; + int status; + int st; + + public: + AudioInput(Params &p, AudioPlayer *_player); + ~AudioInput(); + + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual void hasChanged(); + virtual std::string get_value_string(); + + void set_status(int s) { st = s; hasChanged(); } + + AudioPlayer *get_player() { return player; } +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/AudioManager.cpp b/src/bin/calaos_server/Audio/AudioManager.cpp new file mode 100644 index 00000000..aba3ead6 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioManager.cpp @@ -0,0 +1,69 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +AudioManager::AudioManager() +{ +} + +AudioManager::~AudioManager() +{ + for (int i = 0;i < players.size();i++) + delete players[i]; + + players.clear(); +} + +AudioManager &AudioManager::Instance() +{ + static AudioManager inst; + + return inst; +} + +void AudioManager::Add(AudioPlayer *player, std::string dbhost) +{ + player->set_param("pid", Utils::to_string(players.size())); + players.push_back(player); +} + +void AudioManager::Delete(int pos) +{ + vector::iterator iter = players.begin(); + for (int i = 0;i < pos;iter++, i++) ; + delete players[pos]; + players.erase(iter); +} + +int AudioManager::searchIdOf(Output *output) +{ + vector::iterator it; + int i = 0; + for(it = players.begin();it != players.end();it++) + { + if((*it)->get_output() == output) + return i; + i++; + } + return -1; +} diff --git a/src/bin/calaos_server/Audio/AudioManager.h b/src/bin/calaos_server/Audio/AudioManager.h new file mode 100644 index 00000000..b14a54cc --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioManager.h @@ -0,0 +1,56 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AUDIOMANAGER_H +#define S_AUDIOMANAGER_H + +#include +#include +#include + +namespace Calaos +{ + +class AudioManager +{ + private: + AudioManager(); + + std::string host; + int port; + + vector players; + public: + static AudioManager &Instance(); //Singleton + ~AudioManager(); + + void Add(AudioPlayer *player, std::string dbhost = "null"); + void Delete(int i); + void Delete(AudioPlayer *obj) + { players.erase(std::remove(players.begin(), players.end(), obj), players.end()); } + int get_size() { return players.size(); } //return the number of players available + AudioPlayer *get_player(int i) { return players[i]; } + + int searchIdOf(Output *output); +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/AudioOutput.cpp b/src/bin/calaos_server/Audio/AudioOutput.cpp new file mode 100644 index 00000000..5d0c8d96 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioOutput.cpp @@ -0,0 +1,128 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +AudioOutput::AudioOutput(Params &p, AudioPlayer *_player): + Output(p), + player(_player), + answer("") +{ +} + +AudioOutput::~AudioOutput() +{ +} + +bool AudioOutput::set_value(std::string value) +{ + string val = value; + + Utils::logger("output") << Priority::INFO << "AudioOutput(" << get_param("id") << "): got action \"" << val << "\"" << log4cpp::eol; + + //list of all available player functions + if (val == "play") + player->Play(); + else if (val == "pause") + player->Pause(); + else if (val == "stop") + player->Stop(); + else if (val == "next") + player->Next(); + else if (val == "previous") + player->Previous(); + else if (val == "power on") + player->Power(true); + else if (val == "power off") + player->Power(false); + else if (val.compare(0, 6, "sleep ") == 0) + { + val.erase(0, 6); + player->Sleep(atoi(val.c_str())); + } + else if (val.compare(0, 5, "sync ") == 0) + { + val.erase(0, 5); + player->Synchronize(val.c_str(), true); + } + else if (val.compare(0, 7, "unsync ") == 0) + { + val.erase(0, 7); + player->Synchronize(val.c_str(), false); + } + else if (val.compare(0, 5, "play ") == 0) + { + val.erase(0, 5); + player->playlist_play_items(val); + } + else if (val.compare(0, 4, "add ") == 0) + { + val.erase(0, 4); + player->playlist_add_items(val); + } + else if (val.compare(0, 11, "volume set ") == 0) + { + val.erase(0, 11); + int vol; + from_string(val, vol); + + player->set_volume(vol); + } + else if (val.compare(0, 10, "volume up ") == 0) + { + val.erase(0, 10); + AudioPlayerData data; + data.svalue = val; + + player->get_volume(sigc::mem_fun(*this, &AudioOutput::get_volume_cb), data); + } + else if (val.compare(0, 12, "volume down ") == 0) + { + val.erase(0, 12); + AudioPlayerData data; + data.svalue = "-" + val; + + player->get_volume(sigc::mem_fun(*this, &AudioOutput::get_volume_cb), data); + } + + string sig = "output "; + sig += get_param("id") + " "; + sig += url_encode(string("state:") + value); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +std::string AudioOutput::get_value_string() +{ + return answer; +} + +void AudioOutput::get_volume_cb(AudioPlayerData data) +{ + int vol; + from_string(data.svalue, vol); + + player->set_volume(data.ivalue + vol); +} diff --git a/src/bin/calaos_server/Audio/AudioOutput.h b/src/bin/calaos_server/Audio/AudioOutput.h new file mode 100644 index 00000000..6889d115 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioOutput.h @@ -0,0 +1,55 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AUDIOOUTPUT_H +#define S_AUDIOOUTPUT_H + +#include +#include + +namespace Calaos +{ + +class AudioPlayer; +class AudioPlayerData; + +class AudioOutput: public Output +{ + private: + AudioPlayer *player; + std::string answer; + + void get_volume_cb(AudioPlayerData data); + + public: + AudioOutput(Params &p, AudioPlayer *_player); + ~AudioOutput(); + + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual bool set_value(std::string val); + virtual std::string get_value_string(); + + AudioPlayer *get_player() { return player; } +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/AudioPlayer.cpp b/src/bin/calaos_server/Audio/AudioPlayer.cpp new file mode 100644 index 00000000..f34df8df --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioPlayer.cpp @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +AudioPlayer::AudioPlayer(Params &p): + param(p), + database(NULL) +{ + Params pio = param; + + pio.Add("id", param["oid"]); + pio.Add("type", "AudioOutput"); + aoutput = new AudioOutput(pio, this); + + pio.Add("id", param["iid"]); + pio.Add("type", "AudioInput"); + ainput = new AudioInput(pio, this); +} + +AudioPlayer::~AudioPlayer() +{ + delete aoutput; + delete ainput; +} + +bool AudioPlayer::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:audio"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + param.get_item(i, key, value); + cnode->SetAttribute(key, value); + } + + return true; +} diff --git a/src/bin/calaos_server/Audio/AudioPlayer.h b/src/bin/calaos_server/Audio/AudioPlayer.h new file mode 100644 index 00000000..73c01e7a --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioPlayer.h @@ -0,0 +1,122 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AUDIOPLAYER_H +#define S_AUDIOPLAYER_H + +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class AudioPlayer +{ + protected: + Params param; + Output *aoutput; + Input *ainput; + + AudioDB *database; + + public: + AudioPlayer(Params &p); + virtual ~AudioPlayer(); + + virtual void Play() { } + virtual void Pause() { } + virtual void Stop() { } + virtual void Next() { } + virtual void Previous() { } + virtual void Power(bool on) { } + virtual void Sleep(int seconds) { } + virtual void Synchronize(string playerid, bool sync) { } + virtual void getSynchronizeList(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } //get all players wich we can sync with + + virtual void get_volume(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void set_volume(int vol) { } + + //Return a list of option supported by the player + virtual Params getOptions() { Params p; return p; } + + virtual void get_title(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_artist(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_album(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_album_cover(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_genre(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_songinfo(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_current_time(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void set_current_time(double seconds) { } + virtual void get_duration(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + + //retourne le nombre de secondes restante avant le poweroff + virtual void get_sleep(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_status(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_sync_status(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } //get all players synced with + + //playlist functions + virtual void playlist_moveup(int item) { } + virtual void playlist_movedown(int item) { } + virtual void playlist_delete(int item) { } + virtual void playlist_play(int item) { } + virtual void playlist_play_artist(string item) { } + virtual void playlist_play_album(string item) { } + virtual void playlist_play_title(string item) { } + virtual void playlist_add_artist(string item) { } + virtual void playlist_add_album(string item) { } + virtual void playlist_add_title(string item) { } + virtual void playlist_add_items(string item) { } + virtual void playlist_play_items(string item) { } + virtual void playlist_clear() { } + virtual void playlist_save(string name) { } + virtual void playlist_delete(string id) { } + virtual void get_playlist_current(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_playlist_size(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_playlist_item(int index, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_playlist_basic_info(int index, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_playlist_album_cover(int i, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + virtual void get_album_cover_id(string track_id, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()) { } + + virtual bool canPlaylist() { return false; } + virtual bool canDatabase() { return false; } + + virtual Params getDatabaseCapabilities() { Params p; return p; } + + string get_param(string opt) { return param[opt]; } + void set_param(string opt, string val) { param.Add(opt, val); } + Params &get_params() { return param; } + Output *get_output() { return aoutput; } + Input *get_input() { return ainput; } + + AudioDB *get_database() { return database; } + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node); +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/AudioPlayerData.h b/src/bin/calaos_server/Audio/AudioPlayerData.h new file mode 100644 index 00000000..409c0169 --- /dev/null +++ b/src/bin/calaos_server/Audio/AudioPlayerData.h @@ -0,0 +1,109 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AUDIOPLAYERDATA_H +#define S_AUDIOPLAYERDATA_H + +#include + +namespace Calaos +{ + +class AudioPlayerData; + +typedef sigc::slot AudioRequest_cb; +typedef sigc::signal AudioRequest_signal; + +class AudioPlayerData +{ + private: + AudioPlayerData *chain_data; //used to chain multiple calls + + public: + AudioPlayerData(): + chain_data(NULL) + {} + AudioPlayerData(const AudioPlayerData &data) + { + params = data.params; + vparams = data.vparams; + ivalue = data.ivalue; + ivalue2 = data.ivalue2; + svalue = data.svalue; + dvalue = data.dvalue; + callback = data.callback; + user_data = data.user_data; + + if (data.chain_data) + chain_data = new AudioPlayerData(*data.chain_data); + else + chain_data = NULL; + } + AudioPlayerData &operator=(const AudioPlayerData &data) + { + params = data.params; + vparams = data.vparams; + ivalue = data.ivalue; + ivalue2 = data.ivalue2; + svalue = data.svalue; + dvalue = data.dvalue; + callback = data.callback; + user_data = data.user_data; + + if (data.chain_data) + chain_data = new AudioPlayerData(*data.chain_data); + else + chain_data = NULL; + + return *this; + } + + ~AudioPlayerData() + { + if (chain_data) + delete chain_data; + } + + Params params; + vector vparams; + int ivalue, ivalue2; + string svalue; + double dvalue; + + void set_chain_data(AudioPlayerData *data) + { + chain_data = data; + } + + AudioPlayerData &get_chain_data() + { + if (!chain_data) + set_chain_data(new AudioPlayerData); + + return *chain_data; + } + + AudioRequest_cb callback; + void *user_data; //user data +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/Squeezebox.cpp b/src/bin/calaos_server/Audio/Squeezebox.cpp new file mode 100644 index 00000000..90894eb9 --- /dev/null +++ b/src/bin/calaos_server/Audio/Squeezebox.cpp @@ -0,0 +1,1793 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include + +// The JSON parser +#include + +#define SQ_TIMEOUT 40.0 +#define SQ_RECONNECT 3.0 + +using namespace Calaos; + +static Eina_Bool _con_server_add(void *data, int type, Ecore_Con_Event_Server_Add *ev) +{ + Squeezebox *o = reinterpret_cast(data); + + if (ev && ev->server && (o != ecore_con_server_data_get(ev->server))) + { + return ECORE_CALLBACK_PASS_ON; + } + + if (o) + { + o->addConnection(ev->server); + } + else + { + Utils::logger("squeezebox") << Priority::CRIT + << "Squeezebox(): _con_server_add, failed to get object !" + << log4cpp::eol; + } + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _con_server_del(void *data, int type, Ecore_Con_Event_Server_Del *ev) +{ + Squeezebox *o = reinterpret_cast(data); + + if (ev && ev->server && (o != ecore_con_server_data_get(ev->server))) + { + return ECORE_CALLBACK_PASS_ON; + } + + if (o) + { + o->delConnection(ev->server); + } + else + { + Utils::logger("squeezebox") << Priority::CRIT + << "Squeezebox(): _con_server_del, failed to get object !" + << log4cpp::eol; + } + + return ECORE_CALLBACK_RENEW; +} + +static Eina_Bool _con_server_data(void *data, int type, Ecore_Con_Event_Server_Data *ev) +{ + Squeezebox *o = reinterpret_cast(data); + + if (ev && ev->server && (o != ecore_con_server_data_get(ev->server))) + { + return ECORE_CALLBACK_PASS_ON; + } + + if (o) + { + o->dataGet(ev->server, ev->data, ev->size); + } + else + { + Utils::logger("squeezebox") << Priority::CRIT + << "Squeezebox(): _con_server_data, failed to get object !" + << log4cpp::eol; + } + + return ECORE_CALLBACK_RENEW; +} + +Squeezebox::Squeezebox(Params &p): + AudioPlayer(p), + enotif(NULL), + econ(NULL), + econ_udp(NULL), + ehandler_add(NULL), + ehandler_del(NULL), + ehandler_data(NULL), + timer_notification(NULL), + timer_con(NULL), + timer_timeout(NULL), + isConnected(false) +{ + host = param["host"]; + if (param.Exists("port_cli")) + { + Utils::from_string(param["port_web"], port_web); + Utils::from_string(param["port_cli"], port_cli); + } + else + { + Utils::from_string(param["port"], port_cli); + port_web = 9000; + param.Add("port_cli", to_string(port_cli)); + param.Add("port_web", "9000"); + } + if (param.Exists("port")) + param.Delete("port"); + id = param["id"]; + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox: new device (" << id << ") at " << host << ":" << port_cli << log4cpp::eol; + + //Create DB + database = new SqueezeboxDB(this, param); + + ehandler_add = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb)_con_server_add, this); + ehandler_del = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DEL, (Ecore_Event_Handler_Cb)_con_server_del, this); + ehandler_data = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, (Ecore_Event_Handler_Cb)_con_server_data, this); + + econ_udp = ecore_con_server_connect(ECORE_CON_REMOTE_BROADCAST, "255.255.255.255", BCAST_UDP_PORT, NULL); + + timerConnReconnect(); + timerNotificationReconnect(); + + timer_notification = new EcoreTimer(SQ_RECONNECT, + (sigc::slot)sigc::mem_fun(*this, &Squeezebox::timerNotificationReconnect)); + timer_con = new EcoreTimer(SQ_RECONNECT, + (sigc::slot)sigc::mem_fun(*this, &Squeezebox::timerConnReconnect)); +} + +Squeezebox::~Squeezebox() +{ + if (timer_notification) + { + delete timer_notification; + timer_notification = NULL; + } + if (timer_con) + { + delete timer_con; + timer_con = NULL; + } + + ecore_con_server_del(enotif); + ecore_con_server_del(econ); + ecore_con_server_del(econ_udp); + + ecore_event_handler_del(ehandler_add); + ecore_event_handler_del(ehandler_del); + ecore_event_handler_del(ehandler_data); + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox::~Squeezebox(): Ok" << log4cpp::eol; +} + +void Squeezebox::timerNotificationReconnect() +{ + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:timerNotificationReconnect() Connecting to " << host << ":" << port_cli << log4cpp::eol; + + if (enotif) ecore_con_server_del(enotif); + enotif = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, host.c_str(), port_cli, this); + ecore_con_server_data_set(enotif, this); + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:timerNotificationReconnect(): econ == " << econ << " and enotif == " << enotif << log4cpp::eol; +} + +void Squeezebox::timerConnReconnect() +{ + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:timerConnReconnect() Connecting to " << host << ":" << port_cli << log4cpp::eol; + + if (econ) ecore_con_server_del(econ); + econ = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, host.c_str(), port_cli, this); + ecore_con_server_data_set(econ, this); + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:timerConnReconnect(): econ == " << econ << " and enotif == " << enotif << log4cpp::eol; +} + +void Squeezebox::addConnection(Ecore_Con_Server *srv) +{ + if (srv == enotif) + { + if (timer_notification) + { + delete timer_notification; + timer_notification = NULL; + } + + //we need to subscribe to these commands to watch for status changes + //string cmd = "subscribe playlist,mixer,pause,stop\n\r"; + string cmd = "listen 1\n\r"; + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox: trying to subscribe to events" << log4cpp::eol; + + ecore_con_server_send(enotif, cmd.c_str(), cmd.length()); + } + else if (srv == econ) + { + if (timer_con) + { + delete timer_con; + timer_con = NULL; + } + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox: main connection established" << log4cpp::eol; + } + else + { + Utils::logger("squeezebox") << Priority::WARN + << "Squeezebox:addConnection() Wrong Ecore_Con_Server object" + << log4cpp::eol; + } +} + +void Squeezebox::delConnection(Ecore_Con_Server *srv) +{ + if (srv == enotif) + { + if (timer_notification) + { + delete timer_notification; + timer_notification = NULL; + } + + Utils::logger("squeezebox") << Priority::WARN << "Squeezebox: Notification Connection closed !" << log4cpp::eol; + Utils::logger("squeezebox") << Priority::WARN << "Squeezebox: Trying to reconnect..." << log4cpp::eol; + + timer_notification = new EcoreTimer(SQ_RECONNECT, + (sigc::slot)sigc::mem_fun(*this, &Squeezebox::timerNotificationReconnect)); + + isConnected = false; + } + else if (srv == econ) + { + if (timer_con) + { + delete timer_con; + timer_con = NULL; + } + + Utils::logger("squeezebox") << Priority::WARN << "Squeezebox: Main Connection closed !" << log4cpp::eol; + Utils::logger("squeezebox") << Priority::WARN << "Squeezebox: Trying to reconnect..." << log4cpp::eol; + + timer_con = new EcoreTimer(SQ_RECONNECT, + (sigc::slot)sigc::mem_fun(*this, &Squeezebox::timerConnReconnect)); + + isConnected = false; + } + else + { + Utils::logger("squeezebox") << Priority::WARN + << "Squeezebox:delConnection(): Wrong Ecore_Con_Server object (" << srv << ") where econ == " << econ << " and enotif == " << enotif + << log4cpp::eol; + } +} + +void Squeezebox::dataGet(Ecore_Con_Server *srv, void *data, int size) +{ + string msg((char *)data, size); + + if (srv == enotif) + { + if (msg.find('\n') == string::npos && + msg.find('\r') == string::npos) + { + //We have not a complete paquet yet, buffurize it. + buffer_notif += msg; + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:getData(notification) Bufferize data." << log4cpp::eol; + + return; + } + + if (!buffer_notif.empty()) + { + msg = buffer_notif; + buffer_notif.clear(); + } + + //Clean data string + int i = msg.length() - 1; + while ((msg[i] == '\n' || msg[i] == '\r' || msg[i] == '\0') && i >= 0) i--; + + replace_str(msg, "\r\n", "\n"); + replace_str(msg, "\r", "\n"); + + vector tokens; + split(msg, tokens, "\n"); + + isConnected = true; + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:notification Got " << tokens.size() << " messages." << log4cpp::eol; + + for(int i = 0; i < tokens.size(); i++) + processNotificationMessage(tokens[i]); + } + else if (srv == econ) + { + if (msg.find('\n') == string::npos && + msg.find('\r') == string::npos) + { + //We have not a complete paquet yet, buffurize it. + buffer_main += msg; + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:getData(main) Bufferize data." << log4cpp::eol; + + return; + } + + if (!buffer_main.empty()) + { + msg = buffer_main; + buffer_main.clear(); + } + + //Clean data string + int i = msg.length() - 1; + while ((msg[i] == '\n' || msg[i] == '\r' || msg[i] == '\0') && i >= 0) i--; + + replace_str(msg, "\r\n", "\n"); + replace_str(msg, "\r", "\n"); + + vector tokens; + split(msg, tokens, "\n"); + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:notification Got " << tokens.size() << " messages." << log4cpp::eol; + + for(int i = 0; i < tokens.size(); i++) + processMessage(true, tokens[i]); + } + else + { + Utils::logger("squeezebox") << Priority::WARN + << "Squeezebox:dataGet() Wrong Ecore_Con_Server object" + << log4cpp::eol; + } +} + +void Squeezebox::processNotificationMessage(string msg) +{ + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:processNotificationMessage() Message: \"" << msg << "\"" << log4cpp::eol; + + Params p; + p.Parse(msg); + + if (param["id"] != url_decode2(p["0"])) + return; + + int pid; + from_string(param["pid"], pid); + + if (p["1"] == "playlist") + { + if (p["2"] == "open" || p["2"] == "newsong") //current song changes ! + { + string notify = "songchanged player " + to_string(pid); + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(SONG_CHANGE); + + string sig = "audio "; + sig += get_param("pid") + " songchanged"; + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "move") + { + string notify = "playlist move " + p["3"] + " " + p["4"] + " " + to_string(pid);; + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(PLAYLIST_CHANGE); + + string sig = "audio_playlist "; + sig += get_param("pid") + " playlist move " + p["3"] + " " + p["4"]; + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "delete") + { + string notify = "playlist delete " + p["3"] + " " + to_string(pid);; + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(PLAYLIST_CHANGE); + + string sig = "audio_playlist "; + sig += get_param("pid") + " playlist delete " + p["3"]; + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "loadtracks" || p["2"] == "clear" || p["2"] == "play" || p["2"] == "load") + { + string notify = "playlist reload " + to_string(pid);; + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(PLAYLIST_CHANGE); + + string sig = "audio_playlist "; + sig += get_param("pid") + " playlist reload"; + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "addtracks" || p["2"] == "add") + { + string notify = "playlist tracksadded " + to_string(pid);; + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(PLAYLIST_CHANGE); + + string sig = "audio_playlist "; + sig += get_param("pid") + " playlist tracksadded"; + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "clear") + { + string notify = "playlist cleared " + to_string(pid);; + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(PLAYLIST_CHANGE); + + string sig = "audio_playlist "; + sig += get_param("pid") + " playlist cleared"; + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "pause") + { + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) + { + if (p["3"] == "" || p["3"] == "0") + ain->set_status(PLAY); + else + ain->set_status(PAUSE); + } + + string sig = "audio_status "; + sig += get_param("pid") + " "; + + if (p["3"] == "" || p["3"] == "0") + sig += "play"; + else + sig += "pause"; + + IPC::Instance().SendEvent("events", sig); + } + else if (p["2"] == "stop") + { + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(STOP); + + string sig = "audio_status "; + sig += get_param("pid") + " stop"; + IPC::Instance().SendEvent("events", sig); + } + } + + //volume change + if (p["1"] == "mixer" && p["2"] == "volume") + { + string notify = "volumechanged " + to_string(pid) + " " + p["3"]; + + ecore_con_server_send(econ_udp, notify.c_str(), notify.size()); + + //notify the player's input + AudioInput *ain = dynamic_cast(ainput); + if (ain) ain->set_status(VOLUME_CHANGE); + + string sig = "audio_volume "; + sig += get_param("pid") + " change " + p["3"]; + IPC::Instance().SendEvent("events", sig); + } +} + +void Squeezebox::processMessage(bool status, string msg) +{ + if (status) + { + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:processMessage() Message: \"" << msg << "\"" << log4cpp::eol; + } + else + { + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox:processMessage() sending failed !" << log4cpp::eol; + + //Try reconnecting to avoid unwanted data from old command to alter current command + if (ecore_con_server_connected_get(econ)) + { + delConnection(econ); + delConnection(enotif); + } + } + + if (timer_timeout) + { + delete timer_timeout; + timer_timeout = NULL; + } + + if (squeeze_commands.size() > 0) + { + SqueezeboxCommand &cmd = squeeze_commands.front(); + + cmd.status = status; + cmd.result = msg; + + if (!cmd.noCallback) + { + SqueezeRequest_signal sig; + sig.connect(cmd.callback); + sig.emit(status, cmd.request, cmd.result, cmd.user_data); + } + + squeeze_commands.pop(); + } + + //continue to send request until we have no more + _sendRequest(); +} + +void Squeezebox::sendRequest(string command, SqueezeRequest_cb callback, AudioPlayerData user_data) +{ + SqueezeboxCommand cmd; + cmd.request = command; + cmd.callback = callback; + cmd.user_data = user_data; + + squeeze_commands.push(cmd); + + _sendRequest(); +} + +void Squeezebox::sendRequest(string command) +{ + SqueezeboxCommand cmd; + cmd.request = command; + cmd.noCallback = true; + + squeeze_commands.push(cmd); + + _sendRequest(); +} + +Eina_Bool _execute_request_idler_cb(void *data) +{ + Squeezebox *sq = reinterpret_cast(data); + if (!sq) return ECORE_CALLBACK_CANCEL; + + sq->processMessage(false, ""); + + //delete the ecore_idler + return ECORE_CALLBACK_CANCEL; +} + +void Squeezebox::_sendRequest() +{ + //return if a request is already in progress + if (!squeeze_commands.empty() && squeeze_commands.front().inProgress) + return; + + //return if there is no more command to process + if (squeeze_commands.empty()) + return; + + //Do the real work here, get the next available request and process it + SqueezeboxCommand &cmd = squeeze_commands.front(); + + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox: sending command: \"" << cmd.request << "\"" << log4cpp::eol; + + cmd.inProgress = true; + + if (!timer_timeout) + timer_timeout = new EcoreTimer(SQ_TIMEOUT, (sigc::slot)sigc::mem_fun(*this, &Squeezebox::requestTimeout_cb)); + + if (isConnected) + { + cmd.request += "\n\r"; + ecore_con_server_send(econ, cmd.request.c_str(), cmd.request.length()); + } + else + { + ecore_idler_add(_execute_request_idler_cb, this); + } +} + +void Squeezebox::requestTimeout_cb() +{ + Utils::logger("squeezebox") << Priority::DEBUG << "Squeezebox: Request: Timeout ! " << log4cpp::eol; + + processMessage(false, ""); +} + +void Squeezebox::Play() +{ + string cmd = id; + cmd += " play"; + + sendRequest(cmd); +} + +void Squeezebox::Pause() +{ + string cmd = id; + cmd += " pause"; + + sendRequest(cmd); +} + +void Squeezebox::Stop() +{ + string cmd = id; + cmd += " stop"; + + sendRequest(cmd); +} + +void Squeezebox::Next() +{ + string cmd = id; + cmd += " playlist index +1"; + + sendRequest(cmd); +} + +void Squeezebox::Previous() +{ + string cmd = id; + cmd += " playlist index -1"; + + sendRequest(cmd); +} + +void Squeezebox::Power(bool on) +{ + string cmd = id; + + if (on) + cmd += " power 1"; + else + cmd += " power 0"; + + sendRequest(cmd); +} + +void Squeezebox::Sleep(int seconds) +{ + string cmd = id; + cmd += " sleep " + to_string(seconds); + + sendRequest(cmd); +} + +void Squeezebox::Synchronize(string playerid, bool sync) +{ + string cmd = id; + if (sync) + cmd += " sync " + playerid; + else + cmd += " sync -"; + + sendRequest(cmd); +} + +void Squeezebox::get_songinfo(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " path ?"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_songinfo_cb), data); +} + +void Squeezebox::get_songinfo_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + string path = p["2"]; + + string cmd = "songinfo 0 100 tags:algjdro url:"; + cmd += path; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_songinfo_cb2), data); +} + +void Squeezebox::get_songinfo_cb2(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + Params infos; + + //It's probably a remote stream, get infos with specific commands + if (p.size() <= 5) + { + get_artist(sigc::mem_fun(*this, &Squeezebox::get_songinfo_artist_cb), data); + + return; + } + + for (int i = 5;i < p.size();i++) + { + string value = p[Utils::to_string(i)]; + vector attr; + Utils::split(Utils::url_decode2(value), attr, ":", 2); + + if (attr.size() == 2) + infos.Add(Utils::url_decode2(attr[0]), Utils::url_decode2(attr[1])); + } + data.get_chain_data().params = infos; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_songinfo_artist_cb(AudioPlayerData data) +{ + data.get_chain_data().params.Add("artist", data.svalue); + get_album(sigc::mem_fun(*this, &Squeezebox::get_songinfo_album_cb), data); +} +void Squeezebox::get_songinfo_album_cb(AudioPlayerData data) +{ + data.get_chain_data().params.Add("album", data.svalue); + get_title(sigc::mem_fun(*this, &Squeezebox::get_songinfo_title_cb), data); +} +void Squeezebox::get_songinfo_title_cb(AudioPlayerData data) +{ + data.get_chain_data().params.Add("title", data.svalue); + get_duration(sigc::mem_fun(*this, &Squeezebox::get_songinfo_duration_cb), data); +} +void Squeezebox::get_songinfo_duration_cb(AudioPlayerData data) +{ + data.get_chain_data().params.Add("duration", to_string(data.dvalue)); + + //force getting album cover for remote stream (radio, music services) + data.get_chain_data().params.Add("coverart", "1"); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + + +void Squeezebox::get_title(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " remote ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_title_cb), data); +} +void Squeezebox::get_title_cb(bool status, string request, string result, AudioPlayerData data) +{ + string cmd; + Params p; + p.Parse(result); + + if (p["2"] == "1") + cmd = id + " title ?"; + else + cmd = id + " current_title ?"; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_title2_cb), data); +} +void Squeezebox::get_title2_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().svalue = url_decode2(p["2"]); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + + +void Squeezebox::get_artist(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " remote ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_title_cb), data); +} +void Squeezebox::get_artist_cb(bool status, string request, string result, AudioPlayerData data) +{ + string cmd; + Params p; + p.Parse(result); + + if (p["2"] == "1") + cmd = id + " artist ?"; + else + cmd = id + " title ?"; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_title2_cb), data); +} +void Squeezebox::get_artist2_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().svalue = url_decode2(p["2"]); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + + +void Squeezebox::get_album(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " album ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_album_cb), data); +} +void Squeezebox::get_album_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().svalue = url_decode2(p["2"]); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + + +void Squeezebox::get_album_cover(AudioRequest_cb callback, AudioPlayerData user_data) +{ + //Try using a JSON call to get artwork_url if any + + string url = "http://"; + url += param["host"] + ":9000"; + url += "/jsonrpc.js"; + + string postData = "{\"id\":1,\"method\":\"slim.request\",\"params\":[\""; + postData += id; + postData += "\",[\"status\",\"-\",1,\"tags:gABbehldiqtyrSuoKLN\"]]}"; + + AudioPlayerData *data = new AudioPlayerData(); + data->set_chain_data(new AudioPlayerData(user_data)); + data->callback = callback; + + FileDownloader *downloader = new FileDownloader(url, postData, "application/json", true); + downloader->addCallback(sigc::mem_fun(*this, &Squeezebox::get_album_cover_json_cb), data); + + downloader->Start(); +} +void Squeezebox::get_album_cover_json_cb(string result, void *data, void *user_data) +{ + if (result == "failed" || result == "aborted") + { + AudioPlayerData *_data = reinterpret_cast(user_data); + AudioPlayerData adata(*_data); + delete _data; + + get_album_cover_std(adata); + } + else if (result == "done") + { + AudioPlayerData *_data = reinterpret_cast(user_data); + AudioPlayerData adata(*_data); + delete _data; + + Buffer_CURL *buff = reinterpret_cast(data); + string res((const char *)buff->buffer, buff->bufsize); + + json_error_t jerr; + json_t *json = json_loads(res.c_str(), 0, &jerr); + + cout << json_dumps(json, JSON_INDENT(4)) << endl; + + if (!json) + { + Utils::logger("squeezebox") << Priority::DEBUG << "JSON - Error loading json : " << jerr.text << log4cpp::eol; + + get_album_cover_std(adata); + + return; + } + + json_t *remoteMeta = NULL, *artwork_url = NULL, *jresult = NULL; + + if (json_is_object(json)) + { + jresult = json_object_get(json, "result"); + + if (json_is_object(jresult)) + { + remoteMeta = json_object_get(jresult, "remoteMeta"); + + if (json_is_object(remoteMeta)) + { + artwork_url = json_object_get(remoteMeta, "artwork_url"); + if (json_is_string(artwork_url)) + { + string aurl; + + aurl = json_string_value(artwork_url); + + if (artwork_url) json_decref(artwork_url); + if (remoteMeta) json_decref(remoteMeta); + if (jresult) json_decref(jresult); + if (json) json_decref(json); + + if (aurl.compare(0, 4, "http") == 0) + { + adata.get_chain_data().svalue = aurl; + + AudioRequest_signal sig; + sig.connect(adata.callback); + sig.emit(adata.get_chain_data()); + + return; + } + else + { + string s = "http://"; + s += host + ":9000/"; + s += aurl; + + adata.get_chain_data().svalue = s; + + AudioRequest_signal sig; + sig.connect(adata.callback); + sig.emit(adata.get_chain_data()); + + return; + } + } + + Utils::logger("squeezebox") << Priority::DEBUG << "JSON - artwork_url not found in remoteMeta!" << log4cpp::eol; + } + else + { + Utils::logger("squeezebox") << Priority::DEBUG << "JSON - remoteMeta not found!" << log4cpp::eol; + } + } + } + + if (remoteMeta) json_decref(remoteMeta); + if (artwork_url) json_decref(artwork_url); + if (json) json_decref(json); + + get_album_cover_std(adata); + } +} +void Squeezebox::get_album_cover_std(AudioPlayerData data) +{ + Utils::logger("squeezebox") << Priority::DEBUG << "get_album_cover(): trying with standard CLI way..." << log4cpp::eol; + + string cmd = id; + cmd += " path ?"; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_album_cover_std_cb), data); +} +void Squeezebox::get_album_cover_std_cb(bool status, string request, string result, AudioPlayerData data) +{ + string cmd; + Params p; + p.Parse(result); + string path = p["2"]; + + cmd = "songinfo 0 100 url:"; + cmd += path; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_album_cover_std2_cb), data); +} +void Squeezebox::get_album_cover_std2_cb(bool status, string request, string result, AudioPlayerData data) +{ + vector tokens; + split(result, tokens); + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + string aid = ""; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + split(tmp, tk, ":", 2); + if (tk.size() != 2) continue; + + if (tk[0] == "artwork_track_id") aid = tk[1]; + if (tk[0] == "id" && aid == "") aid = tk[1]; + } + + stringstream aurl; + if (aid == "") aid = "current"; + aurl << "http://" << host << ":" << port_web << "/music/" << aid << "/cover.jpg"; + if (aid == "") aurl << "?playerid=" << id; + + data.get_chain_data().svalue = aurl.str(); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_album_cover_id(string track_id, AudioRequest_cb callback, AudioPlayerData user_data) +{ + stringstream aurl; + if (track_id == "") track_id = "0"; + aurl << "http://" << host << ":" << port_web << "/music/" << track_id << "/cover.jpg"; + + Utils::logger("squeezebox") << Priority::DEBUG << "get_album_cover_id(): \"" << aurl << "\"" << log4cpp::eol; + + user_data.svalue = aurl.str(); + + AudioRequest_signal sig; + sig.connect(callback); + sig.emit(user_data); +} + + +void Squeezebox::get_playlist_album_cover(int item, AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " playlist path " + to_string(item) + " ?"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_album_cover_cb), data); +} +void Squeezebox::get_playlist_album_cover_cb(bool status, string request, string result, AudioPlayerData data) +{ + string cmd; + Params p; + p.Parse(result); + string path = p["4"]; + + cmd = "songinfo 0 100 url:"; + cmd += path; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_album_cover2_cb), data); +} +void Squeezebox::get_playlist_album_cover2_cb(bool status, string request, string result, AudioPlayerData data) +{ + vector tokens; + split(result, tokens); + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + string aid = ""; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + split(tmp, tk, ":", 2); + if (tk.size() != 2) continue; + + if (tk[0] == "artwork_track_id") aid = tk[1]; + if (tk[0] == "id" && aid == "") aid = tk[1]; + } + + stringstream aurl; + if (aid == "") aid = "0"; + aurl << "http://" << host << ":" << port_web << "/music/" << aid << "/cover.jpg"; + + Utils::logger("squeezebox") << Priority::DEBUG << "get_playlist_album_cover(): \"" << aurl << "\"" << log4cpp::eol; + + data.get_chain_data().svalue = aurl.str(); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_genre(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " genre ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_genre_cb), data); +} +void Squeezebox::get_genre_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().svalue = url_decode2(p["2"]); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_current_time(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " time ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_current_time_cb), data); +} + +void Squeezebox::get_current_time_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + if (is_of_type(url_decode2(p["2"]))) + from_string(url_decode2(p["2"]), data.get_chain_data().dvalue); + else + data.get_chain_data().dvalue = 0.0; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::set_current_time(double seconds) +{ + string cmd = id; + cmd += " time " + to_string(seconds); + + sendRequest(cmd); +} + +void Squeezebox::get_duration(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " duration ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + data.dvalue = 0.0; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_duration_cb), data); +} + +void Squeezebox::get_duration_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + if (is_of_type(url_decode2(p["2"]))) + from_string(url_decode2(p["2"]), data.get_chain_data().dvalue); + else + data.get_chain_data().dvalue = 0.0; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_sleep(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " sleep ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_sleep_cb), data); +} + +void Squeezebox::get_sleep_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + if (is_of_type(url_decode2(p["2"]))) + from_string(url_decode2(p["2"]), data.get_chain_data().ivalue); + else + data.get_chain_data().ivalue = 0; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_status(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " mode ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_status_cb), data); +} + +void Squeezebox::get_status_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().svalue = url_decode2(p["2"]); + + if (data.get_chain_data().svalue == "play") + data.get_chain_data().ivalue = PLAY; + else if (data.get_chain_data().svalue == "pause") + data.get_chain_data().ivalue = PAUSE; + else if (data.get_chain_data().svalue == "stop") + data.get_chain_data().ivalue = STOP; + else + data.get_chain_data().ivalue = STOP; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_sync_status(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " sync ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_sync_status_cb), data); +} + +void Squeezebox::get_sync_status_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + vector &results = data.get_chain_data().vparams; + + vector splitter; + Utils::split(url_decode2(p["2"]), splitter, ","); + + for (int j = 0;j < splitter.size();j++) + { + string tmp = splitter[j]; + + if (tmp == "-") break; + + for (int i = 0;i < AudioManager::Instance().get_size();i++) + { + AudioPlayer *ap = AudioManager::Instance().get_player(i); + if (ap->get_param("id") == tmp) + { + Params result; + + //player found in calaosd, add it + result.Add("id", ap->get_param("id")); + result.Add("name", ap->get_param("name")); + + results.push_back(result); + + break; + } + } + } + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_playlist_size(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " playlist tracks ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_size_cb), data); +} + +void Squeezebox::get_playlist_size_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + if (is_of_type(url_decode2(p["3"]))) + from_string(url_decode2(p["3"]), data.get_chain_data().ivalue); + else + data.get_chain_data().ivalue = 0; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_playlist_current(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " playlist index ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_current_cb), data); +} + +void Squeezebox::get_playlist_current_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + if (is_of_type(url_decode2(p["3"]))) + from_string(url_decode2(p["3"]), data.get_chain_data().ivalue); + else + data.get_chain_data().ivalue = 0; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_playlist_item(int index, AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " playlist path " + to_string(index) + " ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + data.ivalue = index; //store index for later use + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_item_cb), data); +} + +void Squeezebox::get_playlist_item_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + string path = url_decode2(p["4"]); + + string cmd = "songinfo 0 100 tags:algjdro url:" + url_encode(path); + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_item2_cb), data); +} +void Squeezebox::get_playlist_item2_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + //It's probably a remote stream, get infos with specific commands + if (p.size() <= 5) + { + string cmd = id; + cmd += " playlist title " + to_string(data.ivalue) + " ?"; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_item3_cb), data); + + return; + } + + for (int i = 5;i < p.size();i++) + { + string value = p[to_string(i)]; + vector attr; + split(url_decode2(value), attr, ":", 2); + + if (attr.size() == 2) + data.get_chain_data().params.Add(url_decode2(attr[0]), url_decode2(attr[1])); + } + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} +void Squeezebox::get_playlist_item3_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().params.Add("artist", url_decode2(p["4"])); + + data.ivalue2 = data.ivalue; //hack here, ivalue will be erased by get_playlist_current call + get_playlist_current(sigc::mem_fun(*this, &Squeezebox::get_playlist_item4_cb), data); +} +void Squeezebox::get_playlist_item4_cb(AudioPlayerData data) +{ + int index = (int)data.ivalue2; + + if (index == data.ivalue) + { + string cmd = id; + cmd += " current_title ?"; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_item5_cb), data); + } + else + { + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); + } +} +void Squeezebox::get_playlist_item5_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + data.get_chain_data().params.Add("title", url_decode2(p["2"])); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::get_playlist_basic_info(int index, AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " playlist artist " + to_string(index) + " ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + data.ivalue = index; //store index for later use + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_info_cb), data); +} + +void Squeezebox::get_playlist_info_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + string key = url_decode2(p["2"]); + string val = url_decode2(p["4"]); + + data.get_chain_data().params.Add(key, val); + + if (key == "artist") + { + string cmd = id; + cmd += " playlist album " + to_string(data.ivalue) + " ?"; + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_info_cb), data); + } + else if (key == "album") + { + string cmd = id; + cmd += " playlist title " + to_string(data.ivalue) + " ?"; + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_playlist_info_cb), data); + } + else + { + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); + } +} + +void Squeezebox::playlist_moveup(int item) +{ + stringstream cmd; + cmd << id << " playlist move " << item << " " << (item - 1); + + sendRequest(cmd.str()); +} + +void Squeezebox::playlist_movedown(int item) +{ + stringstream cmd; + cmd << id << " playlist move " << item << " " << (item + 1); + + sendRequest(cmd.str()); +} + +void Squeezebox::playlist_delete(int item) +{ + stringstream cmd; + cmd << id << " playlist delete " << item; + + sendRequest(cmd.str()); +} + +void Squeezebox::playlist_play(int item) +{ + stringstream cmd; + cmd << id << " playlist index " << item; + + sendRequest(cmd.str()); +} + +void Squeezebox::playlist_clear() +{ + string cmd = id; + cmd += " playlist clear"; + + sendRequest(cmd); +} + +void Squeezebox::playlist_save(string name) +{ + string cmd = id; + cmd += " playlist save " + Utils::url_encode(name); + + sendRequest(cmd); +} + +void Squeezebox::playlist_delete(string id) +{ + string cmd = "playlists delete playlist_id:" + id; + + sendRequest(cmd); +} + +void Squeezebox::playlist_play_artist(string item) +{ + string cmd = id; + cmd += " playlistcontrol cmd:load artist_id:"; + cmd += item; + + sendRequest(cmd); +} + +void Squeezebox::playlist_play_album(string item) +{ + string cmd = id; + cmd += " playlistcontrol cmd:load album_id:"; + cmd += item; + + sendRequest(cmd); +} + +void Squeezebox::playlist_play_title(string item) +{ + string cmd = id; + cmd += " playlistcontrol cmd:load track_id:"; + cmd += item; + + sendRequest(cmd); +} + +void Squeezebox::playlist_add_artist(string item) +{ + string cmd = id; + cmd += " playlistcontrol cmd:add artist_id:"; + cmd += item; + + sendRequest(cmd); +} + +void Squeezebox::playlist_add_album(string item) +{ + string cmd = id; + cmd += " playlistcontrol cmd:add album_id:"; + cmd += item; + + sendRequest(cmd); +} + +void Squeezebox::playlist_add_title(string item) +{ + string cmd = id; + cmd += " playlistcontrol cmd:add track_id:"; + cmd += item; + + sendRequest(cmd); +} + +void Squeezebox::playlist_add_items(string item) +{ + string cmd; + + vector tokens; + Utils::split(item, tokens, ":", 2); + if (tokens.size() != 2) return; + + if (tokens[0] == "track_id" || + tokens[0] == "album_id" || + tokens[0] == "artist_id" || + tokens[0] == "genre_id" || + tokens[0] == "year" || + tokens[0] == "playlist_id" || + tokens[0] == "folder_id") + { + cmd = id; + cmd += " playlistcontrol cmd:add "; + cmd += item; + } + else if (tokens[0] == "radio_id") + { + vector tok; + Utils::split(tokens[1], tok, ":", 2); + if (tok.size() != 2) return; + + cmd = id; + cmd += " " + tok[1] + " "; //radio type + cmd += " playlist add item_id:"; + cmd += tok[0]; //radio id + } + else //add as direct song url + { + cmd = id; + cmd += " playlist add "; + cmd += url_encode(item); + } + + sendRequest(cmd); +} + +void Squeezebox::playlist_play_items(string item) +{ + string cmd; + + vector tokens; + Utils::split(item, tokens, ":", 2); + if (tokens.size() != 2) return; + + if (tokens[0] == "track_id" || + tokens[0] == "album_id" || + tokens[0] == "artist_id" || + tokens[0] == "genre_id" || + tokens[0] == "year" || + tokens[0] == "playlist_id" || + tokens[0] == "folder_id" || + tokens[0] == "playlist_name") + { + cmd = id; + cmd += " playlistcontrol cmd:load "; + cmd += url_encode(item); + } + else if (tokens[0] == "radio_id") + { + vector tok; + Utils::split(tokens[1], tok, ":", 2); + if (tok.size() != 2) return; + + cmd = id; + cmd += " " + tok[1] + " "; //radio type + cmd += " playlist play item_id:"; + cmd += tok[0]; //radio id + } + else //play as direct song url + { + cmd = id; + cmd += " playlist play "; + cmd += url_encode(item); + } + + sendRequest(cmd); +} + +void Squeezebox::get_volume(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = id; + cmd += " mixer volume ?"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_volume_cb), data); +} + +void Squeezebox::get_volume_cb(bool status, string request, string result, AudioPlayerData data) +{ + Params p; + p.Parse(result); + + if (is_of_type(url_decode2(p["3"]))) + from_string(url_decode2(p["3"]), data.get_chain_data().ivalue); + else + data.get_chain_data().ivalue = 0; + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void Squeezebox::set_volume(int vol) +{ + string cmd = id; + cmd += " mixer volume "; + cmd += to_string(vol); + + sendRequest(cmd); +} + +void Squeezebox::getSynchronizeList(AudioRequest_cb callback, AudioPlayerData user_data) +{ + string cmd = "players 0 20"; + + AudioPlayerData data; + data.set_chain_data(new AudioPlayerData(user_data)); + data.callback = callback; + + sendRequest(cmd, sigc::mem_fun(*this, &Squeezebox::get_sync_list_cb), data); +} + +void Squeezebox::get_sync_list_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + + vector tokens; + split(res, tokens); + + if (tokens.size() > 0) + { + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "playerid") + { + string pid = url_decode2(tk[1]); + + for (int i = 0;i < AudioManager::Instance().get_size();i++) + { + AudioPlayer *ap = AudioManager::Instance().get_player(i); + if (ap->get_param("id") == pid && pid != id) + { + //player found in calaosd, add it + item.Add("id", pid); + item.Add("name", ap->get_param("name")); + result.push_back(item); + + break; + } + } + } + } + } + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} diff --git a/src/bin/calaos_server/Audio/Squeezebox.h b/src/bin/calaos_server/Audio/Squeezebox.h new file mode 100644 index 00000000..369a23de --- /dev/null +++ b/src/bin/calaos_server/Audio/Squeezebox.h @@ -0,0 +1,233 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_SQUEEZEBOX_H +#define S_SQUEEZEBOX_H + +#include +#include +#include +#include +#include + +namespace Calaos +{ + +typedef sigc::slot SqueezeRequest_cb; +typedef sigc::signal SqueezeRequest_signal; + +class SqueezeboxCommand +{ + public: + SqueezeboxCommand(): + inProgress(false), + noCallback(false) + { } + + bool status; + + string request; + string result; + + bool inProgress; + bool noCallback; + + SqueezeRequest_cb callback; + + AudioPlayerData user_data; +}; + +class SqueezeboxDB; + +class Squeezebox: public AudioPlayer, public sigc::trackable +{ + friend class SqueezeboxDB; + + protected: + Ecore_Con_Server *enotif; + Ecore_Con_Server *econ; + Ecore_Con_Server *econ_udp; + + Ecore_Event_Handler *ehandler_add; + Ecore_Event_Handler *ehandler_del; + Ecore_Event_Handler *ehandler_data; + + EcoreTimer *timer_notification; + EcoreTimer *timer_con; + + EcoreTimer *timer_timeout; + queue squeeze_commands; + + string host, id; + int port_cli, port_web; + + bool isConnected; + + string buffer_notif, buffer_main; + + void timerNotificationReconnect(); + void timerConnReconnect(); + + void processNotificationMessage(string msg); + + void _sendRequest(); + void requestTimeout_cb(); + + void sendRequest(string request); + void sendRequest(string request, SqueezeRequest_cb callback, AudioPlayerData user_data); + + void get_songinfo_cb(bool status, string request, string result, AudioPlayerData data); + void get_songinfo_cb2(bool status, string request, string result, AudioPlayerData data); + void get_songinfo_artist_cb(AudioPlayerData data); + void get_songinfo_album_cb(AudioPlayerData data); + void get_songinfo_title_cb(AudioPlayerData data); + void get_songinfo_duration_cb(AudioPlayerData data); + void get_songinfo_cover_cb(AudioPlayerData data); + + void get_title_cb(bool status, string request, string result, AudioPlayerData data); + void get_title2_cb(bool status, string request, string result, AudioPlayerData data); + + void get_artist_cb(bool status, string request, string result, AudioPlayerData data); + void get_artist2_cb(bool status, string request, string result, AudioPlayerData data); + + void get_album_cb(bool status, string request, string result, AudioPlayerData data); + + void get_album_cover_json_cb(string result, void *data, void *user_data); + void get_album_cover_std(AudioPlayerData data); + void get_album_cover_std_cb(bool status, string request, string result, AudioPlayerData data); + void get_album_cover_std2_cb(bool status, string request, string result, AudioPlayerData data); + + void get_genre_cb(bool status, string request, string result, AudioPlayerData data); + void get_current_time_cb(bool status, string request, string result, AudioPlayerData data); + void get_duration_cb(bool status, string request, string result, AudioPlayerData data); + + void get_sleep_cb(bool status, string request, string result, AudioPlayerData data); + void get_status_cb(bool status, string request, string result, AudioPlayerData data); + void get_sync_status_cb(bool status, string request, string result, AudioPlayerData data); + + void get_playlist_current_cb(bool status, string request, string result, AudioPlayerData data); + void get_playlist_size_cb(bool status, string request, string result, AudioPlayerData data); + + void get_playlist_item_cb(bool status, string request, string result, AudioPlayerData data); + void get_playlist_item2_cb(bool status, string request, string result, AudioPlayerData data); + void get_playlist_item3_cb(bool status, string request, string result, AudioPlayerData data); + void get_playlist_item4_cb(AudioPlayerData data); + void get_playlist_item5_cb(bool status, string request, string result, AudioPlayerData data); + + void get_playlist_info_cb(bool status, string request, string result, AudioPlayerData data); + + void get_playlist_album_cover_cb(bool status, string request, string result, AudioPlayerData data); + void get_playlist_album_cover2_cb(bool status, string request, string result, AudioPlayerData data); + + void get_album_cover_id_cb(bool status, string request, string result, AudioPlayerData data); + void get_volume_cb(bool status, string request, string result, AudioPlayerData data); + void get_sync_list_cb(bool status, string request, string result, AudioPlayerData data); + + public: + Squeezebox(Params &p); + virtual ~Squeezebox(); + + virtual void Play(); + virtual void Pause(); + virtual void Stop(); + virtual void Next(); + virtual void Previous(); + virtual void Power(bool on); + virtual void Sleep(int seconds); + virtual void Synchronize(string playerid, bool sync); + virtual void getSynchronizeList(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); //get all players wich we can sync with + + virtual void get_volume(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void set_volume(int vol); + + //Return a list of option supported by the player + virtual Params getOptions() + { + Params p; + p.Add("sync", "true"); + p.Add("sleep", "true"); + return p; + } + + virtual void get_title(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_artist(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_album(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_album_cover(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_genre(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_songinfo(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_current_time(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void set_current_time(double seconds); + virtual void get_duration(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + + //retourne le nombre de secondes restante avant le poweroff + virtual void get_sleep(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_status(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_sync_status(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); //get all players synced with + + //playlist functions + virtual void playlist_moveup(int item); + virtual void playlist_movedown(int item); + virtual void playlist_delete(int item); + virtual void playlist_play(int item); + virtual void playlist_play_artist(string item); + virtual void playlist_play_album(string item); + virtual void playlist_play_title(string item); + virtual void playlist_add_artist(string item); + virtual void playlist_add_album(string item); + virtual void playlist_add_title(string item); + virtual void playlist_add_items(string item); + virtual void playlist_play_items(string item); + virtual void playlist_clear(); + virtual void playlist_save(string name); + virtual void playlist_delete(string id); + virtual void get_playlist_current(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_playlist_size(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_playlist_item(int index, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_playlist_basic_info(int index, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_playlist_album_cover(int i, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + virtual void get_album_cover_id(string track_id, AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + + virtual bool canPlaylist() { return true; } + virtual bool canDatabase() { return true; } + + virtual Params getDatabaseCapabilities() + { + Params p; + p.Add("artist", "true"); + p.Add("album", "true"); + p.Add("genre", "true"); + p.Add("year", "true"); + p.Add("music folder", "true"); + p.Add("playlist", "true"); + p.Add("radio", "true"); + p.Add("search", "true"); + return p; + } + + /* This is private for C callbacks */ + void addConnection(Ecore_Con_Server *srv); + void delConnection(Ecore_Con_Server *srv); + void dataGet(Ecore_Con_Server *srv, void *data, int size); + void processMessage(bool status, string msg); +}; + +} + +#endif diff --git a/src/bin/calaos_server/Audio/SqueezeboxDB.cpp b/src/bin/calaos_server/Audio/SqueezeboxDB.cpp new file mode 100644 index 00000000..89cb0554 --- /dev/null +++ b/src/bin/calaos_server/Audio/SqueezeboxDB.cpp @@ -0,0 +1,1077 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +SqueezeboxDB::SqueezeboxDB(Squeezebox *squeezebox, Params &p): + AudioDB(p), + player(squeezebox) +{ + Utils::logger("squeezebox") << Priority::DEBUG << "SqueezeboxDB: new Database at " << param["host"] << log4cpp::eol; +} + +SqueezeboxDB::~SqueezeboxDB() +{ + Utils::logger("squeezebox") << Priority::DEBUG << "SqueezeboxDB::~SqueezeboxDB(): Ok" << log4cpp::eol; +} + +void SqueezeboxDB::getAlbums(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + string cmd = "albums " + to_string(from) + " " + to_string(nb) + " tags:lyja"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getAlbums_cb), data); +} +void SqueezeboxDB::getAlbums_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "album") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "year" && tk[1] != "0") item.Add("year", url_decode2(tk[1])); + if (tk[0] == "artist") item.Add("artist", url_decode2(tk[1])); + if (tk[0] == "artwork_track_id") + { + item.Add("cover_id", url_decode2(tk[1])); + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/music/" << item["cover_id"] << "/cover.jpg"; + item.Add("cover_url", aurl.str()); + } + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getAlbumsTitles(AudioRequest_cb callback, int from, int nb, string album_id, AudioPlayerData user_data) +{ + string cmd = "titles " + to_string(from) + " " + to_string(nb); + cmd += " album_id:" + album_id + " sort:tracknum tags:galdyorJilkmqtTvf"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getAlbumsTitles_cb), data); +} +void SqueezeboxDB::getAlbumsTitles_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "title") item.Add("title", url_decode2(tk[1])); + if (tk[0] == "year" && tk[1] != "0") item.Add("year", url_decode2(tk[1])); + if (tk[0] == "genre") item.Add("genre", url_decode2(tk[1])); + if (tk[0] == "album") item.Add("album", url_decode2(tk[1])); + if (tk[0] == "artist") item.Add("artist", url_decode2(tk[1])); + if (tk[0] == "artwork_track_id") + { + item.Add("cover_id", url_decode2(tk[1])); + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/music/" << item["cover_id"] << "/cover.jpg"; + item.Add("cover_url", aurl.str()); + } + if (tk[0] == "duration") item.Add("duration", url_decode2(tk[1])); + if (tk[0] == "type") item.Add("type", url_decode2(tk[1])); + if (tk[0] == "bitrate") item.Add("bitrate", url_decode2(tk[1])); + if (tk[0] == "comment") item.Add("comment", url_decode2(tk[1])); + if (tk[0] == "samplerate") item.Add("samplerate", url_decode2(tk[1])); + if (tk[0] == "tagversion") item.Add("tagversion", url_decode2(tk[1])); + if (tk[0] == "filesize") item.Add("filesize", url_decode2(tk[1])); + if (tk[0] == "bpm") item.Add("bpm", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getArtists(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + string cmd = "artists " + to_string(from) + " " + to_string(nb); + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getArtists_cb), data); +} +void SqueezeboxDB::getArtists_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "artist") item.Add("name", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getArtistsAlbums(AudioRequest_cb callback, int from, int nb, string artist_id, AudioPlayerData user_data) +{ + string cmd = "albums " + to_string(from) + " " + to_string(nb); + cmd += " artist_id:" + artist_id + " tags:lyja"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getArtistsAlbums_cb), data); +} +void SqueezeboxDB::getArtistsAlbums_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "album") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "year" && tk[1] != "0") item.Add("year", url_decode2(tk[1])); + if (tk[0] == "artist") item.Add("artist", url_decode2(tk[1])); + if (tk[0] == "artwork_track_id") + { + item.Add("cover_id", url_decode2(tk[1])); + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/music/" << item["cover_id"] << "/cover.jpg"; + item.Add("cover_url", aurl.str()); + } + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getGenres(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + string cmd = "genres " + to_string(from) + " " + to_string(nb); + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getGenres_cb), data); +} +void SqueezeboxDB::getGenres_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "genre") item.Add("name", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getGenresArtists(AudioRequest_cb callback, int from, int nb, string genre_id, AudioPlayerData user_data) +{ + string cmd = "artists " + to_string(from) + " " + to_string(nb) + " genre_id:" + genre_id; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getGenresArtists_cb), data); +} +void SqueezeboxDB::getGenresArtists_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "artist") item.Add("name", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getYears(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + string cmd = "years " + to_string(from) + " " + to_string(nb); + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getYears_cb), data); +} +void SqueezeboxDB::getYears_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "year" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getYearsAlbums(AudioRequest_cb callback, int from, int nb, string year, AudioPlayerData user_data) +{ + string cmd = "albums " + to_string(from) + " " + to_string(nb); + cmd += " year:" + year + " tags:lyja"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getYearsAlbums_cb), data); +} +void SqueezeboxDB::getYearsAlbums_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "album") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "year" && tk[1] != "0") item.Add("year", url_decode2(tk[1])); + if (tk[0] == "artist") item.Add("artist", url_decode2(tk[1])); + if (tk[0] == "artwork_track_id") + { + item.Add("cover_id", url_decode2(tk[1])); + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/music/" << item["cover_id"] << "/cover.jpg"; + item.Add("cover_url", aurl.str()); + } + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getPlaylists(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + string cmd = "playlists " + to_string(from) + " " + to_string(nb); + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getPlaylists_cb), data); +} +void SqueezeboxDB::getPlaylists_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "playlist") item.Add("name", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getPlaylistsTracks(AudioRequest_cb callback, int from, int nb, string playlist_id, AudioPlayerData user_data) +{ + /* We need to add the current player for gettting playlist tracks + This is a bug in the squeezebox server + http://bugs.slimdevices.com/show_bug.cgi?id=16454 + */ + string cmd = player->id; + cmd += " playlists tracks " + to_string(from) + " " + to_string(nb); + cmd += " playlist_id:" + playlist_id + " tags:galdyorJxuilkmqtTvf"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getPlaylistsTracks_cb), data); +} +void SqueezeboxDB::getPlaylistsTracks_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "playlist index" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "id") item.Add("id", url_decode2(tk[1])); + if (tk[0] == "title") item.Add("title", url_decode2(tk[1])); + if (tk[0] == "year" && tk[1] != "0") item.Add("year", url_decode2(tk[1])); + if (tk[0] == "genre") item.Add("genre", url_decode2(tk[1])); + if (tk[0] == "album") item.Add("album", url_decode2(tk[1])); + if (tk[0] == "artist") item.Add("artist", url_decode2(tk[1])); + if (tk[0] == "artwork_track_id") + { + item.Add("cover_id", url_decode2(tk[1])); + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/music/" << item["cover_id"] << "/cover.jpg"; + item.Add("cover_url", aurl.str()); + } + if (tk[0] == "duration") item.Add("duration", url_decode2(tk[1])); + if (tk[0] == "type") item.Add("type", url_decode2(tk[1])); + if (tk[0] == "bitrate") item.Add("bitrate", url_decode2(tk[1])); + if (tk[0] == "remote") item.Add("remote", url_decode2(tk[1])); + if (tk[0] == "url") item.Add("url", url_decode2(tk[1])); + if (tk[0] == "comment") item.Add("comment", url_decode2(tk[1])); + if (tk[0] == "samplerate") item.Add("samplerate", url_decode2(tk[1])); + if (tk[0] == "tagversion") item.Add("tagversion", url_decode2(tk[1])); + if (tk[0] == "filesize") item.Add("filesize", url_decode2(tk[1])); + if (tk[0] == "bpm") item.Add("bpm", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getRadios(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + string cmd = "radios"; + cmd += " " + to_string(from) + " " + to_string(nb); + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + data.ivalue = from; + data.dvalue = nb; + data.svalue = "radios"; + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getRadios_cb), data); +} + +void SqueezeboxDB::getRadios_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + for (int i = 3;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (item.Exists(tk[0])) + { + if (item.Exists("icon")) + { + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/" << item["icon"]; + item.Add("icon", aurl.str()); + } + + item.Add("id", item["cmd"]); + item.Delete("cmd"); + + result.push_back(item); + item.clear(); + } + + item.Add(tk[0], tk[1]); + } + + if (item.size() > 0) + { + if (item.Exists("icon")) + { + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/" << item["icon"]; + item.Add("icon", aurl.str()); + } + item.Add("id", item["cmd"]); + item.Delete("cmd"); + + result.push_back(item); + } + + if (data.svalue == "radios") + data.svalue = "music_services"; + else if (data.svalue == "music_services") + data.svalue = "apps"; + else if (data.svalue == "apps") + data.svalue.clear(); + + if (data.svalue.empty()) + { + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); + } + else + { + string cmd = data.svalue; + cmd += " " + to_string(data.ivalue) + " " + to_string(data.dvalue); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getRadios_cb), data); + } +} + +void SqueezeboxDB::getRadiosItems(AudioRequest_cb callback, int from, int nb, string radio, string item_id, string search, AudioPlayerData user_data) +{ + string cmd = radio + " items " + to_string(from) + " " + to_string(nb); + if (item_id != "") cmd += " item_id:" + item_id; + if (search != "") cmd += " search:" + search; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getRadiosItems_cb), data); +} +void SqueezeboxDB::getRadiosItems_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector &result = data.get_chain_data().vparams; + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params item; + int cpt = 0; + for (int i = 0;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "name") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "title") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "isaudio") item.Add("isaudio", url_decode2(tk[1])); + if (tk[0] == "hasitems") item.Add("hasitems", url_decode2(tk[1])); + if (tk[0] == "type") item.Add("type", url_decode2(tk[1])); + if (tk[0] == "icon") //Menu icons + { + stringstream aurl; + aurl << "http://" << param["host"] << ":9000" << url_decode2(tk[1]); + + item.Add("coverart", "1"); + item.Add("coverart_url", aurl.str()); + } + if (tk[0] == "image") //Radios coverart + { + item.Add("coverart", "1"); + item.Add("coverart_url", url_decode2(tk[1])); + } + //TODO: SqueezeCenter is able to get some more infos from streams + //like nb of listeners, current playing track, ... + //We could add a way to also display these infos + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getRandoms(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data) +{ + vector &result = user_data.vparams; + Params p; + + p.Add("id", "tracks"); + p.Add("name", "Random Tracks"); + result.push_back(p); + p.clear(); + + p.Add("id", "albums"); + p.Add("name", "Random Albums"); + result.push_back(p); + p.clear(); + + p.Add("id", "contributors"); + p.Add("name", "Random Artists"); + result.push_back(p); + p.clear(); + + p.Add("id", "years"); + p.Add("name", "Random Years"); + result.push_back(p); + p.clear(); + + p.Add("count", to_string(result.size())); + result.push_back(p); + p.clear(); + + AudioRequest_signal sig; + sig.connect(callback); + sig.emit(user_data); +} + +void SqueezeboxDB::setRandomsType(string type) +{ + string cmd, res; + cmd = param["id"] + " randomplay " + to_string(type); + + player->sendRequest(cmd); +} + +void SqueezeboxDB::getStats(AudioRequest_cb callback, AudioPlayerData user_data) +{ + //Get total genres + string cmd = "info total genres ?"; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getStats_genre_cb), data); +} +void SqueezeboxDB::getStats_genre_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + if (tokens.size() == 4) + data.get_chain_data().params.Add("genres", tokens[3]); + + //Get total artists + string cmd = "info total artists ?"; + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getStats_artist_cb), data); +} +void SqueezeboxDB::getStats_artist_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + if (tokens.size() == 4) + data.get_chain_data().params.Add("artists", tokens[3]); + + //Get total album + string cmd = "info total albums ?"; + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getStats_album_cb), data); +} +void SqueezeboxDB::getStats_album_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + if (tokens.size() == 4) + data.get_chain_data().params.Add("albums", tokens[3]); + + //Get total tracks + string cmd = "info total songs ?"; + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getStats_song_cb), data); +} +void SqueezeboxDB::getStats_song_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + if (tokens.size() == 4) + data.get_chain_data().params.Add("tracks", tokens[3]); + + //Get total playlists + string cmd = "playlists 0 0"; + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getStats_playlist_cb), data); +} +void SqueezeboxDB::getStats_playlist_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + if (tokens.size() == 4) + { + vector tk; + split(tokens[3], tk, ":"); + if (tk.size() == 2) + data.get_chain_data().params.Add("playlists", tk[1]); + } + + //Get total years + string cmd = "years 0 0"; + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getStats_year_cb), data); +} +void SqueezeboxDB::getStats_year_cb(bool status, string request, string res, AudioPlayerData data) +{ + vector tokens; + split(res, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + if (tokens.size() == 4) + { + vector tk; + split(tokens[3], tk, ":"); + if (tk.size() == 2) + data.get_chain_data().params.Add("years", tk[1]); + } + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getSearch(AudioRequest_cb callback, int from, int nb, string search, AudioPlayerData user_data) +{ + string cmd = "search " + to_string(from) + " " + to_string(nb) + " term:" + url_encode(search); + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getSearch_cb), data); +} +void SqueezeboxDB::getSearch_cb(bool status, string request, string res, AudioPlayerData data) +{ + if (res != "") + { + data.svalue = res; + data.ivalue = 0; + data.dvalue = 0.0; + } + + vector &result = data.get_chain_data().vparams; + vector tokens; + split(data.svalue, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params &item = data.params; + int cpt = (int)data.dvalue; + for (int i = data.ivalue;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "contributor_id" || tk[0] == "album_id" || tk[0] == "track_id" || tk[0] == "genre_id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + if (tk[0] == "count") + item.Add("count", url_decode2(tk[1])); + else + item.Add("id", url_decode2(tk[1])); + + if (tk[0] == "contributor_id") item.Add("type", "artist"); + if (tk[0] == "album_id") item.Add("type", "album"); + if (tk[0] == "track_id") item.Add("type", "track"); + if (tk[0] == "genre_id") item.Add("type", "genre"); + } + + if (tk[0] == "contributor") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "album") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "track") item.Add("name", url_decode2(tk[1])); + if (tk[0] == "genre") item.Add("name", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getMusicFolder(AudioRequest_cb callback, int from, int nb, string folder_id, AudioPlayerData user_data) +{ + string cmd = "musicfolder " + to_string(from) + " " + to_string(nb); + if (folder_id != "") cmd += " folder_id:" + folder_id; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getMusicFolder_cb), data); +} +void SqueezeboxDB::getMusicFolder_cb(bool status, string request, string res, AudioPlayerData data) +{ + if (res != "") + { + data.svalue = res; + data.ivalue = 0; + data.dvalue = 0.0; + } + + vector &result = data.get_chain_data().vparams; + vector tokens; + split(data.svalue, tokens); + + for_each(tokens.begin(), tokens.end(), UrlDecode()); + + Params &item = data.params; + int cpt = (int)data.dvalue; + for (int i = data.ivalue;i < tokens.size();i++) + { + string tmp = tokens[i]; + vector tk; + + split(tmp, tk, ":", 2); + + if (tk.size() != 2) continue; + + if (tk[0] == "id" || tk[0] == "count") + { + if (cpt > 0) result.push_back(item); + item.clear(); + cpt++; + + item.Add(tk[0], url_decode2(tk[1])); + } + + if (tk[0] == "type") item.Add("type", url_decode2(tk[1])); + if (tk[0] == "filename") item.Add("name", url_decode2(tk[1])); + } + + result.push_back(item); + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} + +void SqueezeboxDB::getTrackInfos(AudioRequest_cb callback, string track_id, AudioPlayerData user_data) +{ + string cmd = "songinfo 0 99999 tags:galdyorJilkmqtTvf track_id:" + track_id; + + AudioPlayerData data; + data.callback = callback; + data.set_chain_data(new AudioPlayerData(user_data)); + + player->sendRequest(cmd, sigc::mem_fun(*this, &SqueezeboxDB::getTrackInfos_cb), data); +} + +void SqueezeboxDB::getTrackInfos_cb(bool status, string request, string res, AudioPlayerData data) +{ + Params p; + p.Parse(res); + + Params &item = data.get_chain_data().params; + + for (int i = 4;i < p.size();i++) + { + string value = p[to_string(i)]; + vector tk; + Utils::split(Utils::url_decode2(value), tk, ":", 2); + + if (tk.size() != 2) + if (tk[0] == "id") item.Add("track_id", url_decode2(tk[1])); + if (tk[0] == "title") item.Add("title", url_decode2(tk[1])); + if (tk[0] == "year" && tk[1] != "0") item.Add("year", url_decode2(tk[1])); + if (tk[0] == "genre") item.Add("genre", url_decode2(tk[1])); + if (tk[0] == "album") item.Add("album", url_decode2(tk[1])); + if (tk[0] == "artist") item.Add("artist", url_decode2(tk[1])); + if (tk[0] == "artwork_track_id") + { + item.Add("cover_id", url_decode2(tk[1])); + stringstream aurl; + aurl << "http://" << player->host << ":" << player->port_web << "/music/" << item["cover_id"] << "/cover.jpg"; + item.Add("cover_url", aurl.str()); + } + if (tk[0] == "duration") item.Add("duration", url_decode2(tk[1])); + if (tk[0] == "type") item.Add("audiotype", url_decode2(tk[1])); + if (tk[0] == "bitrate") item.Add("bitrate", url_decode2(tk[1])); + if (tk[0] == "comment") item.Add("comment", url_decode2(tk[1])); + if (tk[0] == "samplerate") item.Add("samplerate", url_decode2(tk[1])); + if (tk[0] == "tagversion") item.Add("tagversion", url_decode2(tk[1])); + if (tk[0] == "filesize") item.Add("filesize", url_decode2(tk[1])); + if (tk[0] == "bpm") item.Add("bpm", url_decode2(tk[1])); + } + + AudioRequest_signal sig; + sig.connect(data.callback); + sig.emit(data.get_chain_data()); +} diff --git a/src/bin/calaos_server/Audio/SqueezeboxDB.h b/src/bin/calaos_server/Audio/SqueezeboxDB.h new file mode 100644 index 00000000..6407abf2 --- /dev/null +++ b/src/bin/calaos_server/Audio/SqueezeboxDB.h @@ -0,0 +1,117 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_SQDB_H +#define S_SQDB_H + +#include +#include +#include + +namespace Calaos +{ + +class Squeezebox; + +class SqueezeboxDB: public AudioDB +{ + private: + Squeezebox *player; + + void getAlbums_cb(bool status, string request, string result, AudioPlayerData data); + void getAlbumsTitles_cb(bool status, string request, string result, AudioPlayerData data); + + void getArtists_cb(bool status, string request, string result, AudioPlayerData data); + void getArtistsAlbums_cb(bool status, string request, string result, AudioPlayerData data); + + void getGenres_cb(bool status, string request, string result, AudioPlayerData data); + void getGenresArtists_cb(bool status, string request, string result, AudioPlayerData data); + + void getYears_cb(bool status, string request, string result, AudioPlayerData data); + void getYearsAlbums_cb(bool status, string request, string result, AudioPlayerData data); + + void getPlaylists_cb(bool status, string request, string result, AudioPlayerData data); + void getPlaylistsTracks_cb(bool status, string request, string result, AudioPlayerData data); + + void getRadios_cb(bool status, string request, string result, AudioPlayerData data); + void getRadiosItems_cb(bool status, string request, string result, AudioPlayerData data); + + void getRandoms_cb(bool status, string request, string result, AudioPlayerData data); + void getRandomType_cb(bool status, string request, string result, AudioPlayerData data); + + void getSearch_cb(bool status, string request, string result, AudioPlayerData data); + + void getMusicFolder_cb(bool status, string request, string result, AudioPlayerData data); + + void getStats_genre_cb(bool status, string request, string result, AudioPlayerData data); + void getStats_artist_cb(bool status, string request, string result, AudioPlayerData data); + void getStats_album_cb(bool status, string request, string result, AudioPlayerData data); + void getStats_song_cb(bool status, string request, string result, AudioPlayerData data); + void getStats_playlist_cb(bool status, string request, string result, AudioPlayerData data); + void getStats_year_cb(bool status, string request, string result, AudioPlayerData data); + + void getTrackInfos_cb(bool status, string request, string result, AudioPlayerData data); + + public: + SqueezeboxDB(Squeezebox *squeezebox, Params &p); + ~SqueezeboxDB(); + + virtual void getStats(AudioRequest_cb callback, AudioPlayerData user_data = AudioPlayerData()); + + //Album + virtual void getAlbums(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void getAlbumsTitles(AudioRequest_cb callback, int from, int nb, string album_id, AudioPlayerData user_data = AudioPlayerData()); + + //Artist + virtual void getArtists(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void getArtistsAlbums(AudioRequest_cb callback, int from, int nb, string artist_id, AudioPlayerData user_data = AudioPlayerData()); + + //Genre + virtual void getGenres(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void getGenresArtists(AudioRequest_cb callback, int from, int nb, string genre_id, AudioPlayerData user_data = AudioPlayerData()); + + //Year + virtual void getYears(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void getYearsAlbums(AudioRequest_cb callback, int from, int nb, string year, AudioPlayerData user_data = AudioPlayerData()); + + //Playlists + virtual void getPlaylists(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void getPlaylistsTracks(AudioRequest_cb callback, int from, int nb, string playlist_id, AudioPlayerData user_data = AudioPlayerData()); + + //Radios + virtual void getRadios(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void getRadiosItems(AudioRequest_cb callback, int from, int nb, string radio, string item_id = "", string search = "", AudioPlayerData user_data = AudioPlayerData()); + + //Random + virtual void getRandoms(AudioRequest_cb callback, int from, int nb, AudioPlayerData user_data = AudioPlayerData()); + virtual void setRandomsType(string type); + //TODO:Random genre selection with " randomplaygenrelist" + + virtual void getSearch(AudioRequest_cb callback, int from, int nb, string search, AudioPlayerData user_data = AudioPlayerData()); + + virtual void getMusicFolder(AudioRequest_cb callback, int from, int nb, string folder_id = "", AudioPlayerData user_data = AudioPlayerData()); + virtual void getTrackInfos(AudioRequest_cb callback, string track_id, AudioPlayerData user_data = AudioPlayerData()); + + //TODO:Favorites +}; + +} + +#endif diff --git a/src/bin/calaos_server/Calaos.cpp b/src/bin/calaos_server/Calaos.cpp new file mode 100644 index 00000000..ddd6558c --- /dev/null +++ b/src/bin/calaos_server/Calaos.cpp @@ -0,0 +1,105 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include + +using namespace Calaos; + +Utils::type_signal_wago Utils::signal_wago; + +int CURL_write_callback_server(void *buffer, size_t size, size_t nmemb, void *stream) +{ + //don't care about the data + //just return the simulated number of data read + return size * nmemb; +} + +void Calaos::CallUrl(string url, string post_data) +{ + FileDownloader *downloader = new FileDownloader(url, post_data, "text/plain", true); + downloader->Start(); +} + +std::string Calaos::get_new_id(std::string prefix) +{ + int cpt = 0; + bool found = false; + while (!found) + { + Input *in = ListeRoom::Instance().get_input(prefix + Utils::to_string(cpt)); + Output *out = ListeRoom::Instance().get_output(prefix + Utils::to_string(cpt)); + + if (!in && !out) + found = true; + else + cpt++; + } + + std::string ret = prefix + Utils::to_string(cpt); + return ret; +} + +std::string Calaos::get_new_scenario_id() +{ + int cpt = 0; + bool found = true; + list autosc = ListeRoom::Instance().getAutoScenarios(); + + while (found && autosc.size() > 0) + { + list::iterator it = autosc.begin(); + + bool found2 = false; + for (;it != autosc.end() && !found2;it++) + { + Scenario *sc = *it; + if (sc->get_param("auto_scenario") == "scenario_" + Utils::to_string(cpt)) + found2 = true; + } + + if (found2) + cpt++; + else + found = false; + } + + string ret = "scenario_" + Utils::to_string(cpt); + return ret; +} + +StartReadRules::StartReadRules(): + count_io(0) +{ +} + +void StartReadRules::addIO() +{ + count_io++; +} + +void StartReadRules::ioRead() +{ + count_io--; + if (count_io == 0) + ListeRule::Instance().ExecuteStartRules(); +} diff --git a/src/bin/calaos_server/Calaos.h b/src/bin/calaos_server/Calaos.h new file mode 100644 index 00000000..51b72a7d --- /dev/null +++ b/src/bin/calaos_server/Calaos.h @@ -0,0 +1,67 @@ +/****************************************************************************** + ** Copyright (c) 2007-2008, Calaos. All Rights Reserved. + ** + ** This file is part of Calaos Home. + ** + ** Calaos Home is free software; you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation; either version 3 of the License, or + ** (at your option) any later version. + ** + ** Calaos Home 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 Foobar; if not, write to the Free Software + ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + ** + ******************************************************************************/ +#ifndef S_UTILS_CALAOS_H +#define S_UTILS_CALAOS_H + +#include +#include +#include + +#include + +using namespace Utils; + +namespace Calaos +{ + void CallUrl(string url, string post_data = ""); +#ifndef UTILS + std::string get_new_id(std::string prefix); + std::string get_new_scenario_id(); +#endif + + //This class only counts all IO at start and wait for them + //to read their values. After all values are read, it calls ExecuteStartRules + class StartReadRules + { + private: + int count_io; + + StartReadRules(); + + public: + static StartReadRules &Instance() + { + static StartReadRules st; + return st; + } + + void addIO(); + void ioRead(); + }; +} + +namespace Utils +{ + typedef sigc::signal type_signal_wago; + extern type_signal_wago signal_wago; +} + +#endif diff --git a/src/bin/calaos_server/Config.cpp b/src/bin/calaos_server/Config.cpp new file mode 100644 index 00000000..f3ecc3f4 --- /dev/null +++ b/src/bin/calaos_server/Config.cpp @@ -0,0 +1,374 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +typedef struct _ConfigStateValue +{ + public: + char *id; + char *value; + + _ConfigStateValue(): + id(NULL), + value(NULL) {} + ~_ConfigStateValue() + { + free(id); + free(value); + } + +} ConfigStateValue; + +typedef struct +{ + unsigned int version; //versionned cache + Eina_Hash *states; + +} ConfigStateCache; + +static Eet_Data_Descriptor *edd_state = NULL; +static Eet_Data_Descriptor *edd_cache = NULL; + +static void _eina_hash_free_cb(void *data) +{ + delete (ConfigStateValue *)data; +} + +Config::Config() +{ + //Init eet for States file + eet_init(); + initEetDescriptors(); + + //read config hash table + cache_states = eina_hash_string_superfast_new(_eina_hash_free_cb); + loadStateCache(); +} + +Config::~Config() +{ + eina_hash_free(cache_states); + releaseEetDescriptors(); + eet_shutdown(); +} + +void Config::initEetDescriptors() +{ + Eet_Data_Descriptor_Class edc; + + EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(&edc, ConfigStateValue); + edd_state = eet_data_descriptor_stream_new(&edc); + + EET_DATA_DESCRIPTOR_ADD_BASIC(edd_state, ConfigStateValue, "id", id, EET_T_STRING); + EET_DATA_DESCRIPTOR_ADD_BASIC(edd_state, ConfigStateValue, "value", value, EET_T_STRING); + + EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(&edc, ConfigStateCache); + edd_cache = eet_data_descriptor_stream_new(&edc); + + EET_DATA_DESCRIPTOR_ADD_BASIC(edd_cache, ConfigStateCache, "version", version, EET_T_UINT); + EET_DATA_DESCRIPTOR_ADD_HASH(edd_cache, ConfigStateCache, "states", states, edd_state); +} + +void Config::releaseEetDescriptors() +{ + eet_data_descriptor_free(edd_cache); + eet_data_descriptor_free(edd_state); +} + +void Config::LoadConfigIO() +{ + std::string file = ETC_DIR; + file = file + "io.xml"; + + TiXmlDocument document(file); + + if (!document.LoadFile()) + { + Utils::logger("root") << Priority::ERROR << "Config::LoadConfigIO() There was a parse error"<< log4cpp::eol; + Utils::logger("root") << Priority::ERROR << document.ErrorDesc() << log4cpp::eol; + Utils::logger("root") << Priority::ERROR << "In file " << file << " At line " << document.ErrorRow() << log4cpp::eol; + + Utils::logger("root") << Priority::INFO << "Config::LoadConfigIO() Trying to load default config" << log4cpp::eol; + std::string file_default = ETC_DIR, file_error = ETC_DIR; + file_default = file_default + "io.default"; + file_error = file_error + "io.xml.parse_error"; + + Utils::file_copy(file, file_error); + Utils::file_copy(file_default, file); + + exit(-1); + } + + TiXmlHandle docHandle(&document); + + TiXmlElement *room_node = docHandle.FirstChildElement("calaos:ioconfig").FirstChildElement("calaos:home").FirstChildElement().ToElement(); + for(; room_node; room_node = room_node->NextSiblingElement()) + { + if (room_node->ValueStr() == "calaos:room" && + room_node->Attribute("name") && + room_node->Attribute("type")) + { + string name, type; + int hits = 0; + + name = room_node->Attribute("name"); + type = room_node->Attribute("type"); + if (room_node->Attribute("hits")) + room_node->Attribute("hits", &hits); + + Room *room = new Room(name, type, hits); + ListeRoom::Instance().Add(room); + + room->LoadFromXml(room_node); + } + } + + Utils::logger("root") << Priority::INFO << "Config::LoadConfigIO() Done. " << log4cpp::eol; +} + +void Config::SaveConfigIO() +{ + string file = ETC_DIR; + file = file + "io.xml"; + string tmp = file + "_tmp"; + + Utils::logger("root") << Priority::INFO << "Config::SaveConfigIO() Saving " << file << "..." << log4cpp::eol; + + TiXmlDocument document; + TiXmlDeclaration *decl = new TiXmlDeclaration("1.0", "UTF-8", ""); + TiXmlElement *ionode = new TiXmlElement("calaos:ioconfig"); + ionode->SetAttribute("xmlns:calaos", "http://www.calaos.fr"); + document.LinkEndChild(decl); + document.LinkEndChild(ionode); + TiXmlElement *node = new TiXmlElement("calaos:home"); + ionode->LinkEndChild(node); + + for (int i = 0;i < ListeRoom::Instance().size();i++) + { + Room *room = ListeRoom::Instance().get_room(i); + room->SaveToXml(node); + } + + if (document.SaveFile(tmp)) + { + ecore_file_unlink(file.c_str()); + ecore_file_mv(tmp.c_str(), file.c_str()); + } + + Utils::logger("root") << Priority::INFO << "Config::SaveConfigIO() Done." << log4cpp::eol; +} + +void Config::LoadConfigRule() +{ + std::string file = ETC_DIR; + file = file + "rules.xml"; + TiXmlDocument document(file); + + if (!document.LoadFile()) + { + Utils::logger("root") << Priority::ERROR << "Config::LoadConfigRule() There was a parse error in " << file << log4cpp::eol; + Utils::logger("root") << Priority::ERROR << document.ErrorDesc() << log4cpp::eol; + Utils::logger("root") << Priority::ERROR << "In file " << file << " At line " << document.ErrorRow() << log4cpp::eol; + + Utils::logger("root") << Priority::INFO << "Config::LoadConfigRule() Trying to load default config" << log4cpp::eol; + std::string file_default = ETC_DIR, file_error = ETC_DIR; + file_default = file_default + "rules.default"; + file_error = file_error + "rules.xml.parse_error"; + + Utils::file_copy(file, file_error); + Utils::file_copy(file_default, file); + + exit(-1); + } + + TiXmlHandle docHandle(&document); + + TiXmlElement *rule_node = docHandle.FirstChildElement("calaos:rules").FirstChildElement().ToElement(); + + if (!rule_node) + { + Utils::logger("root") << Priority::ERROR << "Config::LoadConfigRule() Error, node not found in file " << file << log4cpp::eol; + } + + for(; rule_node; rule_node = rule_node->NextSiblingElement()) + { + if (rule_node->ValueStr() == "calaos:rule" && + rule_node->Attribute("name") && + rule_node->Attribute("type")) + { + string name, type; + + name = rule_node->Attribute("name"); + type = rule_node->Attribute("type"); + + Rule *rule = new Rule(type, name); + rule->LoadFromXml(rule_node); + + ListeRule::Instance().Add(rule); + } + } + + Utils::logger("root") << Priority::INFO << "Config::LoadConfigRule() Done. " << ListeRule::Instance().size() << " rules loaded." << log4cpp::eol; +} + +void Config::SaveConfigRule() +{ + string file = ETC_DIR; + file = file + "rules.xml"; + string tmp = file + "_tmp"; + + Utils::logger("root") << Priority::INFO << "Config::SaveConfigRule() Saving " << file << "..." << log4cpp::eol; + + TiXmlDocument document; + TiXmlDeclaration *decl = new TiXmlDeclaration("1.0", "UTF-8", ""); + TiXmlElement *rulesnode = new TiXmlElement("calaos:rules"); + rulesnode->SetAttribute("xmlns:calaos", "http://www.calaos.fr"); + document.LinkEndChild(decl); + document.LinkEndChild(rulesnode); + + for (int i = 0;i < ListeRule::Instance().size();i++) + { + Rule *rule = ListeRule::Instance().get_rule(i); + rule->SaveToXml(rulesnode); + } + + if (document.SaveFile(tmp)) + { + ecore_file_unlink(file.c_str()); + ecore_file_mv(tmp.c_str(), file.c_str()); + } + + Utils::logger("root") << Priority::INFO << "Config::SaveConfigRule() Done." << log4cpp::eol; +} + +void Config::loadStateCache() +{ + ConfigStateCache *cache; + string file = ETC_DIR; + file = file + "iostates.cache"; + + Eet_File *ef = eet_open(file.c_str(), EET_FILE_MODE_READ); + if (!ef) + { + Utils::logger("root") << Priority::WARN << "Config::loadStateCache() could not open iostates.cache for read !" << log4cpp::eol; + return; + } + + cache = (ConfigStateCache *)eet_data_read(ef, edd_cache, "calaos/states/cache"); + if (!cache) + { + eet_close(ef); + Utils::logger("root") << Priority::WARN << "Config::loadStateCache() could not read iostates.cache, corrupted file?" << log4cpp::eol; + return; + } + + if (cache->version < CONFIG_STATES_CACHE_VERSION) + { + Utils::logger("root") << Priority::WARN << "Config::loadStateCache() file version too old, upgrading to new format" << log4cpp::eol; + cache->version = CONFIG_STATES_CACHE_VERSION; + } + + //read all states and put it in cache_states + Eina_Iterator *it = eina_hash_iterator_tuple_new(cache->states); + void *data; + while (eina_iterator_next(it, &data)) + { + Eina_Hash_Tuple *t = (Eina_Hash_Tuple *)data; + ConfigStateValue *state = (ConfigStateValue *)t->data; + string skey = state->id; + string svalue = state->value; + SaveValueIO(skey, svalue, false); + } + eina_iterator_free(it); + + eet_close(ef); + + Utils::logger("root") << Priority::INFO << "Config::loadStateCache(): States cache read successfully." << log4cpp::eol; +} + +void Config::saveStateCache() +{ + Eet_File *ef; + string file = ETC_DIR; + file = file + "iostates.cache"; + string tmp = file + "_tmp"; + ConfigStateCache *cache; + + cache = new ConfigStateCache; + cache->version = CONFIG_STATES_CACHE_VERSION; + cache->states = cache_states; + + ef = eet_open(tmp.c_str(), EET_FILE_MODE_WRITE); + if (!ef) + { + Utils::logger("root") << Priority::WARN << "Config::saveStateCache() could not open iostates.cache for write !" << log4cpp::eol; + return; + } + + Eina_Bool ret = eet_data_write(ef, edd_cache, "calaos/states/cache", cache, EINA_TRUE); + + eet_close(ef); + delete cache; + + if (ret) + { + ecore_file_unlink(file.c_str()); + ecore_file_mv(tmp.c_str(), file.c_str()); + } + + Utils::logger("root") << Priority::DEBUG << "Config::saveStateCache(): States cache written successfully." << log4cpp::eol; +} + +void Config::SaveValueIO(string id, string value, bool save) +{ + if (eina_hash_find(cache_states, id.c_str())) + { + ConfigStateValue *v = new ConfigStateValue; + v->id = strdup(id.c_str()); + v->value = strdup(value.c_str()); + void *old_data = eina_hash_set(cache_states, id.c_str(), v); + delete (ConfigStateValue *)old_data; + } + else + { + ConfigStateValue *v = new ConfigStateValue; + v->id = strdup(id.c_str()); + v->value = strdup(value.c_str()); + eina_hash_add(cache_states, id.c_str(), v); + } + + if (save) + saveStateCache(); +} + +bool Config::ReadValueIO(string id, string &value) +{ + ConfigStateValue *v = (ConfigStateValue *)eina_hash_find(cache_states, id.c_str()); + if (!v) + return false; + + value = v->value; + + return true; +} diff --git a/src/bin/calaos_server/Config.h b/src/bin/calaos_server/Config.h new file mode 100644 index 00000000..50383506 --- /dev/null +++ b/src/bin/calaos_server/Config.h @@ -0,0 +1,79 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_CONFIG_H +#define S_CONFIG_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +#define CONFIG_STATES_CACHE_VERSION 1 + +class Config +{ + private: + Config(); + + void initEetDescriptors(); + void releaseEetDescriptors(); + void loadStateCache(); + void saveStateCache(); + + Eina_Hash *cache_states; + + public: + static Config &Instance() + { + static Config inst; + return inst; + } + ~Config(); + + void LoadConfigIO(); + void LoadConfigRule(); + + void SaveConfigIO(); + void SaveConfigRule(); + + void SaveValueIO(string id, string value, bool save = true); + bool ReadValueIO(string id, string &value); +}; + +} +#endif diff --git a/src/bin/calaos_server/Etage.cpp b/src/bin/calaos_server/Etage.cpp new file mode 100644 index 00000000..2acc52d7 --- /dev/null +++ b/src/bin/calaos_server/Etage.cpp @@ -0,0 +1,59 @@ +/** DEPRECATED ! **/ + +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +//----------------------------------------------------------------------------- +//----------------------------------------------------------------------------- +#include +//----------------------------------------------------------------------------- +using namespace std; +using namespace Soekris; +//----------------------------------------------------------------------------- +Etage::~Etage() +{ + for (int i = 0;i < pieces.size();i++) + delete pieces[i]; + + Soekris::log(DEBUG_INFO, "Etage::~Etage(): Ok"); +} +//----------------------------------------------------------------------------- +void Etage::Add(Piece *p) +{ + pieces.push_back(p); + + Soekris::log(DEBUG_INFO, "Etage::Add(): Ok"); +} +//----------------------------------------------------------------------------- +void Etage::Remove(int pos) +{ + vector::iterator iter = pieces.begin(); + for (int i = 0;i < pos;iter++, i++) ; + delete pieces[pos]; + pieces.erase(iter); + + Soekris::log(DEBUG_INFO, "Etage::Remove(): Ok"); +} +//----------------------------------------------------------------------------- +Piece *Etage::operator[] (int i) const +{ + return pieces[i]; +} +//----------------------------------------------------------------------------- diff --git a/src/bin/calaos_server/Etage.h b/src/bin/calaos_server/Etage.h new file mode 100644 index 00000000..85f6106a --- /dev/null +++ b/src/bin/calaos_server/Etage.h @@ -0,0 +1,65 @@ +/** DEPRECATED ! **/ + +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +//----------------------------------------------------------------------------- +#ifndef S_ETAGE_H +#define S_ETAGE_H +//----------------------------------------------------------------------------- +#include +#include +#include +//----------------------------------------------------------------------------- +using namespace std; +//----------------------------------------------------------------------------- +namespace Soekris +{ +//----------------------------------------------------------------------------- +//----------------------------------------------------------------------------- +class Etage +{ + protected: + Glib::ustring name; + Glib::ustring img; + + std::vector pieces; + + public: + Etage(Glib::ustring n, Glib::ustring i): name(n), img(i) + { Soekris::log(DEBUG_INFO, "Etage::Etage(%s, %s): Ok", name.c_str(), img.c_str()); } + ~Etage(); + + Glib::ustring &get_name() { return name; } + Glib::ustring &get_img() { return img; } + + void set_name(Glib::ustring &s) { name = s; } + void set_img(Glib::ustring &s) { img = s; } + + void Add(Piece *p); + void Remove(int i); + Piece *operator[] (int i) const; + + int get_size() { return pieces.size(); } +}; +//----------------------------------------------------------------------------- +//----------------------------------------------------------------------------- +} +#endif diff --git a/src/bin/calaos_server/IO/IOFactory.cpp b/src/bin/calaos_server/IO/IOFactory.cpp new file mode 100644 index 00000000..8cf9769e --- /dev/null +++ b/src/bin/calaos_server/IO/IOFactory.cpp @@ -0,0 +1,334 @@ +/****************************************************************************** +* Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Calaos; + +void IOFactory::readParams(TiXmlElement *node, Params &p) +{ + TiXmlAttribute *attr = node->ToElement()->FirstAttribute(); + + for (; attr; attr = attr->Next()) + { + p.Add(attr->Name(), attr->ValueStr()); + } +} + +Input *IOFactory::CreateInput(std::string type, Params ¶ms) +{ + Input *in = NULL; + + if (type == "InputTime") + { + in = new InputTime(params); + } + else if (type == "InputTimer") + { + in = new InputTimer(params); + } + else if (type == "WIDigitalBP" || type == "WIDigital") + { + in = new WIDigitalBP(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "WIDigitalTriple") + { + in = new WIDigitalTriple(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "WITemp") + { + in = new WITemp(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "WIAnalog") + { + in = new WIAnalog(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "OWTemp") + { + in = new OWTemp(params); + } + else if (type == "scenario") + { + in = new Scenario(params); + } + else if (type == "InPlageHoraire") + { + in = new InPlageHoraire(params); + } + else if (type == "internbool" || type == "internalbool" || + type == "InternalBoolOutput" || type == "InternalBoolInput" || + type == "InternalBool") + { + type = "InternalBool"; + params.Add("type", type); + + in = new Internal(params); + } + else if (type == "internint" || type == "internalint" || + type == "InternalIntOutput" || type == "InternalIntInput" || + type == "InternalInt") + { + type = "InternalInt"; + params.Add("type", type); + + in = new Internal(params); + } + else if (type == "internstring" || type == "internalstring" || + type == "InternalStringOutput" || type == "InternalStringInput" || + type == "InternalString") + { + type = "InternalString"; + params.Add("type", type); + + in = new Internal(params); + } + + if (in) + Utils::logger("root") << Priority::INFO << "IOFactory::CreateInput(" << type << "): Ok" << log4cpp::eol; + else + Utils::logger("root") << Priority::WARN << "IOFactory::CreateInput(" << type << "): Unknown Input type !" << log4cpp::eol; + + return in; +} + +Input *IOFactory::CreateInput(TiXmlElement *node) +{ + Params p; + readParams(node, p); + + Input *in = CreateInput(p["type"], p); + in->LoadFromXml(node); + + return in; +} + +Output *IOFactory::CreateOutput(std::string type, Params ¶ms) +{ + Output *out = NULL; + + if (type == "OutputFake") + { + out = new OutputFake(params); + } + else if (type == "WODigital") + { + out = new WODigital(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "WONeon") + { + Utils::logger("root") << Priority::ERROR << "IOFactory::CreateOutput(" << type << "): WONeon is deprecated !" << log4cpp::eol; + } + else if (type == "X10Output") + { + out = new X10Output(params); + } + else if (type == "WOVolet") + { + out = new WOVolet(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "WOVoletSmart") + { + out = new WOVoletSmart(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "WODali") + { + out = new WODali(params); + } + else if (type == "WODaliRVB") + { + out = new WODaliRVB(params); + } + else if (type == "WOAnalog") + { + out = new WOAnalog(params); + int port; + Utils::from_string(params["port"], port); + std::string host = params["host"]; + if (!params.Exists("port")) + port = 502; + + WagoMap::Instance(host, port); + } + else if (type == "AVReceiver") + { + out = new IOAVReceiver(params); + } + + if (out) + Utils::logger("root") << Priority::INFO << "IOFactory::CreateOutput(" << type << "): Ok" << log4cpp::eol; + else + Utils::logger("root") << Priority::WARN << "IOFactory::CreateOutput(" << type << "): Unknown Output type !" << log4cpp::eol; + + return out; +} + +Output *IOFactory::CreateOutput(TiXmlElement *node) +{ + Params p; + readParams(node, p); + + Output *out = CreateOutput(p["type"], p); + out->LoadFromXml(node); + + return out; +} + +AudioPlayer *IOFactory::CreateAudio (std::string type, Params ¶ms) +{ + AudioPlayer *player = NULL; + + if (type == "slim") + { + player = new Squeezebox(params); + } + + if (player) + Utils::logger("root") << Priority::INFO << "IOFactory::CreateAudio(" << type << "): Ok" << log4cpp::eol; + else + Utils::logger("root") << Priority::WARN << "IOFactory::CreateAudio(" << type << "): Unknown Input type !" << log4cpp::eol; + + return player; +} + +AudioPlayer *IOFactory::CreateAudio(TiXmlElement *node) +{ + Params p; + readParams(node, p); + + AudioPlayer *pl = CreateAudio(p["type"], p); + pl->LoadFromXml(node); + + return pl; +} + +IPCam *IOFactory::CreateIPCamera (std::string type, Params ¶ms) +{ + IPCam *cam = NULL; + + if (type == "axis") + { + cam = new Axis(params); + } + else if (type == "gadspot") + { + cam = new Gadspot(params); + } + else if (type == "planet") + { + cam = new Planet(params); + } + else if (type == "standard_mjpeg") + { + cam = new StandardMjpeg(params); + } + + if (cam) + Utils::logger("root") << Priority::INFO << "IOFactory::CreateIPCamera(" << type << "): Ok" << log4cpp::eol; + else + Utils::logger("root") << Priority::WARN << "IOFactory::CreateIPCamera(" << type << "): Unknown Input type !" << log4cpp::eol; + + return cam; +} + +IPCam *IOFactory::CreateIPCamera(TiXmlElement *node) +{ + Params p; + readParams(node, p); + + IPCam *cam = CreateIPCamera(p["type"], p); + cam->LoadFromXml(node); + + return cam; +} diff --git a/src/bin/calaos_server/IO/IOFactory.h b/src/bin/calaos_server/IO/IOFactory.h new file mode 100644 index 00000000..f8d5488c --- /dev/null +++ b/src/bin/calaos_server/IO/IOFactory.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_IOFactory_H +#define S_IOFactory_H + +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class IOFactory +{ + public: + static void readParams(TiXmlElement *node, Params &p); + + static Input *CreateInput (std::string type, Params ¶ms); + static Input *CreateInput (TiXmlElement *node); + + static Output *CreateOutput (std::string type, Params ¶ms); + static Output *CreateOutput (TiXmlElement *node); + + static AudioPlayer *CreateAudio (std::string type, Params ¶ms); + static AudioPlayer *CreateAudio (TiXmlElement *node); + + static IPCam *CreateIPCamera (std::string type, Params ¶ms); + static IPCam *CreateIPCamera (TiXmlElement *node); +}; + +} + +#endif diff --git a/src/bin/calaos_server/IO/InPlageHoraire.cpp b/src/bin/calaos_server/IO/InPlageHoraire.cpp new file mode 100644 index 00000000..10cf5f45 --- /dev/null +++ b/src/bin/calaos_server/IO/InPlageHoraire.cpp @@ -0,0 +1,345 @@ +/****************************************************************************** +** Copyright (c) 2006-2013, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +InPlageHoraire::InPlageHoraire(Params &p): + value(false), + Input(p) +{ + ListeRule::Instance().Add(this); //add this specific input to the EventLoop + Utils::logger("input") << Priority::DEBUG << "InPlageHoraire::InPlageHoraire(" << get_param("id") << "): Ok" << log4cpp::eol; + + set_param("visible", "false"); + + months.set(); //set all months by default +} + +InPlageHoraire::~InPlageHoraire() +{ + Utils::logger("input") << Priority::DEBUG << "InPlageHoraire::~InPlageHoraire(): Ok" << log4cpp::eol; +} + +void InPlageHoraire::clear() +{ + plg_lundi.clear(); + plg_mardi.clear(); + plg_mercredi.clear(); + plg_jeudi.clear(); + plg_vendredi.clear(); + plg_samedi.clear(); + plg_dimanche.clear(); +} + +void InPlageHoraire::hasChanged() +{ + bool val = false; + vector *plage; + + struct tm *ctime = NULL; + time_t t = time(NULL); + ctime = localtime(&t); + + switch (ctime->tm_wday) + { + case MONDAY: plage = &plg_lundi; break; + case TUESDAY: plage = &plg_mardi; break; + case WEDNESDAY: plage = &plg_mercredi; break; + case THURSDAY: plage = &plg_jeudi; break; + case FRIDAY: plage = &plg_vendredi; break; + case SATURDAY: plage = &plg_samedi; break; + case SUNDAY: plage = &plg_dimanche; break; + default: break; + } + + bool tmp = false; + for (int i = 0;i < plage->size();i++) + { + TimeRange &h = (*plage)[i]; + + long start_time = h.getStartTimeSec(ctime->tm_year + 1900, ctime->tm_mon + 1, ctime->tm_mday); + long end_time = h.getEndTimeSec(ctime->tm_year + 1900, ctime->tm_mon + 1, ctime->tm_mday); + long cur = ctime->tm_hour * 3600 + + ctime->tm_min * 60 + + ctime->tm_sec; + + if (cur >= start_time && cur <= end_time) + val = true; + } + + if (val != value) + { + value = val; + Utils::logger("input") << Priority::INFO << "InPlageHoraire(" << get_param("id") << "): Changed to " << (value?"true":"false") << log4cpp::eol; + + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + if (val) + sig += Utils::url_encode("state:true"); + else + sig += Utils::url_encode("state:false"); + IPC::Instance().SendEvent("events", sig); + } +} + +void InPlageHoraire::LoadPlage(TiXmlElement *node, vector &plage) +{ + TiXmlHandle docHandle(node); + TiXmlElement *cnode = docHandle.FirstChildElement().ToElement(); + for(; cnode; cnode = cnode->NextSiblingElement()) + { + TimeRange h; + if (cnode->Attribute("start_type")) + { + from_string(string(cnode->Attribute("start_type")), h.start_type); + if (h.start_type < 0 || h.start_type > 3) + h.start_type = TimeRange::HTYPE_NORMAL; + } + if (cnode->Attribute("start_offset")) + { + from_string(string(cnode->Attribute("start_offset")), h.start_offset); + if (h.start_offset < 0) h.start_offset = -1; + if (h.start_offset > 0) h.start_offset = 1; + } + if (cnode->Attribute("start_hour")) h.shour = cnode->Attribute("start_hour"); + if (cnode->Attribute("start_min")) h.smin = cnode->Attribute("start_min"); + if (cnode->Attribute("start_sec")) h.ssec = cnode->Attribute("start_sec"); + + if (cnode->Attribute("end_type")) + { + from_string(string(cnode->Attribute("end_type")), h.end_type); + if (h.end_type < 0 || h.end_type > 3) + h.end_type = TimeRange::HTYPE_NORMAL; + } + if (cnode->Attribute("end_offset")) + { + from_string(string(cnode->Attribute("end_offset")), h.end_offset); + if (h.end_offset < 0) h.end_offset = -1; + if (h.end_offset > 0) h.end_offset = 1; + } + if (cnode->Attribute("end_hour")) h.ehour = cnode->Attribute("end_hour"); + if (cnode->Attribute("end_min")) h.emin = cnode->Attribute("end_min"); + if (cnode->Attribute("end_sec")) h.esec = cnode->Attribute("end_sec"); + + stringstream sstart, sstop; + if (h.start_type == TimeRange::HTYPE_NORMAL) + { + sstart << h.shour << ":" << h.smin << ":" << h.ssec; + } + else if (h.start_type == TimeRange::HTYPE_SUNRISE) + { + sstart << " Sunrise"; + if (h.shour == "0" || h.smin == "0" || h.ssec == "0") + { + if (h.start_offset > 0) + sstart << " +offset "; + else + sstart << " -offset "; + sstart << h.shour << ":" << h.smin << ":" << h.ssec; + } + } + else if (h.start_type == TimeRange::HTYPE_SUNSET) + { + sstart << " Sunset"; + if (h.shour == "0" || h.smin == "0" || h.ssec == "0") + { + if (h.start_offset > 0) + sstart << " +offset "; + else + sstart << " -offset "; + sstart << h.shour << ":" << h.smin << ":" << h.ssec; + } + } + + if (h.end_type == TimeRange::HTYPE_NORMAL) + { + sstop << h.ehour << ":" << h.emin << ":" << h.esec; + } + else if (h.end_type == TimeRange::HTYPE_SUNRISE) + { + sstop << " Sunrise"; + if (h.ehour == "0" || h.emin == "0" || h.esec == "0") + { + if (h.end_offset > 0) + sstop << " +offset "; + else + sstop << " -offset "; + sstart << h.ehour << ":" << h.emin << ":" << h.esec; + } + } + else if (h.end_type == TimeRange::HTYPE_SUNSET) + { + sstop << " Sunset"; + if (h.ehour == "0" || h.emin == "0" || h.esec == "0") + { + if (h.end_offset > 0) + sstop << " +offset "; + else + sstop << " -offset "; + sstop << h.ehour << ":" << h.emin << ":" << h.esec; + } + } + + Utils::logger("input") << Priority::DEBUG << "InPlageHoraire::LoadPlage(): Adding plage: " + << sstart.str() << " ===> " << sstop.str() << log4cpp::eol; + + plage.push_back(h); + } +} + +bool InPlageHoraire::LoadFromXml(TiXmlElement *pnode) +{ + TiXmlHandle docHandle(pnode); + TiXmlElement *node = docHandle.FirstChildElement().ToElement(); + + Utils::logger("input") << Priority::DEBUG << "InPlageHoraire::LoadFromXml(): Loading plage content" << log4cpp::eol; + + //try to load months + if (pnode->Attribute("months")) + { + string m = pnode->Attribute("months"); + //reverse to have a left to right months representation + std::reverse(m.begin(), m.end()); + + try + { + bitset<12> mset(m); + months = mset; + } + catch(...) + { + Utils::logger("input") << Priority::ERROR << "InPlageHoraire::LoadFromXml(): wrong parameters for months: " << m << log4cpp::eol; + Utils::logger("input") << Priority::ERROR << "InPlageHoraire::LoadFromXml(): Setting all months to active" << log4cpp::eol; + + months.set(); //set all months by default + } + } + + for(; node; node = node->NextSiblingElement()) + { + if (node->ValueStr() == "calaos:lundi") + LoadPlage(node, plg_lundi); + else if (node->ValueStr() == "calaos:mardi") + LoadPlage(node, plg_mardi); + else if (node->ValueStr() == "calaos:mercredi") + LoadPlage(node, plg_mercredi); + else if (node->ValueStr() == "calaos:jeudi") + LoadPlage(node, plg_jeudi); + else if (node->ValueStr() == "calaos:vendredi") + LoadPlage(node, plg_vendredi); + else if (node->ValueStr() == "calaos:samedi") + LoadPlage(node, plg_samedi); + else if (node->ValueStr() == "calaos:dimanche") + LoadPlage(node, plg_dimanche); + } + + return true; +} + +void InPlageHoraire::SavePlage(TiXmlElement *node, string day, vector &plage) +{ + if (plage.size() <= 0) return; //don't create node if empty + + TiXmlElement *day_node = new TiXmlElement(string("calaos:") + day); + node->LinkEndChild(day_node); + + for (int i = 0;i < plage.size();i++) + { + TiXmlElement *period_node = new TiXmlElement("calaos:plage"); + day_node->LinkEndChild(period_node); + + TimeRange &h = plage[i]; + + period_node->SetAttribute("start_type", to_string(h.start_type)); + if (h.start_type == TimeRange::HTYPE_NORMAL) + { + period_node->SetAttribute("start_hour", h.shour); + period_node->SetAttribute("start_min", h.smin); + period_node->SetAttribute("start_sec", h.ssec); + } + else if (h.start_type == TimeRange::HTYPE_SUNRISE || + h.start_type == TimeRange::HTYPE_SUNSET) + { + if (h.shour != "0" || h.smin != "0" || h.ssec != "0") + { + period_node->SetAttribute("start_hour", h.shour); + period_node->SetAttribute("start_min", h.smin); + period_node->SetAttribute("start_sec", h.ssec); + period_node->SetAttribute("start_offset", h.start_offset); + } + } + + period_node->SetAttribute("end_type", to_string(h.end_type)); + if (h.end_type == TimeRange::HTYPE_NORMAL) + { + period_node->SetAttribute("end_hour", h.ehour); + period_node->SetAttribute("end_min", h.emin); + period_node->SetAttribute("end_sec", h.esec); + } + else if (h.end_type == TimeRange::HTYPE_SUNRISE || + h.end_type == TimeRange::HTYPE_SUNSET) + { + if (h.ehour != "0" || h.emin != "0" || h.esec != "0") + { + period_node->SetAttribute("end_hour", h.ehour); + period_node->SetAttribute("end_min", h.emin); + period_node->SetAttribute("end_sec", h.esec); + period_node->SetAttribute("end_offset", h.end_offset); + } + } + } +} + +bool InPlageHoraire::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:input"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + get_params().get_item(i, key, value); + cnode->SetAttribute(key, value); + } + + //Save months + stringstream ssmonth; + ssmonth << months; + string str = ssmonth.str(); + std::reverse(str.begin(), str.end()); + + cnode->SetAttribute("months", str); + + SavePlage(cnode, "lundi", plg_lundi); + SavePlage(cnode, "mardi", plg_mardi); + SavePlage(cnode, "mercredi", plg_mercredi); + SavePlage(cnode, "jeudi", plg_jeudi); + SavePlage(cnode, "vendredi", plg_vendredi); + SavePlage(cnode, "samedi", plg_samedi); + SavePlage(cnode, "dimanche", plg_dimanche); + + return true; +} diff --git a/src/bin/calaos_server/IO/InPlageHoraire.h b/src/bin/calaos_server/IO/InPlageHoraire.h new file mode 100644 index 00000000..8463386e --- /dev/null +++ b/src/bin/calaos_server/IO/InPlageHoraire.h @@ -0,0 +1,91 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_InPlageHoraire_H +#define S_InPlageHoraire_H + +#include +#include +#include + +namespace Calaos +{ + +class InPlageHoraire : public Input +{ + protected: + bool value; + + vector plg_lundi; + vector plg_mardi; + vector plg_mercredi; + vector plg_jeudi; + vector plg_vendredi; + vector plg_samedi; + vector plg_dimanche; + + void LoadPlage(TiXmlElement *node, vector &plage); + void SavePlage(TiXmlElement *node, string day, vector &plage); + + public: + InPlageHoraire(Params &p); + ~InPlageHoraire(); + + virtual DATA_TYPE get_type() { return TBOOL; } + virtual bool get_value_bool() { return value; } + + //Here we store months when plagehoraire is active + enum { JANUARY = 0, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER }; + bitset<12> months; + + void AddLundi(TimeRange &horaire) { plg_lundi.push_back(horaire); } + void AddMardi(TimeRange &horaire) { plg_mardi.push_back(horaire); } + void AddMercredi(TimeRange &horaire) { plg_mercredi.push_back(horaire); } + void AddJeudi(TimeRange &horaire) { plg_jeudi.push_back(horaire); } + void AddVendredi(TimeRange &horaire) { plg_vendredi.push_back(horaire); } + void AddSamedi(TimeRange &horaire) { plg_samedi.push_back(horaire); } + void AddDimanche(TimeRange &horaire) { plg_dimanche.push_back(horaire); } + + vector &getLundi() { return plg_lundi; } + vector &getMardi() { return plg_mardi; } + vector &getMercredi() { return plg_mercredi; } + vector &getJeudi() { return plg_jeudi; } + vector &getVendredi() { return plg_vendredi; } + vector &getSamedi() { return plg_samedi; } + vector &getDimanche() { return plg_dimanche; } + + void setLundi(vector &h) { plg_lundi = h; } + void setMardi(vector &h) { plg_mardi = h; } + void setMercredi(vector &h) { plg_mercredi = h; } + void setJeudi(vector &h) { plg_jeudi = h; } + void setVendredi(vector &h) { plg_vendredi = h; } + void setSamedi(vector &h) { plg_samedi = h; } + void setDimanche(vector &h) { plg_dimanche = h; } + + void clear(); + + virtual void hasChanged(); + + virtual bool LoadFromXml(TiXmlElement *node); + virtual bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/InputTime.cpp b/src/bin/calaos_server/IO/InputTime.cpp new file mode 100644 index 00000000..fd4d8bbf --- /dev/null +++ b/src/bin/calaos_server/IO/InputTime.cpp @@ -0,0 +1,107 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; +using namespace Utils; + +InputTime::InputTime(Params &p): + Input(p), + with_date(false), + value(false) +{ + ListeRule::Instance().Add(this); //add this specific input to the EventLoop + + set_param("visible", "false"); + + Utils::logger("input") << Priority::DEBUG << "InputTime::InputTime(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +InputTime::~InputTime() +{ + Utils::logger("input") << Priority::DEBUG << "InputTime::~InputTime(): Ok" << log4cpp::eol; +} + +void InputTime::hasChanged() +{ + bool val = false; + + if (get_params().Exists("year") && get_params().Exists("month") && get_params().Exists("day")) + { + with_date = true; + + from_string(get_param("year"), year); + from_string(get_param("month"), month); + from_string(get_param("day"), day); + } + else + { + with_date = false; + } + + Utils::from_string(get_param("hour"), hour); + Utils::from_string(get_param("min"), minute); + Utils::from_string(get_param("sec"), second); + + { + struct tm *ctime = NULL; + time_t t = time(NULL); + ctime = localtime(&t); + + if (with_date) + { + if (ctime->tm_mday == day && + ctime->tm_mon + 1 == month && + ctime->tm_year + 1900 == year && + ctime->tm_sec == second && + ctime->tm_min == minute && + ctime->tm_hour == hour) + { + val = true; + } + } + else + { + if (ctime->tm_sec == second && + ctime->tm_min == minute && + ctime->tm_hour == hour) + { + val = true; + } + } + } + + if (val != value) + { + value = val; + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + if (val) + sig += Utils::url_encode("state:true"); + else + sig += Utils::url_encode("state:false"); + IPC::Instance().SendEvent("events", sig); + } +} diff --git a/src/bin/calaos_server/IO/InputTime.h b/src/bin/calaos_server/IO/InputTime.h new file mode 100644 index 00000000..41541e67 --- /dev/null +++ b/src/bin/calaos_server/IO/InputTime.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_INPUTTIME_H +#define S_INPUTTIME_H + +#include +#include + +namespace Calaos +{ + +class InputTime : public Input +{ + protected: + bool with_date; //operation redondante + + int hour, minute, second; + int day, month, year; + + bool value; + + public: + InputTime(Params &prm); + ~InputTime(); + + virtual DATA_TYPE get_type() { return TBOOL; } + virtual bool get_value_bool() { return value; } + + bool is_with_date() { return with_date; } + + virtual void hasChanged(); +}; + +} + +#endif diff --git a/src/bin/calaos_server/IO/InputTimer.cpp b/src/bin/calaos_server/IO/InputTimer.cpp new file mode 100644 index 00000000..c6214204 --- /dev/null +++ b/src/bin/calaos_server/IO/InputTimer.cpp @@ -0,0 +1,162 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +InputTimer::InputTimer(Params &p): + Input(p), + Output(p), + timer(NULL), + value("true"), + start(false) +{ + set_param("visible", "false"); + + Utils::logger("input") << Priority::DEBUG << "InputTimer::InputTimer(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +InputTimer::~InputTimer() +{ + Utils::logger("input") << Priority::DEBUG << "InputTimer::~InputTimer(): Ok" << log4cpp::eol; +} + +bool InputTimer::set_value(string command) +{ + if( command == "start") + command = "true"; + + if(command == "stop") + command = "false"; + + if (command == "true") + { + Utils::logger("output") << Priority::INFO << "InputTimer(" << get_param("id") << "): got action, Start Timer" << log4cpp::eol; + StartTimer(); + } + else if(command == "false") + { + Utils::logger("output") << Priority::INFO << "InputTimer(" << get_param("id") << "): got action, Stop Timer" << log4cpp::eol; + StopTimer(); + } + else + { + //set the time + vector valSplit; + vector::reverse_iterator it; + split(command, valSplit, ":"); + int i = 0; + + ms = 0; + second = 0; + minute = 0; + hour = 0; + + for(it = valSplit.rbegin(); it != valSplit.rend(); it++) + { + int j; + if( from_string(*it, j) ) + { + if(i==0) + ms = j; + else if(i==1) + second = j; + else if(i==2) + minute = j; + else + hour = j; + i++; + } + else + Utils::logger("output") << Priority::WARN << + "InputTimer: Invalid time value: " <)sigc::mem_fun(*this, &InputTimer::TimerDone)); + + value = "false"; +} + +void InputTimer::StopTimer() +{ + if (timer) delete timer; + timer = NULL; + value = "false"; +} + +void InputTimer::TimerDone() +{ + if (timer) delete timer; + timer = NULL; + value = "true"; + + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode("state:true"); + IPC::Instance().SendEvent("events", sig); +} + +void InputTimer::hasChanged() +{ + +} diff --git a/src/bin/calaos_server/IO/InputTimer.h b/src/bin/calaos_server/IO/InputTimer.h new file mode 100644 index 00000000..ae4ad194 --- /dev/null +++ b/src/bin/calaos_server/IO/InputTimer.h @@ -0,0 +1,67 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_INPUTTIMER_H +#define S_INPUTTIMER_H + +#include +#include +#include +#include + +namespace Calaos +{ + +class InputTimer : public Input, public Output +{ + protected: + int hour, minute, second, ms; + + EcoreTimer *timer; + string value; + bool start; + + void StartTimer(); + void StopTimer(); + void TimerDone(); + + public: + InputTimer(Params &prm); + ~InputTimer(); + + //Input + virtual DATA_TYPE get_type() { return TSTRING; } + virtual string get_value_string() { return value; } + + //Output + virtual bool set_value(string val); + + virtual void hasChanged(); + + virtual void set_param(std::string opt, std::string val) + { Input::set_param(opt, val); } + virtual std::string get_param(std::string opt) + { return Input::get_param(opt); } + virtual Params &get_params() + { return Input::get_params(); } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/IntValue.cpp b/src/bin/calaos_server/IO/IntValue.cpp new file mode 100644 index 00000000..302a580b --- /dev/null +++ b/src/bin/calaos_server/IO/IntValue.cpp @@ -0,0 +1,200 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +Internal::Internal(Params &p): + Input(p), + Output(p), + bvalue(false), + dvalue(0.0), + svalue("") +{ + Utils::logger("output") << Priority::INFO << "Internal::Internal(" << get_param("id") << "): Ok" << log4cpp::eol; + + if (!Input::get_params().Exists("visible")) set_param("visible", "false"); + if (!Input::get_params().Exists("rw")) set_param("rw", "false"); + if (!Input::get_params().Exists("save")) set_param("save", "false"); + + LoadFromConfig(); +} + +Internal::~Internal() +{ + Utils::logger("output") << Priority::INFO << "Internal::~Internal(): Ok" << log4cpp::eol; +} + +void Internal::force_input_bool(bool v) +{ + bvalue = v; + EmitSignalInput(); + + Save(); + + string sig = "input "; + sig += Input::get_param("id") + " "; + if (v) + sig += Utils::url_encode(string("state:true")); + else + sig += Utils::url_encode(string("state:false")); + IPC::Instance().SendEvent("events", sig); +} + +bool Internal::set_value(bool val) +{ + Utils::logger("output") << Priority::INFO << "InternalBool(" << get_param("id") << "): got action, " << ((val)?"True":"False") << log4cpp::eol; + + force_input_bool(val); + + string sig = "output "; + sig += Input::get_param("id") + " "; + if (val) + sig += Utils::url_encode(string("state:true")); + else + sig += Utils::url_encode(string("state:false")); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +void Internal::force_input_double(double v) +{ + dvalue = v; + EmitSignalInput(); + + Save(); + + string sig = "input "; + sig += Input::get_param("id") + " "; + sig += url_encode("state:" + to_string(dvalue)); + IPC::Instance().SendEvent("events", sig); +} + +bool Internal::set_value(double val) +{ + Utils::logger("output") << Priority::INFO << "InternalInt(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + force_input_double(val); + + string sig = "output "; + sig += Input::get_param("id") + " "; + sig += url_encode("state:" + to_string(dvalue)); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +void Internal::force_input_string(string v) +{ + svalue = v; + EmitSignalInput(); + + Save(); + + string sig = "input "; + sig += Input::get_param("id") + " "; + sig += url_encode(string("state:") + to_string(svalue)); + IPC::Instance().SendEvent("events", sig); +} + +bool Internal::set_value(string val) +{ + Utils::logger("output") << Priority::INFO << "InternalString(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + force_input_string(val); + + string sig = "output "; + sig += Input::get_param("id") + " "; + sig += url_encode(string("state:") + to_string(svalue)); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +void Internal::Save() +{ + if (Input::get_param("save") != "true") return; + + switch (get_type()) + { + case TBOOL: + if (bvalue) + set_param("value", "true"); + else + set_param("value", "false"); + break; + case TINT: set_param("value", to_string(dvalue)); break; + case TSTRING: set_param("value", svalue); break; + default: break; + } + + //save value if needed + Config::Instance().SaveValueIO(Input::get_param("id"), Input::get_param("value")); +} + +void Internal::LoadFromConfig() +{ + if (Input::get_param("save") != "true") return; + + string saved_value; + if (!Config::Instance().ReadValueIO(Input::get_param("id"), saved_value)) + { + saved_value = Input::get_param("value"); + if (saved_value == "") + return; + } + + switch (get_type()) + { + case TBOOL: + if (saved_value == "true") + bvalue = true; + else + bvalue = false; + break; + case TINT: + from_string(saved_value, dvalue); + break; + case TSTRING: + svalue = saved_value; + break; + default: break; + } +} + +bool Internal::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:internal"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + get_params().get_item(i, key, value); + if (key == "value" && get_param("save") != "true") continue; + cnode->SetAttribute(key, value); + } + + return true; +} diff --git a/src/bin/calaos_server/IO/IntValue.h b/src/bin/calaos_server/IO/IntValue.h new file mode 100644 index 00000000..89e677da --- /dev/null +++ b/src/bin/calaos_server/IO/IntValue.h @@ -0,0 +1,81 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_IntValue_H +#define S_IntValue_H + +#include +#include +#include + +namespace Calaos +{ + + class Internal : public Input, public Output + { + protected: + bool bvalue; + double dvalue; + string svalue; + + void Save(); //save value to file + void LoadFromConfig(); //load value from config file + + public: + Internal(Params &p); + ~Internal(); + + virtual DATA_TYPE get_type() + { + if (Input::get_param("type") == "InternalBool") return TBOOL; + if (Input::get_param("type") == "InternalInt") return TINT; + if (Input::get_param("type") == "InternalString") return TSTRING; + return TUNKNOWN; + } + + //Input + virtual bool get_value_bool() { return bvalue; } + virtual double get_value_double() { return dvalue; } + virtual string get_value_string() { return svalue; } + + virtual void force_input_bool(bool v); + virtual void force_input_double(double v); + virtual void force_input_string(string v); + + //Output + virtual bool set_value(bool val); + virtual bool set_value(double val); + virtual bool set_value(string val); + + //Use common params for input and output + virtual void set_param(std::string opt, std::string val) + { Input::set_param(opt, val); } + virtual std::string get_param(std::string opt) + { return Input::get_param(opt); } + virtual Params &get_params() + { return Input::get_params(); } + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node); + }; + +} +#endif diff --git a/src/bin/calaos_server/IO/OWTemp.cpp b/src/bin/calaos_server/IO/OWTemp.cpp new file mode 100644 index 00000000..e4ea6aa7 --- /dev/null +++ b/src/bin/calaos_server/IO/OWTemp.cpp @@ -0,0 +1,139 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +#ifdef HAVE_OWCAPI +#include +#endif + +using namespace Calaos; + +OWTemp::OWTemp(Params &p): + Input(p), + value(0.0), + timer(0.0) +{ + char *res; + size_t len; + std::string tmp; + + ow_id = get_param("ow_id"); + tmp = get_param("time"); + ow_args = get_param("ow_args"); + time = atof(tmp.c_str()); + + printf("OW_ID : %s, time : %3.3f\n", ow_id.c_str(), time); + + if (!get_params().Exists("visible")) set_param("visible", "true"); + ListeRule::Instance().Add(this); //add this specific input to the EventLoop + +#ifdef HAVE_OWCAPI + + /* Read value */ + OW_init(ow_args.c_str()); + ow_req = ow_id + "/temperature"; + if(OW_get(ow_req.c_str(), &res, &len) >= 0) + { + value = atof(res); + printf("Temperature read : %3.3f\n", value); + free(res); + Utils::logger("input") << Priority::INFO << "OWTemp::OWTemp(" << get_param("id") << "): Ok" << log4cpp::eol; + } + else + { + Utils::logger("input") << Priority::INFO << "OWTemp::OWTemp(" << get_param("id") << "): Cannot read One Wire Temperature Sensor (" << ow_id << ")" << log4cpp::eol; + } +#else + Utils::logger("input") << Priority::INFO << "OWTemp::OWTemp(" << get_param("id") << "): One Wire support not enabled !" << log4cpp::eol; +#endif + + +} + +OWTemp::~OWTemp() +{ + Utils::logger("input") << Priority::INFO << "OWTemp::~OWTemp(): Ok" << log4cpp::eol; + +#ifdef HAVE_OWCAPI + OW_finish(); +#endif +} + +void OWTemp::hasChanged() +{ +#ifdef HAVE_OWCAPI + + char *res; + size_t len; + double val = value; + double sec = ecore_time_get() - timer; + + if (sec >= time) + { + timer = ecore_time_get(); + /* Read value */ + + ow_req = ow_id + "/temperature"; + if(OW_get(ow_req.c_str(), &res, &len) >= 0) + { + val = atof(res); + printf("Temperature read : %3.3f\n", val); + free(res); + Utils::logger("input") << Priority::INFO << "OWTemp::hasChanged(" << get_param("id") << "): Ok" << log4cpp::eol; + } + else + { + Utils::logger("input") << Priority::INFO << "OWTemp::hasChanged(" << get_param("id") << "): Cannot read One Wire Temperature Sensor (" << ow_id << ")" << log4cpp::eol; + } + + if (val != value) + { + Utils::logger("input") << Priority::INFO << "OWTemp:changed(" << get_param("id") << ") : " << get_value_double() << " °C" << log4cpp::eol; + + value = val; + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(get_value_double())); + IPC::Instance().SendEvent("events", sig); + } + } +#endif +} + +double OWTemp::get_value_double() +{ + return value; +} + +void OWTemp::force_input_double(double v) +{ + value = v; + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(get_value_double())); + IPC::Instance().SendEvent("events", sig); +} diff --git a/src/bin/calaos_server/IO/OWTemp.h b/src/bin/calaos_server/IO/OWTemp.h new file mode 100644 index 00000000..3f96b0c2 --- /dev/null +++ b/src/bin/calaos_server/IO/OWTemp.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_OWTemp_H +#define S_OWTemp_H + +#include +#include +#include + +namespace Calaos +{ + +class OWTemp : public Input +{ + protected: + std::string ow_id; + std::string ow_req; + std::string ow_args; + double value; + double timer; + double time; + public: + OWTemp(Params &p); + ~OWTemp(); + + virtual DATA_TYPE get_type() { return TINT; } + + virtual void force_input_double(double v); + + virtual double get_value_double(); + + virtual void hasChanged(); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/OutputFake.cpp b/src/bin/calaos_server/IO/OutputFake.cpp new file mode 100644 index 00000000..c4f5125e --- /dev/null +++ b/src/bin/calaos_server/IO/OutputFake.cpp @@ -0,0 +1,57 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +OutputFake::OutputFake(Params &p): + value(false), + Output(p) +{ + Utils::logger("output") << Priority::INFO << "OutputFake::OutputFake(" << get_param("id") << "): Ok" << log4cpp::eol; + + set_param("visible", "false"); +} + +OutputFake::~OutputFake() +{ + Utils::logger("output") << Priority::INFO << "OutputFake::~OutputFake(): Ok" << log4cpp::eol; +} + +bool OutputFake::set_value(bool val) +{ + value = val; + + Utils::logger("output") << Priority::INFO << "OutputFake(" << get_param("id") << "): got action, " << ((value)?"True":"False") << log4cpp::eol; + + string sig = "output "; + sig += get_param("id") + " "; + if (val) + sig += Utils::url_encode(string("state:true")); + else + sig += Utils::url_encode(string("state:false")); + IPC::Instance().SendEvent("events", sig); + + EmitSignalOutput(); + + return true; +} diff --git a/src/bin/calaos_server/IO/OutputFake.h b/src/bin/calaos_server/IO/OutputFake.h new file mode 100644 index 00000000..a406153f --- /dev/null +++ b/src/bin/calaos_server/IO/OutputFake.h @@ -0,0 +1,46 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_OUTPUTFAKE_H +#define S_OUTPUTFAKE_H + +#include +#include + +namespace Calaos +{ + +class OutputFake : public Output +{ + private: + bool value; + + public: + OutputFake(Params &p); + ~OutputFake(); + + DATA_TYPE get_type() { return TBOOL; } + + bool set_value(bool val); + bool get_value_bool() { return value; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/Scenario.cpp b/src/bin/calaos_server/IO/Scenario.cpp new file mode 100644 index 00000000..17dba086 --- /dev/null +++ b/src/bin/calaos_server/IO/Scenario.cpp @@ -0,0 +1,78 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +Scenario::Scenario(Params &p): + value(false), + Input(p), + Output(p), + auto_scenario(NULL) +{ + Utils::logger("output") << Priority::INFO << "Scenario::Scenario(" << get_param("id") << "): Ok" << log4cpp::eol; + + if (Input::get_param("auto_scenario") != "") + { + auto_scenario = new AutoScenario(this); + Input::setAutoScenario(true); + } + + if (!Input::get_params().Exists("visible")) set_param("visible", "true"); +} + +Scenario::~Scenario() +{ + DELETE_NULL(auto_scenario); + + Utils::logger("output") << Priority::INFO << "Scenario::~Scenario(): Ok" << log4cpp::eol; +} + +void Scenario::force_input_bool(bool v) +{ + value = v; + EmitSignalInput(); + + string sig = "input "; + sig += Input::get_param("id") + " "; + if (v) + sig += Utils::url_encode(string("state:true")); + else + sig += Utils::url_encode(string("state:false")); + IPC::Instance().SendEvent("events", sig); +} + +bool Scenario::set_value(bool val) +{ + force_input_bool(val); + + string sig = "output "; + sig += Input::get_param("id") + " "; + if (val) + sig += Utils::url_encode(string("state:true")); + else + sig += Utils::url_encode(string("state:false")); + IPC::Instance().SendEvent("events", sig); + + return true; +} diff --git a/src/bin/calaos_server/IO/Scenario.h b/src/bin/calaos_server/IO/Scenario.h new file mode 100644 index 00000000..7d66e120 --- /dev/null +++ b/src/bin/calaos_server/IO/Scenario.h @@ -0,0 +1,64 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_Scenario_H +#define S_Scenario_H + +#include +#include +#include + +namespace Calaos +{ + +class AutoScenario; + +class Scenario : public Input, public Output +{ + protected: + bool value; + + AutoScenario *auto_scenario; + + public: + Scenario(Params &p); + ~Scenario(); + + virtual DATA_TYPE get_type() { return TBOOL; } + + //Input + virtual bool get_value_bool() { return value; } + virtual void force_input_bool(bool v); + + //Output + virtual bool set_value(bool val); + + virtual void set_param(std::string opt, std::string val) + { Input::set_param(opt, val); } + virtual std::string get_param(std::string opt) + { return Input::get_param(opt); } + virtual Params &get_params() + { return Input::get_params(); } + + AutoScenario *getAutoScenario() { return auto_scenario; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WIAnalog.cpp b/src/bin/calaos_server/IO/WIAnalog.cpp new file mode 100644 index 00000000..437d6e17 --- /dev/null +++ b/src/bin/calaos_server/IO/WIAnalog.cpp @@ -0,0 +1,153 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +WIAnalog::WIAnalog(Params &p): + Input(p), + real_value_max(0.0), + wago_value_max(0.0), + port(502), + value(0.0), + timer(0.0), + frequency(15.0), // 15 sec. between each read + requestInProgress(false), + start(true) +{ + readConfig(); + + ListeRule::Instance().Add(this); //add this specific input to the EventLoop + + WagoMap::Instance(host, port).read_words((UWord)address, 1, sigc::mem_fun(*this, &WIAnalog::WagoReadCallback)); + requestInProgress = true; + + Calaos::StartReadRules::Instance().addIO(); + + Utils::logger("input") << Priority::INFO << "WIAnalog::WIAnalog(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WIAnalog::~WIAnalog() +{ + Utils::logger("input") << Priority::INFO << "WIAnalog::~WIAnalog(): Ok" << log4cpp::eol; +} + +void WIAnalog::readConfig() +{ + host = get_param("host"); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + Utils::from_string(get_param("var"), address); + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + if (get_params().Exists("real_max")) Utils::from_string(get_param("real_max"), real_value_max); + if (get_params().Exists("wago_max")) Utils::from_string(get_param("wago_max"), wago_value_max); + + if (get_params().Exists("frequency")) Utils::from_string(get_param("frequency"), frequency); +} + +void WIAnalog::WagoReadCallback(bool status, UWord address, int count, vector &values) +{ + requestInProgress = false; + + if (!status) + { + Utils::logger("input") << Priority::ERROR << "WIAnalog(" << get_param("id") << "): Failed to read value" << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + double val = value; + + if (!values.empty()) + { + val = values[0]; + } + + if (val != value) + { + value = val; + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(get_value_double())); + IPC::Instance().SendEvent("events", sig); + + Utils::logger("input") << Priority::INFO << "WIAnalog:changed(" << get_param("id") << ") : " << get_value_double() << log4cpp::eol; + } + + if (start) + { + Calaos::StartReadRules::Instance().ioRead(); + start = false; + } +} + +void WIAnalog::hasChanged() +{ + readConfig(); + + double sec = ecore_time_get() - timer; + if (sec >= frequency) + { + timer = ecore_time_get(); + + if (!requestInProgress) + { + requestInProgress = true; + WagoMap::Instance(host, port).read_words((UWord)address, 1, sigc::mem_fun(*this, &WIAnalog::WagoReadCallback)); + } + } +} + +double WIAnalog::get_value_double() +{ + readConfig(); + + Utils::logger("input") << Priority::DEBUG << "WIAnalog::get_value_double(" << get_param("id") << "): " + << value << " * " << real_value_max << " / " << wago_value_max << log4cpp::eol; + + if (wago_value_max > 0 && real_value_max > 0) + return Utils::roundValue(value * real_value_max / wago_value_max); + else + return Utils::roundValue(value); +} + +void WIAnalog::force_input_double(double v) +{ + if (wago_value_max > 0 && real_value_max > 0) + value = v * wago_value_max / real_value_max; + else + value = v; + + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(v)); + IPC::Instance().SendEvent("events", sig); +} diff --git a/src/bin/calaos_server/IO/WIAnalog.h b/src/bin/calaos_server/IO/WIAnalog.h new file mode 100644 index 00000000..2e1e259d --- /dev/null +++ b/src/bin/calaos_server/IO/WIAnalog.h @@ -0,0 +1,67 @@ +/****************************************************************************** +** Copyright (c) 2007-2010, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WIAnalog_H +#define S_WIAnalog_H + +#include +#include +#include +#include + +namespace Calaos +{ + +class WIAnalog : public Input +{ + protected: + int address; + double real_value_max; + double wago_value_max; + + std::string host; + int port; + + double value; + double timer; + double offset; + double frequency; + + bool requestInProgress; + bool start; + + void readConfig(); + + void WagoReadCallback(bool status, UWord address, int count, vector &values); + + public: + WIAnalog(Params &p); + ~WIAnalog(); + + virtual DATA_TYPE get_type() { return TINT; } + virtual void force_input_double(double v); + + virtual double get_value_double(); + + virtual void hasChanged(); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WIDigitalBP.cpp b/src/bin/calaos_server/IO/WIDigitalBP.cpp new file mode 100644 index 00000000..38d8f8b9 --- /dev/null +++ b/src/bin/calaos_server/IO/WIDigitalBP.cpp @@ -0,0 +1,135 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WIDigitalBP::WIDigitalBP(Params &p): + Input(p), + port(502), + value(false), + initial(true) +{ + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "false"); + + iter = Utils::signal_wago.connect( sigc::mem_fun(this, &WIDigitalBP::ReceiveFromWago) ); + + if (get_param("knx") != "true") + { + WagoMap::Instance(host, port).read_bits((UWord)address, 1, sigc::mem_fun(*this, &WIDigitalBP::WagoReadCallback)); + + Calaos::StartReadRules::Instance().addIO(); + } + else + { + Utils::logger("input") << Priority::INFO << "WIDigitalBP::WIDigitalBP(" << get_param("id") << "): Not reading initial state for KNX inputs" << log4cpp::eol; + } + + Utils::logger("input") << Priority::INFO << "WIDigitalBP::WIDigitalBP(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WIDigitalBP::~WIDigitalBP() +{ + iter->disconnect(); + Utils::logger("input") << Priority::INFO << "WIDigitalBP::~WIDigitalBP(): Ok" << log4cpp::eol; +} + +void WIDigitalBP::ReceiveFromWago(std::string ip, int addr, bool val, std::string intype) +{ + if (ip == host && addr == address) + { + if ((intype == "std" && get_param("knx") != "true") || + (intype == "knx" && get_param("knx") == "true")) + { + Utils::logger("input") << Priority::INFO << "WIDigitalBP::ReceiveFromWago(): Got " + << to_string(val) << " on " << intype << " input " << addr + << log4cpp::eol; + + udp_value = val; + hasChanged(); + } + } +} + +void WIDigitalBP::WagoReadCallback(bool status, UWord address, int count, vector &values) +{ + if (!status) + { + Utils::logger("input") << Priority::ERROR << "WIDigitalBP(" << get_param("id") << "): Failed to read value" << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + if (initial) + { + if (!values.empty()) + value = values[0]; + + if (value) + Utils::logger("input") << Priority::INFO << "WIDigitalBP::WIDigitalBP(" << get_param("id") << "): Reading initial state: true" << log4cpp::eol; + else + Utils::logger("input") << Priority::INFO << "WIDigitalBP::WIDigitalBP(" << get_param("id") << "): Reading initial state: false" << log4cpp::eol; + initial = false; + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WIDigitalBP::hasChanged() +{ + bool val = false; + std::vector values; + + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (get_param("knx") != "true") + { + //Force to reconnect in case of disconnection + WagoMap::Instance(host, port).read_bits((UWord)address, 1, sigc::mem_fun(*this, &WIDigitalBP::WagoReadCallback)); + } + + val = udp_value; + + if (val != value) + { + value = val; + + string sig = "input "; + sig += get_param("id") + " "; + if (value) + sig += Utils::url_encode(string("state:true")); + else + sig += Utils::url_encode(string("state:false")); + IPC::Instance().SendEvent("events", sig); + + EmitSignalInput(); + } +} diff --git a/src/bin/calaos_server/IO/WIDigitalBP.h b/src/bin/calaos_server/IO/WIDigitalBP.h new file mode 100644 index 00000000..383c71c3 --- /dev/null +++ b/src/bin/calaos_server/IO/WIDigitalBP.h @@ -0,0 +1,62 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WIDigitalBP_H +#define S_WIDigitalBP_H + +#include +#include +#include + +namespace Calaos +{ + +class WIDigitalBP : public Input, public sigc::trackable +{ + protected: + type_signal_wago::iterator iter; + + int address; + std::string host; + int port; + + bool value, udp_value; + bool initial; + + void WagoReadCallback(bool status, UWord address, int count, vector &values); + + public: + WIDigitalBP(Params &p); + ~WIDigitalBP(); + + virtual DATA_TYPE get_type() { return TBOOL; } + virtual bool get_value_bool() { return value; } + virtual void force_input_bool(bool v) + { + value = v; + EmitSignalInput(); + } + + virtual void hasChanged(); + virtual void ReceiveFromWago(std::string ip, int addr, bool val, std::string intype); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WIDigitalTriple.cpp b/src/bin/calaos_server/IO/WIDigitalTriple.cpp new file mode 100644 index 00000000..3d1f20ae --- /dev/null +++ b/src/bin/calaos_server/IO/WIDigitalTriple.cpp @@ -0,0 +1,139 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WIDigitalTriple::WIDigitalTriple(Params &p): + Input(p), + port(502), + value(0.0), + count(0), + timer(NULL) +{ + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "false"); + + iter = Utils::signal_wago.connect( sigc::mem_fun(this, &WIDigitalTriple::ReceiveFromWago) ); + Utils::logger("input") << Priority::INFO << "WIDigitalTriple::WIDigitalTriple(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WIDigitalTriple::~WIDigitalTriple() +{ + iter->disconnect(); + if (timer) delete timer; + Utils::logger("input") << Priority::INFO << "WIDigitalTriple::~WIDigitalTriple(): Ok" << log4cpp::eol; +} + +void WIDigitalTriple::ReceiveFromWago(std::string ip, int addr, bool val, std::string intype) +{ + if (ip == host && addr == address) + { + if ((intype == "std" && get_param("knx") != "true") || + (intype == "knx" && get_param("knx") == "true")) + { + Utils::logger("input") << Priority::INFO << "WIDigitalTriple::ReceiveFromWago(): Got " + << to_string(val) << " on " << intype << " input " << addr + << log4cpp::eol; + + udp_value = val; + hasChanged(); + } + } +} + +void WIDigitalTriple::WagoReadCallback(bool status, UWord address, int nb, vector &values) +{ + if (!status) + { + Utils::logger("input") << Priority::ERROR << "WIDigitalTriple(" << get_param("id") << "): Failed to read value" << log4cpp::eol; + return; + } +} + +void WIDigitalTriple::hasChanged() +{ + bool val = false; + + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (get_param("knx") != "true") + { + //Force to reconnect in case of disconnection + //WagoMap::Instance(host, port).read_bits((UWord)address, 1, sigc::mem_fun(*this, &WIDigitalTriple::WagoReadCallback)); + } + + val = udp_value; + + if (val) + { + if (!timer) + { + count = 0; + timer = new EcoreTimer(0.5, + (sigc::slot)sigc::mem_fun(*this, &WIDigitalTriple::TimerDone)); + } + + count += 1; + } +} + +void WIDigitalTriple::TimerDone() +{ + if (count > 0) + { + if (count == 1) value = 1.; + if (count == 2) value = 2.; + if (count >= 3) value = 3.; + + count = 0; + + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(value)); + IPC::Instance().SendEvent("events", sig); + + //reset input value to 0 after 250ms (simulate button press/release) + EcoreTimer::singleShot(0.250, sigc::mem_fun(*this, &WIDigitalTriple::resetInput)); + } + + if (timer) + { + delete timer; + timer = NULL; + } +} + +void WIDigitalTriple::resetInput() +{ + value = 0.; +} + diff --git a/src/bin/calaos_server/IO/WIDigitalTriple.h b/src/bin/calaos_server/IO/WIDigitalTriple.h new file mode 100644 index 00000000..e27d6090 --- /dev/null +++ b/src/bin/calaos_server/IO/WIDigitalTriple.h @@ -0,0 +1,77 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WIDigitalTriple_H +#define S_WIDigitalTriple_H + +#include +#include +#include +#include + +namespace Calaos +{ + +class WIDigitalTriple : public Input, public sigc::trackable +{ + protected: + type_signal_wago::iterator iter; + + int address; + std::string host; + int port; + + int count; + bool udp_value; + double value; + + EcoreTimer *timer; + + void TimerDone(); + void resetInput(); + + void WagoReadCallback(bool status, UWord address, int count, vector &values); + + public: + WIDigitalTriple(Params &p); + ~WIDigitalTriple(); + + virtual DATA_TYPE get_type() { return TINT; } + + /* renvoie le numero de l'action: + -1: rien + 1: action 1 + 2: action 2 + 3: action 3 + */ + virtual double get_value_double() { return value; } + virtual void force_input_double(double v) + { + value = v; + EmitSignalInput(); + } + + virtual void hasChanged(); + virtual void ReceiveFromWago(std::string ip, int addr, bool val, std::string intype); +}; + +} + +#endif diff --git a/src/bin/calaos_server/IO/WITemp.cpp b/src/bin/calaos_server/IO/WITemp.cpp new file mode 100644 index 00000000..39d9fdb7 --- /dev/null +++ b/src/bin/calaos_server/IO/WITemp.cpp @@ -0,0 +1,141 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +WITemp::WITemp(Params &p): + Input(p), + port(502), + value(0.0), + timer(0.0), + requestInProgress(false) +{ + host = get_param("host"); + Utils::from_string(get_param("offset"), offset); + + Utils::from_string(get_param("var"), address); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + ListeRule::Instance().Add(this); //add this specific input to the EventLoop + + requestInProgress = true; + WagoMap::Instance(host, port).read_words((UWord)address, 1, sigc::mem_fun(*this, &WITemp::WagoReadCallback)); + + Calaos::StartReadRules::Instance().addIO(); + + Utils::logger("input") << Priority::INFO << "WITemp::WITemp(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WITemp::~WITemp() +{ + Utils::logger("input") << Priority::INFO << "WITemp::~WITemp(): Ok" << log4cpp::eol; +} + +void WITemp::WagoReadCallback(bool status, UWord address, int count, vector &values) +{ + requestInProgress = false; + + if (!status) + { + Utils::logger("input") << Priority::ERROR << "WITemp(" << get_param("id") << "): Failed to read value" << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + double val = value; + + if (!values.empty()) + val = (short int)values[0] / 10.0; + + if (val != value) + { + Utils::logger("input") << Priority::INFO << "WITemp:changed(" << get_param("id") << ") : " << get_value_double() << " °C" << log4cpp::eol; + + value = val; + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(get_value_double())); + IPC::Instance().SendEvent("events", sig); + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WITemp::hasChanged() +{ + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + double sec = ecore_time_get() - timer; + if (sec >= 15) + { + timer = ecore_time_get(); + + if (!requestInProgress) + { + requestInProgress = true; + WagoMap::Instance(host, port).read_words((UWord)address, 1, sigc::mem_fun(*this, &WITemp::WagoReadCallback)); + } + } +} + +double WITemp::get_value_double() +{ + double v; + + if (get_params().Exists("offset")) + { + Utils::from_string(get_param("offset"), offset); + + if (offset < 100 && offset > -100) + v = value - offset; + else + v = value; + } + else + { + v = value; + } + + return v; +} + +void WITemp::force_input_double(double v) +{ + value = v; + EmitSignalInput(); + + string sig = "input "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + to_string(get_value_double())); + IPC::Instance().SendEvent("events", sig); +} diff --git a/src/bin/calaos_server/IO/WITemp.h b/src/bin/calaos_server/IO/WITemp.h new file mode 100644 index 00000000..b5184542 --- /dev/null +++ b/src/bin/calaos_server/IO/WITemp.h @@ -0,0 +1,62 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WITemp_H +#define S_WITemp_H + +#include +#include +#include +#include + +namespace Calaos +{ + +class WITemp : public Input +{ + protected: + int address; + + std::string host; + int port; + + double value; + double timer; + double offset; + + bool requestInProgress; + + void WagoReadCallback(bool status, UWord address, int count, vector &values); + + public: + WITemp(Params &p); + ~WITemp(); + + virtual DATA_TYPE get_type() { return TINT; } + + virtual void force_input_double(double v); + + virtual double get_value_double(); + + virtual void hasChanged(); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WOAnalog.cpp b/src/bin/calaos_server/IO/WOAnalog.cpp new file mode 100644 index 00000000..fe3d28bc --- /dev/null +++ b/src/bin/calaos_server/IO/WOAnalog.cpp @@ -0,0 +1,136 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; +using namespace Utils; + +WOAnalog::WOAnalog(Params &p): + Output(p), + port(502), + value(-1), + real_value_max(0.0), + wago_value_max(0.0) +{ + readConfig(); + + WagoMap::Instance(host, port).read_words((UWord)address + 0x200, 1, sigc::mem_fun(*this, &WOAnalog::WagoReadCallback)); + + Calaos::StartReadRules::Instance().addIO(); + + Utils::logger("output") << Priority::INFO << "WOAnalog::WOAnalog(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WOAnalog::~WOAnalog() +{ + Utils::logger("output") << Priority::INFO << "WOAnalog::~WOAnalog(): Ok" << log4cpp::eol; +} + +void WOAnalog::readConfig() +{ + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_params().Exists("real_max")) Utils::from_string(get_param("real_max"), real_value_max); + if (get_params().Exists("wago_max")) Utils::from_string(get_param("wago_max"), wago_value_max); + + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "true"); +} + +double WOAnalog::get_value_double() +{ + readConfig(); + + if (wago_value_max > 0 && real_value_max > 0) + return Utils::roundValue(value * real_value_max / wago_value_max); + else + return Utils::roundValue(value); +} + +void WOAnalog::WagoReadCallback(bool status, UWord address, int count, vector &values) +{ + if (!status) + { + Utils::logger("output") << Priority::ERROR << "WOAnalog(" << get_param("id") << "): Failed to read value" << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + if (!values.empty()) value = values[0]; + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + Utils::to_string(value)); + IPC::Instance().SendEvent("events", sig); + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WOAnalog::WagoWriteCallback(bool status, UWord address, UWord _value) +{ + if (!status) + { + Utils::logger("output") << Priority::ERROR << "WOAnalog(" << get_param("id") << "): Failed to write value" << log4cpp::eol; + return; + } + + value = _value; + + UWord v; + + readConfig(); + + if (wago_value_max > 0 && real_value_max > 0) + v = (UWord)(value * wago_value_max / real_value_max); + else + v = (UWord)(value); + + Utils::logger("output") << Priority::INFO << "WOAnalog(" << get_param("id") << "), executed action " << value << " (" << v << ")" << log4cpp::eol; +} + +bool WOAnalog::set_value(double val) +{ + UWord v; + + readConfig(); + + if (wago_value_max > 0 && real_value_max > 0) + v = (UWord)(val * wago_value_max / real_value_max); + else + v = (UWord)(val); + + WagoMap::Instance(host, port).write_single_word((UWord)address, v, sigc::mem_fun(*this, &WOAnalog::WagoWriteCallback)); + + value = val; + + EmitSignalOutput(); + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + Utils::to_string(value)); + IPC::Instance().SendEvent("events", sig); + + return true; +} diff --git a/src/bin/calaos_server/IO/WOAnalog.h b/src/bin/calaos_server/IO/WOAnalog.h new file mode 100644 index 00000000..c1a012ae --- /dev/null +++ b/src/bin/calaos_server/IO/WOAnalog.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2007-2010, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WOAnalog_H +#define S_WOAnalog_H + +#include +#include +#include + +namespace Calaos +{ + +class WOAnalog : public Output +{ + private: + double value; + double real_value_max; + double wago_value_max; + + int address; + + std::string host; + int port; + + void readConfig(); + + void WagoReadCallback(bool status, UWord address, int count, vector &values); + void WagoWriteCallback(bool status, UWord address, UWord value); + + public: + WOAnalog(Params &p); + ~WOAnalog(); + + DATA_TYPE get_type() { return TINT; } + + virtual bool set_value(double val); + virtual double get_value_double(); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WODali.cpp b/src/bin/calaos_server/IO/WODali.cpp new file mode 100644 index 00000000..bb0b16ad --- /dev/null +++ b/src/bin/calaos_server/IO/WODali.cpp @@ -0,0 +1,294 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WODali::WODali(Params &_p): + Output(_p), + value(0), + old_value(100), + port(502), + hold_timer(NULL), + press_sens(false), + press_detected(false), + stop_after_press(false) +{ + host = get_param("host"); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + string cmd = "WAGO_DALI_GET " + get_param("line") + " " + get_param("address"); + WagoMap::Instance(host, port).SendUDPCommand(cmd, sigc::mem_fun(*this, &WODali::WagoUDPCommand_cb)); + + Calaos::StartReadRules::Instance().addIO(); + Utils::logger("output") << Priority::INFO << "WODali::WODali(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WODali::~WODali() +{ + Utils::logger("output") << Priority::INFO << "WODali::WODali(): Ok" << log4cpp::eol; +} + +void WODali::WagoUDPCommand_cb(bool status, string command, string result) +{ + if (!status) + { + Utils::logger("output") << Priority::INFO << "WODali::WagoUdpCommand(): Error with request " << command << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + if (command.find("WAGO_DALI_GET") != string::npos) + { + vector tokens; + split(result, tokens); + if (tokens.size() >= 3) + { + //get the status of the ballast + if (tokens[1] == "0") + { + value = 0; + old_value = 100; + } + else + { + value = 100; + old_value = 0; + } + } + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +/* List of actions where value is in percent +** set +** set off +** up +** down +** on +** off +** toggle +** hold press +** hold stop +*/ +bool WODali::set_value(std::string val) +{ + bool ret = true; + + Utils::logger("output") << Priority::INFO << "WODali(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + host = get_param("host"); + from_string(get_param("port"), port); + + if (val == "on" || val == "true") + { + //switch the light on only if value == 0 + if (value == 0) + { + string cmd = "WAGO_DALI_SET " + get_param("line") + " " + get_param("group") + + " " + get_param("address") + " " + Utils::to_string(old_value) + + " " + get_param("fade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + value = old_value; + + cmd_state = "on"; + } + } + else if (val == "off" || val == "false") + { + //switch the light off only if value > 0 + if (value > 0) + { + string cmd = "WAGO_DALI_SET " + get_param("line") + " " + get_param("group") + + " " + get_param("address") + " 0 " + get_param("fade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + old_value = value; + value = 0; + + cmd_state = "off"; + } + } + else if (val == "toggle") + { + if (value == 0) + set_value(true); + else + set_value(false); + } + else if (val.compare(0, 8, "set off ") == 0) + { + val.erase(0, 8); + int percent; + Utils::from_string(val, percent); + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "set off " + Utils::to_string(percent); + + string cmd = "WAGO_DALI_SET " + get_param("line") + " " + get_param("group") + + " " + get_param("address") + " " + Utils::to_string(percent) + + " " + get_param("fade_time"); + if (value > 0) + { + WagoMap::Instance(host, port).SendUDPCommand(cmd); + value = percent; + } + else + { + old_value = percent; + } + } + else if (val.compare(0, 4, "set ") == 0) + { + val.erase(0, 4); + int percent; + Utils::from_string(val, percent); + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "set " + Utils::to_string(percent); + + string cmd = "WAGO_DALI_SET " + get_param("line") + " " + get_param("group") + + " " + get_param("address") + " " + Utils::to_string(percent) + + " " + get_param("fade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + value = percent; + } + else if (val.compare(0, 3, "up ") == 0) + { + val.erase(0, 3); + int percent; + Utils::from_string(val, percent); + percent += value; + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "up " + val; + + string cmd = "WAGO_DALI_SET " + get_param("line") + " " + get_param("group") + + " " + get_param("address") + " " + Utils::to_string(percent) + + " " + get_param("fade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + value = percent; + } + else if (val.compare(0, 5, "down ") == 0) + { + val.erase(0, 5); + int percent; + Utils::from_string(val, percent); + percent = value - percent; + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "down " + val; + + string cmd = "WAGO_DALI_SET " + get_param("line") + " " + get_param("group") + + " " + get_param("address") + " " + Utils::to_string(percent) + + " " + get_param("fade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + value = percent; + } + else if (val == "hold press") + { + if (hold_timer) + { + //reset hold detection + delete hold_timer; + } + + press_detected = false; + stop_after_press = true; + hold_timer = new EcoreTimer(0.5, (sigc::slot)sigc::mem_fun(*this, &WODali::HoldPress_cb)); + } + else if (val == "hold stop") + { + //only toggle after a press and if long press is not detected + if (!press_detected && stop_after_press) + { + ret = set_value(string("toggle")); + } + + stop_after_press = false; + + if (hold_timer) + { + delete hold_timer; + hold_timer = NULL; + press_detected = false; + } + } + + EmitSignalOutput(); + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + + return ret; +} + +void WODali::HoldPress_cb() +{ + // press is detect the first timer with 500ms + if (!press_detected) + { + press_detected = true; + delete hold_timer; + hold_timer = new EcoreTimer(1.0, (sigc::slot)sigc::mem_fun(*this, &WODali::HoldPress_cb)); + } + + int v = 0; + + if (press_sens) + { + v = value - 10; + if (v < 0) + { + press_sens = false; + v = 0; + } + } + else + { + v = value + 10; + if (v > 100) + { + press_sens = true; + v = 100; + } + } + + string cmd = "set "; + cmd += to_string(v); + set_value(cmd); +} diff --git a/src/bin/calaos_server/IO/WODali.h b/src/bin/calaos_server/IO/WODali.h new file mode 100644 index 00000000..41a0a550 --- /dev/null +++ b/src/bin/calaos_server/IO/WODali.h @@ -0,0 +1,69 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WODali_H +#define S_WODali_H + +#include +#include +#include +#include + +namespace Calaos +{ + +class WODali : public Output +{ + private: + int value; + int old_value; + + std::string host; + int port; + + EcoreTimer *hold_timer; + + std::string cmd_state; + bool press_detected; + bool press_sens; + bool stop_after_press; + + void HoldPress_cb(); + + void WagoUDPCommand_cb(bool status, string command, string result); + + public: + //two address for this output, one for the on/off action and the other for the dim + WODali(Params &p); + ~WODali(); + + DATA_TYPE get_type() { return TSTRING; } + + bool set_value(std::string val); + bool set_value(bool val) + { if (val) set_value(std::string("on")); else set_value(std::string("off")); return true; } + std::string get_value_string() { return Utils::to_string(value); } + bool get_value_bool() { if (value == 0) return false; else return true; } + + virtual std::string get_command_string() { return cmd_state; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WODaliRVB.cpp b/src/bin/calaos_server/IO/WODaliRVB.cpp new file mode 100644 index 00000000..f2c83155 --- /dev/null +++ b/src/bin/calaos_server/IO/WODaliRVB.cpp @@ -0,0 +1,434 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WODaliRVB::WODaliRVB(Params &_p): + Output(_p), + value(0), + old_value(100), + port(502) +{ + host = get_param("host"); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + string cmd; + cmd = "WAGO_DALI_GET " + get_param("rline") + " " + get_param("raddress"); + WagoMap::Instance(host, port).SendUDPCommand(cmd, sigc::mem_fun(*this, &WODaliRVB::WagoUDPCommandRed_cb)); + cmd = "WAGO_DALI_GET " + get_param("gline") + " " + get_param("gaddress"); + WagoMap::Instance(host, port).SendUDPCommand(cmd, sigc::mem_fun(*this, &WODaliRVB::WagoUDPCommandGreen_cb)); + cmd = "WAGO_DALI_GET " + get_param("bline") + " " + get_param("baddress"); + WagoMap::Instance(host, port).SendUDPCommand(cmd, sigc::mem_fun(*this, &WODaliRVB::WagoUDPCommandBlue_cb)); + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + + Calaos::StartReadRules::Instance().addIO(); + Calaos::StartReadRules::Instance().addIO(); + Calaos::StartReadRules::Instance().addIO(); + + Utils::logger("output") << Priority::INFO << "WODaliRVB::WODaliRVB(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WODaliRVB::~WODaliRVB() +{ + Utils::logger("output") << Priority::INFO << "WODaliRVB::~WODaliRVB(): Ok" << log4cpp::eol; +} + +void WODaliRVB::WagoUDPCommandRed_cb(bool status, string command, string result) +{ + if (!status) + { + Utils::logger("output") << Priority::INFO << "WODaliRVB::WagoUdpCommandRed(): Error with request " << command << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + vector tokens; + split(result, tokens); + if (tokens.size() >= 3) + { + from_string(tokens[2], red); + red = (red * 255) / 100; + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WODaliRVB::WagoUDPCommandGreen_cb(bool status, string command, string result) +{ + if (!status) + { + Utils::logger("output") << Priority::INFO << "WODaliRVB::WagoUdpCommandGreen(): Error with request " << command << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + vector tokens; + split(result, tokens); + if (tokens.size() >= 3) + { + from_string(tokens[2], green); + green = (green * 255) / 100; + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WODaliRVB::WagoUDPCommandBlue_cb(bool status, string command, string result) +{ + if (!status) + { + Utils::logger("output") << Priority::INFO << "WODaliRVB::WagoUdpCommandBlue(): Error with request " << command << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + vector tokens; + split(result, tokens); + if (tokens.size() >= 3) + { + from_string(tokens[2], blue); + blue = (blue * 255) / 100; + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WODaliRVB::WagoUDPCommand_cb(bool status, string command, string result) +{ + if (!status) + { + Utils::logger("output") << Priority::INFO << "WODaliRVB::WagoUdpCommand(): Error with request " << command << log4cpp::eol; + + return; + } +} + +/* List of actions where value is in percent +** set +** on +** off +** toggle +*/ +bool WODaliRVB::set_value(std::string val) +{ + bool ret = true; + + Utils::logger("output") << Priority::INFO << "WODaliRVB(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + host = get_param("host"); + from_string(get_param("port"), port); + + struct timespec t; + t.tv_sec = 0; + t.tv_nsec = 50 * 1000000; //50ms + + if (val == "on" || val == "true") + { + //switch the light on only if value == 0 + if (value == 0) + { + if (red == 0 && green == 0 && blue == 0) + { + red = 255; green = 255; blue = 255; + } + + //red + string cmd = "WAGO_DALI_SET " + get_param("rline") + " " + get_param("rgroup") + + " " + get_param("raddress") + " " + to_string((red * 100) / 255) + + " " + get_param("rfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + //green + cmd = "WAGO_DALI_SET " + get_param("gline") + " " + get_param("ggroup") + + " " + get_param("gaddress") + " " + to_string((green * 100) / 255) + + " " + get_param("gfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + //blue + cmd = "WAGO_DALI_SET " + get_param("bline") + " " + get_param("bgroup") + + " " + get_param("baddress") + " " + to_string((blue * 100) / 255) + + " " + get_param("bfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + + cmd_state = "on"; + } + } + else if (val == "off" || val == "false") + { + //switch the light off only if value > 0 + if (value > 0) + { + //red + string cmd = "WAGO_DALI_SET " + get_param("rline") + " " + get_param("rgroup") + + " " + get_param("raddress") + " 0 " + + get_param("rfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + //green + cmd = "WAGO_DALI_SET " + get_param("gline") + " " + get_param("ggroup") + + " " + get_param("gaddress") + " 0 " + + get_param("gfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + //blue + cmd = "WAGO_DALI_SET " + get_param("bline") + " " + get_param("bgroup") + + " " + get_param("baddress") + " 0 " + + get_param("bfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + old_value = value; + value = 0; + + cmd_state = "off"; + } + } + else if (val.compare(0, 8, "set off ") == 0) + { + val.erase(0, 4); + int percent; + from_string(val, percent); + red = percent >> 16; + green = (percent >> 8) & 0x0000FF; + blue = percent & 0x0000FF; + if (red < 0) red = 0; + if (red > 255) red = 255; + if (green < 0) green = 0; + if (green > 255) green = 255; + if (blue < 0) blue = 0; + if (blue > 255) blue = 255; + + cmd_state = "set off " + Utils::to_string(percent); + + if (value > 0) + { + string cmd = "WAGO_DALI_SET " + get_param("rline") + " " + get_param("rgroup") + + " " + get_param("raddress") + " " + to_string((red * 100) / 255) + + " " + get_param("rfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + cmd = "WAGO_DALI_SET " + get_param("gline") + " " + get_param("ggroup") + + " " + get_param("gaddress") + " " + to_string((green * 100) / 255) + + " " + get_param("gfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + cmd = "WAGO_DALI_SET " + get_param("bline") + " " + get_param("bgroup") + + " " + get_param("baddress") + " " + to_string((blue * 100) / 255) + + " " + get_param("bfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + } + else + { + old_value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + } + } + else if (val == "toggle") + { + if (value == 0) + set_value(true); + else + set_value(false); + } + else if (val.compare(0, 4, "set ") == 0) + { + val.erase(0, 4); + int percent; + from_string(val, percent); + red = percent >> 16; + green = (percent >> 8) & 0x0000FF; + blue = percent & 0x0000FF; + if (red < 0) red = 0; + if (red > 255) red = 255; + if (green < 0) green = 0; + if (green > 255) green = 255; + if (blue < 0) blue = 0; + if (blue > 255) blue = 255; + + cmd_state = "set " + Utils::to_string(percent); + + string cmd = "WAGO_DALI_SET " + get_param("rline") + " " + get_param("rgroup") + + " " + get_param("raddress") + " " + to_string((red * 100) / 255) + + " " + get_param("rfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + cmd = "WAGO_DALI_SET " + get_param("gline") + " " + get_param("ggroup") + + " " + get_param("gaddress") + " " + to_string((green * 100) / 255) + + " " + get_param("gfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + cmd = "WAGO_DALI_SET " + get_param("bline") + " " + get_param("bgroup") + + " " + get_param("baddress") + " " + to_string((blue * 100) / 255) + + " " + get_param("bfade_time"); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + + value = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + } + else if (val.compare(0, 8, "set_red ") == 0) + { + val.erase(0, 8); + int percent; + from_string(val, percent); + red = percent; + if (red < 0) red = 0; + if (red > 255) red = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 10, "set_green ") == 0) + { + val.erase(0, 10); + int percent; + from_string(val, percent); + green = percent; + if (green < 0) green = 0; + if (green > 255) green = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 9, "set_blue ") == 0) + { + val.erase(0, 9); + int percent; + from_string(val, percent); + blue = percent; + if (blue < 0) blue = 0; + if (blue > 255) blue = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 7, "up_red ") == 0) + { + val.erase(0, 7); + int percent; + from_string(val, percent); + red += percent; + if (red < 0) red = 0; + if (red > 255) red = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 9, "down_red ") == 0) + { + val.erase(0, 9); + int percent; + from_string(val, percent); + red -= percent; + if (red < 0) red = 0; + if (red > 255) red = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 9, "up_green ") == 0) + { + val.erase(0, 9); + int percent; + from_string(val, percent); + green += percent; + if (green < 0) green = 0; + if (green > 255) green = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 11, "down_green ") == 0) + { + val.erase(0, 11); + int percent; + from_string(val, percent); + green -= percent; + if (green < 0) green = 0; + if (green > 255) green = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 8, "up_blue ") == 0) + { + val.erase(0, 8); + int percent; + from_string(val, percent); + blue += percent; + if (blue < 0) blue = 0; + if (blue > 255) blue = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + else if (val.compare(0, 10, "down_blue ") == 0) + { + val.erase(0, 10); + int percent; + from_string(val, percent); + blue -= percent; + if (blue < 0) blue = 0; + if (blue > 255) blue = 255; + + int v = ((red << 16) & 0xFF0000) + ((green << 8) & 0x00FF00) + blue; + set_value("set " + to_string(v)); + } + + EmitSignalOutput(); + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + + return ret; +} diff --git a/src/bin/calaos_server/IO/WODaliRVB.h b/src/bin/calaos_server/IO/WODaliRVB.h new file mode 100644 index 00000000..7354ee0a --- /dev/null +++ b/src/bin/calaos_server/IO/WODaliRVB.h @@ -0,0 +1,65 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WODaliRVB_H +#define S_WODaliRVB_H + +#include +#include +#include + +namespace Calaos +{ + +class WODaliRVB : public Output +{ + private: + int value; + int old_value; + int red, green, blue; + + std::string host; + int port; + + std::string cmd_state; + + void WagoUDPCommandRed_cb(bool status, string command, string result); + void WagoUDPCommandGreen_cb(bool status, string command, string result); + void WagoUDPCommandBlue_cb(bool status, string command, string result); + void WagoUDPCommand_cb(bool status, string command, string result); + + public: + //3 Dali address for this output, one for red, one for blue, one for green + WODaliRVB(Params &p); + ~WODaliRVB(); + + DATA_TYPE get_type() { return TSTRING; } + + bool set_value(std::string val); + bool set_value(bool val) + { if (val) set_value(std::string("on")); else set_value(std::string("off")); return true; } + std::string get_value_string() { return Utils::to_string(value); } + bool get_value_bool() { if (value == 0) return false; else return true; } + + virtual std::string get_command_string() { return cmd_state; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WODigital.cpp b/src/bin/calaos_server/IO/WODigital.cpp new file mode 100644 index 00000000..e91dd147 --- /dev/null +++ b/src/bin/calaos_server/IO/WODigital.cpp @@ -0,0 +1,282 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WODigital::WODigital(Params &p): + Output(p), + port(502), + value(false), + timer(NULL) +{ + host = get_param("host"); + + from_string(get_param("var"), address); + + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + if (!get_params().Exists("visible")) set_param("visible", "true"); + + if (get_param("knx") == "true") + address += WAGO_KNX_START_ADDRESS; + + //Do this before translating address to 841/849 + WagoMap::Instance(host, port).read_output_bits((UWord)address, 1, sigc::mem_fun(*this, &WODigital::WagoReadCallback)); + + if (get_param("wago_841") == "true" && get_param("knx") != "true") + address += WAGO_841_START_ADDRESS; + + Calaos::StartReadRules::Instance().addIO(); + + Utils::logger("output") << Priority::INFO << "WODigital::WODigital(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WODigital::~WODigital() +{ + if (timer) + { + delete timer; + timer = NULL; + } + + Utils::logger("output") << Priority::INFO << "WODigital::~WODigital(): Ok" << log4cpp::eol; +} + +void WODigital::WagoReadCallback(bool status, UWord address, int count, vector &values) +{ + if (!status) + { + Utils::logger("output") << Priority::ERROR << "WODigital(" << get_param("id") << "): Failed to read value" << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + if (!values.empty()) + value = values[0]; + + Utils::logger("output") << Priority::INFO << "WODigital(" << get_param("id") << "): Reading initial value: " << (value?"true":"false") << log4cpp::eol; + + string sig = "output "; + sig += get_param("id") + " "; + if (value) + sig += Utils::url_encode("state:true"); + else + sig += Utils::url_encode("state:false"); + IPC::Instance().SendEvent("events", sig); + + Calaos::StartReadRules::Instance().ioRead(); +} + +void WODigital::WagoWriteCallback(bool status, UWord address, bool _value) +{ + if (!status) + { + Utils::logger("output") << Priority::ERROR << "WODigital(" << get_param("id") << "): Failed to write value" << log4cpp::eol; + return; + } +} + +bool WODigital::set_value(bool val) +{ + // Setting a new value will also stop any running impulse actions + if (timer) + { + delete timer; + timer = NULL; + } + + return _set_value(val); +} + +bool WODigital::_set_value(bool val) +{ + bool ret; + + Utils::logger("output") << Priority::INFO << "WODigital(" << get_param("id") + << "): got action, " << ((val)?"True":"False") << log4cpp::eol; + + host = get_param("host"); + Utils::from_string(get_param("var"), address); + if (get_param("knx") == "true") + address += WAGO_KNX_START_ADDRESS; + if (get_param("wago_841") == "true" && get_param("knx") != "true") + address += WAGO_841_START_ADDRESS; + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + WagoMap::Instance(host, port).write_single_bit((UWord)address, val, sigc::mem_fun(*this, &WODigital::WagoWriteCallback)); + + value = val; + + EmitSignalOutput(); + + string sig = "output "; + sig += get_param("id") + " "; + if (value) + sig += Utils::url_encode("state:true"); + else + sig += Utils::url_encode("state:false"); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +void WODigital::impulse(int _time) +{ + Utils::logger("output") << Priority::INFO << "WODigital(" << get_param("id") + << "): got impulse action, staying true for " + << _time << "ms" << log4cpp::eol; + + time = _time; + set_value(true); + + if (timer) delete timer; + timer = new EcoreTimer((double)time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WODigital::TimerImpulse) ); +} + +void WODigital::TimerImpulse() +{ + _set_value(false); + + if (timer) + { + delete timer; + timer = NULL; + } +} + +void WODigital::impulse_extended(string pattern) +{ + /* Extended impulse to do blinking. + * It uses a pattern like this one: + * - " " + * - "loop " + * - "old" (switch to the old value) + * they can be combined together to create different blinking effects + */ + + if (timer) + { + delete timer; + timer = NULL; + } + blinks.clear(); + + Utils::logger("output") << Priority::INFO << "WODigital(" << get_param("id") + << "): got extended impulse action, parsing blinking pattern..." << log4cpp::eol; + + //Parse the string + vector tokens; + split(pattern, tokens); + + bool state = true; + int loop = -1; + for (int i = 0;i < tokens.size();i++) + { + if (is_of_type(tokens[i])) + { + int blinktime; + from_string(tokens[i], blinktime); + + BlinkInfo binfo; + binfo.state = state; + binfo.duration = blinktime; + binfo.next = blinks.size() + 1; + + blinks.push_back(binfo); + + Utils::logger("output") << Priority::DEBUG << "WODigital(" << get_param("id") + << ")::Parse : Add blink step " << ((binfo.state)?"True":"False") + << " for " << binfo.duration << "ms" << log4cpp::eol; + + state = !state; + } + else if (tokens[i] == "loop" && loop < 0) + { + //set loop mode to the next item + loop = blinks.size(); + + Utils::logger("output") << Priority::DEBUG << "WODigital(" + << get_param("id") << ")::Parse : Loop all next steps." << log4cpp::eol; + } + else if (tokens[i] == "old") + { + BlinkInfo binfo; + binfo.state = get_value_bool(); + binfo.duration = 0; + binfo.next = blinks.size() + 1; + + blinks.push_back(binfo); + + Utils::logger("output") << Priority::DEBUG << "WODigital(" << get_param("id") + << ")::Parse : Add blink step " << ((binfo.state)?"True":"False") + << log4cpp::eol; + } + } + + if (loop >= 0) + { + //tell the last item to loop + if (blinks.size() > loop) + blinks[blinks.size() - 1].next = loop; + } + + current_blink = 0; + + if (blinks.size() > 0) + { + _set_value(blinks[current_blink].state); + + timer = new EcoreTimer((double)blinks[current_blink].duration / 1000., + (sigc::slot)sigc::mem_fun(*this, &WODigital::TimerImpulseExtended) ); + } +} + +void WODigital::TimerImpulseExtended() +{ + //Stop timer + if (timer) + { + delete timer; + timer = NULL; + } + + //safety checks + if (current_blink < 0 || current_blink >= blinks.size()) + return; //Stops blinking + + current_blink = blinks[current_blink].next; + + //safety checks for new value + if (current_blink < 0 || current_blink >= blinks.size()) + return; //Stops blinking + + //Set new output state + _set_value(blinks[current_blink].state); + + //restart timer + timer = new EcoreTimer((double)blinks[current_blink].duration / 1000., + (sigc::slot)sigc::mem_fun(*this, &WODigital::TimerImpulseExtended) ); +} diff --git a/src/bin/calaos_server/IO/WODigital.h b/src/bin/calaos_server/IO/WODigital.h new file mode 100644 index 00000000..e9184238 --- /dev/null +++ b/src/bin/calaos_server/IO/WODigital.h @@ -0,0 +1,78 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WODigital_H +#define S_WODigital_H + +#include +#include +#include + +namespace Calaos +{ + +typedef struct _BlinkInfo +{ + bool state; + int duration; + int next; +} BlinkInfo; + +class WODigital : public Output +{ + private: + bool value; + int address; + + std::string host; + int port; + + EcoreTimer *timer; + int time; + + vector blinks; + int current_blink; + + void TimerImpulse(); + void TimerImpulseExtended(); + + bool _set_value(bool val); + + void WagoReadCallback(bool status, UWord address, int count, vector &values); + void WagoWriteCallback(bool status, UWord address, bool value); + + public: + WODigital(Params &p); + ~WODigital(); + + DATA_TYPE get_type() { return TBOOL; } + + bool set_value(bool val); + bool get_value_bool() { return value; } + + //impulse, time is in ms + void impulse(int time); + + // extended impulse using pattern + void impulse_extended(string pattern); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WOVolet.cpp b/src/bin/calaos_server/IO/WOVolet.cpp new file mode 100644 index 00000000..070868f2 --- /dev/null +++ b/src/bin/calaos_server/IO/WOVolet.cpp @@ -0,0 +1,376 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WOVolet::WOVolet(Params &p): + Output(p), + port(502), + sens(VSTOP), + old_sens(VUP), + state_volet("true"), + timer_impulse(NULL), + timer_end(NULL), + timer_up(NULL), + timer_down(NULL) +{ + host = get_param("host"); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + Utils::logger("output") << Priority::INFO << "WOVolet::WOVolet(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WOVolet::~WOVolet() +{ + if (timer_end) delete timer_end; + if (timer_impulse) delete timer_impulse; + if (timer_up) delete timer_up; + if (timer_down) delete timer_down; + + Utils::logger("output") << Priority::INFO << "WOVolet::~WOVolet(): Ok" << log4cpp::eol; +} + +/* List of actions where value is in percent +** up +** down +** stop +** toggle +** impulse up +** impulse down +*/ +bool WOVolet::set_value(std::string val) +{ + Utils::logger("output") << Priority::INFO << "WOVolet(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + Utils::from_string(get_param("var_up"), up_address); + Utils::from_string(get_param("var_down"), down_address); + Utils::from_string(get_param("time"), time); + + is_impulse_action = false; + + //handle knx and 841/849 + if (get_param("knx") == "true") + { + up_address += WAGO_KNX_START_ADDRESS; + down_address += WAGO_KNX_START_ADDRESS; + } + if (get_param("wago_841") == "true" && get_param("knx") != "true") + { + up_address += WAGO_841_START_ADDRESS; + down_address += WAGO_841_START_ADDRESS; + } + + if (get_params().Exists("impulse_time")) + Utils::from_string(get_param("impulse_time"), impulse_time); + else + impulse_time = -1; + + if (val == "up") + { + UpWait(); + } + else if (val == "down") + { + DownWait(); + } + else if (val == "toggle") + { + if (sens == VUP) + { + old_sens = VUP; + Down(); + } + else if (sens == VDOWN) + { + old_sens = VDOWN; + Up(); + } + else if (sens == VSTOP) + { + if (old_sens == VUP) + Down(); + else + Up(); + } + } + else if (val == "stop") + { + Stop(); + } + else if (val.compare(0, 11, "impulse up ") == 0) + { + is_impulse_action = true; + val.erase(0, 11); + Utils::from_string(val, impulse_action_time); + UpWait(); + cmd_state = "impulse up " + to_string(impulse_action_time); + } + else if (val.compare(0, 13, "impulse down ") == 0) + { + is_impulse_action = true; + val.erase(0, 13); + Utils::from_string(val, impulse_action_time); + DownWait(); + cmd_state = "impulse down " + to_string(impulse_action_time); + } + + EmitSignalOutput(); + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +void WOVolet::Up() +{ + if (sens != VSTOP) + { + Stop(); + return; + } + + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + sens = VUP; + + if (impulse_time > 0) + { + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVolet::TimerImpulse) ); + } + + if (is_impulse_action) + { + //We want to do an impulse action here + //We check if down time is bigger than impulse_action_time before firing + //the timer. + + if (impulse_action_time + impulse_time < time * 1000) + { + double _t = (double)(impulse_action_time + impulse_time) / 1000.; + EcoreTimer::singleShot(_t, sigc::mem_fun(*this, &WOVolet::Stop)); + } + } + else + { + //Only change cmd_state if are not in impulse_action mode + cmd_state = "up"; + } + + if (timer_up) delete timer_up; + timer_up = NULL; + + if (timer_end) delete timer_end; + timer_end = new EcoreTimer((double)time, + (sigc::slot)sigc::mem_fun(*this, &WOVolet::TimerEnd) ); +} + +void WOVolet::Down() +{ + if (sens != VSTOP) + { + Stop(); + return; + } + + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, true, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + sens = VDOWN; + + if (impulse_time > 0) + { + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVolet::TimerImpulse) ); + } + + if (is_impulse_action) + { + //We want to do an impulse action here + //We check if down time is bigger than impulse_action_time before firing + //the timer. + + if (impulse_action_time + impulse_time < time * 1000) + { + double _t = (double)(impulse_action_time + impulse_time) / 1000.; + EcoreTimer::singleShot(_t, sigc::mem_fun(*this, &WOVolet::Stop)); + } + } + else + { + //Only change cmd_state if are not in impulse_action mode + cmd_state = "down"; + } + + if (timer_down) delete timer_down; + timer_down = NULL; + + if (timer_end) delete timer_end; + timer_end = new EcoreTimer((double)time, + (sigc::slot)sigc::mem_fun(*this, &WOVolet::TimerEnd) ); +} + +void WOVolet::DownWait() +{ + if (sens != VSTOP) + { + if (sens == VDOWN) + { + Stop(); + return; + } + else + { + Stop(); + + cmd_state = "down"; + + double _t = 200; + if (impulse_time >= 0) _t += impulse_time; + timer_down = new EcoreTimer(_t / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVolet::Down) ); + } + + return; + } + + Down(); +} + +void WOVolet::UpWait() +{ + if (sens != VSTOP) + { + if (sens == VUP) + { + Stop(); + return; + } + else + { + Stop(); + + cmd_state = "up"; + + double _t = 200; + if (impulse_time >= 0) _t += impulse_time; + timer_up = new EcoreTimer(_t / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVolet::Up) ); + } + + return; + } + + Up(); +} + +void WOVolet::Stop() +{ + cmd_state = "stop"; + if (sens == VSTOP) return; + + if (impulse_time > 0) + { + if (get_param("stop_both") != "false") + { + //It seems that most shutter will stop with impulsion on both up and down + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, true, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + } + else + { + if (sens == VUP) + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + else + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, true, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + } + + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVolet::TimerImpulse) ); + } + else + { + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + } + + sens = VSTOP; + + if (timer_end) + { + delete timer_end; + timer_end = NULL; + } +} + +void WOVolet::TimerEnd() +{ + if (sens == VUP) + { + old_sens = VUP; + state_volet = "true"; + } + else if (sens == VDOWN) + { + old_sens = VDOWN; + state_volet = "false"; + } + + string t = cmd_state; + Stop(); + cmd_state = t; + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); +} + +void WOVolet::TimerImpulse() +{ + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVolet::WagoWriteCallback)); + + if (timer_impulse) + { + delete timer_impulse; + timer_impulse = NULL; + } +} + +void WOVolet::WagoWriteCallback(bool status, UWord address, bool value) +{ + if (!status) + { + Utils::logger("output") << Priority::ERROR << "WOVolet(" << get_param("id") << "): Failed to write value" << log4cpp::eol; + return; + } +} diff --git a/src/bin/calaos_server/IO/WOVolet.h b/src/bin/calaos_server/IO/WOVolet.h new file mode 100644 index 00000000..ab80aaf0 --- /dev/null +++ b/src/bin/calaos_server/IO/WOVolet.h @@ -0,0 +1,75 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WOVolet_H +#define S_WOVolet_H + +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class WOVolet : public Output +{ + private: + int up_address, down_address; + int time; + int sens, old_sens; + + std::string host; + int port; + + EcoreTimer *timer_end, *timer_impulse; + EcoreTimer *timer_up, *timer_down; + bool is_impulse_action; + int impulse_action_time; + int impulse_time; + + std::string state_volet, cmd_state; + + void TimerEnd(); + void TimerImpulse(); + + void Up(); + void Down(); + void UpWait(); + void DownWait(); + void Stop(); + + void WagoWriteCallback(bool status, UWord address, bool value); + + public: + WOVolet(Params &p); + ~WOVolet(); + + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual bool set_value(std::string val); + virtual std::string get_value_string() { return state_volet; } + + virtual std::string get_command_string() { return cmd_state; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WOVoletSmart.cpp b/src/bin/calaos_server/IO/WOVoletSmart.cpp new file mode 100644 index 00000000..8006d5bc --- /dev/null +++ b/src/bin/calaos_server/IO/WOVoletSmart.cpp @@ -0,0 +1,645 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +WOVoletSmart::WOVoletSmart(Params &p): + Output(p), + port(502), + sens(VSTOP), + old_sens(VUP), + timer_end(NULL), + timer_update(NULL), + timer_impulse(NULL), + timer_up(NULL), + timer_down(NULL), + calibrate(false), + timer_calib(NULL), + total_time(0), + time_up(0), + time_down(0), + position(0.0) +{ + host = get_param("host"); + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + + Utils::from_string(get_param("time"), total_time); + + if (!get_params().Exists("time_up")) + time_up = total_time; + else + Utils::from_string(get_param("time_up"), time_up); + + if (!get_params().Exists("time_down")) + time_down = total_time - 2; + else + Utils::from_string(get_param("time_down"), time_down); + + if (total_time < time_up) + total_time = time_up; + + if (get_params().Exists("var_save")) + { + Utils::logger("output") << Priority::INFO << "WOVoletSmart::WOVoletSmart(" << get_param("id") << "): Reading initial value" << log4cpp::eol; + + string cmd = "WAGO_INFO_VOLET_GET " + get_param("var_save"); + WagoMap::Instance(host, port).SendUDPCommand(cmd, sigc::mem_fun(*this, &WOVoletSmart::WagoUDPCommand_cb)); + + Calaos::StartReadRules::Instance().addIO(); + } + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + Utils::logger("output") << Priority::INFO << "WOVoletSmart::WOVoletSmart(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +WOVoletSmart::~WOVoletSmart() +{ + if (timer_end) delete timer_end; + if (timer_update) delete timer_update; + if (timer_impulse) delete timer_impulse; + if (timer_up) delete timer_up; + if (timer_down) delete timer_down; + + Utils::logger("output") << Priority::INFO << "WOVoletSmart::~WOVoletSmart(): Ok" << log4cpp::eol; +} + +void WOVoletSmart::WagoUDPCommand_cb(bool status, string command, string result) +{ + if (!status) + { + Utils::logger("output") << Priority::INFO << "WODali::WagoUdpCommand(): Error with request " << command << log4cpp::eol; + Calaos::StartReadRules::Instance().ioRead(); + + return; + } + + if (command.find("WAGO_INFO_VOLET_GET") != string::npos) + { + vector tokens; + split(result, tokens); + if (tokens.size() >= 3) + { + int _position; + from_string(tokens[2], _position); + writePosition((double)_position / 1000000.); + + if (position >= total_time) old_sens = VDOWN; + } + + string sig = "output "; + sig += get_param("id") + " "; + sig += Utils::url_encode(string("state:") + get_value_string()); + IPC::Instance().SendEvent("events", sig); + } + + Calaos::StartReadRules::Instance().ioRead(); +} + +/* List of actions where value is in percent +** up +** down +** stop +** set +** up +** down +** toggle +** impulse up +** impulse down +** calibrate +*/ +bool WOVoletSmart::set_value(std::string val) +{ + host = get_param("host"); + Utils::from_string(get_param("var_up"), up_address); + Utils::from_string(get_param("var_down"), down_address); + Utils::from_string(get_param("time"), total_time); + + Utils::logger("output") << Priority::INFO << "WOVoletSmart(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + //handle knx and 841/849 + if (get_param("knx") == "true") + { + up_address += WAGO_KNX_START_ADDRESS; + down_address += WAGO_KNX_START_ADDRESS; + } + if (get_param("wago_841") == "true" && get_param("knx") != "true") + { + up_address += WAGO_841_START_ADDRESS; + down_address += WAGO_841_START_ADDRESS; + } + + if (!get_params().Exists("time_up")) + time_up = total_time; + else + Utils::from_string(get_param("time_up"), time_up); + + if (!get_params().Exists("time_down")) + time_down = total_time - 2; + else + Utils::from_string(get_param("time_down"), time_down); + + if (get_params().Exists("port")) + Utils::from_string(get_param("port"), port); + if (get_params().Exists("impulse_time")) + Utils::from_string(get_param("impulse_time"), impulse_time); + else + impulse_time = -1; + + if (calibrate) return false; + + is_impulse_action = false; + + if (val == "up") + { + UpWait(); + } + else if (val == "down") + { + DownWait(); + } + else if (val == "toggle") + { + if (sens == VUP) + { + old_sens = VUP; + Down(); + } + else if (sens == VDOWN) + { + old_sens = VDOWN; + Up(); + } + else if (sens == VSTOP) + { + if (old_sens == VUP) + Down(); + else + Up(); + } + } + else if (val == "stop") + { + Stop(); + } + else if (val.compare(0, 11, "impulse up ") == 0) + { + is_impulse_action = true; + val.erase(0, 11); + from_string(val, impulse_action_time); + UpWait(); + cmd_state = "impulse up " + to_string(impulse_action_time); + } + else if (val.compare(0, 13, "impulse down ") == 0) + { + is_impulse_action = true; + val.erase(0, 13); + from_string(val, impulse_action_time); + DownWait(); + cmd_state = "impulse down " + to_string(impulse_action_time); + } + else if (val.compare(0, 4, "set ") == 0) + { + val.erase(0, 4); + int percent; + double new_position; + from_string(val, percent); + + cmd_state = "set " + to_string(percent); + + new_position = (double)percent * (double)time_up / 100.; + + if (new_position < readPosition()) + Up(new_position); + else if (new_position > readPosition()) + Down(new_position); + } + else if (val.compare(0, 3, "up ") == 0) + { + val.erase(0, 3); + int percent; + double new_position; + from_string(val, percent); + + cmd_state = "up " + to_string(percent); + + new_position = (double)percent * (double)time_up / 100.; + + Up(readPosition() - new_position); + } + else if (val.compare(0, 5, "down ") == 0) + { + val.erase(0, 5); + int percent; + double new_position; + from_string(val, percent); + + cmd_state = "down " + to_string(percent); + + new_position = (double)percent * (double)time_up / 100.; + + Down(readPosition() + new_position); + } + else if (val == "calibrate") + { + calibrate = true; + + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + + if (impulse_time >= 0) + { + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerImpulse) ); + } + + timer_calib = new EcoreTimer((double)total_time, + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerCalibrate) ); + } + + EmitSignalOutput(); + + string sig = "output "; + sig += get_param("id") + " "; + sig += string("state:") + url_encode(get_value_string()); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +void WOVoletSmart::Up(double new_value) +{ + if (calibrate) return; + + if (sens != VSTOP) + { + Stop(); + return; + } + + //calculate position and total_time for up_time range + double pos = readPosition(); + total_time = time_up; + + if (pos <= 0) return; + + if (timer_end) delete timer_end; + if (timer_update) delete timer_update; + + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + sens = VUP; + + start_time = ecore_time_get(); + start_position = pos; + + if (new_value < 0) + { + timer_end = new EcoreTimer(pos, + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerEnd) ); + } + else + { + timer_end = new EcoreTimer(pos - new_value, + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerEnd) ); + } + timer_update = new EcoreTimer((1. * (double)total_time / 100.), + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerUpdate) ); + + if (impulse_time > 0) + { + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerImpulse) ); + } + + if (is_impulse_action) + { + //We want to do an impulse action here + //We check if down time is bigger than impulse_action_time before firing + //the timer. + + double _t = pos; + if (new_value > 0) _t -= new_value; + if (impulse_action_time + impulse_time < _t * 1000) + { + double _t = (double)(impulse_action_time + impulse_time) / 1000.; + EcoreTimer::singleShot(_t, sigc::mem_fun(*this, &WOVoletSmart::Stop)); + } + } + else + { + //Only change cmd_state if are not in impulse_action mode + cmd_state = "up"; + } + + if (timer_up) delete timer_up; + timer_up = NULL; +} + +void WOVoletSmart::Down(double new_value) +{ + if (calibrate) return; + + if (sens != VSTOP) + { + Stop(); + return; + } + + //calculate position and total_time for down_time range + double pos = (readPosition() * (double)time_down) / (double) time_up; + total_time = time_down; + new_value = (new_value * (double)time_down) / (double) time_up; + + if (pos >= total_time) return; + + if (timer_end) delete timer_end; + if (timer_update) delete timer_update; + + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + sens = VDOWN; + + start_time = ecore_time_get(); + start_position = pos; + + if (new_value < 0) + { + timer_end = new EcoreTimer((double)total_time - pos, + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerEnd) ); + } + else + { + timer_end = new EcoreTimer(new_value - pos, + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerEnd) ); + } + timer_update = new EcoreTimer((1. * (double)total_time / 100.), + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerUpdate) ); + + if (impulse_time > 0) + { + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerImpulse) ); + } + + if (is_impulse_action) + { + //We want to do an impulse action here + //We check if down time is bigger than impulse_action_time before firing + //the timer. + + double _t = (double)total_time - pos; + if (new_value > 0) _t -= new_value; + if (impulse_action_time + impulse_time < _t * 1000) + { + double _t = (double)(impulse_action_time + impulse_time) / 1000.; + EcoreTimer::singleShot(_t, sigc::mem_fun(*this, &WOVoletSmart::Stop)); + } + } + else + { + //Only change cmd_state if are not in impulse_action mode + cmd_state = "down"; + } + + if (timer_down) delete timer_down; + timer_down = NULL; +} + +void WOVoletSmart::DownWait() +{ + if (calibrate) return; + + if (sens != VSTOP) + { + if (sens == VDOWN) + Stop(); + else + { + Stop(); + + cmd_state = "down"; + + double _t = 200; + if (impulse_time >= 0) _t += impulse_time; + timer_down = new EcoreTimer(_t / 1000., + (sigc::slot)sigc::bind(sigc::mem_fun(*this, &WOVoletSmart::Down), -1) ); + } + + return; + } + + Down(); +} + +void WOVoletSmart::UpWait() +{ + if (calibrate) return; + + if (sens != VSTOP) + { + if (sens == VUP) + Stop(); + else + { + Stop(); + + cmd_state = "up"; + + double _t = 200; + if (impulse_time >= 0) _t += impulse_time; + timer_up = new EcoreTimer(_t / 1000., + (sigc::slot)sigc::bind(sigc::mem_fun(*this, &WOVoletSmart::Up), -1) ); + } + + return; + } + + Up(); +} + +void WOVoletSmart::Stop() +{ + if (calibrate) return; + + cmd_state = "stop"; + if (sens == VSTOP) return; + + if (impulse_time > 0) + { + if (get_param("stop_both") != "false") + { + //It seems that most shutter will stop with impulsion on both up and down + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + } + else + { + if (sens == VUP) + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + else + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, true, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + } + + if (timer_impulse) delete timer_impulse; + timer_impulse = new EcoreTimer((double)impulse_time / 1000., + (sigc::slot)sigc::mem_fun(*this, &WOVoletSmart::TimerImpulse) ); + } + else + { + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + } + + if (timer_end) delete timer_end; + timer_end = NULL; + if (timer_update) delete timer_update; + timer_update = NULL; + + TimerUpdate(); + + sens = VSTOP; +} + +void WOVoletSmart::TimerUpdate() +{ + if (sens == VUP) + { + //set new position + double _t = start_position; + _t -= (ecore_time_get() - start_time); + writePosition(_t); + } + else if (sens == VDOWN) + { + //set new position and conver it to time_up range + double _t = start_position; + _t += (ecore_time_get() - start_time); + _t = (_t * (double)time_up) / (double)time_down; + writePosition(_t); + } + + string sig = "output "; + sig += get_param("id") + " "; + sig += string("state:") + url_encode(get_value_string()); + IPC::Instance().SendEvent("events", sig); +} + +void WOVoletSmart::TimerEnd() +{ + if (sens == VUP) + old_sens = VUP; + else if (sens == VDOWN) + old_sens = VDOWN; + + string t = cmd_state; + Stop(); + cmd_state = t; + + string sig = "output "; + sig += get_param("id") + " "; + sig += string("state:") + url_encode(get_value_string()); + IPC::Instance().SendEvent("events", sig); +} + +void WOVoletSmart::TimerImpulse() +{ + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + + if (timer_impulse) + { + delete timer_impulse; + timer_impulse = NULL; + } +} + +void WOVoletSmart::TimerCalibrate() +{ + WagoMap::Instance(host, port).write_single_bit((UWord)up_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + WagoMap::Instance(host, port).write_single_bit((UWord)down_address, false, sigc::mem_fun(*this, &WOVoletSmart::WagoWriteCallback)); + + if (timer_calib) + { + delete timer_calib; + timer_calib = NULL; + } + + writePosition(0.); + + calibrate = false; + + string sig = "output "; + sig += get_param("id") + " "; + sig += string("state:") + url_encode(get_value_string()); + IPC::Instance().SendEvent("events", sig); +} + +double WOVoletSmart::readPosition() +{ + return position; +} + +void WOVoletSmart::writePosition(double p) +{ + position = p; + + if (position < 0) position = 0; + if (position > time_up) position = time_up; + + if (get_params().Exists("var_save")) + { + string cmd = "WAGO_INFO_VOLET_SET " + get_param("var_save") + " " + to_string((int)(position * 1000000)); + WagoMap::Instance(host, port).SendUDPCommand(cmd); + } +} + +std::string WOVoletSmart::get_value_string() +{ + if (calibrate) + return "calibration"; + + if (sens == VUP) + return "up " + to_string(get_value_double()); + + if (sens == VDOWN) + return "down " + to_string(get_value_double()); + + if (sens == VSTOP) + return "stop " + to_string(get_value_double()); + + return " " + to_string(get_value_double()); +} + +void WOVoletSmart::WagoWriteCallback(bool status, UWord address, bool value) +{ + if (!status) + { + Utils::logger("output") << Priority::ERROR << "WOVoletSmart(" << get_param("id") << "): Failed to write value" << log4cpp::eol; + return; + } +} diff --git a/src/bin/calaos_server/IO/WOVoletSmart.h b/src/bin/calaos_server/IO/WOVoletSmart.h new file mode 100644 index 00000000..f279e726 --- /dev/null +++ b/src/bin/calaos_server/IO/WOVoletSmart.h @@ -0,0 +1,86 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WOVoletSmart_H +#define S_WOVoletSmart_H + +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class WOVoletSmart : public Output +{ + private: + std::string host; + int port; + + int total_time, time_up, time_down; + int up_address, down_address; + int sens, old_sens; + double position; // range: [0..100] + + EcoreTimer *timer_end, *timer_update, *timer_impulse; + EcoreTimer *timer_up, *timer_down, *timer_calib; + double start_time; + double start_position; + bool is_impulse_action; + int impulse_action_time; + int impulse_time; + bool calibrate; + + std::string cmd_state; + + void Up(double new_value = -1); + void Down(double new_value = -1); + void UpWait(); + void DownWait(); + void Stop(); + + double readPosition(); + void writePosition(double p); + + void TimerEnd(); + void TimerUpdate(); + void TimerImpulse(); + void TimerCalibrate(); + + void WagoWriteCallback(bool status, UWord address, bool value); + void WagoUDPCommand_cb(bool status, string command, string result); + + public: + //two address for this output, for the up and down + WOVoletSmart(Params &p); + ~WOVoletSmart(); + + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual bool set_value(std::string val); + virtual std::string get_value_string(); + virtual double get_value_double() { return (int)(readPosition() * 100. / (double)time_up); } + virtual std::string get_command_string() { return cmd_state; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WagoCtrl.cpp b/src/bin/calaos_server/IO/WagoCtrl.cpp new file mode 100644 index 00000000..79b0c323 --- /dev/null +++ b/src/bin/calaos_server/IO/WagoCtrl.cpp @@ -0,0 +1,243 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; +using namespace Utils; + +WagoCtrl::WagoCtrl(std::string h, int p): host(h), port(p) +{ + mbus = mbus_init(NULL); + if (host == "") host = "127.0.0.1"; + + if (!mbus) + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::WagoCtrl(" << host << ", " << port << "): Cant init modbus structure !" << log4cpp::eol; + + Utils::logger("wago") << Priority::INFO << "WagoCtrl::WagoCtrl(" << host << ", " << port << "): Ok" << log4cpp::eol; +} + +WagoCtrl::~WagoCtrl() +{ + if (is_connected()) + Disconnect(); + if (mbus) + mbus_free(mbus); + + Utils::logger("wago") << Priority::INFO << "WagoCtrl::~WagoCtrl(): Ok" << log4cpp::eol; +} + +bool WagoCtrl::getBit(unsigned char mot, int pos) +{ + return ((mot >> pos) & 0x01); +} + +void WagoCtrl::setBit(unsigned char &mot, int pos, bool val) +{ + if (val) + mot = mot | (0x01 << pos); + else + { + if (getBit(mot, pos)) + mot = mot ^ (0x01 << pos); + } +} + +bool WagoCtrl::Connect() +{ + if (is_connected()) mbus_close(mbus); + if (mbus_connect(mbus, host.c_str(), (mbus_uword)port, 0)) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::Connect(): Can't connect..." << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::Connect(): Ok" << log4cpp::eol; + return true; + } +} + +void WagoCtrl::Disconnect() +{ + mbus_close(mbus); + Utils::logger("wago") << Priority::INFO << "WagoCtrl::Disconnect(): Ok" << log4cpp::eol; +} + +bool WagoCtrl::is_connected() +{ + if (mbus_connected(mbus) == 1) + return true; + else + return false; +} + +bool WagoCtrl::read_bits(UWord address, int nb, vector &values) +{ + if (!is_connected()) return false; + + int data_size = nb / 8 + nb % 8; + mbus_ubyte *data = new mbus_ubyte[data_size]; + memset(data, 0, sizeof(mbus_ubyte) * data_size); + int ret = mbus_cmd_read_coil_status(mbus, 1, (mbus_uword)address, (mbus_uword)nb, data); + + for (int i = 0;i < nb;i++) + values.push_back(getBit(*(data + i / 8), i % 8)); + + delete[] data; + + if (ret != 0) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::read_bits(): Error reading bits!" << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::read_bits(" << address << "," << nb <<"): Ok" << log4cpp::eol; + return true; + } +} + +bool WagoCtrl::write_single_bit(UWord address, bool val) +{ + if (!is_connected()) return false; + + mbus_uword data = 0x0000; + + if (val) data = 0xFF00; + + int ret = mbus_cmd_force_single_coil(mbus, 1, (mbus_uword)address, data); + + if (ret != 0) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::write_single_bit(): Error writing single bit!" << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::write_single_bit(): Ok" << log4cpp::eol; + return true; + } +} + +bool WagoCtrl::read_single_output_bit(UWord address) +{ + vector v; + + if (!read_bits(address + 0x200, 1, v)) + return false; + + if (!v.empty()) + return v[0]; + + return false; +} + +bool WagoCtrl::write_multiple_bits(UWord address, int nb, vector &values) +{ + if (!is_connected()) return false; + + mbus_ubyte *data = new mbus_ubyte[nb / 8 + nb % 8]; + memset(data, '\0', nb/8); + + for (int i = 0;i < nb;i++) + setBit(*data, i, values[i]); + + int ret = mbus_cmd_force_multiple_coils(mbus, 1, (mbus_uword)address, (mbus_uword)nb, data); + + delete[] data; + + if (ret != 0) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::write_multiple_bits(): Error writing multiple words... !" << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::write_multiple_bits(): Ok" << log4cpp::eol; + return true; + } +} + +bool WagoCtrl::read_words(UWord address, int nb, vector &values) +{ + if (!is_connected()) return false; + + mbus_uword *data = new mbus_uword[nb]; + int ret = mbus_cmd_read_holding_registers(mbus, 1, (mbus_uword)address, (mbus_uword)nb, data); + + for (int i = 0;i < nb;i++) + values.push_back(data[i]); + + delete[] data; + + if (ret != 0) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::read_words(): Error reading words... !" << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::read_words(): Ok" << log4cpp::eol; + return true; + } +} + +bool WagoCtrl::write_single_word(UWord address, UWord val) +{ + if (!is_connected()) return false; + + int ret = mbus_cmd_preset_single_register(mbus, 1, (mbus_uword)address, val); + + if (ret != 0) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::write_single_word(): Error writing single word... !" << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::write_single_word(): Ok" << log4cpp::eol; + return true; + } +} + +bool WagoCtrl::write_multiple_words(UWord address, int nb, vector &values) +{ + if (!is_connected()) return false; + + mbus_uword *data = new mbus_uword[nb]; + for (int i = 0;i < nb;i++) + data[i] = values[i]; + + int ret = mbus_cmd_preset_multiple_registers(mbus, 1, (mbus_uword)address, (mbus_uword)nb, data); + + delete[] data; + + if (ret != 0) + { + Utils::logger("wago") << Priority::ERROR << "WagoCtrl::write_multiple_words(): Error writing multiple words... !" << log4cpp::eol; + return false; + } + else + { + Utils::logger("wago") << Priority::INFO << "WagoCtrl::write_multiple_words(): Ok" << log4cpp::eol; + return true; + } +} diff --git a/src/bin/calaos_server/IO/WagoCtrl.h b/src/bin/calaos_server/IO/WagoCtrl.h new file mode 100644 index 00000000..54552ef3 --- /dev/null +++ b/src/bin/calaos_server/IO/WagoCtrl.h @@ -0,0 +1,66 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WAGOCTRL_H +#define S_WAGOCTRL_H + +#include +#include + +namespace Calaos +{ + +class WagoCtrl +{ + protected: + std::string host; + int port; + + mbus_struct *mbus; + + bool getBit(unsigned char mot, int pos); + void setBit(unsigned char &mot, int pos, bool val); + public: + WagoCtrl(std::string host, int port = 502); + ~WagoCtrl(); + + bool Connect(); + void Disconnect(); + bool is_connected(); + + //bits + bool read_bits(Utils::UWord address, int nb, vector &values); + bool write_single_bit(Utils::UWord address, bool val); + bool read_single_output_bit(Utils::UWord address); + bool write_multiple_bits(Utils::UWord address, int nb, vector &values); + + //Words + bool read_words(Utils::UWord address, int nb, vector &values); + bool write_single_word(Utils::UWord address, Utils::UWord val); + bool write_multiple_words(Utils::UWord address, int nb, vector &values); + + void set_host(std::string &h) { host = h; } + std::string get_host() { return host; } + void set_port(int p) { port = p; } + int get_port() { return port; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/WagoMap.cpp b/src/bin/calaos_server/IO/WagoMap.cpp new file mode 100644 index 00000000..8bec2bdd --- /dev/null +++ b/src/bin/calaos_server/IO/WagoMap.cpp @@ -0,0 +1,629 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include + +using namespace Utils; +using namespace Calaos; +using namespace CalaosNetwork; + +static Eina_Bool _ecore_con_handler_data_get(void *data, int type, Ecore_Con_Event_Server_Data *ev); + +WagoMapManager WagoMap::wagomaps; + +WagoMap::WagoMap(std::string h, int p): + host(h), + port(p), + quit_thread(false), + mutex_queue(false), + mutex_lock(false), + udp_timer(NULL), + udp_timeout_timer(NULL), + econ(NULL) +{ + input_bits.resize(MBUS_MAX_BITS, false); + output_bits.resize(MBUS_MAX_BITS, false); + input_words.resize(MBUS_MAX_WORDS, 0); + output_words.resize(MBUS_MAX_WORDS, 0); + + sigIPC.connect(sigc::mem_fun(*this, &WagoMap::IPCCallbacks)); + IPC::Instance().AddHandler("WagoMap", "*", sigIPC, NULL); + + event_handler_data_get = ecore_event_handler_add(ECORE_CON_EVENT_SERVER_DATA, (Ecore_Event_Handler_Cb)_ecore_con_handler_data_get, this); + + econ = ecore_con_server_connect(ECORE_CON_REMOTE_UDP, + host.c_str(), + WAGO_LISTEN_PORT, + this); + ecore_con_server_data_set(econ, this); + + heartbeat_timer = new EcoreTimer(0.1, (sigc::slot)sigc::mem_fun(*this, &WagoMap::WagoHeartBeatTick)); + mbus_heartbeat_timer = new EcoreTimer(10.0, (sigc::slot)sigc::mem_fun(*this, &WagoMap::WagoModbusHeartBeatTick)); + + Start(); + + Utils::logger("wago") << Priority::INFO << "WagoMap::WagoMap(" << host << "," << port << "): Ok" << log4cpp::eol; +} + +WagoMap::~WagoMap() +{ + quit_thread = true; + mutex_lock.condition_wake(); + + ecore_event_handler_del(event_handler_data_get); + ecore_con_server_del(econ); + + delete heartbeat_timer; + delete mbus_heartbeat_timer; + + End(); + + Utils::logger("wago") << Priority::INFO << "WagoMap::~WagoMap(): Ok" << log4cpp::eol; +} + +WagoMap &WagoMap::Instance(std::string h, int p) +{ + for (int i = 0;i < wagomaps.maps.size();i++) + { + if (wagomaps.maps[i]->get_host() == h && + wagomaps.maps[i]->get_port() == p) + { + return *wagomaps.maps[i]; + } + } + + // Create a new wago mapping object + WagoMap *mwago = new WagoMap(h, p); + wagomaps.maps.push_back(mwago); + + return *wagomaps.maps[wagomaps.maps.size() - 1]; +} + +void WagoMap::stopAllWagoMaps() +{ + std::for_each(wagomaps.maps.begin(), wagomaps.maps.end(), Delete()); + wagomaps.maps.clear(); +} + +void WagoMap::WagoModbusHeartBeatTick() +{ + read_bits(0, 1, sigc::mem_fun(*this, &WagoMap::WagoModbusReadHeartbeatCallback)); +} + +void WagoMap::WagoModbusReadHeartbeatCallback(bool status, UWord address, int count, vector &values) +{ + if (!status) + Utils::logger("wago") << Priority::ERROR << "WagoMap::WagoModbusReadHeartbeatCallback(): failed to read !" << log4cpp::eol; +} + +void WagoMap::IPCCallbacks(string source, string emission, void *listener_data, void *sender_data) +{ + if (source != "WagoMap") return; + + WagoMapCmd *cmd = reinterpret_cast(sender_data); + if (!cmd) return; + + if (emission == "mbus,read,bits") + { + MultiBits_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->multiBits_cb); + sig.emit(cmd->status, cmd->address, cmd->count, cmd->values_bits); + } + else if (emission == "mbus,read,outbits") + { + MultiBits_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->multiBits_cb); + sig.emit(cmd->status, cmd->address, cmd->count, cmd->values_bits); + } + else if (emission == "mbus,write,bit") + { + SingleBit_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->singleBit_cb); + sig.emit(cmd->status, cmd->address, cmd->value_bit); + } + else if (emission == "mbus,write,bits") + { + MultiBits_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->multiBits_cb); + sig.emit(cmd->status, cmd->address, cmd->count, cmd->values_bits); + } + if (emission == "mbus,read,words") + { + MultiWords_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->multiWords_cb); + sig.emit(cmd->status, cmd->address, cmd->count, cmd->values_words); + } + else if (emission == "mbus,read,outwords") + { + MultiWords_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->multiWords_cb); + sig.emit(cmd->status, cmd->address, cmd->count, cmd->values_words); + } + else if (emission == "mbus,write,word") + { + SingleBit_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->singleBit_cb); + sig.emit(cmd->status, cmd->address, cmd->value_bit); + } + else if (emission == "mbus,write,words") + { + MultiWords_signal sig; + if (cmd->mapSignals) + sig.connect(cmd->mapSignals->multiWords_cb); + sig.emit(cmd->status, cmd->address, cmd->count, cmd->values_words); + } + + cmd->deleteSignals(); +} + +void WagoMap::read_bits(UWord address, int nb, MultiBits_cb callback) +{ + WagoMapCmd cmd(MBUS_READ_BITS, address); + cmd.createSignals(); + + cmd.count = nb; + cmd.mapSignals->multiBits_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::read_output_bits(UWord address, int nb, MultiBits_cb callback) +{ + WagoMapCmd cmd(MBUS_READ_OUTBITS, address); + cmd.createSignals(); + + cmd.count = nb; + cmd.mapSignals->multiBits_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::write_single_bit(UWord address, bool val, SingleBit_cb callback) +{ + WagoMapCmd cmd(MBUS_WRITE_BIT, address); + cmd.createSignals(); + + cmd.value_bit = val; + cmd.mapSignals->singleBit_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::write_multiple_bits(UWord address, int nb, vector &values, MultiBits_cb callback) +{ + WagoMapCmd cmd(MBUS_WRITE_BITS, address); + cmd.createSignals(); + + cmd.values_bits = values; + cmd.count = nb; + cmd.mapSignals->multiBits_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::read_words(UWord address, int nb, MultiWords_cb callback) +{ + WagoMapCmd cmd(MBUS_READ_WORDS, address); + cmd.createSignals(); + + cmd.count = nb; + cmd.mapSignals->multiWords_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::read_output_words(UWord address, int nb, MultiWords_cb callback) +{ + WagoMapCmd cmd(MBUS_READ_OUTWORDS, address); + cmd.createSignals(); + + cmd.count = nb; + cmd.mapSignals->multiWords_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::write_single_word(UWord address, UWord val, SingleWord_cb callback) +{ + WagoMapCmd cmd(MBUS_WRITE_WORD, address); + cmd.createSignals(); + + cmd.value_word = val; + cmd.mapSignals->singleWord_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::write_multiple_words(UWord address, int nb, vector &values, MultiWords_cb callback) +{ + WagoMapCmd cmd(MBUS_WRITE_WORDS, address); + cmd.createSignals(); + + cmd.values_words = values; + cmd.count = nb; + cmd.mapSignals->multiWords_cb = callback; + + queueAndSendCommand(cmd); +} + +void WagoMap::queueAndSendCommand(WagoMapCmd cmd) +{ + mutex_queue.lock(); + mbus_commands.push(cmd); + mutex_queue.unlock(); + + mutex_lock.condition_wake(); +} + +void WagoMap::ThreadProc() +{ + WagoCtrl wago(host, port); + + while (true) + { + mutex_queue.lock(); + int queue_count = mbus_commands.size(); + mutex_queue.unlock(); + + if (queue_count <= 0) + mutex_lock.condition_wait(); + + if (quit_thread) + break; + + if (!wago.is_connected()) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, Connecting to " << host << log4cpp::eol; + wago.Connect(); + } + + mutex_queue.lock(); + if (mbus_commands.size() <= 0) + { + mutex_queue.unlock(); + continue; + } + WagoMapCmd cmd = mbus_commands.front(); + mbus_commands.pop(); + mutex_queue.unlock(); + + switch(cmd.command) + { + case MBUS_READ_BITS: + { + cmd.status = true; + if (!wago.read_bits(cmd.address, cmd.count, cmd.values_bits)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.read_bits(cmd.address, cmd.count, cmd.values_bits)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,read,bits", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_READ_OUTBITS: + { + cmd.status = true; + if (!wago.read_bits(cmd.address + 0x200, cmd.count, cmd.values_bits)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.read_bits(cmd.address + 0x200, cmd.count, cmd.values_bits)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,read,outbits", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_WRITE_BIT: + { + cmd.status = true; + if (!wago.write_single_bit(cmd.address, cmd.value_bit)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.write_single_bit(cmd.address, cmd.value_bit)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,write,bit", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_WRITE_BITS: + { + cmd.status = true; + if (!wago.write_multiple_bits(cmd.address, cmd.count, cmd.values_bits)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.write_multiple_bits(cmd.address, cmd.count, cmd.values_bits)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,write,bits", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_READ_WORDS: + { + cmd.status = true; + if (!wago.read_words(cmd.address, cmd.count, cmd.values_words)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.read_words(cmd.address, cmd.count, cmd.values_words)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,read,words", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_READ_OUTWORDS: + { + cmd.status = true; + if (!wago.read_words(cmd.address + 0x200, cmd.count, cmd.values_words)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.read_words(cmd.address + 0x200, cmd.count, cmd.values_words)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,read,outwords", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_WRITE_WORD: + { + cmd.status = true; + if (!wago.write_single_word(cmd.address, cmd.value_word)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.write_single_word(cmd.address, cmd.value_word)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,write,word", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + case MBUS_WRITE_WORDS: + { + cmd.status = true; + if (!wago.write_multiple_words(cmd.address, cmd.count, cmd.values_words)) + { + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, reconnecting to " << host << log4cpp::eol; + wago.Connect(); + if (!wago.write_multiple_words(cmd.address, cmd.count, cmd.values_words)) + { + cmd.status = false; + Utils::logger("wago") << Priority::DEBUG << "WagoMap: MBUS, failed to send request" << log4cpp::eol; + } + } + + IPC::Instance().SendEvent("WagoMap", "mbus,write,words", IPCData(new WagoMapCmd(cmd), new DeletorT), true); + } + break; + } + } +} + +Eina_Bool _ecore_con_handler_data_get(void *data, int type, Ecore_Con_Event_Server_Data *ev) +{ + WagoMap *w = reinterpret_cast(data); + + if (ev && ev->server && (w != ecore_con_server_data_get(ev->server))) + { + return ECORE_CALLBACK_PASS_ON; + } + + if (w) + { + string d((char *)ev->data, ev->size); + + w->udpRequest_cb(true, d); + } + else + { + Utils::logger("wago") << Priority::CRIT + << "WagoMap:(): _ecore_con_handler_data_get, failed to get WagoMap object !" + << log4cpp::eol; + } + + return ECORE_CALLBACK_RENEW; +} + +void WagoMap::SendUDPCommand(string command, WagoUdp_cb callback) +{ + bool restart_timer = false; + + Utils::logger("wago") << Priority::DEBUG << "WagoMap: UDP, sending command: " << command << log4cpp::eol; + + if (udp_commands.empty()) + restart_timer = true; + + WagoMapCmd cmd(CALAOS_UDP_SEND, 0); + cmd.createSignals(); + + cmd.udp_command = command; + cmd.mapSignals->wagoUdp_cb = callback; + + udp_commands.push(cmd); + + if (restart_timer) + { + if (udp_timer) delete udp_timer; + udp_timer = new EcoreTimer(50. / 1000., (sigc::slot)sigc::mem_fun(*this, &WagoMap::UDPCommand_cb)); + } +} + +void WagoMap::SendUDPCommand(string command) +{ + bool restart_timer = false; + + Utils::logger("wago") << Priority::DEBUG << "WagoMap: UDP, sending command: " << command << log4cpp::eol; + + if (udp_commands.empty()) + restart_timer = true; + + WagoMapCmd cmd(CALAOS_UDP_SEND, 0); + + cmd.no_callback = true; + cmd.udp_command = command; + + udp_commands.push(cmd); + + if (restart_timer) + { + if (udp_timer) delete udp_timer; + udp_timer = new EcoreTimer(50. / 1000., (sigc::slot)sigc::mem_fun(*this, &WagoMap::UDPCommand_cb)); + } +} + +void WagoMap::udpRequest_cb(bool status, string res) +{ + if (udp_timeout_timer) + { + delete udp_timeout_timer; + udp_timeout_timer = NULL; + } + + WagoMapCmd &cmd = udp_commands.front(); + Utils::logger("wago") << Priority::DEBUG << "WagoMap: UDP, getting result for command " << cmd.udp_command << log4cpp::eol; + + cmd.udp_result = res; + + WagoUdp_signal sig; + if (cmd.mapSignals) + sig.connect(cmd.mapSignals->wagoUdp_cb); + sig.emit(status, cmd.udp_command, cmd.udp_result); + + udp_commands.pop(); +} + +void WagoMap::UDPCommandTimeout_cb() +{ + Utils::logger("wago") << Priority::DEBUG << "WagoMap: UDP, Timeout ! " << log4cpp::eol; + + udpRequest_cb(false, ""); +} + +void WagoMap::UDPCommand_cb() +{ + if (!udp_commands.empty() && udp_commands.front().inProgress) + return; + + if (udp_commands.empty()) + { + delete udp_timer; + udp_timer = NULL; + + return; + } + + WagoMapCmd &cmd = udp_commands.front(); + + cmd.inProgress = true; + + Utils::logger("wago") << Priority::DEBUG << "WagoMap: UDP, real sending command: " << cmd.udp_command << log4cpp::eol; + + if (!udp_timeout_timer && !cmd.no_callback) + udp_timeout_timer = new EcoreTimer(2.0, (sigc::slot)sigc::mem_fun(*this, &WagoMap::UDPCommandTimeout_cb)); + + ecore_con_server_send(econ, cmd.udp_command.c_str(), cmd.udp_command.length() + 1); + + if (cmd.no_callback) + udp_commands.pop(); +} + +void WagoMap::WagoHeartBeatTick() +{ + if (heartbeat_timer->getTime() < 10.0) + heartbeat_timer->Reset(10.0); + + bool found_ip = false; + string ip; + for (int j = 0;j < 4 && !found_ip;j++) + { + if (j == 3) + ip = TCPSocket::GetLocalIP("lo"); //This is only for wago_simulator + else + ip = TCPSocket::GetLocalIP("eth" + Utils::to_string(j)); + + if (ip == "") continue; + vector splitter, splitter2; + Utils::split(ip, splitter, ".", 4); + Utils::split(get_host(), splitter2, ".", 4); + if (splitter[0] == splitter2[0] && + splitter[1] == splitter2[1] && + splitter[2] == splitter2[2]) + found_ip = true; + } + + if (found_ip) + { + string cmd = "WAGO_SET_SERVER_IP "; + cmd += ip; + + SendUDPCommand(cmd); + + cmd = "WAGO_HEARTBEAT"; + SendUDPCommand(cmd); + } + else + { + Utils::logger("root") << Priority::DEBUG + << "WagoHeartbeat: No interface found corresponding to network : " + << get_host() << log4cpp::eol; + } + + +} diff --git a/src/bin/calaos_server/IO/WagoMap.h b/src/bin/calaos_server/IO/WagoMap.h new file mode 100644 index 00000000..4ddcddc0 --- /dev/null +++ b/src/bin/calaos_server/IO/WagoMap.h @@ -0,0 +1,199 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_WAGOMAP_H +#define S_WAGOMAP_H + +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +typedef sigc::slot &> MultiBits_cb; +typedef sigc::signal &> MultiBits_signal; + +typedef sigc::slot SingleBit_cb; +typedef sigc::signal SingleBit_signal; + +typedef sigc::slot &> MultiWords_cb; +typedef sigc::signal &> MultiWords_signal; + +typedef sigc::slot SingleWord_cb; +typedef sigc::signal SingleWord_signal; + +typedef sigc::slot WagoUdp_cb; +typedef sigc::signal WagoUdp_signal; + +enum { MBUS_NONE = 0, MBUS_READ_BITS, MBUS_READ_OUTBITS, MBUS_WRITE_BIT, MBUS_WRITE_BITS, + MBUS_READ_WORDS, MBUS_READ_OUTWORDS, MBUS_WRITE_WORD, MBUS_WRITE_WORDS, + CALAOS_UDP_SEND }; + +#define MBUS_MAX_BITS 512 +#define MBUS_MAX_WORDS 512 + +class WagoMapSignals: public sigc::trackable +{ + public: + WagoMapSignals() + { } + + MultiBits_cb multiBits_cb; + SingleBit_cb singleBit_cb; + MultiWords_cb multiWords_cb; + SingleWord_cb singleWord_cb; + + WagoUdp_cb wagoUdp_cb; +}; + +class WagoMapCmd +{ + public: + WagoMapCmd(int _command, UWord _address): + command(_command), + address(_address), + no_callback(false), + inProgress(false), + mapSignals(NULL) + { } + + int command; + + bool status; + + UWord address; + int count; + + bool value_bit; + vector values_bits; + UWord value_word; + vector values_words; + + bool no_callback; + string udp_command; + string udp_result; + bool inProgress; + + WagoMapSignals *mapSignals; + + void createSignals() { if (!mapSignals) mapSignals = new WagoMapSignals(); } + void deleteSignals() { DELETE_NULL(mapSignals); } +}; + +class WagoMap; +class WagoMapManager +{ + public: + ~WagoMapManager() + { + std::for_each(maps.begin(), maps.end(), Delete()); + maps.clear(); + } + + vector maps; +}; + +class WagoMap: public CThread +{ + + protected: + std::string host; + int port; + + bool quit_thread; + + vector input_bits; + vector output_bits; + + vector input_words; + vector output_words; + + WagoMap(std::string host, int port); + + static WagoMapManager wagomaps; + + queue mbus_commands; + Mutex mutex_queue; + Mutex mutex_lock; + sigc::signal sigIPC; + + /* Heartbeat timer that do a modbus query to avoid TCP disconnection with the Wago */ + EcoreTimer *mbus_heartbeat_timer; + + queue udp_commands; + EcoreTimer *udp_timer; + EcoreTimer *udp_timeout_timer; + Ecore_Con_Server *econ; + Ecore_Event_Handler *event_handler_data_get; + + void queueAndSendCommand(WagoMapCmd cmd); + + /* Timer callback for udp commands */ + void UDPCommand_cb(); + void UDPCommandTimeout_cb(); + + EcoreTimer *heartbeat_timer; + + void WagoHeartBeatTick(); + void WagoModbusHeartBeatTick(); + + void WagoModbusReadHeartbeatCallback(bool status, UWord address, int count, vector &values); + + public: + ~WagoMap(); + + void IPCCallbacks(string source, string emission, void *listener_data, void *sender_data); + + //Singleton + static WagoMap &Instance(std::string host, int port); + static vector &get_maps() { return wagomaps.maps; } + static void stopAllWagoMaps(); + + //bits + void read_bits(UWord address, int nb, MultiBits_cb callback); + void read_output_bits(UWord address, int nb, MultiBits_cb callback); + void write_single_bit(UWord address, bool val, SingleBit_cb callback); + void write_multiple_bits(UWord address, int nb, vector &values, MultiBits_cb callback); + + //Words + void read_words(UWord address, int nb, MultiWords_cb callback); + void read_output_words(UWord address, int nb, MultiWords_cb callback); + void write_single_word(UWord address, UWord val, SingleWord_cb callback); + void write_multiple_words(UWord address, int nb, vector &values, MultiWords_cb callback); + + std::string get_host() { return host; } + int get_port() { return port; } + + //Send a command through the timer + void SendUDPCommand(string cmd, WagoUdp_cb callback); + void SendUDPCommand(string cmd); + + /* Private stuff used by C callbacks */ + void udpRequest_cb(bool status, string res); + + virtual void ThreadProc(); +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/X10Output.cpp b/src/bin/calaos_server/IO/X10Output.cpp new file mode 100644 index 00000000..1810d9a8 --- /dev/null +++ b/src/bin/calaos_server/IO/X10Output.cpp @@ -0,0 +1,253 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +X10Output::X10Output(Params &p): + Output(p), + state_value(false), + old_value(-1), + value(-1) +{ + housecode = get_param("code"); + state_value = X10Command("onstate"); + int _val; + X10Command("dimstate", &_val); + _val = 22 - _val + 1; + if (state_value) + { + value = (int)((double)(_val * 101.) / 22.); + value--; + } + else + { + old_value = (int)((double)(_val * 101.) / 22.); + old_value--; + } + + if (!get_params().Exists("visible")) set_param("visible", "true"); + + Utils::logger("output") << Priority::INFO << "X10Output::X10Output(" << get_param("id") << "): Ok" << log4cpp::eol; +} + +X10Output::~X10Output() +{ + Utils::logger("output") << Priority::INFO << "X10Output::~X10Output(): Ok" << log4cpp::eol; +} + +/* List of actions where value is in percent +** set +** up +** down +** on +** off +** toggle +*/ +bool X10Output::set_value(std::string val) +{ + bool ret; + housecode = get_param("code"); + + Utils::logger("output") << Priority::INFO << "X10Output(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + if (val == "on" || val == "true") + { + ret = X10Command("on"); + state_value = true; + if (ret && state_value) + { + if (old_value == -1) + value = 0; + else + value = old_value; + } + + cmd_state = "on"; + } + else if (val == "off" || val == "false") + { + ret = X10Command("off"); + state_value = false; + + cmd_state = "off"; + } + else if (val == "toggle") + { + if (state_value) state_value = false; else state_value = true; + if (state_value) + { + ret = X10Command("on"); + cmd_state = "on"; + } + else + { + ret = X10Command("off"); + cmd_state = "off"; + } + if (ret && state_value) + { + if (old_value == -1) + value = 0; + else + value = old_value; + } + } + else if (val.compare(0, 4, "set ") == 0) + { + val.erase(0, 4); + int percent = atoi(val.c_str()); + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "set " + Utils::to_string(percent); + + int v = (int)(((double)(percent + 1.) * 22.) / 101.); + v = 22 - v + 1; + if (v < 1) v = 1; if (v > 22) v = 22; + ret = X10Command("dimb", &v); + if (ret) value = percent; + } + else if (val.compare(0, 3, "up ") == 0) + { + val.erase(0, 3); + int percent = atoi(val.c_str()); + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "up " + Utils::to_string(percent); + + int v = (int)(((double)(percent + 1.) * 22.) / 101.); + v = 22 - v + 1; + if (v < 1) v = 1; if (v > 22) v = 22; + ret = X10Command("bright", &v); + if (ret) value = percent; + } + else if (val.compare(0, 5, "down ") == 0) + { + val.erase(0, 5); + int percent = atoi(val.c_str()); + if (percent < 0) percent = 0; + if (percent > 100) percent = 100; + + cmd_state = "down " + Utils::to_string(percent); + + int v = (int)(((double)(percent + 1.) * 22.) / 101.); + v = 22 - v + 1; + if (v < 1) v = 1; if (v > 22) v = 22; + ret = X10Command("dim", &v); + if (ret) value = percent; + } + + if (state_value == false) + { + old_value = value; + value = -1; + } + else if (value == -1) + value = old_value; + + return ret; +} + +bool X10Output::X10Command(std::string cmd, int *dval) +{ + vector argv; + + if (cmd == "on") + { + string cmd_line = "heyu on " + housecode; + ecore_exe_run(cmd_line.c_str(), NULL); + } + else if (cmd == "off") + { + string cmd_line = "heyu off " + housecode; + ecore_exe_run(cmd_line.c_str(), NULL); + } + else if (cmd == "dimb") + { + string cmd_line = "heyu dimb " + housecode + " " + Utils::to_string(*dval); + ecore_exe_run(cmd_line.c_str(), NULL); + } + else if (cmd == "bright") + { + string cmd_line = "heyu bright " + housecode + " " + Utils::to_string(*dval); + ecore_exe_run(cmd_line.c_str(), NULL); + } + else if (cmd == "dim") + { + string cmd_line = "heyu dim " + housecode + " " + Utils::to_string(*dval); + ecore_exe_run(cmd_line.c_str(), NULL); + } + else if (cmd == "onstate") + { + //setup params for heyu + string cmd = "heyu onstate " + housecode; + string std_out; + int _ret = -1; + + //TO FIX: Need to fix that using ecore_exe... + //Glib::spawn_command_line_sync(cmd, &std_out, NULL, &_ret); + + if (_ret != 0) + { + //reload the heyu engine + string cmd_line = "heyu engine"; + ecore_exe_run(cmd_line.c_str(), NULL); + + //then try again + // Glib::spawn_command_line_sync(cmd, &std_out, NULL, &_ret); + } + + if (std_out.empty()) return false; + if (std_out.compare(0, 1, "1") == 0) + return true; + else + return false; + } + else if (cmd == "dimstate") + { + //setup params for heyu + string cmd = "heyu dimstate " + housecode; + string std_out; + int _ret = -1; + + //TO FIX: Need to fix that using ecore_exe... + //Glib::spawn_command_line_sync(cmd, &std_out, NULL, &_ret); + + if (_ret != 0) + { + //reload the heyu engine + string cmd_line = "heyu engine"; + ecore_exe_run(cmd_line.c_str(), NULL); + + //then try again + //Glib::spawn_command_line_sync(cmd, &std_out, NULL, &_ret); + } + + *dval = 22; + if (std_out.empty()) return false; + *dval = atoi(std_out.c_str()); + } + + return true; +} diff --git a/src/bin/calaos_server/IO/X10Output.h b/src/bin/calaos_server/IO/X10Output.h new file mode 100644 index 00000000..2564aaa7 --- /dev/null +++ b/src/bin/calaos_server/IO/X10Output.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_X10OUTPUT_H +#define S_X10OUTPUT_H + +#include +#include + +namespace Calaos +{ + +class X10Output : public Output +{ + private: + std::string housecode; + + int value; + bool state_value; + int address, relay_addr; + int old_value; + + std::string cmd_state; + + bool X10Command(std::string cmd, int *dval = NULL); + + public: + X10Output(Params &p); + ~X10Output(); + + DATA_TYPE get_type() { return TSTRING; } + + bool set_value(std::string val); + bool set_value(bool val) { if (val) set_value(std::string("on")); else set_value(std::string("off")); return true; } + std::string get_value_string() { if (value == -1) return "off"; else return Utils::to_string(value); } + bool get_value_bool() { return state_value; } + + virtual std::string get_command_string() { return cmd_state; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IO/libmbus/mbus.c b/src/bin/calaos_server/IO/libmbus/mbus.c new file mode 100644 index 00000000..f07fb6f6 --- /dev/null +++ b/src/bin/calaos_server/IO/libmbus/mbus.c @@ -0,0 +1,196 @@ +/* + * mbus.c - general purpose libmbus functions + * + * Copyright (c) 2003, Victor Antonovich (avmlink@vlink.ru) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id: mbus.c,v 1.1.1.1 2003/09/16 08:33:28 kapyar Exp $ + */ + +#include "mbus.h" + +extern int mbus_sock_create_client(const char *server_addr, + mbus_uword server_port, int blkmode); + +#define MBUS_CHECK_INIT(p) \ + do { if ((p)->is_initialized != MBUS_FL_IS_INITIALIZED) \ + return -1; } while (0); + +/* + * Get library version info + * + * Returns: pointer to library version internal string. + */ +char * +mbus_version +( + mbus_struct *mbus /* pointer to MODBUS structure */ +) +{ + mbus = mbus; /* prevent compiler warning */ + return ("\n libmbus version " LIBMBUS_VERSION "\n" + " Copyright (c) 2003 Victor Antonovich\n"); +} + +/* + * Initialization of MBUS structure + * + * Returns: Pointer to structure (NULL in case of error). + * + * Note: This function must be called before any call to + * the library just once for each MBUS stucture + */ +mbus_struct * +mbus_init +( + mbus_struct *mbus /* Pointer to structure to be initialized + (if NULL - the memory will be allocated + for the structure before initializing) */ +) +{ + if (mbus == NULL) + { /* mbus structure yet isn't exist, create it */ + if ((mbus = + (mbus_struct *)malloc(sizeof(mbus_struct))) != NULL) + { /* initialize created structure */ + memset((void *)mbus, 0, sizeof(mbus_struct)); + mbus->flags |= MBUS_FL_FREE_ON_EXIT; + } + else return NULL; + } + else + mbus->flags = 0; /* zero all flags */ + mbus->sd = -1; + mbus->timeout = MBUS_SOCK_TIMEOUT; + mbus->is_initialized = MBUS_FL_IS_INITIALIZED; + /* initialized successfully */ + return mbus; +} + +/* + * Connect to mbusd server + * + * Returns: 0 if successfully connected; + * -1 in case of error. + */ +int +mbus_connect +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + const char *host_addr, /* mbusd server host address (DNS or canonical form) */ + mbus_uword host_port, /* mbusd IP port (1-65535) */ + mbus_uword flags /* Additional flags (isn't used in this version) */ +) +{ + MBUS_CHECK_INIT(mbus); + if (mbus->sd >= 0) + return mbus_reconnect(mbus); + (void)strncpy(mbus->host_addr, host_addr, MBUS_HOSTNAME_LENGTH); + mbus->host_port = host_port; + mbus->flags = flags; + mbus->sd = + mbus_sock_create_client(mbus->host_addr, mbus->host_port, 0); + return (mbus->sd == -1) ? -1 : 0; +} + +/* + * Reconnect to mbusd server + * + * Returns: 0 if successfully reconnected; + * -1 in case of error. + */ +int +mbus_reconnect +( + mbus_struct *mbus /* Pointer to MBUS structure */ +) +{ + MBUS_CHECK_INIT(mbus); + if (mbus->sd < 0) + return -1; /* not connected yet */ + close(mbus->sd); + mbus->sd = + mbus_sock_create_client(mbus->host_addr, mbus->host_port, 0); + return (mbus->sd == -1) ? -1 : 0; +} + +/* + * Disconnect from mbusd server + * + * Returns: 0 if connection successfully closed; + * -1 in case of error. + */ +int +mbus_close +( + mbus_struct *mbus /* Pointer to MBUS structure */ +) +{ + MBUS_CHECK_INIT(mbus); + if (mbus->sd >= 0) + close(mbus->sd); + mbus->sd = -1; + return 0; +} + +int mbus_free(mbus_struct *mbus) +{ + MBUS_CHECK_INIT(mbus); + if (mbus->flags & MBUS_FL_FREE_ON_EXIT) + free((void *)mbus); + return 0; +} + +/* + * Get last request exception code + * + * Returns: Exception code (0-255). + */ +mbus_ubyte +mbus_excode +( + mbus_struct *mbus /* Pointer to MBUS structure */ +) +{ + MBUS_CHECK_INIT(mbus); + return mbus->ex_code; +} + +/* + * Get connection status code + * + * Returns: -1 if structure is not initialized; + * 0 if connection is not established; + * 1 if successfully connected. + */ +int +mbus_connected +( + mbus_struct *mbus /* Pointer to MBUS structure */ +) +{ + MBUS_CHECK_INIT(mbus); + return (mbus->sd >= 0) ? 1 : 0; +} diff --git a/src/bin/calaos_server/IO/libmbus/mbus.h b/src/bin/calaos_server/IO/libmbus/mbus.h new file mode 100644 index 00000000..57ef05cb --- /dev/null +++ b/src/bin/calaos_server/IO/libmbus/mbus.h @@ -0,0 +1,133 @@ +/* + * mbus.h - general header file for mbus library + * + * Copyright (c) 2003, Victor Antonovich (avmlink@vlink.ru) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id: mbus.h,v 1.1.1.1 2003/09/16 08:33:28 kapyar Exp $ + */ + +#ifndef _MBUS_H +#define _MBUS_H + +#include "mbus_conf.h" + +#define LIBMBUS_VERSION "0.1.1" + +#ifdef __cplusplus +extern "C" +{ +#endif + +#ifdef LIBMBUS + +#ifndef DEBUG +/* Uncommenting this line forces debug output */ +/* #define DEBUG */ +#endif + +#ifdef DEBUG +#define DBG(a, b, c) fprintf(stderr, \ + "libmbus: " c " (file %s, line %d)\n", a, b) +#else +#define DBG(a, b, c) do {} while (0) /* do nothing */ +#endif + +#endif + +/* + * Macros for access header OpenMODBUS/TCP packet + * p - pointer to the packet, + * d - displacement in the header + */ +#define MBUS_HDR(p, d) (*(p + d)) + +/* + * OpenMODBUS/TCP packet structure + */ +#define MBUS_TRANS_ID_H 0 /* transaction ID high byte */ +#define MBUS_TRANS_ID_L 1 /* transaction ID low byte */ +#define MBUS_PROTO_ID_H 2 /* protocol ID high byte */ +#define MBUS_PROTO_ID_L 3 /* protocol ID low byte */ +#define MBUS_LENGTH_H 4 /* length field high byte */ +#define MBUS_LENGTH_L 5 /* length field low byte */ +#define MBUS_UNIT_ID 6 /* unit identifier */ +#define MBUS_FCODE 7 /* function code */ +#define MBUS_DATA 8 /* MODBUS data */ +#define MBUS_HDR_LEN 6 /* OpenMODBUS/TCP header length */ +#define MBUS_DATA_LEN 254 /* OpenMODBUS/TCP data length */ + +/* flag values */ +#define MBUS_FL_FREE_ON_EXIT 0x01 /* free structure on exit */ +#define MBUS_FL_IS_INITIALIZED 0x1eac /* is structure initialized */ + +typedef struct mbus_t +{ + int sd; /* link socket descriptor */ + char host_addr[MBUS_HOSTNAME_LENGTH + 1]; /* mbusd server hostname */ + mbus_uword host_port; /* mbusd server IP port */ + mbus_uword host_flags; /* host connection flags */ + int timeout; /* socket timeout value, seconds */ + int flags; /* internal flags */ + int is_initialized; /* initialization flag */ + mbus_ubyte ex_code; /* last query exception code */ + mbus_ubyte buf[MBUS_HDR_LEN + MBUS_DATA_LEN]; +} mbus_struct; + +char *mbus_version(mbus_struct *mbus); +mbus_struct *mbus_init(mbus_struct *mbus); +int mbus_connect(mbus_struct *mbus, const char *host_addr, + mbus_uword host_port, mbus_uword flags); +int mbus_reconnect(mbus_struct *mbus); +int mbus_close(mbus_struct *mbus); +mbus_ubyte mbus_excode(mbus_struct *mbus); +int mbus_connected(mbus_struct *mbus); +int mbus_free(mbus_struct *mbus); + +int mbus_cmd_read_coil_status(mbus_struct *mbus, mbus_ubyte slave_addr, + mbus_uword coils_addr, mbus_uword coils_num, mbus_ubyte *coils_data); +int mbus_cmd_read_holding_registers(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_uword start_addr, + mbus_uword points_num, mbus_uword *data); +int mbus_cmd_force_single_coil(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_uword coil_addr, mbus_uword data); +int mbus_cmd_preset_single_register(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_uword register_addr, + mbus_uword preset_data); +int mbus_cmd_diagnostics(mbus_struct *mbus, + mbus_ubyte address, mbus_uword subfunction, mbus_uword *data); +int mbus_cmd_force_multiple_coils(mbus_struct *mbus, mbus_ubyte slave_addr, + mbus_uword coils_addr, mbus_uword coils_num, mbus_ubyte *coils_data); +int mbus_cmd_report_slave_id(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_ubyte *data_count, mbus_ubyte *slave_data); +int mbus_cmd_preset_multiple_registers(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_uword start_addr, + mbus_uword points_num, mbus_uword *data); + +#ifdef __cplusplus +} +#endif + +#endif /* _MBUS_H */ diff --git a/src/bin/calaos_server/IO/libmbus/mbus_cmd.c b/src/bin/calaos_server/IO/libmbus/mbus_cmd.c new file mode 100644 index 00000000..1977b201 --- /dev/null +++ b/src/bin/calaos_server/IO/libmbus/mbus_cmd.c @@ -0,0 +1,529 @@ +/* + * mbus_cmd.c - MODBUS commands routines + * + * Copyright (c) 2003, Victor Antonovich (avmlink@vlink.ru) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id: mbus_cmd.c,v 1.1.1.1 2003/09/16 08:33:33 kapyar Exp $ + */ + +#include "mbus.h" + +#define MBUS_BYTE_WR(p, b) \ + (*(p++) = (mbus_ubyte)(b)) +#define MBUS_BYTE_RD(p) \ + ((mbus_ubyte)*(p++)) +#define MBUS_WORD_WR(p, w) \ + do \ + { MBUS_BYTE_WR(p, ((w) >> 8) & 0xff); \ + MBUS_BYTE_WR(p, ((w) & 0xff)); } \ + while (0) +#define MBUS_WORD_RD(p, w) \ + do \ + { w = ((mbus_uword)*(p++) << 8) & 0xff00; \ + w |= *(p++) & 0xff; } \ + while (0) + +#define MBUS_CHECK_ADDR(a, m) \ + if ((m && !(a)) || (a) > MBUS_ADDR_MAX) return -1 + +#define MBUS_FC_READCOILSTATUS 1 +#define MBUS_FC_READINPUTSTATUS 2 +#define MBUS_FC_READHOLDINGREGISTERS 3 +#define MBUS_FC_READINPUTREGISTERS 4 +#define MBUS_FC_FORCESINGLECOIL 5 +#define MBUS_FC_PRESETSINGLEREGISTER 6 +#define MBUS_FC_READEXCEPTIONSTATUS 7 +#define MBUS_FC_DIAGNOSTICS 8 +#define MBUS_FC_PROGRAM484 9 +#define MBUS_FC_POLL484 10 +#define MBUS_FC_FETCHCOMMEVENTCTR 11 +#define MBUS_FC_FETCHCOMMEVENTLOG 12 +#define MBUS_FC_PROGRAMCONTROLLER 13 +#define MBUS_FC_POLLCONTROLLER 14 +#define MBUS_FC_FORCEMULTIPLECOILS 15 +#define MBUS_FC_PRESETMULTIPLEREGISTERS 16 +#define MBUS_FC_REPORTSLAVEID 17 + +extern int mbus_rqst(mbus_struct *mbus, mbus_ubyte len); +extern void dump(mbus_ubyte *buf, mbus_ubyte len); + +/* internal functions prototypes */ +int mbus_cmd_check_response(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_ubyte funct_code); +int mbus_cmd_nodata(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_ubyte funct_code); +int mbus_cmd_addr_wdata(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_ubyte funct_code, + mbus_uword addr, mbus_uword data); +int mbus_cmd_addr_mdata(mbus_struct *mbus, + mbus_ubyte slave_addr, mbus_ubyte funct_code, + mbus_uword addr, mbus_ubyte *data, + mbus_ubyte data_size, mbus_word data_count); + +/* + * Check MODBUS response for errors and exception + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_check_response +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (1-247) */ + mbus_ubyte funct_code /* Function code (1-255) */ +) +{ + mbus_ubyte resp_fc; + mbus_ubyte *bufptr = mbus->buf + MBUS_HDR_LEN; + if (MBUS_BYTE_RD(bufptr) != slave_addr) + return -1; /* error, returning */ + if ((resp_fc = + MBUS_BYTE_RD(bufptr)) != funct_code) + { /* checking for exception */ + if (resp_fc == (funct_code | 0x80)) + { /* report about exception */ + mbus->ex_code = MBUS_BYTE_RD(bufptr); + return 1; + } + else return -1; /* response is incorrect */ + }; + mbus->ex_code = 0; + return 0; +} + +/* + * Make OpenMODBUS request witout data field + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_nodata +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_ubyte funct_code /* Function code (1-255) */ +) +{ + mbus_ubyte *bufptr = mbus->buf + MBUS_HDR_LEN; + + /* make body request */ + MBUS_BYTE_WR(bufptr, slave_addr); + MBUS_BYTE_WR(bufptr, funct_code); + + /* send request to the server and receive response */ + return (mbus_rqst(mbus, 2) < 0) ? + -1 : mbus_cmd_check_response(mbus, slave_addr, funct_code); +} + +/* + * Make OpenMODBUS request with address and one word data + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_addr_wdata +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_ubyte funct_code, /* Function code (1-255) */ + mbus_uword addr, /* Data address (0-65535) */ + mbus_uword data /* Query data (0-65535) */ +) +{ + mbus_ubyte *bufptr = mbus->buf + MBUS_HDR_LEN; + + /* make body request */ + MBUS_BYTE_WR(bufptr, slave_addr); + MBUS_BYTE_WR(bufptr, funct_code); + MBUS_WORD_WR(bufptr, addr); + MBUS_WORD_WR(bufptr, data); + + /* send request to the server and receive response */ + return (mbus_rqst(mbus, 6) < 0) ? + -1 : mbus_cmd_check_response(mbus, slave_addr, funct_code); +} + +/* + * Make OpenMODBUS request with address and multiple word data + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_addr_mdata +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_ubyte funct_code, /* Function code (1-255) */ + mbus_uword addr, /* Data address (0-65535) */ + mbus_ubyte *data, /* Pointer to the query data */ + mbus_ubyte data_size, /* 0 for coils, non-zero for registers */ + mbus_word data_count /* Number of data values */ +) +{ + mbus_ubyte byte_count, counter; + mbus_ubyte *bufptr = mbus->buf + MBUS_HDR_LEN; + mbus_uword word_buf; + + /* make request body */ + MBUS_BYTE_WR(bufptr, slave_addr); + MBUS_BYTE_WR(bufptr, funct_code); + MBUS_WORD_WR(bufptr, addr); + MBUS_WORD_WR(bufptr, data_count); + if (data_size) + /* each data value is 16 bit length */ + byte_count = (mbus_ubyte)((data_count * 2) & 0xff); + else + /* each byte consist from max. eigth coils */ + byte_count = (mbus_ubyte)((data_count + 7) >> 3); + MBUS_BYTE_WR(bufptr, byte_count); + /* copy data to request */ + counter = byte_count; + if (data_size) + { /* 16-bit wide data */ + counter >>= 1; + while (counter--) + { /* copy data to buffer */ + word_buf = *((mbus_uword *)data); + MBUS_WORD_WR(bufptr, word_buf); + data += 2; + } + } + else + /* 8-bit wide data */ + while (counter--) + MBUS_BYTE_WR(bufptr, *data++); + + /* send request to the server and receive response */ + return (mbus_rqst(mbus, 7 + byte_count) < 0) ? + -1 : mbus_cmd_check_response(mbus, slave_addr, funct_code); +} + +/* + * MODBUS command - Function Code 01 (Read Coil Status) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_read_coil_status +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (1-247) */ + mbus_uword coils_addr, /* Coils address (0-65535) */ + mbus_uword coils_num, /* Number of coils to read (0-65535) */ + mbus_ubyte *coils_data /* Pointer to readed data buffer */ +) +{ + int rc; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA, byte_count; + + MBUS_CHECK_ADDR(slave_addr, 1); + /* make request */ + if ((rc = mbus_cmd_addr_wdata(mbus, slave_addr, + MBUS_FC_READCOILSTATUS, + coils_addr, coils_num)) != 0) + return rc; + + /* take bytecount */ + byte_count = MBUS_BYTE_RD(bufptr); + if (!byte_count) + return -1; /* invalid value of bytecount */ + /* copy received data */ + while (byte_count--) + MBUS_BYTE_WR(coils_data, *bufptr++); + return 0; +} + +/* + * MODBUS command - Function Code 03 (Read Holding Registers) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_read_holding_registers +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (1-247) */ + mbus_uword start_addr, /* Starting register address (0-65535) */ + mbus_uword points_num, /* Quantity of registers to read (1-65535) */ + mbus_uword *data /* Pointer to readed data buffer */ +) +{ + int rc; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA, data_count; + mbus_uword word_buf; + + MBUS_CHECK_ADDR(slave_addr, 1); + /* make request */ + if ((rc = mbus_cmd_addr_wdata(mbus, slave_addr, + MBUS_FC_READHOLDINGREGISTERS, + start_addr, points_num)) != 0) + return rc; + + /* take bytecount divided by 2 */ + data_count = MBUS_BYTE_RD(bufptr) / 2; + if (!data_count) + return -1; /* invalid value of bytecount */ + /* copy received data */ + while (data_count--) + { + MBUS_WORD_RD(bufptr, word_buf); + *data++ = word_buf; + } + return 0; +} + +/* + * MODBUS command - Function Code 05 (Force Single Coil) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_force_single_coil +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_uword coil_addr, /* Coil address (0-65535) */ + mbus_uword data /* Force data */ +) +{ + int rc; + mbus_uword resp_data; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA; + + MBUS_CHECK_ADDR(slave_addr, 0); + /* make request */ + if((rc = mbus_cmd_addr_wdata(mbus, slave_addr, + MBUS_FC_FORCESINGLECOIL, + coil_addr, data)) != 0) + return rc; + + /* check response coil address */ + MBUS_WORD_RD(bufptr, resp_data); + if (resp_data!= coil_addr) + return -1; /* coil_address is incorrect */ + /* check response data */ + MBUS_WORD_RD(bufptr, resp_data); + return (resp_data == data) ? 0 : -1; +} + +/* + * MODBUS command - Function Code 06 (Preset Single Register) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_preset_single_register +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_uword register_addr, /* Starting register address (0-65535) */ + mbus_uword preset_data /* Register preset data (0-65535) */ +) +{ + int rc; + mbus_uword resp_data; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA; + + MBUS_CHECK_ADDR(slave_addr, 0); + /* make request */ + if((rc = mbus_cmd_addr_wdata(mbus, slave_addr, + MBUS_FC_PRESETSINGLEREGISTER, + register_addr, preset_data)) != 0) + return rc; + + /* check response register address */ + MBUS_WORD_RD(bufptr, resp_data); + if (resp_data!= register_addr) + return -1; /* register address is incorrect */ + /* check response data */ + MBUS_WORD_RD(bufptr, resp_data); + return (resp_data == preset_data) ? 0 : -1; +} + +/* + * MODBUS command - Function Code 08 (Diagnostics) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_diagnostics +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (1-247) */ + mbus_uword subfunction, /* Subfunction code (0-65535) */ + mbus_uword *data /* Pointer to the query data + (replaced by response data in case of success) */ +) +{ + int rc; + mbus_uword resp_subfunction; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA; + + MBUS_CHECK_ADDR(slave_addr, 1); + /* make request */ + if((rc = mbus_cmd_addr_wdata(mbus, slave_addr, + MBUS_FC_DIAGNOSTICS, + subfunction, *data)) != 0) + return rc; + + /* check response subfunction code */ + MBUS_WORD_RD(bufptr, resp_subfunction); + if (resp_subfunction != subfunction) + return -1; /* subfunction code is incorrect */ + /* read response data */ + MBUS_WORD_RD(bufptr, *data); + return 0; +} + +/* + * MODBUS command - Function Code 15 (Force Multiple Coils) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_force_multiple_coils +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_uword coils_addr, /* Coils address (0-65535) */ + mbus_uword coils_num, /* Number of coils to force (0-65535) */ + mbus_ubyte *coils_data /* Pointer to coils force data */ +) +{ + int rc; + mbus_uword resp_data; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA; + + MBUS_CHECK_ADDR(slave_addr, 0); + /* make request */ + if((rc = mbus_cmd_addr_mdata(mbus, + slave_addr, MBUS_FC_FORCEMULTIPLECOILS, + coils_addr, coils_data, + 0, coils_num)) != 0) + return rc; + + /* check response coil address */ + MBUS_WORD_RD(bufptr, resp_data); + if (resp_data!= coils_addr) + return -1; /* coil_address is incorrect */ + /* check response quantity */ + MBUS_WORD_RD(bufptr, resp_data); + return (resp_data == coils_num) ? 0 : -1; +} + +/* + * MODBUS command - Function Code 16 (Preset Multiple Registers) + * + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_preset_multiple_registers +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (0-247) */ + mbus_uword start_addr, /* Registers starting address (0-65535) */ + mbus_uword points_num, /* Number of registers to preset (0-65535) */ + mbus_uword *data /* Pointer to registers preset data */ +) +{ + int rc; + mbus_uword resp_data; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA; + + MBUS_CHECK_ADDR(slave_addr, 0); + /* make request */ + if((rc = mbus_cmd_addr_mdata(mbus, slave_addr, + MBUS_FC_PRESETMULTIPLEREGISTERS, + start_addr, (mbus_ubyte *)data, + 1, points_num)) != 0) + return rc; + + /* check response registers starting address */ + MBUS_WORD_RD(bufptr, resp_data); + if (resp_data != start_addr) + return -1; /* registers address is incorrect */ + /* check response quantity */ + MBUS_WORD_RD(bufptr, resp_data); + return (resp_data == points_num) ? 0 : -1; +} + +/* + * MODBUS command - Function Code 17 (Report Slave ID) + * Returns: 1 if exception code returned, + * 0 if response received successfully, + * -1 in case of error. + */ +int +mbus_cmd_report_slave_id +( + mbus_struct *mbus, /* Pointer to MBUS structure */ + mbus_ubyte slave_addr, /* MODBUS device address (1-247) */ + mbus_ubyte *data_count, /* Readed slave ID data count */ + mbus_ubyte *slave_data /* Pointer to readed slave ID data buffer */ +) +{ + int rc; + mbus_ubyte byte_count; + mbus_ubyte *bufptr = mbus->buf + MBUS_DATA; + + MBUS_CHECK_ADDR(slave_addr, 1); + /* make request */ + if((rc = mbus_cmd_nodata(mbus, slave_addr, + MBUS_FC_REPORTSLAVEID)) != 0) + return rc; + + /* take bytecount */ + byte_count = MBUS_BYTE_RD(bufptr); + *data_count = byte_count; + if (!byte_count) + return -1; /* invalid value of bytecount */ + /* copy received data */ + while (byte_count--) + MBUS_BYTE_WR(slave_data, *bufptr++); + return 0; +} diff --git a/src/bin/calaos_server/IO/libmbus/mbus_conf.h b/src/bin/calaos_server/IO/libmbus/mbus_conf.h new file mode 100644 index 00000000..287b190a --- /dev/null +++ b/src/bin/calaos_server/IO/libmbus/mbus_conf.h @@ -0,0 +1,71 @@ +/* + * mbus_conf.h - configuration header file for mbus library + * + * Copyright (c) 2003, Victor Antonovich (avmlink@vlink.ru) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id: mbus_conf.h,v 1.1.1.1 2003/09/16 08:33:33 kapyar Exp $ + */ + +#ifndef _MBUS_CONF_H +#define _MBUS_CONF_H + +#include + +#ifdef LIBMBUS + +#include /* connect(), setsockopt(), socket() */ +#include +#include /* inet_addr() */ +#include /* struct timeval */ +#include /* gethostbyname() */ +#include +#include +#include /* read(), write(), select(), close() */ +#include /* bzero(), strncpy() */ +#include /* free(), malloc() */ +#include /* fprintf() */ + +#endif + +/* + * General types + */ +typedef unsigned long mbus_ulong; +typedef long mbus_long; +typedef unsigned short mbus_uword; +typedef short mbus_word; +typedef unsigned char mbus_ubyte; + +/* Default socket timeout (in seconds) */ +#define MBUS_SOCK_TIMEOUT 2 + +/* Host name maximum length */ +#define MBUS_HOSTNAME_LENGTH 255 + +/* Maximum MODBUS address value */ +#define MBUS_ADDR_MAX 247 + +#endif /* _MBUS_CONF_H */ diff --git a/src/bin/calaos_server/IO/libmbus/mbus_rqst.c b/src/bin/calaos_server/IO/libmbus/mbus_rqst.c new file mode 100644 index 00000000..2ff1b107 --- /dev/null +++ b/src/bin/calaos_server/IO/libmbus/mbus_rqst.c @@ -0,0 +1,90 @@ +/* + * mbus_rqst.c - request / response routines + * + * Copyright (c) 2003, Victor Antonovich (avmlink@vlink.ru) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id: mbus_rqst.c,v 1.1.1.1 2003/09/16 08:33:33 kapyar Exp $ + */ + +#include "mbus.h" + +extern int mbus_sock_read(int sd, mbus_ubyte *buf, int len, int timeout); +extern int mbus_sock_write(int sd, mbus_ubyte *buf, int len, int timeout); + +/* prototypes */ +int mbus_rqst(mbus_struct *mbus, mbus_ubyte len); + +/* + * Description: + * Send request to mbusd server and receive response + * Parameters: + * mbus - pointer to mbus structure (must be initialized first!); + * len - request length + * Return: + * 0 if response successfully received; + * -1 in case of error. + */ +int +mbus_rqst(mbus_struct *mbus, mbus_ubyte len) +{ + /* header fields initialization */ + memset((void *)mbus->buf, 0, MBUS_HDR_LEN); + MBUS_HDR(mbus->buf, MBUS_LENGTH_L) = len; + + /* send request to the server */ + if (mbus_sock_write(mbus->sd, mbus->buf, + MBUS_HDR_LEN + len, + mbus->timeout) < (MBUS_HDR_LEN + len)) + { + DBG(__FILE__, __LINE__, + "mbus_sock_write(): can't write request"); + return -1; + } + + /* receive response header from server */ + if (mbus_sock_read(mbus->sd, mbus->buf, + MBUS_HDR_LEN, + mbus->timeout) < MBUS_HDR_LEN) + { + DBG(__FILE__, __LINE__, + "mbus_sock_read(): can't read response header"); + return -1; + } + + /* receive response body from server */ + if (mbus_sock_read(mbus->sd, + mbus->buf + MBUS_HDR_LEN, + MBUS_HDR(mbus->buf, MBUS_LENGTH_L), + mbus->timeout) < MBUS_HDR(mbus->buf, MBUS_LENGTH_L)) + { + DBG(__FILE__, __LINE__, + "mbus_sock_read(): can't read response body"); + return -1; + } + + /* response received successfully */ + return 0; +} diff --git a/src/bin/calaos_server/IO/libmbus/mbus_sock.c b/src/bin/calaos_server/IO/libmbus/mbus_sock.c new file mode 100644 index 00000000..f11ecd49 --- /dev/null +++ b/src/bin/calaos_server/IO/libmbus/mbus_sock.c @@ -0,0 +1,278 @@ +/* + * mbus_sock.c - socket manipulation routines + * + * Copyright (c) 2003, Victor Antonovich (avmlink@vlink.ru) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id: mbus_sock.c,v 1.1.1.1 2003/09/16 08:33:37 kapyar Exp $ + */ + +#include "mbus.h" + +int mbus_sock_create(int blkmode); +int mbus_sock_create_client(const char *server_addr, + mbus_uword server_port, int blkmode); +int mbus_sock_select(int sd, int timeout, int wrmode); +int mbus_sock_read(int sd, mbus_ubyte *buf, int len, int timeout); +int mbus_sock_write(int sd, mbus_ubyte *buf, int len, int timeout); + +/* + * Description: + * Create new IP socket + * Parameters: + * blkmode - socket mode (nonblocking if non-zero); + * Return: + * Socket descriptor, or -1 in case of error. + */ +int +mbus_sock_create(int blkmode) +{ + int sock, flags; + + /* create socket */ + if ((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) + { + DBG(__FILE__, __LINE__, + "socket(): unable to create socket"); + return -1; + } + + /* set socket to desired blocking mode */ + if ((flags = fcntl(sock, F_GETFL)) == -1) + { + DBG(__FILE__, __LINE__, + "fcntl(): unable to get flags"); + close(sock); + return -1; + } + flags = blkmode ? (flags | O_NONBLOCK) : (flags & ~O_NONBLOCK); + if ((flags = fcntl(sock, F_SETFL, flags)) == -1) + { + DBG(__FILE__, __LINE__, + "fcntl(): unable to set flags"); + close(sock); + return -1; + } + /* all OK, return socket descriptor */ + return sock; +} + +/* + * Description: + * Create new IP client socket + * Parameters: + * server_port - IP port (0-65535) + * server_addr - IP address (DNS or canonical form) + * blkmode - socket mode (nonblocking if non-zero);) + * Return: + * Socket descriptor, or -1 in case of error. + */ +int +mbus_sock_create_client(const char *server_addr, + mbus_uword server_port, int blkmode) +{ + struct sockaddr_in client_sockaddr; + struct hostent *server_host; + static struct in_addr srvaddr; + int sock_opt = 1; + int client_s; + + /* create socket in desired blocking mode */ + client_s = mbus_sock_create(blkmode); + if (client_s < 0) return client_s; + +#ifndef NO_COE + /* set to close socket on exec() */ + if (fcntl(client_s, F_SETFD, 1) < 0) + { + DBG(__FILE__, __LINE__, + "fcntl(): can't set close-on-exec flag"); + close(client_s); + return -1; + } +#endif + + /* set reuse socket address flag */ + if ((setsockopt(client_s, SOL_SOCKET, SO_REUSEADDR, + (void *)&sock_opt, sizeof(sock_opt))) < 0) + { + DBG(__FILE__, __LINE__, + "setsockopt(): can't set SO_REUSEADDR flag"); + close(client_s); + return -1; + } + + memset(&client_sockaddr, 0, sizeof(client_sockaddr)); + + client_sockaddr.sin_family = AF_INET; + client_sockaddr.sin_port = htons(server_port); + + srvaddr.s_addr = inet_addr(server_addr); + if (srvaddr.s_addr == INADDR_NONE) + { + server_host = gethostbyname(server_addr); + if (server_host != NULL) + { + if ((unsigned)server_host->h_length > + sizeof(client_sockaddr.sin_addr) || + server_host->h_length < 0) + { + DBG(__FILE__, __LINE__, + "gethostbyname(): illegal address"); + close(client_s); + return -1; + } + memcpy(&client_sockaddr.sin_addr, + server_host->h_addr_list[0], + sizeof(client_sockaddr.sin_addr)); + } + else + { + DBG(__FILE__, __LINE__, + "gethostbyname(): can't understand specified address"); + close(client_s); + return -1; + } + } + else + memcpy(&client_sockaddr.sin_addr, + &srvaddr.s_addr, sizeof(srvaddr.s_addr)); + + /* let's connect */ + if (connect(client_s, + (struct sockaddr *)&client_sockaddr, + sizeof(client_sockaddr)) < 0) + { + DBG(__FILE__, __LINE__, \ + "connect(): unable to connect to specified address"); + close(client_s); + return -1; + } + /* successfully connected */ + return client_s; +} + +/* + * Description: + * Wait for socket descriptor to be readable + * Parameters: + * sd - socket descriptor; + * timeout - the timeout in seconds; + * wrmode - if is non-zero, checks for sd being writable instead + * Return: + * 1 if sd is accessible, 0 if timeout and -1 if error in select(). + */ +int +mbus_sock_select(int sd, int timeout, int wrmode) +{ + fd_set fds, exceptfds; + struct timeval t_out; + + FD_ZERO(&fds); + FD_SET(sd, &fds); + FD_ZERO(&exceptfds); + FD_SET(sd, &exceptfds); + t_out.tv_sec = timeout; + t_out.tv_usec = 0; + return select(sd + 1, + wrmode ? NULL : &fds, wrmode ? &fds : NULL, + &exceptfds, &t_out); +} + +/* + * Description: + * Read data from socket to buffer with timeout + * Parameters: + * sd - socket descriptor; + * len - number of bytes to read; + * buf - pointer to the data buffer; + * timeout - the timeout in seconds + * Return: + * Number of successfully readed bytes or + * -1 if error caused. + */ +int +mbus_sock_read(int sd, mbus_ubyte *buf, int len, int timeout) +{ + int res = 0, rd_len = 0; + while (rd_len < len) + { + do + { + if (timeout) + { + do + { + res = mbus_sock_select(sd, timeout, 0); + } while (res == -1 && errno == EINTR); + if (res <= 0) break; + } + /*res = read(sd, buf, len - rd_len);*/ + res = recv(sd, buf, len - rd_len, MSG_NOSIGNAL); + } while (res == -1 && errno == EINTR); + if (res <= 0) break; + buf += res; + rd_len += res; + } + return (res >= 0) ? rd_len : -1; +} + +/* + * Description: + * Write data from buffer to socket with timeout + * Parameters: + * sd - socket descriptor; + * len - number of bytes to read; + * buf - pointer to the data buffer; + * timeout - the timeout in seconds + * Return: + * Number of successfully written bytes or + * -1 if error caused. + */ +int +mbus_sock_write(int sd, mbus_ubyte *buf, int len, int timeout) +{ + int res = 0, wr_len = 0; + while (wr_len < len) + { + do + { + if (timeout) + { + do + { + res = mbus_sock_select(sd, timeout, 1); + } while (res == -1 && errno == EINTR); + if (res <= 0) break; + } + /*res = write(sd, buf, len - wr_len);*/ + res = send(sd, buf, len - wr_len, MSG_NOSIGNAL); + } while (res == -1 && errno == EINTR); + if (res <= 0) break; + buf += res; + wr_len += res; + } + return (res >= 0) ? wr_len : -1; +} diff --git a/src/bin/calaos_server/IO/sunset.c b/src/bin/calaos_server/IO/sunset.c new file mode 100644 index 00000000..1d44def3 --- /dev/null +++ b/src/bin/calaos_server/IO/sunset.c @@ -0,0 +1,529 @@ + +/* + +SUNRISET.C - computes Sun rise/set times, start/end of twilight, and + the length of the day at any date and latitude + +Written as DAYLEN.C, 1989-08-16 + +Modified to SUNRISET.C, 1992-12-01 + +(c) Paul Schlyter, 1989, 1992 + +Released to the public domain by Paul Schlyter, December 1992 + +Portions Modified to SUNDOWN.NLM by Cliff Haas 98-05-22 + +*/ + +#include +#include +#include +#include +#include + +/* A macro to compute the number of days elapsed since 2000 Jan 0.0 */ +/* (which is equal to 1999 Dec 31, 0h UT) */ + +#define days_since_2000_Jan_0(y,m,d) \ + (367L*(y)-((7*((y)+(((m)+9)/12)))/4)+((275*(m))/9)+(d)-730530L) + +/* Some conversion factors between radians and degrees */ + +#ifndef PI + #define PI 3.1415926535897932384 +#endif + +#define RADEG ( 180.0 / PI ) +#define DEGRAD ( PI / 180.0 ) + +/* The trigonometric functions in degrees */ + +#define sind(x) sin((x)*DEGRAD) +#define cosd(x) cos((x)*DEGRAD) +#define tand(x) tan((x)*DEGRAD) + +#define atand(x) (RADEG*atan(x)) +#define asind(x) (RADEG*asin(x)) +#define acosd(x) (RADEG*acos(x)) +#define atan2d(y,x) (RADEG*atan2(y,x)) + +#define hours(x) (((int)(x))%24) +#define minutes(x) (((int)(((x)-hours(x))*60))%60) + +/* Following are some macros around the "workhorse" function __daylen__ */ +/* They mainly fill in the desired values for the reference altitude */ +/* below the horizon, and also selects whether this altitude should */ +/* refer to the Sun's center or its upper limb. */ + + +/* This macro computes the length of the day, from sunrise to sunset. */ +/* Sunrise/set is considered to occur when the Sun's upper limb is */ +/* 35 arc minutes below the horizon (this accounts for the refraction */ +/* of the Earth's atmosphere). */ +#define day_length(year,month,day,lon,lat) \ + __daylen__( year, month, day, lon, lat, -35.0/60.0, 1 ) + +/* This macro computes the length of the day, including civil twilight. */ +/* Civil twilight starts/ends when the Sun's center is 6 degrees below */ +/* the horizon. */ +#define day_civil_twilight_length(year,month,day,lon,lat) \ + __daylen__( year, month, day, lon, lat, -6.0, 0 ) + +/* This macro computes the length of the day, incl. nautical twilight. */ +/* Nautical twilight starts/ends when the Sun's center is 12 degrees */ +/* below the horizon. */ +#define day_nautical_twilight_length(year,month,day,lon,lat) \ + __daylen__( year, month, day, lon, lat, -12.0, 0 ) + +/* This macro computes the length of the day, incl. astronomical twilight. +*/ +/* Astronomical twilight starts/ends when the Sun's center is 18 degrees +*/ +/* below the horizon. +*/ +#define day_astronomical_twilight_length(year,month,day,lon,lat) \ + __daylen__( year, month, day, lon, lat, -18.0, 0 ) + + +/* This macro computes times for sunrise/sunset. */ +/* Sunrise/set is considered to occur when the Sun's upper limb is */ +/* 35 arc minutes below the horizon (this accounts for the refraction */ +/* of the Earth's atmosphere). */ +#define sun_rise_set(year,month,day,lon,lat,rise,set) \ + __sunriset__( year, month, day, lon, lat, -35.0/60.0, 1, rise, set ) + +/* This macro computes the start and end times of civil twilight. */ +/* Civil twilight starts/ends when the Sun's center is 6 degrees below */ +/* the horizon. */ +#define civil_twilight(year,month,day,lon,lat,start,end) \ + __sunriset__( year, month, day, lon, lat, -6.0, 0, start, end ) + +/* This macro computes the start and end times of nautical twilight. */ +/* Nautical twilight starts/ends when the Sun's center is 12 degrees */ +/* below the horizon. */ +#define nautical_twilight(year,month,day,lon,lat,start,end) \ + __sunriset__( year, month, day, lon, lat, -12.0, 0, start, end ) + +/* This macro computes the start and end times of astronomical twilight. +*/ +/* Astronomical twilight starts/ends when the Sun's center is 18 degrees +*/ +/* below the horizon. +*/ +#define astronomical_twilight(year,month,day,lon,lat,start,end) \ + __sunriset__( year, month, day, lon, lat, -18.0, 0, start, end ) + + +/* Function prototypes */ + +double __daylen__( int year, int month, int day, double lon, double lat, + double altit, int upper_limb ); + +int __sunriset__( int year, int month, int day, double lon, double lat, + double altit, int upper_limb, double *rise, double *set +); + +void sunpos( double d, double *lon, double *r ); + +void sun_RA_dec( double d, double *RA, double *dec, double *r ); + +double revolution( double x ); + +double rev180( double x ); + +double GMST0( double d ); + + + +/* A small test program */ +/* +void main(void) +{ + int year,month,day; + double lon, lat; + double daylen, civlen, nautlen, astrlen; + double rise, set, civ_start, civ_end, naut_start, naut_end, + astr_start, astr_end; + int rs, civ, naut, astr; + + printf( "Longitude (+ is east) and latitude (+ is north) : " ); + scanf( "%lf %lf", &lon, &lat ); + + for(;;) + { + printf( "Input date ( yyyy mm dd ) (ctrl-C exits): " ); + scanf( "%d %d %d", &year, &month, &day ); + + daylen = day_length(year,month,day,lon,lat); + civlen = day_civil_twilight_length(year,month,day,lon,lat); + nautlen = day_nautical_twilight_length(year,month,day,lon,lat); + astrlen = day_astronomical_twilight_length(year,month,day, + lon,lat); + + printf( "Day length: %5.2f hours\n", daylen ); + printf( "With civil twilight %5.2f hours\n", civlen ); + printf( "With nautical twilight %5.2f hours\n", nautlen ); + printf( "With astronomical twilight %5.2f hours\n", astrlen ); + printf( "Length of twilight: civil %5.2f hours\n", + (civlen-daylen)/2.0); + printf( " nautical %5.2f hours\n", + (nautlen-daylen)/2.0); + printf( " astronomical %5.2f hours\n", + (astrlen-daylen)/2.0); + + rs = sun_rise_set ( year, month, day, lon, lat, + &rise, &set ); + civ = civil_twilight ( year, month, day, lon, lat, + &civ_start, &civ_end ); + naut = nautical_twilight ( year, month, day, lon, lat, + &naut_start, &naut_end ); + astr = astronomical_twilight( year, month, day, lon, lat, + &astr_start, &astr_end ); + + printf( "Sun at south %5.2fh UT\n", (rise+set)/2.0 ); + + switch( rs ) + { + case 0: + printf( "Sun rises %5.2fh UT, sets %5.2fh UT\n", + rise, set ); + break; + case +1: + printf( "Sun above horizon\n" ); + break; + case -1: + printf( "Sun below horizon\n" ); + break; + } + + switch( civ ) + { + case 0: + printf( "Civil twilight starts %5.2fh, " + "ends %5.2fh UT\n", civ_start, civ_end ); + break; + case +1: + printf( "Never darker than civil twilight\n" ); + break; + case -1: + printf( "Never as bright as civil twilight\n" ); + break; + } + + switch( naut ) + { + case 0: + printf( "Nautical twilight starts %5.2fh, " + "ends %5.2fh UT\n", naut_start, naut_end ); + break; + case +1: + printf( "Never darker than nautical twilight\n" ); + break; + case -1: + printf( "Never as bright as nautical twilight\n" ); + break; + } + + switch( astr ) + { + case 0: + printf( "Astronomical twilight starts %5.2fh, " + "ends %5.2fh UT\n", astr_start, astr_end ); + break; + case +1: + printf( "Never darker than astronomical twilight\n" ); + break; + case -1: + printf( "Never as bright as astronomical twilight\n" ); + break; + } + + } +} +*/ + +/* The "workhorse" function for sun rise/set times */ + +int __sunriset__( int year, int month, int day, double lon, double lat, + double altit, int upper_limb, double *trise, double *tset +) +/***************************************************************************/ +/* Note: year,month,date = calendar date, 1801-2099 only. */ +/* Eastern longitude positive, Western longitude negative */ +/* Northern latitude positive, Southern latitude negative */ +/* The longitude value IS critical in this function! */ +/* altit = the altitude which the Sun should cross */ +/* Set to -35/60 degrees for rise/set, -6 degrees */ +/* for civil, -12 degrees for nautical and -18 */ +/* degrees for astronomical twilight. */ +/* upper_limb: non-zero -> upper limb, zero -> center */ +/* Set to non-zero (e.g. 1) when computing rise/set */ +/* times, and to zero when computing start/end of */ +/* twilight. */ +/* *rise = where to store the rise time */ +/* *set = where to store the set time */ +/* Both times are relative to the specified altitude, */ +/* and thus this function can be used to comupte */ +/* various twilight times, as well as rise/set times */ +/* Return value: 0 = sun rises/sets this day, times stored at */ +/* *trise and *tset. */ +/* +1 = sun above the specified "horizon" 24 hours. */ +/* *trise set to time when the sun is at south, */ +/* minus 12 hours while *tset is set to the south */ +/* time plus 12 hours. "Day" length = 24 hours */ +/* -1 = sun is below the specified "horizon" 24 hours */ +/* "Day" length = 0 hours, *trise and *tset are */ +/* both set to the time when the sun is at south. */ +/* */ +/**********************************************************************/ +{ + double d, /* Days since 2000 Jan 0.0 (negative before) */ + sr, /* Solar distance, astronomical units */ + sRA, /* Sun's Right Ascension */ + sdec, /* Sun's declination */ + sradius, /* Sun's apparent radius */ + t, /* Diurnal arc */ + tsouth, /* Time when Sun is at south */ + sidtime; /* Local sidereal time */ + + int rc = 0; /* Return cde from function - usually 0 */ + + /* Compute d of 12h local mean solar time */ + d = days_since_2000_Jan_0(year, month, day); +// printf("Days: %lf\n\n", d); + d = days_since_2000_Jan_0(year,month,day) + 0.5 - lon/360.0; + + /* Compute local sideral time of this moment */ + sidtime = revolution( GMST0(d) + 180.0 + lon ); + + /* Compute Sun's RA + Decl at this moment */ + sun_RA_dec( d, &sRA, &sdec, &sr ); + + /* Compute time when Sun is at south - in hours UT */ + tsouth = 12.0 - rev180(sidtime - sRA)/15.0; + + /* Compute the Sun's apparent radius, degrees */ + sradius = 0.2666 / sr; + + /* Do correction to upper limb, if necessary */ + if ( upper_limb ) + altit -= sradius; + + /* Compute the diurnal arc that the Sun traverses to reach */ + /* the specified altitide altit: */ + { + double cost; + cost = ( sind(altit) - sind(lat) * sind(sdec) ) / + ( cosd(lat) * cosd(sdec) ); + if ( cost >= 1.0 ) + rc = -1, t = 0.0; /* Sun always below altit */ + else if ( cost <= -1.0 ) + rc = +1, t = 12.0; /* Sun always above altit */ + else + t = acosd(cost)/15.0; /* The diurnal arc, hours */ + } + + /* Store rise and set times - in hours UT */ + *trise = tsouth - t; + *tset = tsouth + t; + + return rc; +} /* __sunriset__ */ + + + +/* The "workhorse" function */ + + +double __daylen__( int year, int month, int day, double lon, double lat, + double altit, int upper_limb ) +/**********************************************************************/ +/* Note: year,month,date = calendar date, 1801-2099 only. */ +/* Eastern longitude positive, Western longitude negative */ +/* Northern latitude positive, Southern latitude negative */ +/* The longitude value is not critical. Set it to the correct */ +/* longitude if you're picky, otherwise set to to, say, 0.0 */ +/* The latitude however IS critical - be sure to get it correct */ +/* altit = the altitude which the Sun should cross */ +/* Set to -35/60 degrees for rise/set, -6 degrees */ +/* for civil, -12 degrees for nautical and -18 */ +/* degrees for astronomical twilight. */ +/* upper_limb: non-zero -> upper limb, zero -> center */ +/* Set to non-zero (e.g. 1) when computing day length */ +/* and to zero when computing day+twilight length. */ +/**********************************************************************/ +{ + double d, /* Days since 2000 Jan 0.0 (negative before) */ + obl_ecl, /* Obliquity (inclination) of Earth's axis */ + sr, /* Solar distance, astronomical units */ + slon, /* True solar longitude */ + sin_sdecl, /* Sine of Sun's declination */ + cos_sdecl, /* Cosine of Sun's declination */ + sradius, /* Sun's apparent radius */ + t; /* Diurnal arc */ + + /* Compute d of 12h local mean solar time */ + d = days_since_2000_Jan_0(year,month,day) + 0.5 - lon/360.0; + + /* Compute obliquity of ecliptic (inclination of Earth's axis) */ + obl_ecl = 23.4393 - 3.563E-7 * d; + + /* Compute Sun's position */ + sunpos( d, &slon, &sr ); + +/*printf*/("Got: slon[%lf] sr[%lf] d[%lf]\n", slon, sr, d); + /* Compute sine and cosine of Sun's declination */ + sin_sdecl = sind(obl_ecl) * sind(slon); + cos_sdecl = sqrt( 1.0 - sin_sdecl * sin_sdecl ); + + /* Compute the Sun's apparent radius, degrees */ + sradius = 0.2666 / sr; + + /* Do correction to upper limb, if necessary */ + if ( upper_limb ) + altit -= sradius; + + /* Compute the diurnal arc that the Sun traverses to reach */ + /* the specified altitide altit: */ + { + double cost; + cost = ( sind(altit) - sind(lat) * sin_sdecl ) / + ( cosd(lat) * cos_sdecl ); +// printf("\n\nCost: %g", cost); + if ( cost >= 1.0 ) + t = 0.0; /* Sun always below altit +*/ + else if ( cost <= -1.0 ) + t = 24.0; /* Sun always above altit +*/ + else t = (2.0/15.0) * acosd(cost); /* The diurnal arc, hours +*/ + } + return t; +} /* __daylen__ */ + + +/* This function computes the Sun's position at any instant */ + +void sunpos( double d, double *lon, double *r ) +/******************************************************/ +/* Computes the Sun's ecliptic longitude and distance */ +/* at an instant given in d, number of days since */ +/* 2000 Jan 0.0. The Sun's ecliptic latitude is not */ +/* computed, since it's always very near 0. */ +/******************************************************/ +{ + double M, /* Mean anomaly of the Sun */ + w, /* Mean longitude of perihelion */ + /* Note: Sun's mean longitude = M + w */ + e, /* Eccentricity of Earth's orbit */ + E, /* Eccentric anomaly */ + x, y, /* x, y coordinates in orbit */ + v; /* True anomaly */ + + /* Compute mean elements */ + M = revolution( 356.0470 + 0.9856002585 * d ); + w = 282.9404 + 4.70935E-5 * d; + e = 0.016709 - 1.151E-9 * d; + + /* Compute true longitude and radius vector */ + E = M + e * RADEG * sind(M) * ( 1.0 + e * cosd(M) ); + x = cosd(E) - e; + y = sqrt( 1.0 - e*e ) * sind(E); + *r = sqrt( x*x + y*y ); /* Solar distance */ + v = atan2d( y, x ); /* True anomaly */ + *lon = v + w; /* True solar longitude */ + if ( *lon >= 360.0 ) + *lon -= 360.0; /* Make it 0..360 degrees */ +} + +void sun_RA_dec( double d, double *RA, double *dec, double *r ) +{ + double lon, obl_ecl, x, y, z; + + /* Compute Sun's ecliptical coordinates */ + sunpos( d, &lon, r ); + + /* Compute ecliptic rectangular coordinates (z=0) */ + x = *r * cosd(lon); + y = *r * sind(lon); + + /* Compute obliquity of ecliptic (inclination of Earth's axis) */ + obl_ecl = 23.4393 - 3.563E-7 * d; + + /* Convert to equatorial rectangular coordinates - x is uchanged */ + z = y * sind(obl_ecl); + y = y * cosd(obl_ecl); + + /* Convert to spherical coordinates */ + *RA = atan2d( y, x ); + *dec = atan2d( z, sqrt(x*x + y*y) ); + +} /* sun_RA_dec */ + + +/******************************************************************/ +/* This function reduces any angle to within the first revolution */ +/* by subtracting or adding even multiples of 360.0 until the */ +/* result is >= 0.0 and < 360.0 */ +/******************************************************************/ + +#define INV360 ( 1.0 / 360.0 ) + +double revolution( double x ) +/*****************************************/ +/* Reduce angle to within 0..360 degrees */ +/*****************************************/ +{ + return( x - 360.0 * floor( x * INV360 ) ); +} /* revolution */ + +double rev180( double x ) +/*********************************************/ +/* Reduce angle to within +180..+180 degrees */ +/*********************************************/ +{ + return( x - 360.0 * floor( x * INV360 + 0.5 ) ); +} /* revolution */ + + +/*******************************************************************/ +/* This function computes GMST0, the Greenwhich Mean Sidereal Time */ +/* at 0h UT (i.e. the sidereal time at the Greenwhich meridian at */ +/* 0h UT). GMST is then the sidereal time at Greenwich at any */ +/* time of the day. I've generelized GMST0 as well, and define it */ +/* as: GMST0 = GMST - UT -- this allows GMST0 to be computed at */ +/* other times than 0h UT as well. While this sounds somewhat */ +/* contradictory, it is very practical: instead of computing */ +/* GMST like: */ +/* */ +/* GMST = (GMST0) + UT * (366.2422/365.2422) */ +/* */ +/* where (GMST0) is the GMST last time UT was 0 hours, one simply */ +/* computes: */ +/* */ +/* GMST = GMST0 + UT */ +/* */ +/* where GMST0 is the GMST "at 0h UT" but at the current moment! */ +/* Defined in this way, GMST0 will increase with about 4 min a */ +/* day. It also happens that GMST0 (in degrees, 1 hr = 15 degr) */ +/* is equal to the Sun's mean longitude plus/minus 180 degrees! */ +/* (if we neglect aberration, which amounts to 20 seconds of arc */ +/* or 1.33 seconds of time) */ +/* */ +/*******************************************************************/ + +double GMST0( double d ) +{ + double sidtim0; + /* Sidtime at 0h UT = L (Sun's mean longitude) + 180.0 degr */ + /* L = M + w, as defined in sunpos(). Since I'm too lazy to */ + /* add these numbers, I'll let the C compiler do it for me. */ + /* Any decent C compiler will add the constants at compile */ + /* time, imposing no runtime or code overhead. */ + sidtim0 = revolution( ( 180.0 + 356.0470 + 282.9404 ) + + ( 0.9856002585 + 4.70935E-5 ) * d ); + return sidtim0; +} /* GMST0 */ + diff --git a/src/bin/calaos_server/IOBase.h b/src/bin/calaos_server/IOBase.h new file mode 100644 index 00000000..40173f5c --- /dev/null +++ b/src/bin/calaos_server/IOBase.h @@ -0,0 +1,72 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_IOBASE_H +#define S_IOBASE_H + +#include + +namespace Calaos +{ + +class IOBase +{ + private: + //we store all params here + Params param; + + bool auto_sc_mark; + + public: + IOBase(Params &p): param(p), auto_sc_mark(false) { /* nothing */ } + virtual ~IOBase() { /* nothing */ } + + virtual DATA_TYPE get_type() = 0; + + virtual bool get_value_bool() { return false; } + virtual map get_all_values_bool() { map m; return m; } + + virtual double get_value_double() { return 0.0; } + virtual map get_all_values_double() { map m; return m; } + + virtual std::string get_value_string() { return ""; } + virtual map get_all_values_string() { map m; return m; } + + virtual map query_param(string param) { map m; return m; } + + virtual void set_param(std::string opt, std::string val) + { param.Add(opt, val); } + virtual std::string get_param(std::string opt) + { return param[opt]; } + virtual Params &get_params() + { return param; } + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node) + { return false; } + + bool isAutoScenario() { return auto_sc_mark; } + void setAutoScenario(bool m) { auto_sc_mark = m; } +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/Axis.cpp b/src/bin/calaos_server/IPCam/Axis.cpp new file mode 100644 index 00000000..86c46320 --- /dev/null +++ b/src/bin/calaos_server/IPCam/Axis.cpp @@ -0,0 +1,218 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +Axis::Axis(Params &p): IPCam(p), quality("30"), camera("1") +{ + caps.Add("resolution", "176x144 320x240 640x480"); + caps.Add("quality", "100"); + if (param["model"] != "") camera = param["model"]; + if (param["ptz"] == "1" || param["ptz"] == "true") + { + caps.Add("ptz", "true"); + caps.Add("position", "8"); + } + if (param.Exists("zoom_step")) + { + caps.Add("zoom", "true"); + } + if (param.Exists("pan_framesize") && param.Exists("tilt_framesize")) + { + caps.Add("moveclick", "true"); + } + if (param.Exists("resolution")) + { + resolution = param["resolution"]; + } +} + +Axis::~Axis() +{ +} + +std::string Axis::get_mpeg_stream() +{ + string user; + + if (param["model"] != "") camera = param["model"]; + + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + std::string url; + url = "rtsp://" + user + param["host"]; + url += "/mpeg4/media.amp"; + url += "?compression=" + quality; + url += "&camera=" + camera; + if (!resolution.empty()) + url += "&resolution=" + resolution; + + return url; +} + +std::string Axis::get_mjpeg_stream() +{ + string user; + + if (param["model"] != "") camera = param["model"]; + + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + std::string url; + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/mjpg/video.cgi"; + url += "?quality=" + quality; + url += "&camera=" + camera; + if (!resolution.empty()) + url += "&resolution=" + resolution; + + return url; +} + +std::string Axis::get_picture() +{ + string user; + + if (param["model"] != "") camera = param["model"]; + + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + + std::string url; + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/jpg/image.cgi"; + url += "?quality=" + quality; + url += "&camera=" + camera; + if (!resolution.empty()) + url += "&resolution=" + resolution; + + return url; +} + +void Axis::activateCapabilities(std::string cap, std::string cmd, std::string value) +{ + if (!caps.Exists(cap)) return; + + string user; + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + if (cap == "resolution" && cmd == "set") + { + vector res; + Utils::split(caps["resolution"], res, " "); + for (int i = 0;i < res.size();i++) + { + if (value == res[i]) + resolution = value; + } + } + else if (cap == "quality" && cmd == "set") + { + int _q, q; + from_string(caps["quality"], _q); + from_string(value, q); + + if (q >= 0 && q <= _q) + quality = value; + } + else if (cap == "ptz" && cmd == "move") + { + string url; + + if (value == "zoomin" || value == "zoomout") + { + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/com/ptz.cgi?"; + url += "camera=" + camera; + url += "&rzoom=" + string((value == "zoomout")?"-":"") + param["zoom_step"]; + } + else + { + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/com/ptz.cgi?"; + url += "camera=" + camera; + url += "&move=" + value; + } + + Calaos::CallUrl(url); + } + else if (cap == "moveclick" && cmd == "set") + { + //rpan == 68 + //rtilt == 57 + + if (!param.Exists("pan_framesize") || !param.Exists("tilt_framesize")) + return; + + //Parse pan/tilt values + vector tok; + split(value, tok, ","); + if (tok.size() != 2) return; + + double pan, tilt, pan_framesize, tilt_framesize; + + from_string(tok[0], pan); + from_string(tok[1], tilt); + from_string(param["pan_framesize"], pan_framesize); + from_string(param["tilt_framesize"], tilt_framesize); + + //Center coordinates + pan -= 320.0; + tilt -= 240.0; + + //Invert coordinates + pan = 0 - pan; + tilt = 0 - tilt; + + pan = (pan * pan_framesize) / 320.0; + tilt = (tilt * tilt_framesize) / 240.0; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/com/ptz.cgi?"; + url += "camera=" + camera; + url += "&rpan=" + to_string(-pan) + "&rtilt=" + to_string(tilt); + + Calaos::CallUrl(url); + } + else if (cap == "position" && cmd == "recall") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/com/ptz.cgi?"; + url += "camera=" + camera; + url += "&gotoserverpresetno=" + value; + + Calaos::CallUrl(url); + } + else if (cap == "position" && cmd == "save") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/axis-cgi/com/ptz.cgi?"; + url += "camera=" + camera; + url += "&setserverpresetno=" + value; + + Calaos::CallUrl(url); + } +} diff --git a/src/bin/calaos_server/IPCam/Axis.h b/src/bin/calaos_server/IPCam/Axis.h new file mode 100644 index 00000000..346f21b9 --- /dev/null +++ b/src/bin/calaos_server/IPCam/Axis.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_AXIS_H +#define S_AXIS_H + +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class Axis: public IPCam +{ + protected: + string resolution, quality, camera; + + public: + Axis(Params &p); + ~Axis(); + + //Standard IPCam functions. + std::string get_mpeg_stream(); //return the mpeg4 url stream (if any) + std::string get_mjpeg_stream(); //return the mpeg url stream + std::string get_picture(); //return the url for a single frame + + virtual void activateCapabilities(std::string cap, std::string cmd, std::string value); +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/CamConnection.cpp b/src/bin/calaos_server/IPCam/CamConnection.cpp new file mode 100644 index 00000000..f2cf2533 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamConnection.cpp @@ -0,0 +1,288 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +static int _CamConnection_CURL_write_callback(void *buffer, size_t size, size_t nmemb, void *stream); + +CamConnection::CamConnection(TCPSocket s): socket(s), end_conn(false), login(false), + pict_buffer(NULL), pict_size(0) +{ + Utils::logger("network") << Priority::DEBUG << "CamConnection::CamConnection(): Ok" << log4cpp::eol; +} + +CamConnection::~CamConnection() +{ + Utils::logger("network") << Priority::DEBUG << "CamConnection::~CamConnection(): Ok" << log4cpp::eol; + if (pict_buffer) + { + free(pict_buffer); + pict_buffer = NULL; + } +} + +void CamConnection::ProcessRequest(string &request) +{ + vector list; + bool streaming = true; + bool header_sent = false; + + split(request, list); + + if (list.size() < 3) + { + Utils::logger("network") << Priority::ERROR << "CamConnection::ProcessRequest(): request too small." << log4cpp::eol; + return; + } + + if (list[0] != "GET") + { + Utils::logger("network") << Priority::ERROR << "CamConnection::ProcessRequest(): Only GET request supported!" << log4cpp::eol; + return; + } + + if (list[1].find ("/GetCamera.cgi?id=", 0) == request.npos && + list[1].find ("/GetPicture.cgi?id=", 0) == request.npos) + { + Utils::logger("network") << Priority::ERROR << "CamConnection::ProcessRequest(): Wrong request! : " << list[1] << log4cpp::eol; + return; + } + + if (list[1].find ("/GetPicture.cgi?id=", 0) != request.npos) + streaming = false; + + string _camid = list[1]; + if (streaming) + _camid.erase(0, 18); + else + _camid.erase(0, 19); + int camid; + Utils::from_string(_camid, camid); + + if (_camid == "" || camid < 0 || camid > CamManager::Instance().get_size() - 1) + { + Utils::logger("network") << Priority::ERROR << "CamConnection::ProcessRequest(): Wrong id!" << log4cpp::eol; + return; + } + + IPCam *camera = CamManager::Instance().get_camera(camid); + string url = camera->get_picture_real(); + + stringstream headers; + + if (streaming) + { + headers << "HTTP/1.0 200 OK\r\n"; + headers << "Server: Calaos/1.0\r\n"; + headers << "Connection: close\r\n"; + headers << "Content-Type: multipart/x-mixed-replace;boundary=CalaosBoundary\r\n"; + headers << "Pragma: no-cache\r\n"; + headers << "Cache-Control: no-cache\r\n"; + headers << "Expires: 01 Jan 1970 00:00:00 GMT\r\n"; + headers << "\r\n"; + } + + unsigned long int cpt = 0; + + CURL *curl; + CURLcode res; + curl = curl_easy_init(); + + while (!end_conn) + { + //Get a picture from the camera + bool ret; + + string _url = url;// + "?dummy=" + to_string(cpt); //force the webserver to reload the picture + + //clear old frame + if (pict_buffer) + { + free(pict_buffer); + pict_buffer = NULL; + pict_size = 0; + } + + if(curl) + { + curl_easy_setopt(curl, CURLOPT_URL, _url.c_str()); + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _CamConnection_CURL_write_callback); + curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)this); + /* some servers don't like requests that are made without a user-agent + field, so we provide one */ + if (camera->get_param("model") == "ICA-210") + curl_easy_setopt(curl, CURLOPT_USERAGENT, ""); + else + curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0"); + curl_easy_setopt(curl, CURLOPT_ENCODING, "identity"); + curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 0); + curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 0); + curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0); + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); + + //timeout for request + curl_easy_setopt(curl, CURLOPT_TIMEOUT, 4); //4 seconds timeout + curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); + + res = curl_easy_perform(curl); + if (res != CURLE_OK) break; + } + else + break; + + if (!header_sent) + { + //send headers informations + socket.Send(headers.str()); + + header_sent = true; + } + + //Some camera send empty picture, so to avoid a gstreamer crash, jump the frame + if (pict_size <= 0) continue; + + unsigned char *buf = (unsigned char *)pict_buffer; + + if (buf[0] != 0xFF || buf[1] != 0xD8 || + buf[2] != 0xFF) + { + cout << "Error in SOI !!" << endl; + printf("%02X%02X%02X%02X\n", buf[0], buf[1], buf[2], buf[3]); + + continue; + } + + if (streaming) headers.str("\r\n"); + if (streaming) headers << "--CalaosBoundary\r\n"; + if (streaming) headers << "Content-Type: image/jpeg\r\n"; + if (streaming) headers << "\r\n" << endl; + + if (!streaming) + { + headers << "HTTP/1.0 200 OK\r\n"; + headers << "Date: Sat, 01 Feb 2003 12:01:22 GMT\r\n"; + headers << "Server: Calaos/1.0\r\n"; + headers << "Connection: close\r\n"; + headers << "Content-Type: image/jpeg\r\n"; + headers << "Content-Length: " << pict_size << "\r\n"; + headers << "Pragma: no-cache\r\n"; + headers << "Cache-Control: no-cache\r\n"; + headers << "Expires: 01 Jan 1970 00:00:00 GMT\r\n"; + headers << "\r\n"; + } + + //send MIME header + ret = socket.Send(headers.str()); + + //send picture + if (socket.Send(pict_buffer, pict_size) < 0) ret = false; + + cpt++; + if (!ret) end_conn = true; + + if (!streaming) end_conn = true; + } + + curl_easy_cleanup(curl); +} + +void CamConnection::ThreadProc() +{ + quit = false; + + std::string request = ""; + char buffer[4096]; + int status = -1; + + while (request.find ("\n", 0 ) == request.npos || + request.find ("\r", 0 ) == request.npos || + request.find ("\0", 0 ) == request.npos) + { + memset(buffer, 0, 4096); + status = socket.Recv(&buffer, 4096); + + if (status == -1) + { + Utils::logger("network") << Priority::DEBUG << "CamConnection::ThreadProc(): Connection ended..." << log4cpp::eol; + break; + } + else if ( status == 0 ) + break; + else + request += buffer; + } + + vector headers; + split(request, headers, "\n\r"); + + if (status <= 0) + quit = true; + else + { + for (int k = 0;k < headers.size();k++) + { + string s = headers[k]; + int i = s.length() - 1; + while ((s[i] == '\n' || s[i] == '\r' || s[i] == '\0') && i >= 0) i--; + headers[k] = s; + } + + if (headers.size() > 0) + ProcessRequest(headers[0]); + } + + socket.InboundClose(); + end_conn = true; + Utils::logger("network") << Priority::DEBUG << "CamConnection::ThreadProc(): Closing remote connexion !" << log4cpp::eol; +} + +void CamConnection::Clean() +{ + socket.InboundClose(); +} + +//LibCURL callback +int _CamConnection_CURL_write_callback(void *buffer, size_t size, size_t nmemb, void *data) +{ + CamConnection *con = (CamConnection *)data; + char *wbuffer = con->get_buffer(); + unsigned long int wsize = con->get_size(); + + if (!wbuffer) + { + wbuffer = (char *)malloc(size * nmemb); + memcpy(wbuffer, buffer, size * nmemb); + wsize += size * nmemb; + con->set_buffer(wbuffer); + } + else + { + wbuffer = (char *)realloc(wbuffer, wsize + (size * nmemb)); + memcpy(wbuffer + wsize, buffer, size * nmemb); + wsize += size * nmemb; + con->set_buffer(wbuffer); + } + + con->set_size(wsize); + return nmemb; +} diff --git a/src/bin/calaos_server/IPCam/CamConnection.h b/src/bin/calaos_server/IPCam/CamConnection.h new file mode 100644 index 00000000..e5798b52 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamConnection.h @@ -0,0 +1,68 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_CamConnection_H +#define S_CamConnection_H + +#include +#include +#include +#include +#include +#include + +using namespace CalaosNetwork; + +namespace Calaos +{ + +class CamConnection: public CThread +{ + protected: + + TCPSocket socket; + bool end_conn; //fin de connexion + bool login; + bool quit; + + char *pict_buffer; + unsigned long int pict_size; + + void ProcessRequest(string &request); + + public: + CamConnection(TCPSocket socket); //socket to read from + ~CamConnection(); + + virtual void ThreadProc(); //redefined + + bool get_end() { return end_conn; } + + void Clean(); + + //Lib CURL stuff + char *get_buffer() { return pict_buffer; } + void set_buffer(char *b) { pict_buffer = b; } + unsigned long int get_size() { return pict_size; } + void set_size(unsigned long int s) { pict_size = s; } +}; + +} +#endif diff --git a/src/bin/calaos_server/IPCam/CamInput.cpp b/src/bin/calaos_server/IPCam/CamInput.cpp new file mode 100644 index 00000000..501d3b56 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamInput.cpp @@ -0,0 +1,45 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +CamInput::CamInput(Params &p, IPCam *_cam): + cam(_cam), Input(p) +{ + Utils::logger("input") << Priority::INFO << "CamInput::CamInput(): Ok" << log4cpp::eol; +} + +CamInput::~CamInput() +{ + Utils::logger("input") << Priority::INFO << "CamInput::~CamInput(): Ok" << log4cpp::eol; +} + +void CamInput::AcquireData() +{ +} + +std::string CamInput::get_value_string() +{ + return ""; +} diff --git a/src/bin/calaos_server/IPCam/CamInput.h b/src/bin/calaos_server/IPCam/CamInput.h new file mode 100644 index 00000000..70725b95 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamInput.h @@ -0,0 +1,52 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_CAMINPUT_H +#define S_CAMINPUT_H + +#include +#include +#include + +namespace Calaos +{ + +class IPCam; + +class CamInput: public Input +{ + private: + IPCam *cam; + + public: + CamInput(Params &p, IPCam *_cam); + ~CamInput(); + + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual void AcquireData(); + virtual std::string get_value_string(); + + IPCam *get_cam() { return cam; } +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/CamManager.cpp b/src/bin/calaos_server/IPCam/CamManager.cpp new file mode 100644 index 00000000..898cb8f6 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamManager.cpp @@ -0,0 +1,55 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +CamManager::CamManager() +{ +} + +CamManager::~CamManager() +{ + for (int i = 0;i < ip_cams.size();i++) + delete ip_cams[i]; + + ip_cams.clear(); +} + +CamManager &CamManager::Instance() +{ + static CamManager inst; + + return inst; +} + +void CamManager::Add(IPCam *module) +{ + ip_cams.push_back(module); +} + +void CamManager::Delete(int pos) +{ + vector::iterator iter = ip_cams.begin(); + for (int i = 0;i < pos;iter++, i++) ; + delete ip_cams[pos]; + ip_cams.erase(iter); +} diff --git a/src/bin/calaos_server/IPCam/CamManager.h b/src/bin/calaos_server/IPCam/CamManager.h new file mode 100644 index 00000000..643d4a3a --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamManager.h @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_CamManager_H +#define S_CamManager_H + +#include +#include + +namespace Calaos +{ + +class CamManager +{ + private: + CamManager(); + + std::vector ip_cams; + public: + static CamManager &Instance(); //Singleton + ~CamManager(); + + void Add(IPCam *cam); + void Delete(int i); + void Delete(IPCam *obj) + { ip_cams.erase(std::remove(ip_cams.begin(), ip_cams.end(), obj), ip_cams.end()); } + int get_size() { return ip_cams.size(); } //return the number of IP Cameras available + IPCam *get_camera(int i) { return ip_cams[i]; } +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/CamOutput.cpp b/src/bin/calaos_server/IPCam/CamOutput.cpp new file mode 100644 index 00000000..86bc9c07 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamOutput.cpp @@ -0,0 +1,80 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +CamOutput::CamOutput(Params &p, IPCam *_cam): cam(_cam), Output(p) +{ + Utils::logger("output") << Priority::INFO << "CamOutput::CamOutput(): Ok" << log4cpp::eol; +} + +CamOutput::~CamOutput() +{ + Utils::logger("output") << Priority::INFO << "CamOutput::~CamOutput(): Ok" << log4cpp::eol; +} + +bool CamOutput::set_value(std::string val) +{ + Utils::logger("output") << Priority::INFO << "CamOutput(" << get_param("id") << "): got action, " << val << log4cpp::eol; + + if (val == "mpeg_stream?") + { + answer = cam->get_mpeg_stream(); + } + else if (val == "mjpeg_stream?") + { + answer = cam->get_mjpeg_stream(); + } + else if (val == "single_frame?") + { + answer = cam->get_picture(); + } + else if (val.compare(0, 5, "move ") == 0) + { + val.erase(0, 5); + cam->activateCapabilities("ptz", "move", val); + } + else if (val.compare(0, 5, "save ") == 0) + { + val.erase(0, 5); + cam->activateCapabilities("position", "save", val); + } + else if (val.compare(0, 7, "recall ") == 0) + { + val.erase(0, 7); + cam->activateCapabilities("position", "recall", val); + } + + string sig = "output "; + sig += get_param("id") + " "; + sig += url_encode(string("state:") + val); + IPC::Instance().SendEvent("events", sig); + + return true; +} + +std::string CamOutput::get_value_string() +{ + return answer; +} diff --git a/src/bin/calaos_server/IPCam/CamOutput.h b/src/bin/calaos_server/IPCam/CamOutput.h new file mode 100644 index 00000000..5901b368 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamOutput.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +//----------------------------------------------------------------------------- +#ifndef S_CAMOUTPUT_H +#define S_CAMOUTPUT_H +//----------------------------------------------------------------------------- +#include +#include +#include +//----------------------------------------------------------------------------- +namespace Calaos +{ +//----------------------------------------------------------------------------- +class IPCam; +//----------------------------------------------------------------------------- +class CamOutput: public Output +{ + private: + std::string answer; + IPCam *cam; + + public: + CamOutput(Params &p, IPCam *_cam); + ~CamOutput(); + + virtual DATA_TYPE get_type() { return TSTRING; } + + virtual bool set_value(std::string val); + virtual std::string get_value_string(); + + IPCam *get_cam() { return cam; } +}; +//----------------------------------------------------------------------------- +} +//----------------------------------------------------------------------------- +#endif diff --git a/src/bin/calaos_server/IPCam/CamServer.cpp b/src/bin/calaos_server/IPCam/CamServer.cpp new file mode 100644 index 00000000..c1b10597 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamServer.cpp @@ -0,0 +1,85 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +CamServer::CamServer(int p): port(p) +{ + Utils::logger("network") << Priority::DEBUG << "CamServer::CamServer(): Ok" << log4cpp::eol; +} + +CamServer::~CamServer() +{ + delete socket; + socket = NULL; + Utils::logger("network") << Priority::DEBUG << "CamServer::~CamServer(): Ok" << log4cpp::eol; +} + +void CamServer::ThreadProc() +{ + Utils::logger("network") << Priority::DEBUG << "CamServer::ThreadProc(): Init IPCam relay server" << log4cpp::eol; + socket = new TCPSocket(); + + socket->Create(port); + socket->SetReuse(); + socket->Listen(); + Utils::logger("network") << Priority::DEBUG << "CamServer::ThreadProc(): Listening on port " << port << log4cpp::eol; + quit = false; + + while (!quit) + { + socket->Accept(); + + if (quit) break; + + Utils::logger("network") << Priority::DEBUG << "CamServer::ThreadProc(): Got a connection from address " + << socket->GetRemoteIP() << log4cpp::eol; + + vector::iterator iter = connections.begin(); + for (int i = 0;i < connections.size();iter++, i++) + { + //on supprime les connections qui sont finis + if (connections[i]->get_end()) + { + delete connections[i]; + connections.erase(iter); + } + } + + CamConnection *connection = new CamConnection(*socket); + connections.push_back(connection); + connection->Start(); //Start thread + } +} + +void CamServer::Clean() +{ + quit = true; + if (socket) + { + socket->Shutdown(); + socket->Close(); + } + + for(int i = 0;i < connections.size();i++) + connections[i]->Clean(); +} diff --git a/src/bin/calaos_server/IPCam/CamServer.h b/src/bin/calaos_server/IPCam/CamServer.h new file mode 100644 index 00000000..2712dba6 --- /dev/null +++ b/src/bin/calaos_server/IPCam/CamServer.h @@ -0,0 +1,52 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_CAMServer_H +#define S_CAMServer_H + +#include +#include +#include +#include + +using namespace CalaosNetwork; + +namespace Calaos +{ + +class CamServer: public CThread +{ + protected: + int port; + TCPSocket *socket; + vector connections; + bool quit; + + public: + CamServer(int port); //port to listen + ~CamServer(); + + virtual void ThreadProc(); //redefined + + void Clean(); +}; + +} +#endif diff --git a/src/bin/calaos_server/IPCam/Gadspot.cpp b/src/bin/calaos_server/IPCam/Gadspot.cpp new file mode 100644 index 00000000..386acaaf --- /dev/null +++ b/src/bin/calaos_server/IPCam/Gadspot.cpp @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +Gadspot::Gadspot(Params &p): IPCam(p) +{ + caps.Add("resolution", "640x480"); +} + +Gadspot::~Gadspot() +{ +} + +std::string Gadspot::get_mjpeg_stream() +{ + std::string url; + url = "http://" + param["host"] + ":" + param["port"]; + url += "/GetData.cgi"; + + return url; +} + +std::string Gadspot::get_picture() +{ + std::string url; + url = "http://" + param["host"] + ":" + param["port"]; + url += "/Jpeg/CamImg.jpg"; + + return url; +} diff --git a/src/bin/calaos_server/IPCam/Gadspot.h b/src/bin/calaos_server/IPCam/Gadspot.h new file mode 100644 index 00000000..e3324092 --- /dev/null +++ b/src/bin/calaos_server/IPCam/Gadspot.h @@ -0,0 +1,50 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_Gadspot_H +#define S_Gadspot_H + +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class Gadspot: public IPCam +{ + protected: + + public: + Gadspot(Params &p); + ~Gadspot(); + + //Standard IPCam functions. + std::string get_mjpeg_stream(); //return the mpeg url stream + std::string get_picture(); //return the url for a single frame +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/IPCam.cpp b/src/bin/calaos_server/IPCam/IPCam.cpp new file mode 100644 index 00000000..f3aa6079 --- /dev/null +++ b/src/bin/calaos_server/IPCam/IPCam.cpp @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +IPCam::IPCam(Params &p): param(p) +{ + if (!param.Exists("port")) param.Add("port", "80"); + + Params pio = param; + + pio.Add("id", param["oid"]); + pio.Add("type", "CamOutput"); + aoutput = new CamOutput(pio, this); + + pio.Add("id", param["iid"]); + pio.Add("type", "CamInput"); + ainput = new CamInput(pio, this); +} + +IPCam::~IPCam() +{ + delete aoutput; + delete ainput; +} + +bool IPCam::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:camera"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + param.get_item(i, key, value); + cnode->SetAttribute(key, value); + } + + return true; +} diff --git a/src/bin/calaos_server/IPCam/IPCam.h b/src/bin/calaos_server/IPCam/IPCam.h new file mode 100644 index 00000000..c1fbc4ce --- /dev/null +++ b/src/bin/calaos_server/IPCam/IPCam.h @@ -0,0 +1,90 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_IPCam_H +#define S_IPCam_H + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class IPCam +{ + protected: + Params param; + Output *aoutput; + Input *ainput; + Params caps; + + public: + IPCam(Params &p); + virtual ~IPCam(); + + //Standard IPCam functions. + virtual std::string get_cam_url() { return "http://" + param["host"] + ":" + param["port"]; } //return the url of the cam webpage + virtual std::string get_mpeg_stream() { return ""; } //return the mpeg url stream + virtual std::string get_mjpeg_stream() { return ""; } //return the mjpeg url stream + virtual std::string get_picture() { return ""; } //return the url for a single frame + + //this is used for internal purpose (The CamServer relay) + virtual std::string get_picture_real() { return get_picture(); } //return the real url for a single frame + + //Capabilities + /************************************************* + List of capabilities: + * ptz : bool + * position : int (number of memory position. if 0, position is not available) + * resolution : string (list of resolution, space separated) + * led : bool (to activate leds) + * buzzer : bool (to activate buzzer) + * privacy: bool (to activate privacy mode) + * quality: int (range for quality level) + * brightness: int (range) + * contrast: int (range) + * color: int (range) + * saturation: int (range) + * sharpness: int (range) + * hue: int (range) + **************************************************/ + virtual Params getCapabilities() { return caps; } + virtual void activateCapabilities(std::string caps, std::string cmd, std::string value) { } + + std::string get_param(std::string opt) { return param[opt]; } + void set_param(std::string opt, std::string val) { param.Add(opt, val); } + Params &get_params() { return param; } + Output *get_output() { return aoutput; } + Input *get_input() { return ainput; } + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node); +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/Planet.cpp b/src/bin/calaos_server/IPCam/Planet.cpp new file mode 100644 index 00000000..fec9a8b5 --- /dev/null +++ b/src/bin/calaos_server/IPCam/Planet.cpp @@ -0,0 +1,492 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +Planet::Planet(Params &p): IPCam(p), saturation("127"), sharpness("127"), + contrast("127"), hue("127"), brightness("127") +{ + //Set up capabilities + if (param["model"] == "ICA-300" || param["model"] == "ICA-302" || + param["model"] == "ICA-500") + { + caps.Add("resolution", "176x144 352x288 320x240 640x480"); + caps.Add("quality", "5"); + caps.Add("saturation", "256"); + caps.Add("sharpness", "256"); + caps.Add("contrast", "256"); + caps.Add("hue", "256"); + caps.Add("brightness", "256"); + } + + if (param["model"] == "ICA-500") + { + caps.Add("ptz", "true"); + caps.Add("position", "16"); + } + + if (param["model"] == "ICA-210" || param["model"] == "ICA-210W") + { + caps.Add("resolution", "176x144 320x240 640x480"); + caps.Add("quality", "3"); + caps.Add("ptz", "true"); + caps.Add("position", "8"); + caps.Add("led", "true"); + caps.Add("buzzer", "true"); + caps.Add("privacy", "true"); + caps.Add("brightness", "127"); + caps.Add("color", "127"); + caps.Add("contrast", "127"); + caps.Add("sharpness", "11"); + } +} + +Planet::~Planet() +{ +} + +std::string Planet::get_mpeg_stream() +{ + std::string url; + + //model ICA-300, ICA-500, ICA-210* does not support mpgeg stream + + return url; +} + +std::string Planet::get_mjpeg_stream() +{ + std::string url, user; + + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + if (param["model"] == "ICA-300" || param["model"] == "ICA-302" || param["model"] == "ICA-500") + { + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/GetData.cgi"; + } + else if (param["model"] == "ICA-210" || param["model"] == "ICA-210W") + { + //Get id + int id = -1; + for (int i = 0;i < CamManager::Instance().get_size();i++) + { + if (CamManager::Instance().get_camera(i)->get_param("id") == param["id"]) + id = i; + } + + //get local ip + std::string local_ip = TCPSocket::GetLocalIP(); + + url = "http://" + local_ip + ":5050/GetCamera.cgi?id=" + to_string(id); + } + + return url; +} + +std::string Planet::get_picture_real() +{ + std::string url, user; + + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + if (param["model"] == "ICA-300" || param["model"] == "ICA-302" || param["model"] == "ICA-500") + { + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Jpeg/CamImg.jpg"; + } + else + { + url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/video2"; + } + + return url; +} + +std::string Planet::get_picture() +{ + std::string url; + + if (param["model"] == "ICA-210" || param["model"] == "ICA-210W") + { + //Get id + int id = -1; + for (int i = 0;i < CamManager::Instance().get_size();i++) + { + if (CamManager::Instance().get_camera(i)->get_param("id") == param["id"]) + id = i; + } + + //get local ip + std::string local_ip = TCPSocket::GetLocalIP(); + + url = "http://" + local_ip + ":5050/GetPicture.cgi?id=" + to_string(id); + } + else + url = get_picture_real(); + + return url; +} + +void Planet::activateCapabilities(std::string cap, std::string cmd, std::string value) +{ + if (!caps.Exists(cap)) return; + + std::string user; + if (param.Exists("username")) + user = param["username"] + ":" + param["password"] + "@"; + + if (param["model"] == "ICA-300" || param["model"] == "ICA-302" || param["model"] == "ICA-500") + { + if (cap == "resolution" && cmd == "set") + { + if (value == "176x144") resolution = "0"; + if (value == "352x288") resolution = "1"; + if (value == "320x240") resolution = "2"; + if (value == "640x480") resolution = "3"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Change_Resolution.cgi?ResType=" + resolution; + Calaos::CallUrl(url); + } + else if (cap == "quality" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["quality"], _q); + Utils::from_string(value, q); + + if (q >= 0 && q < _q) + quality = value; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Change_Compress_Ratio.cgi?Ratio=" + quality; + Calaos::CallUrl(url); + } + else if (cap == "saturation" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["saturation"], _q); + Utils::from_string(value, q); + + if (q >= 0 && q < _q) + saturation = value; + + string _size; + if (resolution == "0") _size = "176"; + if (resolution == "1") _size = "352"; + if (resolution == "2") _size = "320"; + if (resolution == "3") _size = "640"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Set_Camera.cgi?Saturation=" + saturation; + url += "&Sharpness=" + sharpness; + url += "&Contrast=" + contrast; + url += "&Hue=" + hue; + url += "&Image_Size=" + _size; + url += "&Image_Quality=" + quality; + url += "&CamPan=0&CamTilt=0&Exposure_Mode_AM=0&Display_Mode=0&Camera_Tour=0&Camera_Reset=0"; + Calaos::CallUrl(url); + } + else if (cap == "sharpness" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["sharpness"], _q); + Utils::from_string(value, q); + + if (q >= 0 && q < _q) + sharpness = value; + + string _size; + if (resolution == "0") _size = "176"; + if (resolution == "1") _size = "352"; + if (resolution == "2") _size = "320"; + if (resolution == "3") _size = "640"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Set_Camera.cgi?Saturation=" + saturation; + url += "&Sharpness=" + sharpness; + url += "&Contrast=" + contrast; + url += "&Hue=" + hue; + url += "&Image_Size=" + _size; + url += "&Image_Quality=" + quality; + url += "&CamPan=0&CamTilt=0&Exposure_Mode_AM=0&Display_Mode=0&Camera_Tour=0&Camera_Reset=0"; + Calaos::CallUrl(url); + } + else if (cap == "contrast" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["contrast"], _q); + Utils::from_string(value, q); + + if (q >= 0 && q < _q) + contrast = value; + + string _size; + if (resolution == "0") _size = "176"; + if (resolution == "1") _size = "352"; + if (resolution == "2") _size = "320"; + if (resolution == "3") _size = "640"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Set_Camera.cgi?Saturation=" + saturation; + url += "&Sharpness=" + sharpness; + url += "&Contrast=" + contrast; + url += "&Hue=" + hue; + url += "&Image_Size=" + _size; + url += "&Image_Quality=" + quality; + url += "&CamPan=0&CamTilt=0&Exposure_Mode_AM=0&Display_Mode=0&Camera_Tour=0&Camera_Reset=0"; + Calaos::CallUrl(url); + } + else if (cap == "hue" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["hue"], _q); + Utils::from_string(value, q); + + if (q >= 0 && q < _q) + hue = value; + + string _size; + if (resolution == "0") _size = "176"; + if (resolution == "1") _size = "352"; + if (resolution == "2") _size = "320"; + if (resolution == "3") _size = "640"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Set_Camera.cgi?Saturation=" + saturation; + url += "&Sharpness=" + sharpness; + url += "&Contrast=" + contrast; + url += "&Hue=" + hue; + url += "&Image_Size=" + _size; + url += "&Image_Quality=" + quality; + url += "&CamPan=0&CamTilt=0&Exposure_Mode_AM=0&Display_Mode=0&Camera_Tour=0&Camera_Reset=0"; + Calaos::CallUrl(url); + } + else if (cap == "brightness" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["brightness"], _q); + Utils::from_string(value, q); + + if (q >= 0 && q < _q) + brightness = value; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/Change_Brightness.cgi?Brightness=" + brightness; + Calaos::CallUrl(url); + } + } + + if (param["model"] == "ICA-500") + { + if (cap == "ptz" && cmd == "move") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/MoveCamera.cgi?Dir="; + + if (value == "home") url += "Home"; + if (value == "left") url += "Left"; + if (value == "right") url += "Right"; + if (value == "up") url += "Up"; + if (value == "down") url += "Down"; + + Calaos::CallUrl(url); + } + else if (cap == "position" && cmd == "recall") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/MoveCamera.cgi?Dir=Recall&CameraParam=" + value; + + Calaos::CallUrl(url); + } + else if (cap == "position" && cmd == "save") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/MoveCamera.cgi?Dir=Preset&CameraParam=" + value; + + Calaos::CallUrl(url); + } + } + + if (param["model"] == "ICA-210" || param["model"] == "ICA-210W") + { + if (cap == "resolution" && cmd == "set") + { + if (value == "176x144") resolution = "0"; + if (value == "320x240") resolution = "1"; + if (value == "640x480") resolution = "2"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/resSel?f_ResIdxSel=" + resolution; + Calaos::CallUrl(url); + } + else if (cap == "quality" && cmd == "set") + { + if (value == "0") quality = "4"; + if (value == "1") quality = "2"; + if (value == "2") quality = "0"; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/qualSel?f_quality=" + quality; + Calaos::CallUrl(url); + } + if (cap == "ptz" && cmd == "move") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/ptact?f_mvaction="; + + if (value == "home") url += "2"; + if (value == "left") url += "-3"; + if (value == "right") url += "-4"; + if (value == "up") url += "-1"; + if (value == "down") url += "-2"; + + Calaos::CallUrl(url); + } + else if (cap == "position" && cmd == "recall") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/ptpreset?f_presetact=" + value; + + Calaos::CallUrl(url); + } + else if (cap == "position" && cmd == "save") + { + int pos; + Utils::from_string(value, pos); + pos--; + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/adminptpreset?f_presetidx=" + to_string(pos); + + Calaos::CallUrl(url); + } + else if (cap == "led") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/devact?f_devno=2&f_devact=1"; + + Calaos::CallUrl(url); + } + else if (cap == "buzzer") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/devact?f_devno=1&f_devact=1"; + + Calaos::CallUrl(url); + } + else if (cap == "privacy" && cmd == "set" && value == "true") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/ptact?f_mvaction=1"; + + Calaos::CallUrl(url); + } + else if (cap == "privacy" && cmd == "set" && value == "false") + { + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/privacymode_unset"; + + Calaos::CallUrl(url); + } + else if (cap == "brightness" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["brightness"], _q); + Utils::from_string(value, q); + + if (q > 0 && q <= _q) + brightness = value; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/cameraconfig?brightness=" + brightness; + url += "&contrast=" + contrast; + url += "&color=" + color; + url += "&sharp=" + sharpness; + url += "&quality=" + quality; + url += "&f_resolution=" + resolution; + Calaos::CallUrl(url); + } + else if (cap == "color" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["color"], _q); + Utils::from_string(value, q); + + if (q > 0 && q <= _q) + color = value; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/cameraconfig?brightness=" + brightness; + url += "&contrast=" + contrast; + url += "&color=" + color; + url += "&sharp=" + sharpness; + url += "&quality=" + quality; + url += "&f_resolution=" + resolution; + Calaos::CallUrl(url); + } + else if (cap == "contrast" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["contrast"], _q); + Utils::from_string(value, q); + + if (q > 0 && q <= _q) + contrast = value; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/cameraconfig?brightness=" + brightness; + url += "&contrast=" + contrast; + url += "&color=" + color; + url += "&sharp=" + sharpness; + url += "&quality=" + quality; + url += "&f_resolution=" + resolution; + Calaos::CallUrl(url); + } + else if (cap == "sharpness" && cmd == "set") + { + int _q, q; + Utils::from_string(caps["sharpness"], _q); + Utils::from_string(value, q); + + if (q > 0 && q <= _q) + sharpness = value; + + string url = "http://" + user + param["host"] + ":" + param["port"]; + url += "/goform/cameraconfig?brightness=" + brightness; + url += "&contrast=" + contrast; + url += "&color=" + color; + url += "&sharp=" + sharpness; + url += "&quality=" + quality; + url += "&f_resolution=" + resolution; + Calaos::CallUrl(url); + } + } +} + +//Move ICA-210 click on screen +//http://10.0.0.23/goform/ptmovepos?dx=-314&dy=90&res=2 +//where dx and dy are relative to the center of the current frame diff --git a/src/bin/calaos_server/IPCam/Planet.h b/src/bin/calaos_server/IPCam/Planet.h new file mode 100644 index 00000000..895a91e7 --- /dev/null +++ b/src/bin/calaos_server/IPCam/Planet.h @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_PLANET_H +#define S_PLANET_H + +#include +#include +#include +#include +#include +#include +#include + +using namespace CalaosNetwork; + +namespace Calaos +{ + +class Planet: public IPCam +{ + protected: + string resolution, quality; + string saturation, sharpness, contrast, hue; + string brightness, color; + + public: + Planet(Params &p); + ~Planet(); + + //Standard IPCam functions. + virtual std::string get_mpeg_stream(); //return the mpeg4 url stream (if any) + virtual std::string get_mjpeg_stream(); //return the mpeg url stream + virtual std::string get_picture(); //return the url for a single frame + virtual std::string get_picture_real(); //return the real url for a single frame + + virtual void activateCapabilities(std::string cap, std::string cmd, std::string value); +}; + +} + +#endif diff --git a/src/bin/calaos_server/IPCam/StandardMjpeg.cpp b/src/bin/calaos_server/IPCam/StandardMjpeg.cpp new file mode 100644 index 00000000..0445121c --- /dev/null +++ b/src/bin/calaos_server/IPCam/StandardMjpeg.cpp @@ -0,0 +1,125 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; +using namespace CalaosNetwork; + +StandardMjpeg::StandardMjpeg(Params &p): IPCam(p) +{ + //Nothing + for (int i = 0;i < p.size();i++) + { + std::string a, b; + p.get_item(i, a, b); + cout << a << ":" << b << endl; + } + + //actually this is only for testing UI, it does nothing + if (param.Exists("ptz")) + { + caps.Add("ptz", "true"); + caps.Add("position", "8"); + } + if (param.Exists("zoom")) + { + caps.Add("zoom", "true"); + } +} + +StandardMjpeg::~StandardMjpeg() +{ +} + +std::string StandardMjpeg::get_mpeg_stream() +{ + string url; + if (param["url_mpeg"] != "") url = param["url_mpeg"]; + + return url; +} + +std::string StandardMjpeg::get_picture_real() +{ + std::string url, user; + + if (param["url_jpeg"] != "") url = param["url_jpeg"]; + + return url; +} + +std::string StandardMjpeg::get_mjpeg_stream() +{ + string url; + if (param["url_mjpeg"] != "") + url = param["url_mjpeg"]; + else + { + //Get id + int id = -1; + for (int i = 0;i < CamManager::Instance().get_size();i++) + { + if (CamManager::Instance().get_camera(i)->get_param("id") == param["id"]) + id = i; + } + + //get local ip + std::string local_ip = TCPSocket::GetLocalIP(); + if (local_ip.empty()) + local_ip = TCPSocket::GetLocalIP("eth1"); + + url = "http://" + local_ip + ":5050/GetCamera.cgi?id=" + Utils::to_string(id); + } + + return url; +} + +std::string StandardMjpeg::get_picture() +{ + string url; + if (param["url_mjpeg"] != "") + url = param["url_jpeg"]; + else + { + //Get id + int id = -1; + for (int i = 0;i < CamManager::Instance().get_size();i++) + { + if (CamManager::Instance().get_camera(i)->get_param("id") == param["id"]) + id = i; + } + + //get local ip + string local_ip = TCPSocket::GetLocalIP(); + if (local_ip.empty()) + local_ip = TCPSocket::GetLocalIP("eth1"); + + url = "http://" + local_ip + ":5050/GetPicture.cgi?id=" + Utils::to_string(id); + } + + return url; +} + +void StandardMjpeg::activateCapabilities(std::string cap, std::string cmd, std::string value) +{ + //Nothing +} diff --git a/src/bin/calaos_server/IPCam/StandardMjpeg.h b/src/bin/calaos_server/IPCam/StandardMjpeg.h new file mode 100644 index 00000000..b017bb3f --- /dev/null +++ b/src/bin/calaos_server/IPCam/StandardMjpeg.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_STDMJPEG_H +#define S_STDMJPEG_H + +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +class StandardMjpeg: public IPCam +{ + protected: + + public: + StandardMjpeg(Params &p); + ~StandardMjpeg(); + + //Standard IPCam functions. + virtual std::string get_mpeg_stream(); //return the mpeg4 url stream (if any) + virtual std::string get_mjpeg_stream(); //return the mpeg url stream + virtual std::string get_picture(); //return the url for a single frame + virtual std::string get_picture_real(); //return the real url for a single frame + + virtual void activateCapabilities(std::string cap, std::string cmd, std::string value); +}; + +} + +#endif diff --git a/src/bin/calaos_server/Input.cpp b/src/bin/calaos_server/Input.cpp new file mode 100644 index 00000000..a0bcf8b4 --- /dev/null +++ b/src/bin/calaos_server/Input.cpp @@ -0,0 +1,60 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include + +using namespace Calaos; + +Input::Input(Params &p): + IOBase(p) +{ + iter_input = signal_input.connect(sigc::mem_fun(&ListeRule::Instance(), &ListeRule::ExecuteRuleSignal)); + + ListeRoom::Instance().addInputHash(this); +} + +Input::~Input() +{ + iter_input->disconnect(); + ListeRoom::Instance().delInputHash(this); +} + +void Input::EmitSignalInput() +{ + Utils::logger("input") << Priority::DEBUG << "Input::EmitSignalInput(" << get_param("id") << ")" << log4cpp::eol; + signal_input.emit(get_param("id")); +} + +bool Input::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:input"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + get_params().get_item(i, key, value); + cnode->SetAttribute(key, value); + } + + return true; +} diff --git a/src/bin/calaos_server/Input.h b/src/bin/calaos_server/Input.h new file mode 100644 index 00000000..2b31d017 --- /dev/null +++ b/src/bin/calaos_server/Input.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_INPUT_H +#define S_INPUT_H + +#include +#include + +namespace Calaos +{ + +class Input: public IOBase +{ + protected: + typedef sigc::signal type_signal_input; + type_signal_input signal_input; + type_signal_input::iterator iter_input; + + public: + Input(Params &p); + virtual ~Input(); + + virtual void force_input_bool(bool val) { /* Do nothing */ } + virtual void force_input_double(double val) { /* Do nothing */ } + virtual void force_input_string(std::string val) { /* Do nothing */ } + + virtual void EmitSignalInput(); + virtual void hasChanged() { } + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/ListeRoom.cpp b/src/bin/calaos_server/ListeRoom.cpp new file mode 100644 index 00000000..117e1c0e --- /dev/null +++ b/src/bin/calaos_server/ListeRoom.cpp @@ -0,0 +1,721 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include + +using namespace Calaos; + +ListeRoom &ListeRoom::Instance() +{ + static ListeRoom inst; + + return inst; +} + +ListeRoom::ListeRoom() +{ + eina_init(); + + input_table = eina_hash_string_superfast_new(NULL); + output_table = eina_hash_string_superfast_new(NULL); + + Utils::logger("rooms") << Priority::DEBUG << "ListeRoom::ListeRoom(): Ok" << log4cpp::eol; +} + +ListeRoom::~ListeRoom() +{ + for (int i = 0;i < rooms.size();i++) + delete rooms[i]; + + rooms.clear(); + + eina_hash_free(input_table); + eina_hash_free(output_table); + + eina_shutdown(); + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::~ListeRoom(): Ok" << log4cpp::eol; +} + +void ListeRoom::addInputHash(Input *input) +{ + if (!input) return; + + string id = input->get_param("id"); + if (input->get_param("type") == "CamInput" || + input->get_param("type") == "AudioInput") + { + id = input->get_param("iid"); + } + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::addInputHash(" << id << ")" << log4cpp::eol; + + eina_hash_add(input_table, id.c_str(), input); +} + +void ListeRoom::delInputHash(Input *input) +{ + if (!input) return; + + string id = input->get_param("id"); + if (input->get_param("type") == "CamInput" || + input->get_param("type") == "AudioInput") + { + id = input->get_param("iid"); + } + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::delInputHash(" << id << ")" << log4cpp::eol; + + eina_hash_del(input_table, id.c_str(), NULL); +} + +void ListeRoom::addOutputHash(Output *output) +{ + if (!output) return; + + string id = output->get_param("id"); + if (output->get_param("type") == "CamOutput" || + output->get_param("type") == "AudioOutput") + { + id = output->get_param("oid"); + } + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::addOutputHash(" << id << ")" << log4cpp::eol; + + eina_hash_add(output_table, id.c_str(), output); +} + +void ListeRoom::delOutputHash(Output *output) +{ + if (!output) return; + + string id = output->get_param("id"); + if (output->get_param("type") == "CamOutput" || + output->get_param("type") == "AudioOutput") + { + id = output->get_param("oid"); + } + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::delOutputHash(" << id << ")" << log4cpp::eol; + + eina_hash_del(output_table, id.c_str(), NULL); +} + +void ListeRoom::Add(Room *p) +{ + rooms.push_back(p); + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::Add(" << p->get_name() << "," << p->get_type() << "): Ok" << log4cpp::eol; +} + +void ListeRoom::Remove(int pos) +{ + vector::iterator iter = rooms.begin(); + for (int i = 0;i < pos;iter++, i++) ; + delete rooms[pos]; + rooms.erase(iter); + + Utils::logger("room") << Priority::DEBUG << "ListeRoom::Remove(): Ok" << log4cpp::eol; +} + +Room *ListeRoom::operator[] (int i) const +{ + return rooms[i]; +} + +Room *ListeRoom::get_room(int i) +{ + return rooms[i]; +} + +Input *ListeRoom::get_input(std::string in) +{ + Input *i = reinterpret_cast(eina_hash_find(input_table, in.c_str())); + + Utils::logger("room") << Priority::DEBUG << "Searching inputs for \"" << in << "\" => " << ((i)?"found":"not found") << log4cpp::eol; + + return i; +} + +Output *ListeRoom::get_output(std::string out) +{ + Output *o = reinterpret_cast(eina_hash_find(output_table, out.c_str())); + + Utils::logger("room") << Priority::DEBUG << "Searching outputs for \"" << out << "\" => " << ((o)?"found":"not found") << log4cpp::eol; + + return o; +} + +Input *ListeRoom::get_input(int i) +{ + int cpt = 0; + + for (int j = 0;j < rooms.size();j++) + { + for (int m = 0;m < rooms[j]->get_size_in();m++) + { + Input *in = rooms[j]->get_input(m); + if (cpt == i) + { + return in; + } + + cpt++; + } + } + + return NULL; +} + +Output *ListeRoom::get_output(int i) +{ + int cpt = 0; + + for (int j = 0;j < rooms.size();j++) + { + for (int m = 0;m < rooms[j]->get_size_out();m++) + { + Output *out = rooms[j]->get_output(m); + if (cpt == i) + { + return out; + } + + cpt++; + } + } + + return NULL; +} + +bool ListeRoom::delete_input(Input *input, bool del) +{ + bool done = false; + for (int j = 0;!done && j < rooms.size();j++) + { + for (int m = 0;!done && m < get_room(j)->get_size_in();m++) + { + Input *in = get_room(j)->get_input(m); + if (in == input) + { + get_room(j)->RemoveInput(m, del); + done = true; + } + } + } + + return done; +} + +bool ListeRoom::delete_output(Output *output, bool del) +{ + bool done = false; + for (int j = 0;!done && j < rooms.size();j++) + { + for (int m = 0;!done && m < get_room(j)->get_size_out();m++) + { + Output *out = get_room(j)->get_output(m); + if (out == output) + { + get_room(j)->RemoveOutput(m, del); + done = true; + } + } + } + + return done; +} + +int ListeRoom::get_nb_input() +{ + return eina_hash_population(input_table); +} + +int ListeRoom::get_nb_output() +{ + return eina_hash_population(output_table); +} + +Input *ListeRoom::get_chauffage_var(std::string &chauff_id, ChauffType type) +{ + Utils::logger("room") << Priority::DEBUG << "Searching inputs for chauffage_id \"" << chauff_id << "\"" << log4cpp::eol; + for (int j = 0;j < rooms.size();j++) + { + for (int m = 0;m < rooms[j]->get_size_in();m++) + { + Input *in = rooms[j]->get_input(m); + Utils::logger("room") << Priority::DEBUG << "Comparing \"" << in->get_param("chauffage_id") + << "\" with \"" << chauff_id << "\"" << log4cpp::eol; + if (in->get_param("chauffage_id") == chauff_id) + { + Utils::logger("room") << Priority::DEBUG << "\"" << chauff_id << "\" found !" << log4cpp::eol; + switch (type) + { + case PLAGE_HORAIRE: if (in->get_param("type") == "InPlageHoraire") return in; break; + case CONSIGNE: if (in->get_param("type") == "InternalInt") return in; break; + case ACTIVE: if (in->get_param("type") == "InternalBool") return in; break; + } + } + } + } + + Utils::logger("room") << Priority::DEBUG << "\"" << chauff_id << "\" not found !" << log4cpp::eol; + return NULL; +} + +void ListeRoom::addScenarioCache(Scenario *sc) +{ + auto_scenario_cache.push_back(sc); +} + +void ListeRoom::delScenarioCache(Scenario *sc) +{ + auto_scenario_cache.remove(sc); +} + +list ListeRoom::getAutoScenarios() +{ + Utils::logger("room") << Priority::DEBUG << "getAutoScenario(): Found " << auto_scenario_cache.size() << " auto_scenarios." << log4cpp::eol; + + return auto_scenario_cache; +} + +void ListeRoom::checkAutoScenario() +{ + list::iterator it = auto_scenario_cache.begin(); + + for (;it != auto_scenario_cache.end();it++) + { + Scenario *sc = *it; + if (sc->getAutoScenario()) + sc->getAutoScenario()->checkScenarioRules(); + } + + list to_remove; + for (int i = 0;i < ListeRule::Instance().size();i++) + { + Rule *rule = ListeRule::Instance().get_rule(i); + if (rule->param_exists("auto_scenario") && !rule->isAutoScenario()) + to_remove.push_back(rule); + } + + list::iterator itr = to_remove.begin(); + for (;itr != to_remove.end();itr++) + ListeRule::Instance().Remove(*itr); + + //Resave config, auto scenarios have probably created/deleted ios and rules + Config::Instance().SaveConfigIO(); + Config::Instance().SaveConfigRule(); +} + +Room * ListeRoom::searchRoomByNameAndType(string name, string type) +{ + Room *r = NULL; + vector::iterator itRoom; + + for(itRoom = rooms.begin(); itRoom != rooms.end() && !r; itRoom++) + if( (*itRoom)->get_name() == name && (*itRoom)->get_type() == type) + r = *itRoom; + + return r; +} + +Room *ListeRoom::getRoomByInput(Input *o) +{ + Room *r = NULL; + + for (int j = 0;j < rooms.size() && !r;j++) + { + for (int m = 0;m < rooms[j]->get_size_in() && !r;m++) + { + if (rooms[j]->get_input(m) == o) + r = rooms[j]; + } + } + + return r; +} + +Room *ListeRoom::getRoomByOutput(Output *o) +{ + Room *r = NULL; + + for (int j = 0;j < rooms.size() && !r;j++) + { + for (int m = 0;m < rooms[j]->get_size_out() && !r;m++) + { + if (rooms[j]->get_output(m) == o) + r = rooms[j]; + } + } + + return r; +} + +bool ListeRoom::deleteIO(Input *input, bool modify) +{ + //first delete all rules using "input" + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(input); + + bool done = false; + if (input->get_param("type") == "CamInput" + || input->get_param("type") == "AudioInput" + || input->get_param("type") == "IRInput" + || input->get_param("type") == "CamOutput" + || input->get_param("type") == "AudioOutput" + || input->get_param("type") == "IROutput") + { + CamInput *icam = dynamic_cast(input); + if (icam) + { + IPCam *cam = icam->get_cam(); + delete_input(cam->get_input(), false); + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(cam->get_output()); + delete_output(cam->get_output(), false); + CamManager::Instance().Delete(cam); + done = true; + } + AudioInput *iaudio = dynamic_cast(input); + if (iaudio) + { + AudioPlayer *audio = iaudio->get_player(); + delete_input(audio->get_input(), false); + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(audio->get_output()); + delete_output(audio->get_output(), false); + AudioManager::Instance().Delete(audio); + done = true; + } + } + else + { + if (input->get_param("type") == "InputTime" + || input->get_param("type") == "WITemp" + || input->get_param("type") == "WIAnalog" + || input->get_param("type") == "OWTemp" + || input->get_param("type") == "InPlageHoraire" + || input->get_param("type") == "InputTimer") + ListeRule::Instance().Remove(input); + if (input->get_param("type") == "InputTimer") + { + //also delete the output + InputTimer *tm = dynamic_cast (input); + Output *o = dynamic_cast (tm); + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(o); + if (o) ListeRoom::Instance().delete_output(o, false); + } + + if (input->get_param("type") == "scenario" || input->get_param("type") == "Scenario") + { + //also delete the output + Scenario *sc = dynamic_cast (input); + if (sc) + { + Output *o = dynamic_cast (sc); + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(o); + if (o) + ListeRoom::Instance().delete_output(o, false); + } + } + + if (input->get_param("type") == "InternalBool" || + input->get_param("type") == "InternalInt" || + input->get_param("type") == "InternalString") + { + //also delete the output + Internal *internal = dynamic_cast (input); + + if (internal) + { + Output *o = dynamic_cast (internal); + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(o); + if (o) + ListeRoom::Instance().delete_output(o, false); + } + } + + done = ListeRoom::Instance().delete_input(input); + } + + return done; +} + + +bool ListeRoom::deleteIO(Output *output, bool modify) +{ + //first delete all rules using "output" + if (!modify) //only deletes if modify is not set + ListeRule::Instance().RemoveRule(output); + + bool done = false; + if (output->get_param("type") == "CamInput" + || output->get_param("type") == "AudioInput" + || output->get_param("type") == "IRInput" + || output->get_param("type") == "CamOutput" + || output->get_param("type") == "AudioOutput" + || output->get_param("type") == "IROutput") + { + CamOutput *icam = dynamic_cast(output); + if (icam) + { + IPCam *cam = icam->get_cam(); + ListeRule::Instance().RemoveRule(cam->get_input()); + ListeRoom::Instance().delete_input(cam->get_input(), false); + ListeRoom::Instance().delete_output(cam->get_output(), false); + CamManager::Instance().Delete(cam); + done = true; + } + AudioOutput *iaudio = dynamic_cast(output); + if (iaudio) + { + AudioPlayer *audio = iaudio->get_player(); + ListeRule::Instance().RemoveRule(audio->get_input()); + ListeRoom::Instance().delete_input(audio->get_input(), false); + ListeRoom::Instance().delete_output(audio->get_output(), false); + AudioManager::Instance().Delete(audio); + done = true; + } + } + else if (output->get_param("type") != "OutTouchscreen") + { + if (output->get_param("type") == "InputTimer") + { + //also delete the input + InputTimer *tm = dynamic_cast (output); + Input *in = dynamic_cast (tm); + ListeRule::Instance().RemoveRule(in); + ListeRule::Instance().Remove(in); + if (in) ListeRoom::Instance().delete_input(in, false); + } + + if (output->get_param("type") == "scenario" + || output->get_param("type") == "Scenario") + { + //also delete the input + Scenario *sc = dynamic_cast (output); + if (sc) + { + Input *o = dynamic_cast (sc); + ListeRule::Instance().RemoveRule(o); + if (o) ListeRoom::Instance().delete_input(o, false); + } + } + + if (output->get_param("type") == "InternalBool" || + output->get_param("type") == "InternalInt" || + output->get_param("type") == "InternalString") + { + //also delete the input + Internal *internal = dynamic_cast (output); + if (internal) + { + Input *o = dynamic_cast (internal); + if (o) + { + ListeRule::Instance().RemoveRule(o); + ListeRoom::Instance().delete_input(o, false); + } + } + } + + done = ListeRoom::Instance().delete_output(output); + } + + return done; +} + +Input* ListeRoom::createInput(Params param, Room *room) +{ + Input *input = NULL; + + if (!param.Exists("name")) param.Add("name", "Input"); + if (!param.Exists("type")) param.Add("type", "WIDigital"); + if (param["type"] != "scenario" && param["type"] != "InputTimeDate" && + param["type"] != "InputTime" && param["type"] != "X10Output" && + param["type"] != "InternalInt" && param["type"] != "InternalBool" && + param["type"] != "InternalString" && param["type"] != "InputTimer") + { + if (!param.Exists("var")) param.Add("var", "0"); + if (!param.Exists("host")) param.Add("host", "10.0.0.123"); + if (!param.Exists("port")) param.Add("port", "502"); + } + + if (param["type"] == "InternalBool" || param["type"] == "InternalInt" || param["type"] == "InternalString") + { + if (!param.Exists("id")) param.Add("id", Calaos::get_new_id("intern_")); + } + else + { + if (!param.Exists("id")) param.Add("id", Calaos::get_new_id("input_")); + } + + if (param["type"] == "InputTime" || param["type"] == "InputTimeDate" || + param["type"] == "InputTimer") + { + if (!param.Exists("hour")) param.Add("hour", "0"); + if (!param.Exists("min")) param.Add("min", "0"); + if (!param.Exists("sec")) param.Add("sec", "0"); + } + if (param["type"] == "InputTimeDate") + { + if (!param.Exists("year")) param.Add("year", "0"); + if (!param.Exists("month")) param.Add("month", "0"); + if (!param.Exists("day")) param.Add("day", "0"); + param.Add("type", "InputTime"); + } + + if (param["type"] == "InputTimer") + { + if (!param.Exists("msec")) param.Add("msec", "0"); + std::string type = param["type"]; + input = IOFactory::CreateInput(type, param); + if (input) room->AddInput(input); + + //also add the it as an output + InputTimer *o = dynamic_cast (input); + if (o) room->AddOutput(o); + + string sig = "new_input id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + + //Also new output + sig = "new_output id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + } + else if (param["type"] == "scenario") + { + std::string type = param["type"]; + input = IOFactory::CreateInput(type, param); + if (input) room->AddInput(input); + + //also add it as an output + Scenario *o = dynamic_cast (input); + if (o) room->AddOutput(o); + + string sig = "new_input id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + + //Also new output + sig = "new_output id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + } + else if (param["type"] == "InternalBool" || param["type"] == "InternalInt" || param["type"] == "InternalString") + { + if (!param.Exists("name")) param.Add("name", "Value"); + + std::string type = param["type"]; + input = IOFactory::CreateInput(type, param); + if (input) room->AddInput(input); + + //also add it as an output + Internal *o = dynamic_cast (input); + if (o) room->AddOutput(o); + + string sig = "new_input id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + + //Also new output + sig = "new_output id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + } + else + { + std::string type = param["type"]; + input = IOFactory::CreateInput(type, param); + if (input) room->AddInput(input); + + string sig = "new_input id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + } + + return input; +} + +Output* ListeRoom::createOutput(Params param, Room *room) +{ + Output *output = NULL; + + if (!param.Exists("name")) param.Add("name", "Output"); + if (!param.Exists("type")) param.Add("type", "WODigital"); + if (!param.Exists("host")) param.Add("host", "10.0.0.123"); + if (!param.Exists("port")) param.Add("port", "502"); + if (param["type"] == "WOVolet") + { + if (!param.Exists("var_up")) param.Add("var_up", "0"); + if (!param.Exists("var_down")) param.Add("var_down", "0"); + if (!param.Exists("time")) param.Add("time", "30"); + } + if (param["type"] == "WOVoletSmart") + { + if (!param.Exists("var_up")) param.Add("var_up", "0"); + if (!param.Exists("var_down")) param.Add("var_down", "0"); + if (!param.Exists("time_up")) param.Add("time_up", "30"); + if (!param.Exists("time_down")) param.Add("time_down", "28"); + } + else if (param["type"] == "WONeon") + { + if (!param.Exists("var")) param.Add("var", "0"); + if (!param.Exists("var_relay")) param.Add("var_relay", "0"); + } + else if (param["type"] == "WODali" && (param["type"] == "WODaliRVB")) + if (!param.Exists("var")) param.Add("var", "0"); + if (!param.Exists("id")) param.Add("id", Calaos::get_new_id("output_")); + + std::string type = param["type"]; + output = IOFactory::CreateOutput(type, param); + if (output) room->AddOutput(output); + + string sig = "new_output id:"; + sig += param["id"] + " "; + sig += url_encode(string("room_name:") + room->get_name()) + " "; + sig += url_encode(string("room_type:") + room->get_type()); + IPC::Instance().SendEvent("events", sig); + + return output; +} diff --git a/src/bin/calaos_server/ListeRoom.h b/src/bin/calaos_server/ListeRoom.h new file mode 100644 index 00000000..56ca61ba --- /dev/null +++ b/src/bin/calaos_server/ListeRoom.h @@ -0,0 +1,111 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_ListeRoom_H +#define S_ListeRoom_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Calaos +{ + +typedef enum { PLAGE_HORAIRE, CONSIGNE, ACTIVE } ChauffType; + +class ListeRoom +{ + protected: + std::vector rooms; + Eina_Hash *input_table; + Eina_Hash *output_table; + + list auto_scenario_cache; + + ListeRoom(); + + public: + //singleton + static ListeRoom &Instance(); + + ~ListeRoom(); + + void Add(Room *p); + void Remove(int i); + Room *get_room(int i); + Room *operator[] (int i) const; + + Input *get_input(std::string i); + Output *get_output(std::string i); + + Input *get_input(int i); + Output *get_output(int i); + bool delete_input(Input *in, bool del = true); + bool delete_output(Output *out, bool del = true); + + int get_nb_input(); + int get_nb_output(); + + int size() { return rooms.size(); } + + Input *get_chauffage_var(std::string &chauff_id, ChauffType type); + + //Auto scenarios + + void addScenarioCache(Scenario *sc); + void delScenarioCache(Scenario *sc); + list getAutoScenarios(); + void checkAutoScenario(); + + Room * searchRoomByNameAndType(string name,string type); + + Room *getRoomByInput(Input *o); + Room *getRoomByOutput(Output *o); + + bool deleteIO(Input *input, bool modify = false); + bool deleteIO(Output *output, bool modify = false); + + Input* createInput(Params param, Room *room); + Output* createOutput(Params param, Room *room); + + void addInputHash(Input *input); + void delInputHash(Input *input); + void addOutputHash(Output *output); + void delOutputHash(Output *output); +}; + +} + +#endif diff --git a/src/bin/calaos_server/ListeRule.cpp b/src/bin/calaos_server/ListeRule.cpp new file mode 100644 index 00000000..75b8ba85 --- /dev/null +++ b/src/bin/calaos_server/ListeRule.cpp @@ -0,0 +1,291 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +ListeRule &ListeRule::Instance() +{ + static ListeRule inst; + + return inst; +} + +ListeRule::~ListeRule() +{ + for (int i = 0;i < rules.size();i++) + delete rules[i]; + + rules.clear(); + + Utils::logger("rule") << Priority::DEBUG << "ListeRule::~ListeRule(): Ok" << log4cpp::eol; +} + +void ListeRule::Add(Rule *r) +{ + rules.push_back(r); + + if (r->param_exists("auto_scenario")) + rules_scenarios.push_back(r); + + Utils::logger("rule") << Priority::DEBUG << "ListeRule::Add(" << r->get_name() << "," << r->get_type() << "): Ok" << log4cpp::eol; +} + +void ListeRule::Remove(int pos) +{ + vector::iterator iter = rules.begin(); + for (int i = 0;i < pos;iter++, i++) ; + + if (rules[pos]->param_exists("auto_scenario")) + rules_scenarios.erase(std::remove(rules_scenarios.begin(), rules_scenarios.end(), rules[pos]), rules_scenarios.end()); + + delete rules[pos]; + rules.erase(iter); + + Utils::logger("rule") << Priority::DEBUG << "ListeRule::Remove(): Ok" << log4cpp::eol; +} + +Rule *ListeRule::operator[] (int i) const +{ + return rules[i]; +} + +Rule *ListeRule::get_rule(int i) +{ + return rules[i]; +} + +void ListeRule::RunEventLoop() +{ + if (loop) return; //only one loop at once! + + loop = true; + + //detect events + for (int i = 0;i < in_event.size();i++) + in_event[i]->hasChanged(); + + loop = false; + +// Utils::logger("rule") << Priority::DEBUG << "ListeRule::RunEventLoop(): Loop exited" << log4cpp::eol; +} + +void ListeRule::StopLoop() +{ + loop = false; +} + +Eina_Bool _execute_rule_signal_idler_cb(void *data) +{ + Rule_idler_cb *cb = reinterpret_cast(data); + if (!cb) return ECORE_CALLBACK_CANCEL; + + ListeRule::Instance().ExecuteRuleSignal(cb->input); + + delete cb; + + //delete the ecore_idler + return ECORE_CALLBACK_CANCEL; +} + +void ListeRule::ExecuteRuleSignal(std::string io_id) +{ + if (!mutex.try_lock()) + { + //We can't execute rules for now. Do it later. + Rule_idler_cb *cb = new Rule_idler_cb; + + cb->input = io_id; + cb->idler = ecore_idler_add(_execute_rule_signal_idler_cb, cb); + + Utils::logger("rule") << Priority::DEBUG << "ListeRule::ExecuteRuleSignal(): Mutex locked, execute rule later for input " << io_id << log4cpp::eol; + + return; + } + + Utils::logger("rule") << Priority::DEBUG << "ListeRule::ExecuteRuleSignal(): received signal for id " << io_id << log4cpp::eol; + + for (int i = 0;i < rules.size();i++) + { + Rule *rule = rules[i]; + for (int j = 0;j < rule->get_size_conds();j++) + { + ConditionStd *cond = dynamic_cast(rule->get_condition(j)); + bool exec = false; + for (int k = 0;cond && k < cond->get_size();k++) + { + if (cond->get_input(k)->get_param("id") == io_id) + { + rule->Execute(); + exec = true; + } + } + if (!exec && cond) + { + vector list; + cond->getVarIds(list); + + for (int k = 0;k < list.size();k++) + { + if (list[k]->get_param("id") == io_id) + { + rule->Execute(); + exec = true; + } + } + } + + ConditionScript *scond = dynamic_cast(rule->get_condition(j)); + for (int k = 0;scond && k < scond->get_size();k++) + { + if (scond->get_input(k)->get_param("id") == io_id) + rule->Execute(); + } + + ConditionOutput *ocond = dynamic_cast(rule->get_condition(j)); + if (ocond && ocond->getOutput()->get_param("id") == io_id) + rule->Execute(); + } + } + + mutex.unlock(); +} + +void ListeRule::RemoveRule(Input *obj) +{ + //delete all rules using "output" + for (int i = 0;i < rules.size();i++) + { + Rule *rule = get_rule(i); + Rule *rule_to_del = NULL; + for (int j = 0;j < rule->get_size_conds();j++) + { + ConditionStd *cond = dynamic_cast(rule->get_condition(j)); + if (!cond) continue; + for (int k = 0;k < cond->get_size();k++) + { + if (obj->get_param("id") + == cond->get_input(k)->get_param("id")) + rule_to_del = rule; + } + } + if (rule_to_del) + { + Remove(rule_to_del); + i--; + } + } +} + +void ListeRule::RemoveRule(Output *obj) +{ + //delete all rules using "output" + for (int i = 0;i < rules.size();i++) + { + Rule *rule = get_rule(i); + Rule *rule_to_del = NULL; + for (int j = 0;j < rule->get_size_actions();j++) + { + ActionStd *action = dynamic_cast(rule->get_action(j)); + if (!action) continue; + for (int k = 0;k < action->get_size();k++) + { + if (obj->get_param("id") == action->get_output(k)->get_param("id")) + rule_to_del = rule; + } + } + if (rule_to_del) + { + Remove(rule_to_del); + i--; + } + } +} + +void ListeRule::updateAllRulesToInput(Input *oldio, Input *newio) +{ + for (int i = 0;i < rules.size();i++) + { + Rule *rule = get_rule(i); + for (int j = 0;j < rule->get_size_conds();j++) + { + ConditionStd *cond = dynamic_cast(rule->get_condition(j)); + if (!cond) continue; + for (int k = 0;k < cond->get_size();k++) + { + if (cond->get_input(k) == oldio) + cond->Assign(k, newio); + } + } + } +} + +void ListeRule::updateAllRulesToOutput(Output *oldio, Output *newio) +{ + for (int i = 0;i < rules.size();i++) + { + Rule *rule = get_rule(i); + for (int j = 0;j < rule->get_size_actions();j++) + { + ActionStd *action = dynamic_cast(rule->get_action(j)); + if (!action) continue; + for (int k = 0;k < action->get_size();k++) + { + if (action->get_output(k) == oldio) + action->Assign(k, newio); + } + } + } +} + +void ListeRule::ExecuteStartRules() +{ + for (int i = 0;i < rules.size();i++) + { + Rule *rule = get_rule(i); + bool found = false; + + for (int j = 0;j < rule->get_size_conds();j++) + { + ConditionStart *condition = dynamic_cast(rule->get_condition(j)); + if (condition) + found = true; + } + + if (found) + rule->Execute(); + } +} + +list ListeRule::getRuleAutoScenario(string auto_scenario) +{ + list l; + list::iterator it = rules_scenarios.begin(); + + for (;it != rules_scenarios.end();it++) + { + Rule *r = *it; + if (r->get_param("auto_scenario") == auto_scenario) + l.push_back(r); + } + + return l; +} diff --git a/src/bin/calaos_server/ListeRule.h b/src/bin/calaos_server/ListeRule.h new file mode 100644 index 00000000..660fdcf8 --- /dev/null +++ b/src/bin/calaos_server/ListeRule.h @@ -0,0 +1,107 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_LISTERULE_H +#define S_LISTERULE_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +namespace Calaos +{ + +typedef struct _rule_idler_cb +{ + string input; + Ecore_Idler *idler; +} Rule_idler_cb; + +class ListeRule: public sigc::trackable +{ + protected: + std::vector rules; + + //these input's events are detected in the RunEventLoop() function + std::vector in_event; + + //Rules for autoscenario + list rules_scenarios; + + bool loop; + + Mutex mutex; + + ListeRule(): loop(false), mutex(false) + { Utils::logger("rule") << Priority::DEBUG << "ListeRule::ListeRule(): Ok" << log4cpp::eol; } + + public: + //singleton + static ListeRule &Instance(); + + ~ListeRule(); + + void Add(Rule *p); + void Remove(int i); + void Remove(Rule *obj) + { rules.erase(std::remove(rules.begin(), rules.end(), obj), rules.end()); + rules_scenarios.erase(std::remove(rules_scenarios.begin(), rules_scenarios.end(), obj), rules_scenarios.end()); delete obj; } + void RemoveRule(Input *obj); //remove all rules containing obj + void RemoveRule(Output *obj); //remove all rules containing obj + + void updateAllRulesToInput(Input *oldio, Input *newio); + void updateAllRulesToOutput(Output *oldio, Output *newio); + + Rule *get_rule(int i); + Rule *operator[] (int i) const; + + void Add(Input *in) { in_event.push_back(in); } + void Remove(Input *in) + { in_event.erase(std::remove(in_event.begin(), in_event.end(), in), in_event.end()); } + //Run a loop to detect event from inputs when time or temperature changes + void RunEventLoop(); + void StopLoop(); + + int size() { return rules.size(); } + + //Execute all rules where the input 'input_id' is used + //The function is called only when a signal is emited from inputs + virtual void ExecuteRuleSignal(std::string input_id); + + /* This executes all rules at program startup. All rules with ConditionStart + * will be evaluated and executed (only once) + */ + void ExecuteStartRules(); + + list getRuleAutoScenario(string auto_scenario); +}; + +} +#endif diff --git a/src/bin/calaos_server/Makefile.am b/src/bin/calaos_server/Makefile.am new file mode 100644 index 00000000..e21ce408 --- /dev/null +++ b/src/bin/calaos_server/Makefile.am @@ -0,0 +1,216 @@ + +MAINTAINERCLEANFILES = Makefile.in + +AM_CFLAGS = \ +-I. \ +-I./Rules \ +-I./IPCam \ +-I./Audio \ +-I./IO \ +-I./IO/libmbus \ +-I./Scenario \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DPACKAGE_DATA_DIR=\"$(datadir)/calaos\" \ +-I$(top_srcdir)/src/lib \ +-I$(top_srcdir)/src/lib/LuaScript \ +-I$(top_srcdir)/src/bin/calaos_server/\ +-I$(top_srcdir)/src/bin/calaos_server/Rules\ +@CALAOS_COMMON_CFLAGS@ \ +@CALAOS_SERVER_CFLAGS@ \ +-DLIBMBUS + +AM_CXXFLAGS = \ +-I. \ +-I./Rules \ +-I./IPCam \ +-I./Audio \ +-I./IO \ +-I./IO/libmbus \ +-I./Scenario \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DPACKAGE_DATA_DIR=\"$(datadir)/calaos\" \ +-DETC_DIR=\"$(sysconfdir)/calaos/\" \ +-I$(top_srcdir)/src/lib \ +-I$(top_srcdir)/src/lib/LuaScript \ +-I$(top_srcdir)/src/bin/calaos_server\ +-I$(top_srcdir)/src/bin/calaos_server/Rules\ +-I$(top_srcdir)/src/bin/calaos_server/IO\ +-I$(top_srcdir)/src/bin/calaos_server/Audio\ +-I$(top_srcdir)/src/bin/calaos_server/IPCam\ +-I$(top_srcdir)/src/bin/calaos_server/TCPProcessor\ +-I$(top_srcdir)/src/bin/calaos_server/IO/libmbus\ +-I$(top_srcdir)/src/bin/calaos_server/Scenario\ +@CALAOS_COMMON_CFLAGS@ \ +@CALAOS_SERVER_CFLAGS@ \ +-DLIBMBUS + + +bin_PROGRAMS = calaos_server + +calaos_server_SOURCES = \ +main.cpp \ +Calaos.cpp \ +Room.cpp \ +IO/InputTime.cpp \ +IO/InputTimer.cpp \ +IO/OutputFake.cpp \ +IO/IOFactory.cpp \ +ListeRoom.cpp \ +Rules/Action.cpp \ +Rules/ActionStd.cpp \ +Rules/ActionTouchscreen.cpp \ +Rules/ActionMail.cpp \ +Rules/ActionScript.cpp \ +Rules/Condition.cpp \ +Rules/ConditionStd.cpp \ +Rules/ConditionOutput.cpp \ +Rules/ConditionStart.cpp \ +Rules/ConditionScript.cpp \ +Rules/RulesFactory.cpp \ +Rule.cpp \ +Output.cpp \ +ListeRule.cpp \ +Config.cpp \ +IO/WagoCtrl.cpp \ +IO/WODigital.cpp \ +IO/WagoMap.cpp \ +IO/WIDigitalBP.cpp \ +IO/WIDigitalTriple.cpp \ +TCPServer.cpp \ +TCPConnection.cpp \ +Audio/AudioDB.cpp \ +Audio/AudioManager.cpp \ +Audio/Squeezebox.cpp \ +Audio/SqueezeboxDB.cpp \ +Audio/AudioInput.cpp \ +Audio/AudioOutput.cpp \ +IO/IntValue.cpp \ +IO/WITemp.cpp \ +IO/OWTemp.cpp \ +IPCam/IPCam.cpp \ +IPCam/CamInput.cpp \ +IPCam/CamManager.cpp \ +IPCam/CamOutput.cpp \ +IO/Scenario.cpp \ +IPCam/Gadspot.cpp \ +IPCam/Axis.cpp \ +IPCam/StandardMjpeg.cpp \ +IO/WOVolet.cpp \ +UDPServer.cpp \ +IO/X10Output.cpp \ +IO/InPlageHoraire.cpp \ +Input.cpp \ +IPCam/Planet.cpp \ +TCPProcessor/BaseCommand.cpp \ +TCPProcessor/CameraCommand.cpp \ +TCPProcessor/IOCommand.cpp \ +TCPProcessor/HomeCommand.cpp \ +TCPProcessor/RulesCommand.cpp \ +TCPProcessor/ListenCommand.cpp \ +TCPProcessor/ScenarioCommand.cpp \ +IPCam/CamConnection.cpp \ +IPCam/CamServer.cpp \ +IO/WODali.cpp \ +IO/WODaliRVB.cpp \ +TCPProcessor/AudioCommand.cpp \ +Audio/AudioPlayer.cpp \ +IO/WOVoletSmart.cpp \ +IO/libmbus/mbus.c \ +IO/libmbus/mbus_cmd.c \ +IO/libmbus/mbus_rqst.c \ +IO/libmbus/mbus_sock.c \ +Scenario/AutoScenario.cpp \ +IO/WOAnalog.cpp \ +IO/WIAnalog.cpp \ +PollListenner.cpp \ +Audio/AVRManager.cpp \ +Audio/AVReceiver.cpp \ +Audio/AVRPioneer.cpp \ +Audio/AVRDenon.cpp \ +Audio/AVROnkyo.cpp \ +Audio/AVRMarantz.cpp \ +IPCam/Planet.h \ +IPCam/Axis.h \ +IPCam/StandardMjpeg.h \ +IPCam/CamOutput.h \ +IPCam/CamServer.h \ +IPCam/Gadspot.h \ +IPCam/CamManager.h \ +IPCam/IPCam.h \ +IPCam/CamConnection.h \ +IPCam/CamInput.h \ +UDPServer.h \ +Scenario/ScenarioStep.h \ +Scenario/ScenarioIO.h \ +Scenario/Scenarios.h \ +Scenario/Scenario.h \ +Scenario/AutoScenario.h \ +Audio/AudioPlayerData.h \ +Audio/AVRDenon.h \ +Audio/AudioPlayer.h \ +Audio/AudioManager.h \ +Audio/AVRManager.h \ +Audio/AudioDB.h \ +Audio/AVRPioneer.h \ +Audio/SqueezeboxDB.h \ +Audio/Squeezebox.h \ +Audio/AVROnkyo.h \ +Audio/AudioOutput.h \ +Audio/AVRMarantz.h \ +Audio/AVReceiver.h \ +Audio/AudioInput.h \ +PollListenner.h \ +IOBase.h \ +Input.h \ +Etage.h \ +Rule.h \ +WagoHeartbeat.h \ +TCPConnection.h \ +Calaos.h \ +ListeRoom.h \ +Output.h \ +Config.h \ +Rules/RulesFactory.h \ +Rules/ActionTouchscreen.h \ +Rules/ConditionStd.h \ +Rules/Condition.h \ +Rules/ConditionOutput.h \ +Rules/ConditionStart.h \ +Rules/Action.h \ +Rules/ActionStd.h \ +Rules/ConditionScript.h \ +Rules/ActionMail.h \ +Rules/ActionScript.h \ +Room.h \ +ListeRule.h \ +IO/WIDigitalBP.h \ +IO/WODali.h \ +IO/WIAnalog.h \ +IO/InPlageHoraire.h \ +IO/WagoCtrl.h \ +IO/InputTime.h \ +IO/OWTemp.h \ +IO/WODigital.h \ +IO/WITemp.h \ +IO/Scenario.h \ +IO/X10Output.h \ +IO/InputTimer.h \ +IO/libmbus/mbus.h \ +IO/libmbus/mbus_conf.h \ +IO/WOVoletSmart.h \ +IO/WagoMap.h \ +IO/IntValue.h \ +IO/WOAnalog.h \ +IO/IOFactory.h \ +IO/WODaliRVB.h \ +IO/WIDigitalTriple.h \ +IO/WOVolet.h \ +IO/OutputFake.h \ +TCPServer.h \ +IO/sunset.c + +calaos_server_LDADD = \ +@CALAOS_SERVER_LIBS@ \ +$(top_builddir)/src/lib/libcalaos_common.la diff --git a/src/bin/calaos_server/Makefile.in b/src/bin/calaos_server/Makefile.in new file mode 100644 index 00000000..9f53445b --- /dev/null +++ b/src/bin/calaos_server/Makefile.in @@ -0,0 +1,1873 @@ +# Makefile.in generated by automake 1.11.3 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = calaos_server$(EXEEXT) +subdir = src/bin/calaos_server +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 = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +PROGRAMS = $(bin_PROGRAMS) +am_calaos_server_OBJECTS = main.$(OBJEXT) Calaos.$(OBJEXT) \ + Room.$(OBJEXT) InputTime.$(OBJEXT) InputTimer.$(OBJEXT) \ + OutputFake.$(OBJEXT) IOFactory.$(OBJEXT) ListeRoom.$(OBJEXT) \ + Action.$(OBJEXT) ActionStd.$(OBJEXT) \ + ActionTouchscreen.$(OBJEXT) ActionMail.$(OBJEXT) \ + ActionScript.$(OBJEXT) Condition.$(OBJEXT) \ + ConditionStd.$(OBJEXT) ConditionOutput.$(OBJEXT) \ + ConditionStart.$(OBJEXT) ConditionScript.$(OBJEXT) \ + RulesFactory.$(OBJEXT) Rule.$(OBJEXT) Output.$(OBJEXT) \ + ListeRule.$(OBJEXT) Config.$(OBJEXT) WagoCtrl.$(OBJEXT) \ + WODigital.$(OBJEXT) WagoMap.$(OBJEXT) WIDigitalBP.$(OBJEXT) \ + WIDigitalTriple.$(OBJEXT) TCPServer.$(OBJEXT) \ + TCPConnection.$(OBJEXT) AudioDB.$(OBJEXT) \ + AudioManager.$(OBJEXT) Squeezebox.$(OBJEXT) \ + SqueezeboxDB.$(OBJEXT) AudioInput.$(OBJEXT) \ + AudioOutput.$(OBJEXT) IntValue.$(OBJEXT) WITemp.$(OBJEXT) \ + OWTemp.$(OBJEXT) IPCam.$(OBJEXT) CamInput.$(OBJEXT) \ + CamManager.$(OBJEXT) CamOutput.$(OBJEXT) Scenario.$(OBJEXT) \ + Gadspot.$(OBJEXT) Axis.$(OBJEXT) StandardMjpeg.$(OBJEXT) \ + WOVolet.$(OBJEXT) UDPServer.$(OBJEXT) X10Output.$(OBJEXT) \ + InPlageHoraire.$(OBJEXT) Input.$(OBJEXT) Planet.$(OBJEXT) \ + BaseCommand.$(OBJEXT) CameraCommand.$(OBJEXT) \ + IOCommand.$(OBJEXT) HomeCommand.$(OBJEXT) \ + RulesCommand.$(OBJEXT) ListenCommand.$(OBJEXT) \ + ScenarioCommand.$(OBJEXT) CamConnection.$(OBJEXT) \ + CamServer.$(OBJEXT) WODali.$(OBJEXT) WODaliRVB.$(OBJEXT) \ + AudioCommand.$(OBJEXT) AudioPlayer.$(OBJEXT) \ + WOVoletSmart.$(OBJEXT) mbus.$(OBJEXT) mbus_cmd.$(OBJEXT) \ + mbus_rqst.$(OBJEXT) mbus_sock.$(OBJEXT) AutoScenario.$(OBJEXT) \ + WOAnalog.$(OBJEXT) WIAnalog.$(OBJEXT) PollListenner.$(OBJEXT) \ + AVRManager.$(OBJEXT) AVReceiver.$(OBJEXT) AVRPioneer.$(OBJEXT) \ + AVRDenon.$(OBJEXT) AVROnkyo.$(OBJEXT) AVRMarantz.$(OBJEXT) \ + sunset.$(OBJEXT) +calaos_server_OBJECTS = $(am_calaos_server_OBJECTS) +calaos_server_DEPENDENCIES = \ + $(top_builddir)/src/lib/libcalaos_common.la +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +SOURCES = $(calaos_server_SOURCES) +DIST_SOURCES = $(calaos_server_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CALAOS_COMMON_CFLAGS = @CALAOS_COMMON_CFLAGS@ +CALAOS_COMMON_LIBS = @CALAOS_COMMON_LIBS@ +CALAOS_HOME_CFLAGS = @CALAOS_HOME_CFLAGS@ +CALAOS_HOME_LIBS = @CALAOS_HOME_LIBS@ +CALAOS_SERVER_CFLAGS = @CALAOS_SERVER_CFLAGS@ +CALAOS_SERVER_LIBS = @CALAOS_SERVER_LIBS@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +requirements_calaos_common = @requirements_calaos_common@ +requirements_calaos_home = @requirements_calaos_home@ +requirements_calaos_server = @requirements_calaos_server@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +MAINTAINERCLEANFILES = Makefile.in +AM_CFLAGS = \ +-I. \ +-I./Rules \ +-I./IPCam \ +-I./Audio \ +-I./IO \ +-I./IO/libmbus \ +-I./Scenario \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DPACKAGE_DATA_DIR=\"$(datadir)/calaos\" \ +-I$(top_srcdir)/src/lib \ +-I$(top_srcdir)/src/lib/LuaScript \ +-I$(top_srcdir)/src/bin/calaos_server/\ +-I$(top_srcdir)/src/bin/calaos_server/Rules\ +@CALAOS_COMMON_CFLAGS@ \ +@CALAOS_SERVER_CFLAGS@ \ +-DLIBMBUS + +AM_CXXFLAGS = \ +-I. \ +-I./Rules \ +-I./IPCam \ +-I./Audio \ +-I./IO \ +-I./IO/libmbus \ +-I./Scenario \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DPACKAGE_DATA_DIR=\"$(datadir)/calaos\" \ +-DETC_DIR=\"$(sysconfdir)/calaos/\" \ +-I$(top_srcdir)/src/lib \ +-I$(top_srcdir)/src/lib/LuaScript \ +-I$(top_srcdir)/src/bin/calaos_server\ +-I$(top_srcdir)/src/bin/calaos_server/Rules\ +-I$(top_srcdir)/src/bin/calaos_server/IO\ +-I$(top_srcdir)/src/bin/calaos_server/Audio\ +-I$(top_srcdir)/src/bin/calaos_server/IPCam\ +-I$(top_srcdir)/src/bin/calaos_server/TCPProcessor\ +-I$(top_srcdir)/src/bin/calaos_server/IO/libmbus\ +-I$(top_srcdir)/src/bin/calaos_server/Scenario\ +@CALAOS_COMMON_CFLAGS@ \ +@CALAOS_SERVER_CFLAGS@ \ +-DLIBMBUS + +calaos_server_SOURCES = \ +main.cpp \ +Calaos.cpp \ +Room.cpp \ +IO/InputTime.cpp \ +IO/InputTimer.cpp \ +IO/OutputFake.cpp \ +IO/IOFactory.cpp \ +ListeRoom.cpp \ +Rules/Action.cpp \ +Rules/ActionStd.cpp \ +Rules/ActionTouchscreen.cpp \ +Rules/ActionMail.cpp \ +Rules/ActionScript.cpp \ +Rules/Condition.cpp \ +Rules/ConditionStd.cpp \ +Rules/ConditionOutput.cpp \ +Rules/ConditionStart.cpp \ +Rules/ConditionScript.cpp \ +Rules/RulesFactory.cpp \ +Rule.cpp \ +Output.cpp \ +ListeRule.cpp \ +Config.cpp \ +IO/WagoCtrl.cpp \ +IO/WODigital.cpp \ +IO/WagoMap.cpp \ +IO/WIDigitalBP.cpp \ +IO/WIDigitalTriple.cpp \ +TCPServer.cpp \ +TCPConnection.cpp \ +Audio/AudioDB.cpp \ +Audio/AudioManager.cpp \ +Audio/Squeezebox.cpp \ +Audio/SqueezeboxDB.cpp \ +Audio/AudioInput.cpp \ +Audio/AudioOutput.cpp \ +IO/IntValue.cpp \ +IO/WITemp.cpp \ +IO/OWTemp.cpp \ +IPCam/IPCam.cpp \ +IPCam/CamInput.cpp \ +IPCam/CamManager.cpp \ +IPCam/CamOutput.cpp \ +IO/Scenario.cpp \ +IPCam/Gadspot.cpp \ +IPCam/Axis.cpp \ +IPCam/StandardMjpeg.cpp \ +IO/WOVolet.cpp \ +UDPServer.cpp \ +IO/X10Output.cpp \ +IO/InPlageHoraire.cpp \ +Input.cpp \ +IPCam/Planet.cpp \ +TCPProcessor/BaseCommand.cpp \ +TCPProcessor/CameraCommand.cpp \ +TCPProcessor/IOCommand.cpp \ +TCPProcessor/HomeCommand.cpp \ +TCPProcessor/RulesCommand.cpp \ +TCPProcessor/ListenCommand.cpp \ +TCPProcessor/ScenarioCommand.cpp \ +IPCam/CamConnection.cpp \ +IPCam/CamServer.cpp \ +IO/WODali.cpp \ +IO/WODaliRVB.cpp \ +TCPProcessor/AudioCommand.cpp \ +Audio/AudioPlayer.cpp \ +IO/WOVoletSmart.cpp \ +IO/libmbus/mbus.c \ +IO/libmbus/mbus_cmd.c \ +IO/libmbus/mbus_rqst.c \ +IO/libmbus/mbus_sock.c \ +Scenario/AutoScenario.cpp \ +IO/WOAnalog.cpp \ +IO/WIAnalog.cpp \ +PollListenner.cpp \ +Audio/AVRManager.cpp \ +Audio/AVReceiver.cpp \ +Audio/AVRPioneer.cpp \ +Audio/AVRDenon.cpp \ +Audio/AVROnkyo.cpp \ +Audio/AVRMarantz.cpp \ +IPCam/Planet.h \ +IPCam/Axis.h \ +IPCam/StandardMjpeg.h \ +IPCam/CamOutput.h \ +IPCam/CamServer.h \ +IPCam/Gadspot.h \ +IPCam/CamManager.h \ +IPCam/IPCam.h \ +IPCam/CamConnection.h \ +IPCam/CamInput.h \ +UDPServer.h \ +Scenario/ScenarioStep.h \ +Scenario/ScenarioIO.h \ +Scenario/Scenarios.h \ +Scenario/Scenario.h \ +Scenario/AutoScenario.h \ +Audio/AudioPlayerData.h \ +Audio/AVRDenon.h \ +Audio/AudioPlayer.h \ +Audio/AudioManager.h \ +Audio/AVRManager.h \ +Audio/AudioDB.h \ +Audio/AVRPioneer.h \ +Audio/SqueezeboxDB.h \ +Audio/Squeezebox.h \ +Audio/AVROnkyo.h \ +Audio/AudioOutput.h \ +Audio/AVRMarantz.h \ +Audio/AVReceiver.h \ +Audio/AudioInput.h \ +PollListenner.h \ +IOBase.h \ +Input.h \ +Etage.h \ +Rule.h \ +WagoHeartbeat.h \ +TCPConnection.h \ +Calaos.h \ +ListeRoom.h \ +Output.h \ +Config.h \ +Rules/RulesFactory.h \ +Rules/ActionTouchscreen.h \ +Rules/ConditionStd.h \ +Rules/Condition.h \ +Rules/ConditionOutput.h \ +Rules/ConditionStart.h \ +Rules/Action.h \ +Rules/ActionStd.h \ +Rules/ConditionScript.h \ +Rules/ActionMail.h \ +Rules/ActionScript.h \ +Room.h \ +ListeRule.h \ +IO/WIDigitalBP.h \ +IO/WODali.h \ +IO/WIAnalog.h \ +IO/InPlageHoraire.h \ +IO/WagoCtrl.h \ +IO/InputTime.h \ +IO/OWTemp.h \ +IO/WODigital.h \ +IO/WITemp.h \ +IO/Scenario.h \ +IO/X10Output.h \ +IO/InputTimer.h \ +IO/libmbus/mbus.h \ +IO/libmbus/mbus_conf.h \ +IO/WOVoletSmart.h \ +IO/WagoMap.h \ +IO/IntValue.h \ +IO/WOAnalog.h \ +IO/IOFactory.h \ +IO/WODaliRVB.h \ +IO/WIDigitalTriple.h \ +IO/WOVolet.h \ +IO/OutputFake.h \ +TCPServer.h \ +IO/sunset.c + +calaos_server_LDADD = \ +@CALAOS_SERVER_LIBS@ \ +$(top_builddir)/src/lib/libcalaos_common.la + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .cpp .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/bin/calaos_server/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/bin/calaos_server/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +calaos_server$(EXEEXT): $(calaos_server_OBJECTS) $(calaos_server_DEPENDENCIES) $(EXTRA_calaos_server_DEPENDENCIES) + @rm -f calaos_server$(EXEEXT) + $(AM_V_CXXLD)$(CXXLINK) $(calaos_server_OBJECTS) $(calaos_server_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AVRDenon.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AVRManager.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AVRMarantz.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AVROnkyo.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AVRPioneer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AVReceiver.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Action.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActionMail.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActionScript.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActionStd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ActionTouchscreen.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioDB.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioInput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioManager.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioOutput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AudioPlayer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AutoScenario.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Axis.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/BaseCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Calaos.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CamConnection.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CamInput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CamManager.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CamOutput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CamServer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CameraCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Condition.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ConditionOutput.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ConditionScript.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ConditionStart.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ConditionStd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Config.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Gadspot.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HomeCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IOFactory.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IPCam.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/InPlageHoraire.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Input.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/InputTime.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/InputTimer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/IntValue.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ListeRoom.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ListeRule.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ListenCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OWTemp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Output.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OutputFake.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Planet.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PollListenner.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Room.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Rule.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RulesCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RulesFactory.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Scenario.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ScenarioCommand.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Squeezebox.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SqueezeboxDB.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/StandardMjpeg.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TCPConnection.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TCPServer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/UDPServer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WIAnalog.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WIDigitalBP.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WIDigitalTriple.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WITemp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WOAnalog.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WODali.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WODaliRVB.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WODigital.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WOVolet.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WOVoletSmart.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WagoCtrl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WagoMap.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/X10Output.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbus.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbus_cmd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbus_rqst.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbus_sock.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sunset.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +mbus.o: IO/libmbus/mbus.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus.o -MD -MP -MF $(DEPDIR)/mbus.Tpo -c -o mbus.o `test -f 'IO/libmbus/mbus.c' || echo '$(srcdir)/'`IO/libmbus/mbus.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus.Tpo $(DEPDIR)/mbus.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus.c' object='mbus.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus.o `test -f 'IO/libmbus/mbus.c' || echo '$(srcdir)/'`IO/libmbus/mbus.c + +mbus.obj: IO/libmbus/mbus.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus.obj -MD -MP -MF $(DEPDIR)/mbus.Tpo -c -o mbus.obj `if test -f 'IO/libmbus/mbus.c'; then $(CYGPATH_W) 'IO/libmbus/mbus.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus.Tpo $(DEPDIR)/mbus.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus.c' object='mbus.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus.obj `if test -f 'IO/libmbus/mbus.c'; then $(CYGPATH_W) 'IO/libmbus/mbus.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus.c'; fi` + +mbus_cmd.o: IO/libmbus/mbus_cmd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus_cmd.o -MD -MP -MF $(DEPDIR)/mbus_cmd.Tpo -c -o mbus_cmd.o `test -f 'IO/libmbus/mbus_cmd.c' || echo '$(srcdir)/'`IO/libmbus/mbus_cmd.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus_cmd.Tpo $(DEPDIR)/mbus_cmd.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus_cmd.c' object='mbus_cmd.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus_cmd.o `test -f 'IO/libmbus/mbus_cmd.c' || echo '$(srcdir)/'`IO/libmbus/mbus_cmd.c + +mbus_cmd.obj: IO/libmbus/mbus_cmd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus_cmd.obj -MD -MP -MF $(DEPDIR)/mbus_cmd.Tpo -c -o mbus_cmd.obj `if test -f 'IO/libmbus/mbus_cmd.c'; then $(CYGPATH_W) 'IO/libmbus/mbus_cmd.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus_cmd.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus_cmd.Tpo $(DEPDIR)/mbus_cmd.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus_cmd.c' object='mbus_cmd.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus_cmd.obj `if test -f 'IO/libmbus/mbus_cmd.c'; then $(CYGPATH_W) 'IO/libmbus/mbus_cmd.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus_cmd.c'; fi` + +mbus_rqst.o: IO/libmbus/mbus_rqst.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus_rqst.o -MD -MP -MF $(DEPDIR)/mbus_rqst.Tpo -c -o mbus_rqst.o `test -f 'IO/libmbus/mbus_rqst.c' || echo '$(srcdir)/'`IO/libmbus/mbus_rqst.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus_rqst.Tpo $(DEPDIR)/mbus_rqst.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus_rqst.c' object='mbus_rqst.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus_rqst.o `test -f 'IO/libmbus/mbus_rqst.c' || echo '$(srcdir)/'`IO/libmbus/mbus_rqst.c + +mbus_rqst.obj: IO/libmbus/mbus_rqst.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus_rqst.obj -MD -MP -MF $(DEPDIR)/mbus_rqst.Tpo -c -o mbus_rqst.obj `if test -f 'IO/libmbus/mbus_rqst.c'; then $(CYGPATH_W) 'IO/libmbus/mbus_rqst.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus_rqst.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus_rqst.Tpo $(DEPDIR)/mbus_rqst.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus_rqst.c' object='mbus_rqst.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus_rqst.obj `if test -f 'IO/libmbus/mbus_rqst.c'; then $(CYGPATH_W) 'IO/libmbus/mbus_rqst.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus_rqst.c'; fi` + +mbus_sock.o: IO/libmbus/mbus_sock.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus_sock.o -MD -MP -MF $(DEPDIR)/mbus_sock.Tpo -c -o mbus_sock.o `test -f 'IO/libmbus/mbus_sock.c' || echo '$(srcdir)/'`IO/libmbus/mbus_sock.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus_sock.Tpo $(DEPDIR)/mbus_sock.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus_sock.c' object='mbus_sock.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus_sock.o `test -f 'IO/libmbus/mbus_sock.c' || echo '$(srcdir)/'`IO/libmbus/mbus_sock.c + +mbus_sock.obj: IO/libmbus/mbus_sock.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mbus_sock.obj -MD -MP -MF $(DEPDIR)/mbus_sock.Tpo -c -o mbus_sock.obj `if test -f 'IO/libmbus/mbus_sock.c'; then $(CYGPATH_W) 'IO/libmbus/mbus_sock.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus_sock.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mbus_sock.Tpo $(DEPDIR)/mbus_sock.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/libmbus/mbus_sock.c' object='mbus_sock.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mbus_sock.obj `if test -f 'IO/libmbus/mbus_sock.c'; then $(CYGPATH_W) 'IO/libmbus/mbus_sock.c'; else $(CYGPATH_W) '$(srcdir)/IO/libmbus/mbus_sock.c'; fi` + +sunset.o: IO/sunset.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sunset.o -MD -MP -MF $(DEPDIR)/sunset.Tpo -c -o sunset.o `test -f 'IO/sunset.c' || echo '$(srcdir)/'`IO/sunset.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sunset.Tpo $(DEPDIR)/sunset.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/sunset.c' object='sunset.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sunset.o `test -f 'IO/sunset.c' || echo '$(srcdir)/'`IO/sunset.c + +sunset.obj: IO/sunset.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sunset.obj -MD -MP -MF $(DEPDIR)/sunset.Tpo -c -o sunset.obj `if test -f 'IO/sunset.c'; then $(CYGPATH_W) 'IO/sunset.c'; else $(CYGPATH_W) '$(srcdir)/IO/sunset.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sunset.Tpo $(DEPDIR)/sunset.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='IO/sunset.c' object='sunset.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sunset.obj `if test -f 'IO/sunset.c'; then $(CYGPATH_W) 'IO/sunset.c'; else $(CYGPATH_W) '$(srcdir)/IO/sunset.c'; fi` + +.cpp.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< + +InputTime.o: IO/InputTime.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT InputTime.o -MD -MP -MF $(DEPDIR)/InputTime.Tpo -c -o InputTime.o `test -f 'IO/InputTime.cpp' || echo '$(srcdir)/'`IO/InputTime.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/InputTime.Tpo $(DEPDIR)/InputTime.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/InputTime.cpp' object='InputTime.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o InputTime.o `test -f 'IO/InputTime.cpp' || echo '$(srcdir)/'`IO/InputTime.cpp + +InputTime.obj: IO/InputTime.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT InputTime.obj -MD -MP -MF $(DEPDIR)/InputTime.Tpo -c -o InputTime.obj `if test -f 'IO/InputTime.cpp'; then $(CYGPATH_W) 'IO/InputTime.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/InputTime.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/InputTime.Tpo $(DEPDIR)/InputTime.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/InputTime.cpp' object='InputTime.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o InputTime.obj `if test -f 'IO/InputTime.cpp'; then $(CYGPATH_W) 'IO/InputTime.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/InputTime.cpp'; fi` + +InputTimer.o: IO/InputTimer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT InputTimer.o -MD -MP -MF $(DEPDIR)/InputTimer.Tpo -c -o InputTimer.o `test -f 'IO/InputTimer.cpp' || echo '$(srcdir)/'`IO/InputTimer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/InputTimer.Tpo $(DEPDIR)/InputTimer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/InputTimer.cpp' object='InputTimer.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o InputTimer.o `test -f 'IO/InputTimer.cpp' || echo '$(srcdir)/'`IO/InputTimer.cpp + +InputTimer.obj: IO/InputTimer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT InputTimer.obj -MD -MP -MF $(DEPDIR)/InputTimer.Tpo -c -o InputTimer.obj `if test -f 'IO/InputTimer.cpp'; then $(CYGPATH_W) 'IO/InputTimer.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/InputTimer.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/InputTimer.Tpo $(DEPDIR)/InputTimer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/InputTimer.cpp' object='InputTimer.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o InputTimer.obj `if test -f 'IO/InputTimer.cpp'; then $(CYGPATH_W) 'IO/InputTimer.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/InputTimer.cpp'; fi` + +OutputFake.o: IO/OutputFake.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT OutputFake.o -MD -MP -MF $(DEPDIR)/OutputFake.Tpo -c -o OutputFake.o `test -f 'IO/OutputFake.cpp' || echo '$(srcdir)/'`IO/OutputFake.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/OutputFake.Tpo $(DEPDIR)/OutputFake.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/OutputFake.cpp' object='OutputFake.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o OutputFake.o `test -f 'IO/OutputFake.cpp' || echo '$(srcdir)/'`IO/OutputFake.cpp + +OutputFake.obj: IO/OutputFake.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT OutputFake.obj -MD -MP -MF $(DEPDIR)/OutputFake.Tpo -c -o OutputFake.obj `if test -f 'IO/OutputFake.cpp'; then $(CYGPATH_W) 'IO/OutputFake.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/OutputFake.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/OutputFake.Tpo $(DEPDIR)/OutputFake.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/OutputFake.cpp' object='OutputFake.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o OutputFake.obj `if test -f 'IO/OutputFake.cpp'; then $(CYGPATH_W) 'IO/OutputFake.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/OutputFake.cpp'; fi` + +IOFactory.o: IO/IOFactory.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOFactory.o -MD -MP -MF $(DEPDIR)/IOFactory.Tpo -c -o IOFactory.o `test -f 'IO/IOFactory.cpp' || echo '$(srcdir)/'`IO/IOFactory.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOFactory.Tpo $(DEPDIR)/IOFactory.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/IOFactory.cpp' object='IOFactory.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOFactory.o `test -f 'IO/IOFactory.cpp' || echo '$(srcdir)/'`IO/IOFactory.cpp + +IOFactory.obj: IO/IOFactory.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOFactory.obj -MD -MP -MF $(DEPDIR)/IOFactory.Tpo -c -o IOFactory.obj `if test -f 'IO/IOFactory.cpp'; then $(CYGPATH_W) 'IO/IOFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/IOFactory.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOFactory.Tpo $(DEPDIR)/IOFactory.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/IOFactory.cpp' object='IOFactory.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOFactory.obj `if test -f 'IO/IOFactory.cpp'; then $(CYGPATH_W) 'IO/IOFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/IOFactory.cpp'; fi` + +Action.o: Rules/Action.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Action.o -MD -MP -MF $(DEPDIR)/Action.Tpo -c -o Action.o `test -f 'Rules/Action.cpp' || echo '$(srcdir)/'`Rules/Action.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Action.Tpo $(DEPDIR)/Action.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/Action.cpp' object='Action.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Action.o `test -f 'Rules/Action.cpp' || echo '$(srcdir)/'`Rules/Action.cpp + +Action.obj: Rules/Action.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Action.obj -MD -MP -MF $(DEPDIR)/Action.Tpo -c -o Action.obj `if test -f 'Rules/Action.cpp'; then $(CYGPATH_W) 'Rules/Action.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/Action.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Action.Tpo $(DEPDIR)/Action.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/Action.cpp' object='Action.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Action.obj `if test -f 'Rules/Action.cpp'; then $(CYGPATH_W) 'Rules/Action.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/Action.cpp'; fi` + +ActionStd.o: Rules/ActionStd.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionStd.o -MD -MP -MF $(DEPDIR)/ActionStd.Tpo -c -o ActionStd.o `test -f 'Rules/ActionStd.cpp' || echo '$(srcdir)/'`Rules/ActionStd.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionStd.Tpo $(DEPDIR)/ActionStd.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionStd.cpp' object='ActionStd.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionStd.o `test -f 'Rules/ActionStd.cpp' || echo '$(srcdir)/'`Rules/ActionStd.cpp + +ActionStd.obj: Rules/ActionStd.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionStd.obj -MD -MP -MF $(DEPDIR)/ActionStd.Tpo -c -o ActionStd.obj `if test -f 'Rules/ActionStd.cpp'; then $(CYGPATH_W) 'Rules/ActionStd.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionStd.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionStd.Tpo $(DEPDIR)/ActionStd.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionStd.cpp' object='ActionStd.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionStd.obj `if test -f 'Rules/ActionStd.cpp'; then $(CYGPATH_W) 'Rules/ActionStd.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionStd.cpp'; fi` + +ActionTouchscreen.o: Rules/ActionTouchscreen.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionTouchscreen.o -MD -MP -MF $(DEPDIR)/ActionTouchscreen.Tpo -c -o ActionTouchscreen.o `test -f 'Rules/ActionTouchscreen.cpp' || echo '$(srcdir)/'`Rules/ActionTouchscreen.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionTouchscreen.Tpo $(DEPDIR)/ActionTouchscreen.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionTouchscreen.cpp' object='ActionTouchscreen.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionTouchscreen.o `test -f 'Rules/ActionTouchscreen.cpp' || echo '$(srcdir)/'`Rules/ActionTouchscreen.cpp + +ActionTouchscreen.obj: Rules/ActionTouchscreen.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionTouchscreen.obj -MD -MP -MF $(DEPDIR)/ActionTouchscreen.Tpo -c -o ActionTouchscreen.obj `if test -f 'Rules/ActionTouchscreen.cpp'; then $(CYGPATH_W) 'Rules/ActionTouchscreen.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionTouchscreen.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionTouchscreen.Tpo $(DEPDIR)/ActionTouchscreen.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionTouchscreen.cpp' object='ActionTouchscreen.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionTouchscreen.obj `if test -f 'Rules/ActionTouchscreen.cpp'; then $(CYGPATH_W) 'Rules/ActionTouchscreen.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionTouchscreen.cpp'; fi` + +ActionMail.o: Rules/ActionMail.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionMail.o -MD -MP -MF $(DEPDIR)/ActionMail.Tpo -c -o ActionMail.o `test -f 'Rules/ActionMail.cpp' || echo '$(srcdir)/'`Rules/ActionMail.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionMail.Tpo $(DEPDIR)/ActionMail.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionMail.cpp' object='ActionMail.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionMail.o `test -f 'Rules/ActionMail.cpp' || echo '$(srcdir)/'`Rules/ActionMail.cpp + +ActionMail.obj: Rules/ActionMail.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionMail.obj -MD -MP -MF $(DEPDIR)/ActionMail.Tpo -c -o ActionMail.obj `if test -f 'Rules/ActionMail.cpp'; then $(CYGPATH_W) 'Rules/ActionMail.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionMail.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionMail.Tpo $(DEPDIR)/ActionMail.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionMail.cpp' object='ActionMail.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionMail.obj `if test -f 'Rules/ActionMail.cpp'; then $(CYGPATH_W) 'Rules/ActionMail.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionMail.cpp'; fi` + +ActionScript.o: Rules/ActionScript.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionScript.o -MD -MP -MF $(DEPDIR)/ActionScript.Tpo -c -o ActionScript.o `test -f 'Rules/ActionScript.cpp' || echo '$(srcdir)/'`Rules/ActionScript.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionScript.Tpo $(DEPDIR)/ActionScript.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionScript.cpp' object='ActionScript.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionScript.o `test -f 'Rules/ActionScript.cpp' || echo '$(srcdir)/'`Rules/ActionScript.cpp + +ActionScript.obj: Rules/ActionScript.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ActionScript.obj -MD -MP -MF $(DEPDIR)/ActionScript.Tpo -c -o ActionScript.obj `if test -f 'Rules/ActionScript.cpp'; then $(CYGPATH_W) 'Rules/ActionScript.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionScript.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ActionScript.Tpo $(DEPDIR)/ActionScript.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ActionScript.cpp' object='ActionScript.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ActionScript.obj `if test -f 'Rules/ActionScript.cpp'; then $(CYGPATH_W) 'Rules/ActionScript.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ActionScript.cpp'; fi` + +Condition.o: Rules/Condition.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Condition.o -MD -MP -MF $(DEPDIR)/Condition.Tpo -c -o Condition.o `test -f 'Rules/Condition.cpp' || echo '$(srcdir)/'`Rules/Condition.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Condition.Tpo $(DEPDIR)/Condition.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/Condition.cpp' object='Condition.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Condition.o `test -f 'Rules/Condition.cpp' || echo '$(srcdir)/'`Rules/Condition.cpp + +Condition.obj: Rules/Condition.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Condition.obj -MD -MP -MF $(DEPDIR)/Condition.Tpo -c -o Condition.obj `if test -f 'Rules/Condition.cpp'; then $(CYGPATH_W) 'Rules/Condition.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/Condition.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Condition.Tpo $(DEPDIR)/Condition.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/Condition.cpp' object='Condition.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Condition.obj `if test -f 'Rules/Condition.cpp'; then $(CYGPATH_W) 'Rules/Condition.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/Condition.cpp'; fi` + +ConditionStd.o: Rules/ConditionStd.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionStd.o -MD -MP -MF $(DEPDIR)/ConditionStd.Tpo -c -o ConditionStd.o `test -f 'Rules/ConditionStd.cpp' || echo '$(srcdir)/'`Rules/ConditionStd.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionStd.Tpo $(DEPDIR)/ConditionStd.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionStd.cpp' object='ConditionStd.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionStd.o `test -f 'Rules/ConditionStd.cpp' || echo '$(srcdir)/'`Rules/ConditionStd.cpp + +ConditionStd.obj: Rules/ConditionStd.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionStd.obj -MD -MP -MF $(DEPDIR)/ConditionStd.Tpo -c -o ConditionStd.obj `if test -f 'Rules/ConditionStd.cpp'; then $(CYGPATH_W) 'Rules/ConditionStd.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionStd.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionStd.Tpo $(DEPDIR)/ConditionStd.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionStd.cpp' object='ConditionStd.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionStd.obj `if test -f 'Rules/ConditionStd.cpp'; then $(CYGPATH_W) 'Rules/ConditionStd.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionStd.cpp'; fi` + +ConditionOutput.o: Rules/ConditionOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionOutput.o -MD -MP -MF $(DEPDIR)/ConditionOutput.Tpo -c -o ConditionOutput.o `test -f 'Rules/ConditionOutput.cpp' || echo '$(srcdir)/'`Rules/ConditionOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionOutput.Tpo $(DEPDIR)/ConditionOutput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionOutput.cpp' object='ConditionOutput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionOutput.o `test -f 'Rules/ConditionOutput.cpp' || echo '$(srcdir)/'`Rules/ConditionOutput.cpp + +ConditionOutput.obj: Rules/ConditionOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionOutput.obj -MD -MP -MF $(DEPDIR)/ConditionOutput.Tpo -c -o ConditionOutput.obj `if test -f 'Rules/ConditionOutput.cpp'; then $(CYGPATH_W) 'Rules/ConditionOutput.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionOutput.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionOutput.Tpo $(DEPDIR)/ConditionOutput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionOutput.cpp' object='ConditionOutput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionOutput.obj `if test -f 'Rules/ConditionOutput.cpp'; then $(CYGPATH_W) 'Rules/ConditionOutput.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionOutput.cpp'; fi` + +ConditionStart.o: Rules/ConditionStart.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionStart.o -MD -MP -MF $(DEPDIR)/ConditionStart.Tpo -c -o ConditionStart.o `test -f 'Rules/ConditionStart.cpp' || echo '$(srcdir)/'`Rules/ConditionStart.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionStart.Tpo $(DEPDIR)/ConditionStart.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionStart.cpp' object='ConditionStart.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionStart.o `test -f 'Rules/ConditionStart.cpp' || echo '$(srcdir)/'`Rules/ConditionStart.cpp + +ConditionStart.obj: Rules/ConditionStart.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionStart.obj -MD -MP -MF $(DEPDIR)/ConditionStart.Tpo -c -o ConditionStart.obj `if test -f 'Rules/ConditionStart.cpp'; then $(CYGPATH_W) 'Rules/ConditionStart.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionStart.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionStart.Tpo $(DEPDIR)/ConditionStart.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionStart.cpp' object='ConditionStart.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionStart.obj `if test -f 'Rules/ConditionStart.cpp'; then $(CYGPATH_W) 'Rules/ConditionStart.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionStart.cpp'; fi` + +ConditionScript.o: Rules/ConditionScript.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionScript.o -MD -MP -MF $(DEPDIR)/ConditionScript.Tpo -c -o ConditionScript.o `test -f 'Rules/ConditionScript.cpp' || echo '$(srcdir)/'`Rules/ConditionScript.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionScript.Tpo $(DEPDIR)/ConditionScript.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionScript.cpp' object='ConditionScript.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionScript.o `test -f 'Rules/ConditionScript.cpp' || echo '$(srcdir)/'`Rules/ConditionScript.cpp + +ConditionScript.obj: Rules/ConditionScript.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ConditionScript.obj -MD -MP -MF $(DEPDIR)/ConditionScript.Tpo -c -o ConditionScript.obj `if test -f 'Rules/ConditionScript.cpp'; then $(CYGPATH_W) 'Rules/ConditionScript.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionScript.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ConditionScript.Tpo $(DEPDIR)/ConditionScript.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/ConditionScript.cpp' object='ConditionScript.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ConditionScript.obj `if test -f 'Rules/ConditionScript.cpp'; then $(CYGPATH_W) 'Rules/ConditionScript.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/ConditionScript.cpp'; fi` + +RulesFactory.o: Rules/RulesFactory.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RulesFactory.o -MD -MP -MF $(DEPDIR)/RulesFactory.Tpo -c -o RulesFactory.o `test -f 'Rules/RulesFactory.cpp' || echo '$(srcdir)/'`Rules/RulesFactory.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/RulesFactory.Tpo $(DEPDIR)/RulesFactory.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/RulesFactory.cpp' object='RulesFactory.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RulesFactory.o `test -f 'Rules/RulesFactory.cpp' || echo '$(srcdir)/'`Rules/RulesFactory.cpp + +RulesFactory.obj: Rules/RulesFactory.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RulesFactory.obj -MD -MP -MF $(DEPDIR)/RulesFactory.Tpo -c -o RulesFactory.obj `if test -f 'Rules/RulesFactory.cpp'; then $(CYGPATH_W) 'Rules/RulesFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/RulesFactory.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/RulesFactory.Tpo $(DEPDIR)/RulesFactory.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Rules/RulesFactory.cpp' object='RulesFactory.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RulesFactory.obj `if test -f 'Rules/RulesFactory.cpp'; then $(CYGPATH_W) 'Rules/RulesFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/Rules/RulesFactory.cpp'; fi` + +WagoCtrl.o: IO/WagoCtrl.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WagoCtrl.o -MD -MP -MF $(DEPDIR)/WagoCtrl.Tpo -c -o WagoCtrl.o `test -f 'IO/WagoCtrl.cpp' || echo '$(srcdir)/'`IO/WagoCtrl.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WagoCtrl.Tpo $(DEPDIR)/WagoCtrl.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WagoCtrl.cpp' object='WagoCtrl.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WagoCtrl.o `test -f 'IO/WagoCtrl.cpp' || echo '$(srcdir)/'`IO/WagoCtrl.cpp + +WagoCtrl.obj: IO/WagoCtrl.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WagoCtrl.obj -MD -MP -MF $(DEPDIR)/WagoCtrl.Tpo -c -o WagoCtrl.obj `if test -f 'IO/WagoCtrl.cpp'; then $(CYGPATH_W) 'IO/WagoCtrl.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WagoCtrl.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WagoCtrl.Tpo $(DEPDIR)/WagoCtrl.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WagoCtrl.cpp' object='WagoCtrl.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WagoCtrl.obj `if test -f 'IO/WagoCtrl.cpp'; then $(CYGPATH_W) 'IO/WagoCtrl.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WagoCtrl.cpp'; fi` + +WODigital.o: IO/WODigital.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WODigital.o -MD -MP -MF $(DEPDIR)/WODigital.Tpo -c -o WODigital.o `test -f 'IO/WODigital.cpp' || echo '$(srcdir)/'`IO/WODigital.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WODigital.Tpo $(DEPDIR)/WODigital.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WODigital.cpp' object='WODigital.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WODigital.o `test -f 'IO/WODigital.cpp' || echo '$(srcdir)/'`IO/WODigital.cpp + +WODigital.obj: IO/WODigital.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WODigital.obj -MD -MP -MF $(DEPDIR)/WODigital.Tpo -c -o WODigital.obj `if test -f 'IO/WODigital.cpp'; then $(CYGPATH_W) 'IO/WODigital.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WODigital.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WODigital.Tpo $(DEPDIR)/WODigital.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WODigital.cpp' object='WODigital.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WODigital.obj `if test -f 'IO/WODigital.cpp'; then $(CYGPATH_W) 'IO/WODigital.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WODigital.cpp'; fi` + +WagoMap.o: IO/WagoMap.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WagoMap.o -MD -MP -MF $(DEPDIR)/WagoMap.Tpo -c -o WagoMap.o `test -f 'IO/WagoMap.cpp' || echo '$(srcdir)/'`IO/WagoMap.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WagoMap.Tpo $(DEPDIR)/WagoMap.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WagoMap.cpp' object='WagoMap.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WagoMap.o `test -f 'IO/WagoMap.cpp' || echo '$(srcdir)/'`IO/WagoMap.cpp + +WagoMap.obj: IO/WagoMap.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WagoMap.obj -MD -MP -MF $(DEPDIR)/WagoMap.Tpo -c -o WagoMap.obj `if test -f 'IO/WagoMap.cpp'; then $(CYGPATH_W) 'IO/WagoMap.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WagoMap.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WagoMap.Tpo $(DEPDIR)/WagoMap.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WagoMap.cpp' object='WagoMap.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WagoMap.obj `if test -f 'IO/WagoMap.cpp'; then $(CYGPATH_W) 'IO/WagoMap.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WagoMap.cpp'; fi` + +WIDigitalBP.o: IO/WIDigitalBP.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WIDigitalBP.o -MD -MP -MF $(DEPDIR)/WIDigitalBP.Tpo -c -o WIDigitalBP.o `test -f 'IO/WIDigitalBP.cpp' || echo '$(srcdir)/'`IO/WIDigitalBP.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WIDigitalBP.Tpo $(DEPDIR)/WIDigitalBP.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WIDigitalBP.cpp' object='WIDigitalBP.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WIDigitalBP.o `test -f 'IO/WIDigitalBP.cpp' || echo '$(srcdir)/'`IO/WIDigitalBP.cpp + +WIDigitalBP.obj: IO/WIDigitalBP.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WIDigitalBP.obj -MD -MP -MF $(DEPDIR)/WIDigitalBP.Tpo -c -o WIDigitalBP.obj `if test -f 'IO/WIDigitalBP.cpp'; then $(CYGPATH_W) 'IO/WIDigitalBP.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WIDigitalBP.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WIDigitalBP.Tpo $(DEPDIR)/WIDigitalBP.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WIDigitalBP.cpp' object='WIDigitalBP.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WIDigitalBP.obj `if test -f 'IO/WIDigitalBP.cpp'; then $(CYGPATH_W) 'IO/WIDigitalBP.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WIDigitalBP.cpp'; fi` + +WIDigitalTriple.o: IO/WIDigitalTriple.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WIDigitalTriple.o -MD -MP -MF $(DEPDIR)/WIDigitalTriple.Tpo -c -o WIDigitalTriple.o `test -f 'IO/WIDigitalTriple.cpp' || echo '$(srcdir)/'`IO/WIDigitalTriple.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WIDigitalTriple.Tpo $(DEPDIR)/WIDigitalTriple.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WIDigitalTriple.cpp' object='WIDigitalTriple.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WIDigitalTriple.o `test -f 'IO/WIDigitalTriple.cpp' || echo '$(srcdir)/'`IO/WIDigitalTriple.cpp + +WIDigitalTriple.obj: IO/WIDigitalTriple.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WIDigitalTriple.obj -MD -MP -MF $(DEPDIR)/WIDigitalTriple.Tpo -c -o WIDigitalTriple.obj `if test -f 'IO/WIDigitalTriple.cpp'; then $(CYGPATH_W) 'IO/WIDigitalTriple.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WIDigitalTriple.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WIDigitalTriple.Tpo $(DEPDIR)/WIDigitalTriple.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WIDigitalTriple.cpp' object='WIDigitalTriple.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WIDigitalTriple.obj `if test -f 'IO/WIDigitalTriple.cpp'; then $(CYGPATH_W) 'IO/WIDigitalTriple.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WIDigitalTriple.cpp'; fi` + +AudioDB.o: Audio/AudioDB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioDB.o -MD -MP -MF $(DEPDIR)/AudioDB.Tpo -c -o AudioDB.o `test -f 'Audio/AudioDB.cpp' || echo '$(srcdir)/'`Audio/AudioDB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioDB.Tpo $(DEPDIR)/AudioDB.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioDB.cpp' object='AudioDB.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioDB.o `test -f 'Audio/AudioDB.cpp' || echo '$(srcdir)/'`Audio/AudioDB.cpp + +AudioDB.obj: Audio/AudioDB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioDB.obj -MD -MP -MF $(DEPDIR)/AudioDB.Tpo -c -o AudioDB.obj `if test -f 'Audio/AudioDB.cpp'; then $(CYGPATH_W) 'Audio/AudioDB.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioDB.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioDB.Tpo $(DEPDIR)/AudioDB.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioDB.cpp' object='AudioDB.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioDB.obj `if test -f 'Audio/AudioDB.cpp'; then $(CYGPATH_W) 'Audio/AudioDB.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioDB.cpp'; fi` + +AudioManager.o: Audio/AudioManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioManager.o -MD -MP -MF $(DEPDIR)/AudioManager.Tpo -c -o AudioManager.o `test -f 'Audio/AudioManager.cpp' || echo '$(srcdir)/'`Audio/AudioManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioManager.Tpo $(DEPDIR)/AudioManager.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioManager.cpp' object='AudioManager.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioManager.o `test -f 'Audio/AudioManager.cpp' || echo '$(srcdir)/'`Audio/AudioManager.cpp + +AudioManager.obj: Audio/AudioManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioManager.obj -MD -MP -MF $(DEPDIR)/AudioManager.Tpo -c -o AudioManager.obj `if test -f 'Audio/AudioManager.cpp'; then $(CYGPATH_W) 'Audio/AudioManager.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioManager.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioManager.Tpo $(DEPDIR)/AudioManager.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioManager.cpp' object='AudioManager.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioManager.obj `if test -f 'Audio/AudioManager.cpp'; then $(CYGPATH_W) 'Audio/AudioManager.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioManager.cpp'; fi` + +Squeezebox.o: Audio/Squeezebox.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Squeezebox.o -MD -MP -MF $(DEPDIR)/Squeezebox.Tpo -c -o Squeezebox.o `test -f 'Audio/Squeezebox.cpp' || echo '$(srcdir)/'`Audio/Squeezebox.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Squeezebox.Tpo $(DEPDIR)/Squeezebox.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/Squeezebox.cpp' object='Squeezebox.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Squeezebox.o `test -f 'Audio/Squeezebox.cpp' || echo '$(srcdir)/'`Audio/Squeezebox.cpp + +Squeezebox.obj: Audio/Squeezebox.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Squeezebox.obj -MD -MP -MF $(DEPDIR)/Squeezebox.Tpo -c -o Squeezebox.obj `if test -f 'Audio/Squeezebox.cpp'; then $(CYGPATH_W) 'Audio/Squeezebox.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/Squeezebox.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Squeezebox.Tpo $(DEPDIR)/Squeezebox.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/Squeezebox.cpp' object='Squeezebox.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Squeezebox.obj `if test -f 'Audio/Squeezebox.cpp'; then $(CYGPATH_W) 'Audio/Squeezebox.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/Squeezebox.cpp'; fi` + +SqueezeboxDB.o: Audio/SqueezeboxDB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT SqueezeboxDB.o -MD -MP -MF $(DEPDIR)/SqueezeboxDB.Tpo -c -o SqueezeboxDB.o `test -f 'Audio/SqueezeboxDB.cpp' || echo '$(srcdir)/'`Audio/SqueezeboxDB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/SqueezeboxDB.Tpo $(DEPDIR)/SqueezeboxDB.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/SqueezeboxDB.cpp' object='SqueezeboxDB.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o SqueezeboxDB.o `test -f 'Audio/SqueezeboxDB.cpp' || echo '$(srcdir)/'`Audio/SqueezeboxDB.cpp + +SqueezeboxDB.obj: Audio/SqueezeboxDB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT SqueezeboxDB.obj -MD -MP -MF $(DEPDIR)/SqueezeboxDB.Tpo -c -o SqueezeboxDB.obj `if test -f 'Audio/SqueezeboxDB.cpp'; then $(CYGPATH_W) 'Audio/SqueezeboxDB.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/SqueezeboxDB.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/SqueezeboxDB.Tpo $(DEPDIR)/SqueezeboxDB.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/SqueezeboxDB.cpp' object='SqueezeboxDB.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o SqueezeboxDB.obj `if test -f 'Audio/SqueezeboxDB.cpp'; then $(CYGPATH_W) 'Audio/SqueezeboxDB.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/SqueezeboxDB.cpp'; fi` + +AudioInput.o: Audio/AudioInput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioInput.o -MD -MP -MF $(DEPDIR)/AudioInput.Tpo -c -o AudioInput.o `test -f 'Audio/AudioInput.cpp' || echo '$(srcdir)/'`Audio/AudioInput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioInput.Tpo $(DEPDIR)/AudioInput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioInput.cpp' object='AudioInput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioInput.o `test -f 'Audio/AudioInput.cpp' || echo '$(srcdir)/'`Audio/AudioInput.cpp + +AudioInput.obj: Audio/AudioInput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioInput.obj -MD -MP -MF $(DEPDIR)/AudioInput.Tpo -c -o AudioInput.obj `if test -f 'Audio/AudioInput.cpp'; then $(CYGPATH_W) 'Audio/AudioInput.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioInput.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioInput.Tpo $(DEPDIR)/AudioInput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioInput.cpp' object='AudioInput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioInput.obj `if test -f 'Audio/AudioInput.cpp'; then $(CYGPATH_W) 'Audio/AudioInput.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioInput.cpp'; fi` + +AudioOutput.o: Audio/AudioOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioOutput.o -MD -MP -MF $(DEPDIR)/AudioOutput.Tpo -c -o AudioOutput.o `test -f 'Audio/AudioOutput.cpp' || echo '$(srcdir)/'`Audio/AudioOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioOutput.Tpo $(DEPDIR)/AudioOutput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioOutput.cpp' object='AudioOutput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioOutput.o `test -f 'Audio/AudioOutput.cpp' || echo '$(srcdir)/'`Audio/AudioOutput.cpp + +AudioOutput.obj: Audio/AudioOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioOutput.obj -MD -MP -MF $(DEPDIR)/AudioOutput.Tpo -c -o AudioOutput.obj `if test -f 'Audio/AudioOutput.cpp'; then $(CYGPATH_W) 'Audio/AudioOutput.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioOutput.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioOutput.Tpo $(DEPDIR)/AudioOutput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioOutput.cpp' object='AudioOutput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioOutput.obj `if test -f 'Audio/AudioOutput.cpp'; then $(CYGPATH_W) 'Audio/AudioOutput.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioOutput.cpp'; fi` + +IntValue.o: IO/IntValue.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IntValue.o -MD -MP -MF $(DEPDIR)/IntValue.Tpo -c -o IntValue.o `test -f 'IO/IntValue.cpp' || echo '$(srcdir)/'`IO/IntValue.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IntValue.Tpo $(DEPDIR)/IntValue.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/IntValue.cpp' object='IntValue.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IntValue.o `test -f 'IO/IntValue.cpp' || echo '$(srcdir)/'`IO/IntValue.cpp + +IntValue.obj: IO/IntValue.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IntValue.obj -MD -MP -MF $(DEPDIR)/IntValue.Tpo -c -o IntValue.obj `if test -f 'IO/IntValue.cpp'; then $(CYGPATH_W) 'IO/IntValue.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/IntValue.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IntValue.Tpo $(DEPDIR)/IntValue.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/IntValue.cpp' object='IntValue.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IntValue.obj `if test -f 'IO/IntValue.cpp'; then $(CYGPATH_W) 'IO/IntValue.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/IntValue.cpp'; fi` + +WITemp.o: IO/WITemp.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WITemp.o -MD -MP -MF $(DEPDIR)/WITemp.Tpo -c -o WITemp.o `test -f 'IO/WITemp.cpp' || echo '$(srcdir)/'`IO/WITemp.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WITemp.Tpo $(DEPDIR)/WITemp.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WITemp.cpp' object='WITemp.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WITemp.o `test -f 'IO/WITemp.cpp' || echo '$(srcdir)/'`IO/WITemp.cpp + +WITemp.obj: IO/WITemp.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WITemp.obj -MD -MP -MF $(DEPDIR)/WITemp.Tpo -c -o WITemp.obj `if test -f 'IO/WITemp.cpp'; then $(CYGPATH_W) 'IO/WITemp.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WITemp.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WITemp.Tpo $(DEPDIR)/WITemp.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WITemp.cpp' object='WITemp.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WITemp.obj `if test -f 'IO/WITemp.cpp'; then $(CYGPATH_W) 'IO/WITemp.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WITemp.cpp'; fi` + +OWTemp.o: IO/OWTemp.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT OWTemp.o -MD -MP -MF $(DEPDIR)/OWTemp.Tpo -c -o OWTemp.o `test -f 'IO/OWTemp.cpp' || echo '$(srcdir)/'`IO/OWTemp.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/OWTemp.Tpo $(DEPDIR)/OWTemp.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/OWTemp.cpp' object='OWTemp.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o OWTemp.o `test -f 'IO/OWTemp.cpp' || echo '$(srcdir)/'`IO/OWTemp.cpp + +OWTemp.obj: IO/OWTemp.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT OWTemp.obj -MD -MP -MF $(DEPDIR)/OWTemp.Tpo -c -o OWTemp.obj `if test -f 'IO/OWTemp.cpp'; then $(CYGPATH_W) 'IO/OWTemp.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/OWTemp.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/OWTemp.Tpo $(DEPDIR)/OWTemp.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/OWTemp.cpp' object='OWTemp.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o OWTemp.obj `if test -f 'IO/OWTemp.cpp'; then $(CYGPATH_W) 'IO/OWTemp.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/OWTemp.cpp'; fi` + +IPCam.o: IPCam/IPCam.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IPCam.o -MD -MP -MF $(DEPDIR)/IPCam.Tpo -c -o IPCam.o `test -f 'IPCam/IPCam.cpp' || echo '$(srcdir)/'`IPCam/IPCam.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IPCam.Tpo $(DEPDIR)/IPCam.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/IPCam.cpp' object='IPCam.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IPCam.o `test -f 'IPCam/IPCam.cpp' || echo '$(srcdir)/'`IPCam/IPCam.cpp + +IPCam.obj: IPCam/IPCam.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IPCam.obj -MD -MP -MF $(DEPDIR)/IPCam.Tpo -c -o IPCam.obj `if test -f 'IPCam/IPCam.cpp'; then $(CYGPATH_W) 'IPCam/IPCam.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/IPCam.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IPCam.Tpo $(DEPDIR)/IPCam.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/IPCam.cpp' object='IPCam.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IPCam.obj `if test -f 'IPCam/IPCam.cpp'; then $(CYGPATH_W) 'IPCam/IPCam.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/IPCam.cpp'; fi` + +CamInput.o: IPCam/CamInput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamInput.o -MD -MP -MF $(DEPDIR)/CamInput.Tpo -c -o CamInput.o `test -f 'IPCam/CamInput.cpp' || echo '$(srcdir)/'`IPCam/CamInput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamInput.Tpo $(DEPDIR)/CamInput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamInput.cpp' object='CamInput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamInput.o `test -f 'IPCam/CamInput.cpp' || echo '$(srcdir)/'`IPCam/CamInput.cpp + +CamInput.obj: IPCam/CamInput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamInput.obj -MD -MP -MF $(DEPDIR)/CamInput.Tpo -c -o CamInput.obj `if test -f 'IPCam/CamInput.cpp'; then $(CYGPATH_W) 'IPCam/CamInput.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamInput.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamInput.Tpo $(DEPDIR)/CamInput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamInput.cpp' object='CamInput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamInput.obj `if test -f 'IPCam/CamInput.cpp'; then $(CYGPATH_W) 'IPCam/CamInput.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamInput.cpp'; fi` + +CamManager.o: IPCam/CamManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamManager.o -MD -MP -MF $(DEPDIR)/CamManager.Tpo -c -o CamManager.o `test -f 'IPCam/CamManager.cpp' || echo '$(srcdir)/'`IPCam/CamManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamManager.Tpo $(DEPDIR)/CamManager.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamManager.cpp' object='CamManager.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamManager.o `test -f 'IPCam/CamManager.cpp' || echo '$(srcdir)/'`IPCam/CamManager.cpp + +CamManager.obj: IPCam/CamManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamManager.obj -MD -MP -MF $(DEPDIR)/CamManager.Tpo -c -o CamManager.obj `if test -f 'IPCam/CamManager.cpp'; then $(CYGPATH_W) 'IPCam/CamManager.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamManager.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamManager.Tpo $(DEPDIR)/CamManager.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamManager.cpp' object='CamManager.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamManager.obj `if test -f 'IPCam/CamManager.cpp'; then $(CYGPATH_W) 'IPCam/CamManager.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamManager.cpp'; fi` + +CamOutput.o: IPCam/CamOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamOutput.o -MD -MP -MF $(DEPDIR)/CamOutput.Tpo -c -o CamOutput.o `test -f 'IPCam/CamOutput.cpp' || echo '$(srcdir)/'`IPCam/CamOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamOutput.Tpo $(DEPDIR)/CamOutput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamOutput.cpp' object='CamOutput.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamOutput.o `test -f 'IPCam/CamOutput.cpp' || echo '$(srcdir)/'`IPCam/CamOutput.cpp + +CamOutput.obj: IPCam/CamOutput.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamOutput.obj -MD -MP -MF $(DEPDIR)/CamOutput.Tpo -c -o CamOutput.obj `if test -f 'IPCam/CamOutput.cpp'; then $(CYGPATH_W) 'IPCam/CamOutput.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamOutput.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamOutput.Tpo $(DEPDIR)/CamOutput.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamOutput.cpp' object='CamOutput.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamOutput.obj `if test -f 'IPCam/CamOutput.cpp'; then $(CYGPATH_W) 'IPCam/CamOutput.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamOutput.cpp'; fi` + +Scenario.o: IO/Scenario.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Scenario.o -MD -MP -MF $(DEPDIR)/Scenario.Tpo -c -o Scenario.o `test -f 'IO/Scenario.cpp' || echo '$(srcdir)/'`IO/Scenario.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Scenario.Tpo $(DEPDIR)/Scenario.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/Scenario.cpp' object='Scenario.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Scenario.o `test -f 'IO/Scenario.cpp' || echo '$(srcdir)/'`IO/Scenario.cpp + +Scenario.obj: IO/Scenario.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Scenario.obj -MD -MP -MF $(DEPDIR)/Scenario.Tpo -c -o Scenario.obj `if test -f 'IO/Scenario.cpp'; then $(CYGPATH_W) 'IO/Scenario.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/Scenario.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Scenario.Tpo $(DEPDIR)/Scenario.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/Scenario.cpp' object='Scenario.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Scenario.obj `if test -f 'IO/Scenario.cpp'; then $(CYGPATH_W) 'IO/Scenario.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/Scenario.cpp'; fi` + +Gadspot.o: IPCam/Gadspot.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Gadspot.o -MD -MP -MF $(DEPDIR)/Gadspot.Tpo -c -o Gadspot.o `test -f 'IPCam/Gadspot.cpp' || echo '$(srcdir)/'`IPCam/Gadspot.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Gadspot.Tpo $(DEPDIR)/Gadspot.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/Gadspot.cpp' object='Gadspot.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Gadspot.o `test -f 'IPCam/Gadspot.cpp' || echo '$(srcdir)/'`IPCam/Gadspot.cpp + +Gadspot.obj: IPCam/Gadspot.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Gadspot.obj -MD -MP -MF $(DEPDIR)/Gadspot.Tpo -c -o Gadspot.obj `if test -f 'IPCam/Gadspot.cpp'; then $(CYGPATH_W) 'IPCam/Gadspot.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/Gadspot.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Gadspot.Tpo $(DEPDIR)/Gadspot.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/Gadspot.cpp' object='Gadspot.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Gadspot.obj `if test -f 'IPCam/Gadspot.cpp'; then $(CYGPATH_W) 'IPCam/Gadspot.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/Gadspot.cpp'; fi` + +Axis.o: IPCam/Axis.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Axis.o -MD -MP -MF $(DEPDIR)/Axis.Tpo -c -o Axis.o `test -f 'IPCam/Axis.cpp' || echo '$(srcdir)/'`IPCam/Axis.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Axis.Tpo $(DEPDIR)/Axis.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/Axis.cpp' object='Axis.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Axis.o `test -f 'IPCam/Axis.cpp' || echo '$(srcdir)/'`IPCam/Axis.cpp + +Axis.obj: IPCam/Axis.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Axis.obj -MD -MP -MF $(DEPDIR)/Axis.Tpo -c -o Axis.obj `if test -f 'IPCam/Axis.cpp'; then $(CYGPATH_W) 'IPCam/Axis.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/Axis.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Axis.Tpo $(DEPDIR)/Axis.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/Axis.cpp' object='Axis.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Axis.obj `if test -f 'IPCam/Axis.cpp'; then $(CYGPATH_W) 'IPCam/Axis.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/Axis.cpp'; fi` + +StandardMjpeg.o: IPCam/StandardMjpeg.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT StandardMjpeg.o -MD -MP -MF $(DEPDIR)/StandardMjpeg.Tpo -c -o StandardMjpeg.o `test -f 'IPCam/StandardMjpeg.cpp' || echo '$(srcdir)/'`IPCam/StandardMjpeg.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/StandardMjpeg.Tpo $(DEPDIR)/StandardMjpeg.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/StandardMjpeg.cpp' object='StandardMjpeg.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o StandardMjpeg.o `test -f 'IPCam/StandardMjpeg.cpp' || echo '$(srcdir)/'`IPCam/StandardMjpeg.cpp + +StandardMjpeg.obj: IPCam/StandardMjpeg.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT StandardMjpeg.obj -MD -MP -MF $(DEPDIR)/StandardMjpeg.Tpo -c -o StandardMjpeg.obj `if test -f 'IPCam/StandardMjpeg.cpp'; then $(CYGPATH_W) 'IPCam/StandardMjpeg.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/StandardMjpeg.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/StandardMjpeg.Tpo $(DEPDIR)/StandardMjpeg.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/StandardMjpeg.cpp' object='StandardMjpeg.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o StandardMjpeg.obj `if test -f 'IPCam/StandardMjpeg.cpp'; then $(CYGPATH_W) 'IPCam/StandardMjpeg.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/StandardMjpeg.cpp'; fi` + +WOVolet.o: IO/WOVolet.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WOVolet.o -MD -MP -MF $(DEPDIR)/WOVolet.Tpo -c -o WOVolet.o `test -f 'IO/WOVolet.cpp' || echo '$(srcdir)/'`IO/WOVolet.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WOVolet.Tpo $(DEPDIR)/WOVolet.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WOVolet.cpp' object='WOVolet.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WOVolet.o `test -f 'IO/WOVolet.cpp' || echo '$(srcdir)/'`IO/WOVolet.cpp + +WOVolet.obj: IO/WOVolet.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WOVolet.obj -MD -MP -MF $(DEPDIR)/WOVolet.Tpo -c -o WOVolet.obj `if test -f 'IO/WOVolet.cpp'; then $(CYGPATH_W) 'IO/WOVolet.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WOVolet.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WOVolet.Tpo $(DEPDIR)/WOVolet.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WOVolet.cpp' object='WOVolet.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WOVolet.obj `if test -f 'IO/WOVolet.cpp'; then $(CYGPATH_W) 'IO/WOVolet.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WOVolet.cpp'; fi` + +X10Output.o: IO/X10Output.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT X10Output.o -MD -MP -MF $(DEPDIR)/X10Output.Tpo -c -o X10Output.o `test -f 'IO/X10Output.cpp' || echo '$(srcdir)/'`IO/X10Output.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/X10Output.Tpo $(DEPDIR)/X10Output.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/X10Output.cpp' object='X10Output.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o X10Output.o `test -f 'IO/X10Output.cpp' || echo '$(srcdir)/'`IO/X10Output.cpp + +X10Output.obj: IO/X10Output.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT X10Output.obj -MD -MP -MF $(DEPDIR)/X10Output.Tpo -c -o X10Output.obj `if test -f 'IO/X10Output.cpp'; then $(CYGPATH_W) 'IO/X10Output.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/X10Output.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/X10Output.Tpo $(DEPDIR)/X10Output.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/X10Output.cpp' object='X10Output.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o X10Output.obj `if test -f 'IO/X10Output.cpp'; then $(CYGPATH_W) 'IO/X10Output.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/X10Output.cpp'; fi` + +InPlageHoraire.o: IO/InPlageHoraire.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT InPlageHoraire.o -MD -MP -MF $(DEPDIR)/InPlageHoraire.Tpo -c -o InPlageHoraire.o `test -f 'IO/InPlageHoraire.cpp' || echo '$(srcdir)/'`IO/InPlageHoraire.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/InPlageHoraire.Tpo $(DEPDIR)/InPlageHoraire.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/InPlageHoraire.cpp' object='InPlageHoraire.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o InPlageHoraire.o `test -f 'IO/InPlageHoraire.cpp' || echo '$(srcdir)/'`IO/InPlageHoraire.cpp + +InPlageHoraire.obj: IO/InPlageHoraire.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT InPlageHoraire.obj -MD -MP -MF $(DEPDIR)/InPlageHoraire.Tpo -c -o InPlageHoraire.obj `if test -f 'IO/InPlageHoraire.cpp'; then $(CYGPATH_W) 'IO/InPlageHoraire.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/InPlageHoraire.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/InPlageHoraire.Tpo $(DEPDIR)/InPlageHoraire.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/InPlageHoraire.cpp' object='InPlageHoraire.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o InPlageHoraire.obj `if test -f 'IO/InPlageHoraire.cpp'; then $(CYGPATH_W) 'IO/InPlageHoraire.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/InPlageHoraire.cpp'; fi` + +Planet.o: IPCam/Planet.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Planet.o -MD -MP -MF $(DEPDIR)/Planet.Tpo -c -o Planet.o `test -f 'IPCam/Planet.cpp' || echo '$(srcdir)/'`IPCam/Planet.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Planet.Tpo $(DEPDIR)/Planet.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/Planet.cpp' object='Planet.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Planet.o `test -f 'IPCam/Planet.cpp' || echo '$(srcdir)/'`IPCam/Planet.cpp + +Planet.obj: IPCam/Planet.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Planet.obj -MD -MP -MF $(DEPDIR)/Planet.Tpo -c -o Planet.obj `if test -f 'IPCam/Planet.cpp'; then $(CYGPATH_W) 'IPCam/Planet.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/Planet.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/Planet.Tpo $(DEPDIR)/Planet.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/Planet.cpp' object='Planet.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Planet.obj `if test -f 'IPCam/Planet.cpp'; then $(CYGPATH_W) 'IPCam/Planet.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/Planet.cpp'; fi` + +BaseCommand.o: TCPProcessor/BaseCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT BaseCommand.o -MD -MP -MF $(DEPDIR)/BaseCommand.Tpo -c -o BaseCommand.o `test -f 'TCPProcessor/BaseCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/BaseCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/BaseCommand.Tpo $(DEPDIR)/BaseCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/BaseCommand.cpp' object='BaseCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o BaseCommand.o `test -f 'TCPProcessor/BaseCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/BaseCommand.cpp + +BaseCommand.obj: TCPProcessor/BaseCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT BaseCommand.obj -MD -MP -MF $(DEPDIR)/BaseCommand.Tpo -c -o BaseCommand.obj `if test -f 'TCPProcessor/BaseCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/BaseCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/BaseCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/BaseCommand.Tpo $(DEPDIR)/BaseCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/BaseCommand.cpp' object='BaseCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o BaseCommand.obj `if test -f 'TCPProcessor/BaseCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/BaseCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/BaseCommand.cpp'; fi` + +CameraCommand.o: TCPProcessor/CameraCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CameraCommand.o -MD -MP -MF $(DEPDIR)/CameraCommand.Tpo -c -o CameraCommand.o `test -f 'TCPProcessor/CameraCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/CameraCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CameraCommand.Tpo $(DEPDIR)/CameraCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/CameraCommand.cpp' object='CameraCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CameraCommand.o `test -f 'TCPProcessor/CameraCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/CameraCommand.cpp + +CameraCommand.obj: TCPProcessor/CameraCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CameraCommand.obj -MD -MP -MF $(DEPDIR)/CameraCommand.Tpo -c -o CameraCommand.obj `if test -f 'TCPProcessor/CameraCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/CameraCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/CameraCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CameraCommand.Tpo $(DEPDIR)/CameraCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/CameraCommand.cpp' object='CameraCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CameraCommand.obj `if test -f 'TCPProcessor/CameraCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/CameraCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/CameraCommand.cpp'; fi` + +IOCommand.o: TCPProcessor/IOCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOCommand.o -MD -MP -MF $(DEPDIR)/IOCommand.Tpo -c -o IOCommand.o `test -f 'TCPProcessor/IOCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/IOCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOCommand.Tpo $(DEPDIR)/IOCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/IOCommand.cpp' object='IOCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOCommand.o `test -f 'TCPProcessor/IOCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/IOCommand.cpp + +IOCommand.obj: TCPProcessor/IOCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT IOCommand.obj -MD -MP -MF $(DEPDIR)/IOCommand.Tpo -c -o IOCommand.obj `if test -f 'TCPProcessor/IOCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/IOCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/IOCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/IOCommand.Tpo $(DEPDIR)/IOCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/IOCommand.cpp' object='IOCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o IOCommand.obj `if test -f 'TCPProcessor/IOCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/IOCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/IOCommand.cpp'; fi` + +HomeCommand.o: TCPProcessor/HomeCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT HomeCommand.o -MD -MP -MF $(DEPDIR)/HomeCommand.Tpo -c -o HomeCommand.o `test -f 'TCPProcessor/HomeCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/HomeCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/HomeCommand.Tpo $(DEPDIR)/HomeCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/HomeCommand.cpp' object='HomeCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o HomeCommand.o `test -f 'TCPProcessor/HomeCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/HomeCommand.cpp + +HomeCommand.obj: TCPProcessor/HomeCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT HomeCommand.obj -MD -MP -MF $(DEPDIR)/HomeCommand.Tpo -c -o HomeCommand.obj `if test -f 'TCPProcessor/HomeCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/HomeCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/HomeCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/HomeCommand.Tpo $(DEPDIR)/HomeCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/HomeCommand.cpp' object='HomeCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o HomeCommand.obj `if test -f 'TCPProcessor/HomeCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/HomeCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/HomeCommand.cpp'; fi` + +RulesCommand.o: TCPProcessor/RulesCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RulesCommand.o -MD -MP -MF $(DEPDIR)/RulesCommand.Tpo -c -o RulesCommand.o `test -f 'TCPProcessor/RulesCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/RulesCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/RulesCommand.Tpo $(DEPDIR)/RulesCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/RulesCommand.cpp' object='RulesCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RulesCommand.o `test -f 'TCPProcessor/RulesCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/RulesCommand.cpp + +RulesCommand.obj: TCPProcessor/RulesCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RulesCommand.obj -MD -MP -MF $(DEPDIR)/RulesCommand.Tpo -c -o RulesCommand.obj `if test -f 'TCPProcessor/RulesCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/RulesCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/RulesCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/RulesCommand.Tpo $(DEPDIR)/RulesCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/RulesCommand.cpp' object='RulesCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RulesCommand.obj `if test -f 'TCPProcessor/RulesCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/RulesCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/RulesCommand.cpp'; fi` + +ListenCommand.o: TCPProcessor/ListenCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ListenCommand.o -MD -MP -MF $(DEPDIR)/ListenCommand.Tpo -c -o ListenCommand.o `test -f 'TCPProcessor/ListenCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/ListenCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ListenCommand.Tpo $(DEPDIR)/ListenCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/ListenCommand.cpp' object='ListenCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ListenCommand.o `test -f 'TCPProcessor/ListenCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/ListenCommand.cpp + +ListenCommand.obj: TCPProcessor/ListenCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ListenCommand.obj -MD -MP -MF $(DEPDIR)/ListenCommand.Tpo -c -o ListenCommand.obj `if test -f 'TCPProcessor/ListenCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/ListenCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/ListenCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ListenCommand.Tpo $(DEPDIR)/ListenCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/ListenCommand.cpp' object='ListenCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ListenCommand.obj `if test -f 'TCPProcessor/ListenCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/ListenCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/ListenCommand.cpp'; fi` + +ScenarioCommand.o: TCPProcessor/ScenarioCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ScenarioCommand.o -MD -MP -MF $(DEPDIR)/ScenarioCommand.Tpo -c -o ScenarioCommand.o `test -f 'TCPProcessor/ScenarioCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/ScenarioCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ScenarioCommand.Tpo $(DEPDIR)/ScenarioCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/ScenarioCommand.cpp' object='ScenarioCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ScenarioCommand.o `test -f 'TCPProcessor/ScenarioCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/ScenarioCommand.cpp + +ScenarioCommand.obj: TCPProcessor/ScenarioCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ScenarioCommand.obj -MD -MP -MF $(DEPDIR)/ScenarioCommand.Tpo -c -o ScenarioCommand.obj `if test -f 'TCPProcessor/ScenarioCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/ScenarioCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/ScenarioCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ScenarioCommand.Tpo $(DEPDIR)/ScenarioCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/ScenarioCommand.cpp' object='ScenarioCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ScenarioCommand.obj `if test -f 'TCPProcessor/ScenarioCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/ScenarioCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/ScenarioCommand.cpp'; fi` + +CamConnection.o: IPCam/CamConnection.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamConnection.o -MD -MP -MF $(DEPDIR)/CamConnection.Tpo -c -o CamConnection.o `test -f 'IPCam/CamConnection.cpp' || echo '$(srcdir)/'`IPCam/CamConnection.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamConnection.Tpo $(DEPDIR)/CamConnection.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamConnection.cpp' object='CamConnection.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamConnection.o `test -f 'IPCam/CamConnection.cpp' || echo '$(srcdir)/'`IPCam/CamConnection.cpp + +CamConnection.obj: IPCam/CamConnection.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamConnection.obj -MD -MP -MF $(DEPDIR)/CamConnection.Tpo -c -o CamConnection.obj `if test -f 'IPCam/CamConnection.cpp'; then $(CYGPATH_W) 'IPCam/CamConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamConnection.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamConnection.Tpo $(DEPDIR)/CamConnection.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamConnection.cpp' object='CamConnection.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamConnection.obj `if test -f 'IPCam/CamConnection.cpp'; then $(CYGPATH_W) 'IPCam/CamConnection.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamConnection.cpp'; fi` + +CamServer.o: IPCam/CamServer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamServer.o -MD -MP -MF $(DEPDIR)/CamServer.Tpo -c -o CamServer.o `test -f 'IPCam/CamServer.cpp' || echo '$(srcdir)/'`IPCam/CamServer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamServer.Tpo $(DEPDIR)/CamServer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamServer.cpp' object='CamServer.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamServer.o `test -f 'IPCam/CamServer.cpp' || echo '$(srcdir)/'`IPCam/CamServer.cpp + +CamServer.obj: IPCam/CamServer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT CamServer.obj -MD -MP -MF $(DEPDIR)/CamServer.Tpo -c -o CamServer.obj `if test -f 'IPCam/CamServer.cpp'; then $(CYGPATH_W) 'IPCam/CamServer.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamServer.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/CamServer.Tpo $(DEPDIR)/CamServer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IPCam/CamServer.cpp' object='CamServer.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o CamServer.obj `if test -f 'IPCam/CamServer.cpp'; then $(CYGPATH_W) 'IPCam/CamServer.cpp'; else $(CYGPATH_W) '$(srcdir)/IPCam/CamServer.cpp'; fi` + +WODali.o: IO/WODali.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WODali.o -MD -MP -MF $(DEPDIR)/WODali.Tpo -c -o WODali.o `test -f 'IO/WODali.cpp' || echo '$(srcdir)/'`IO/WODali.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WODali.Tpo $(DEPDIR)/WODali.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WODali.cpp' object='WODali.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WODali.o `test -f 'IO/WODali.cpp' || echo '$(srcdir)/'`IO/WODali.cpp + +WODali.obj: IO/WODali.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WODali.obj -MD -MP -MF $(DEPDIR)/WODali.Tpo -c -o WODali.obj `if test -f 'IO/WODali.cpp'; then $(CYGPATH_W) 'IO/WODali.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WODali.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WODali.Tpo $(DEPDIR)/WODali.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WODali.cpp' object='WODali.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WODali.obj `if test -f 'IO/WODali.cpp'; then $(CYGPATH_W) 'IO/WODali.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WODali.cpp'; fi` + +WODaliRVB.o: IO/WODaliRVB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WODaliRVB.o -MD -MP -MF $(DEPDIR)/WODaliRVB.Tpo -c -o WODaliRVB.o `test -f 'IO/WODaliRVB.cpp' || echo '$(srcdir)/'`IO/WODaliRVB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WODaliRVB.Tpo $(DEPDIR)/WODaliRVB.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WODaliRVB.cpp' object='WODaliRVB.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WODaliRVB.o `test -f 'IO/WODaliRVB.cpp' || echo '$(srcdir)/'`IO/WODaliRVB.cpp + +WODaliRVB.obj: IO/WODaliRVB.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WODaliRVB.obj -MD -MP -MF $(DEPDIR)/WODaliRVB.Tpo -c -o WODaliRVB.obj `if test -f 'IO/WODaliRVB.cpp'; then $(CYGPATH_W) 'IO/WODaliRVB.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WODaliRVB.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WODaliRVB.Tpo $(DEPDIR)/WODaliRVB.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WODaliRVB.cpp' object='WODaliRVB.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WODaliRVB.obj `if test -f 'IO/WODaliRVB.cpp'; then $(CYGPATH_W) 'IO/WODaliRVB.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WODaliRVB.cpp'; fi` + +AudioCommand.o: TCPProcessor/AudioCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioCommand.o -MD -MP -MF $(DEPDIR)/AudioCommand.Tpo -c -o AudioCommand.o `test -f 'TCPProcessor/AudioCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/AudioCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioCommand.Tpo $(DEPDIR)/AudioCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/AudioCommand.cpp' object='AudioCommand.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioCommand.o `test -f 'TCPProcessor/AudioCommand.cpp' || echo '$(srcdir)/'`TCPProcessor/AudioCommand.cpp + +AudioCommand.obj: TCPProcessor/AudioCommand.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioCommand.obj -MD -MP -MF $(DEPDIR)/AudioCommand.Tpo -c -o AudioCommand.obj `if test -f 'TCPProcessor/AudioCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/AudioCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/AudioCommand.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioCommand.Tpo $(DEPDIR)/AudioCommand.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='TCPProcessor/AudioCommand.cpp' object='AudioCommand.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioCommand.obj `if test -f 'TCPProcessor/AudioCommand.cpp'; then $(CYGPATH_W) 'TCPProcessor/AudioCommand.cpp'; else $(CYGPATH_W) '$(srcdir)/TCPProcessor/AudioCommand.cpp'; fi` + +AudioPlayer.o: Audio/AudioPlayer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioPlayer.o -MD -MP -MF $(DEPDIR)/AudioPlayer.Tpo -c -o AudioPlayer.o `test -f 'Audio/AudioPlayer.cpp' || echo '$(srcdir)/'`Audio/AudioPlayer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioPlayer.Tpo $(DEPDIR)/AudioPlayer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioPlayer.cpp' object='AudioPlayer.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioPlayer.o `test -f 'Audio/AudioPlayer.cpp' || echo '$(srcdir)/'`Audio/AudioPlayer.cpp + +AudioPlayer.obj: Audio/AudioPlayer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AudioPlayer.obj -MD -MP -MF $(DEPDIR)/AudioPlayer.Tpo -c -o AudioPlayer.obj `if test -f 'Audio/AudioPlayer.cpp'; then $(CYGPATH_W) 'Audio/AudioPlayer.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioPlayer.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AudioPlayer.Tpo $(DEPDIR)/AudioPlayer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AudioPlayer.cpp' object='AudioPlayer.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AudioPlayer.obj `if test -f 'Audio/AudioPlayer.cpp'; then $(CYGPATH_W) 'Audio/AudioPlayer.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AudioPlayer.cpp'; fi` + +WOVoletSmart.o: IO/WOVoletSmart.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WOVoletSmart.o -MD -MP -MF $(DEPDIR)/WOVoletSmart.Tpo -c -o WOVoletSmart.o `test -f 'IO/WOVoletSmart.cpp' || echo '$(srcdir)/'`IO/WOVoletSmart.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WOVoletSmart.Tpo $(DEPDIR)/WOVoletSmart.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WOVoletSmart.cpp' object='WOVoletSmart.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WOVoletSmart.o `test -f 'IO/WOVoletSmart.cpp' || echo '$(srcdir)/'`IO/WOVoletSmart.cpp + +WOVoletSmart.obj: IO/WOVoletSmart.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WOVoletSmart.obj -MD -MP -MF $(DEPDIR)/WOVoletSmart.Tpo -c -o WOVoletSmart.obj `if test -f 'IO/WOVoletSmart.cpp'; then $(CYGPATH_W) 'IO/WOVoletSmart.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WOVoletSmart.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WOVoletSmart.Tpo $(DEPDIR)/WOVoletSmart.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WOVoletSmart.cpp' object='WOVoletSmart.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WOVoletSmart.obj `if test -f 'IO/WOVoletSmart.cpp'; then $(CYGPATH_W) 'IO/WOVoletSmart.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WOVoletSmart.cpp'; fi` + +AutoScenario.o: Scenario/AutoScenario.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AutoScenario.o -MD -MP -MF $(DEPDIR)/AutoScenario.Tpo -c -o AutoScenario.o `test -f 'Scenario/AutoScenario.cpp' || echo '$(srcdir)/'`Scenario/AutoScenario.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AutoScenario.Tpo $(DEPDIR)/AutoScenario.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Scenario/AutoScenario.cpp' object='AutoScenario.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AutoScenario.o `test -f 'Scenario/AutoScenario.cpp' || echo '$(srcdir)/'`Scenario/AutoScenario.cpp + +AutoScenario.obj: Scenario/AutoScenario.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AutoScenario.obj -MD -MP -MF $(DEPDIR)/AutoScenario.Tpo -c -o AutoScenario.obj `if test -f 'Scenario/AutoScenario.cpp'; then $(CYGPATH_W) 'Scenario/AutoScenario.cpp'; else $(CYGPATH_W) '$(srcdir)/Scenario/AutoScenario.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AutoScenario.Tpo $(DEPDIR)/AutoScenario.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Scenario/AutoScenario.cpp' object='AutoScenario.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AutoScenario.obj `if test -f 'Scenario/AutoScenario.cpp'; then $(CYGPATH_W) 'Scenario/AutoScenario.cpp'; else $(CYGPATH_W) '$(srcdir)/Scenario/AutoScenario.cpp'; fi` + +WOAnalog.o: IO/WOAnalog.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WOAnalog.o -MD -MP -MF $(DEPDIR)/WOAnalog.Tpo -c -o WOAnalog.o `test -f 'IO/WOAnalog.cpp' || echo '$(srcdir)/'`IO/WOAnalog.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WOAnalog.Tpo $(DEPDIR)/WOAnalog.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WOAnalog.cpp' object='WOAnalog.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WOAnalog.o `test -f 'IO/WOAnalog.cpp' || echo '$(srcdir)/'`IO/WOAnalog.cpp + +WOAnalog.obj: IO/WOAnalog.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WOAnalog.obj -MD -MP -MF $(DEPDIR)/WOAnalog.Tpo -c -o WOAnalog.obj `if test -f 'IO/WOAnalog.cpp'; then $(CYGPATH_W) 'IO/WOAnalog.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WOAnalog.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WOAnalog.Tpo $(DEPDIR)/WOAnalog.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WOAnalog.cpp' object='WOAnalog.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WOAnalog.obj `if test -f 'IO/WOAnalog.cpp'; then $(CYGPATH_W) 'IO/WOAnalog.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WOAnalog.cpp'; fi` + +WIAnalog.o: IO/WIAnalog.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WIAnalog.o -MD -MP -MF $(DEPDIR)/WIAnalog.Tpo -c -o WIAnalog.o `test -f 'IO/WIAnalog.cpp' || echo '$(srcdir)/'`IO/WIAnalog.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WIAnalog.Tpo $(DEPDIR)/WIAnalog.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WIAnalog.cpp' object='WIAnalog.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WIAnalog.o `test -f 'IO/WIAnalog.cpp' || echo '$(srcdir)/'`IO/WIAnalog.cpp + +WIAnalog.obj: IO/WIAnalog.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WIAnalog.obj -MD -MP -MF $(DEPDIR)/WIAnalog.Tpo -c -o WIAnalog.obj `if test -f 'IO/WIAnalog.cpp'; then $(CYGPATH_W) 'IO/WIAnalog.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WIAnalog.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/WIAnalog.Tpo $(DEPDIR)/WIAnalog.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='IO/WIAnalog.cpp' object='WIAnalog.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o WIAnalog.obj `if test -f 'IO/WIAnalog.cpp'; then $(CYGPATH_W) 'IO/WIAnalog.cpp'; else $(CYGPATH_W) '$(srcdir)/IO/WIAnalog.cpp'; fi` + +AVRManager.o: Audio/AVRManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRManager.o -MD -MP -MF $(DEPDIR)/AVRManager.Tpo -c -o AVRManager.o `test -f 'Audio/AVRManager.cpp' || echo '$(srcdir)/'`Audio/AVRManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRManager.Tpo $(DEPDIR)/AVRManager.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRManager.cpp' object='AVRManager.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRManager.o `test -f 'Audio/AVRManager.cpp' || echo '$(srcdir)/'`Audio/AVRManager.cpp + +AVRManager.obj: Audio/AVRManager.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRManager.obj -MD -MP -MF $(DEPDIR)/AVRManager.Tpo -c -o AVRManager.obj `if test -f 'Audio/AVRManager.cpp'; then $(CYGPATH_W) 'Audio/AVRManager.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRManager.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRManager.Tpo $(DEPDIR)/AVRManager.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRManager.cpp' object='AVRManager.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRManager.obj `if test -f 'Audio/AVRManager.cpp'; then $(CYGPATH_W) 'Audio/AVRManager.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRManager.cpp'; fi` + +AVReceiver.o: Audio/AVReceiver.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVReceiver.o -MD -MP -MF $(DEPDIR)/AVReceiver.Tpo -c -o AVReceiver.o `test -f 'Audio/AVReceiver.cpp' || echo '$(srcdir)/'`Audio/AVReceiver.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVReceiver.Tpo $(DEPDIR)/AVReceiver.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVReceiver.cpp' object='AVReceiver.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVReceiver.o `test -f 'Audio/AVReceiver.cpp' || echo '$(srcdir)/'`Audio/AVReceiver.cpp + +AVReceiver.obj: Audio/AVReceiver.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVReceiver.obj -MD -MP -MF $(DEPDIR)/AVReceiver.Tpo -c -o AVReceiver.obj `if test -f 'Audio/AVReceiver.cpp'; then $(CYGPATH_W) 'Audio/AVReceiver.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVReceiver.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVReceiver.Tpo $(DEPDIR)/AVReceiver.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVReceiver.cpp' object='AVReceiver.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVReceiver.obj `if test -f 'Audio/AVReceiver.cpp'; then $(CYGPATH_W) 'Audio/AVReceiver.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVReceiver.cpp'; fi` + +AVRPioneer.o: Audio/AVRPioneer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRPioneer.o -MD -MP -MF $(DEPDIR)/AVRPioneer.Tpo -c -o AVRPioneer.o `test -f 'Audio/AVRPioneer.cpp' || echo '$(srcdir)/'`Audio/AVRPioneer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRPioneer.Tpo $(DEPDIR)/AVRPioneer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRPioneer.cpp' object='AVRPioneer.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRPioneer.o `test -f 'Audio/AVRPioneer.cpp' || echo '$(srcdir)/'`Audio/AVRPioneer.cpp + +AVRPioneer.obj: Audio/AVRPioneer.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRPioneer.obj -MD -MP -MF $(DEPDIR)/AVRPioneer.Tpo -c -o AVRPioneer.obj `if test -f 'Audio/AVRPioneer.cpp'; then $(CYGPATH_W) 'Audio/AVRPioneer.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRPioneer.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRPioneer.Tpo $(DEPDIR)/AVRPioneer.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRPioneer.cpp' object='AVRPioneer.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRPioneer.obj `if test -f 'Audio/AVRPioneer.cpp'; then $(CYGPATH_W) 'Audio/AVRPioneer.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRPioneer.cpp'; fi` + +AVRDenon.o: Audio/AVRDenon.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRDenon.o -MD -MP -MF $(DEPDIR)/AVRDenon.Tpo -c -o AVRDenon.o `test -f 'Audio/AVRDenon.cpp' || echo '$(srcdir)/'`Audio/AVRDenon.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRDenon.Tpo $(DEPDIR)/AVRDenon.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRDenon.cpp' object='AVRDenon.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRDenon.o `test -f 'Audio/AVRDenon.cpp' || echo '$(srcdir)/'`Audio/AVRDenon.cpp + +AVRDenon.obj: Audio/AVRDenon.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRDenon.obj -MD -MP -MF $(DEPDIR)/AVRDenon.Tpo -c -o AVRDenon.obj `if test -f 'Audio/AVRDenon.cpp'; then $(CYGPATH_W) 'Audio/AVRDenon.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRDenon.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRDenon.Tpo $(DEPDIR)/AVRDenon.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRDenon.cpp' object='AVRDenon.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRDenon.obj `if test -f 'Audio/AVRDenon.cpp'; then $(CYGPATH_W) 'Audio/AVRDenon.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRDenon.cpp'; fi` + +AVROnkyo.o: Audio/AVROnkyo.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVROnkyo.o -MD -MP -MF $(DEPDIR)/AVROnkyo.Tpo -c -o AVROnkyo.o `test -f 'Audio/AVROnkyo.cpp' || echo '$(srcdir)/'`Audio/AVROnkyo.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVROnkyo.Tpo $(DEPDIR)/AVROnkyo.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVROnkyo.cpp' object='AVROnkyo.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVROnkyo.o `test -f 'Audio/AVROnkyo.cpp' || echo '$(srcdir)/'`Audio/AVROnkyo.cpp + +AVROnkyo.obj: Audio/AVROnkyo.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVROnkyo.obj -MD -MP -MF $(DEPDIR)/AVROnkyo.Tpo -c -o AVROnkyo.obj `if test -f 'Audio/AVROnkyo.cpp'; then $(CYGPATH_W) 'Audio/AVROnkyo.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVROnkyo.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVROnkyo.Tpo $(DEPDIR)/AVROnkyo.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVROnkyo.cpp' object='AVROnkyo.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVROnkyo.obj `if test -f 'Audio/AVROnkyo.cpp'; then $(CYGPATH_W) 'Audio/AVROnkyo.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVROnkyo.cpp'; fi` + +AVRMarantz.o: Audio/AVRMarantz.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRMarantz.o -MD -MP -MF $(DEPDIR)/AVRMarantz.Tpo -c -o AVRMarantz.o `test -f 'Audio/AVRMarantz.cpp' || echo '$(srcdir)/'`Audio/AVRMarantz.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRMarantz.Tpo $(DEPDIR)/AVRMarantz.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRMarantz.cpp' object='AVRMarantz.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRMarantz.o `test -f 'Audio/AVRMarantz.cpp' || echo '$(srcdir)/'`Audio/AVRMarantz.cpp + +AVRMarantz.obj: Audio/AVRMarantz.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AVRMarantz.obj -MD -MP -MF $(DEPDIR)/AVRMarantz.Tpo -c -o AVRMarantz.obj `if test -f 'Audio/AVRMarantz.cpp'; then $(CYGPATH_W) 'Audio/AVRMarantz.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRMarantz.cpp'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/AVRMarantz.Tpo $(DEPDIR)/AVRMarantz.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Audio/AVRMarantz.cpp' object='AVRMarantz.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AVRMarantz.obj `if test -f 'Audio/AVRMarantz.cpp'; then $(CYGPATH_W) 'Audio/AVRMarantz.cpp'; else $(CYGPATH_W) '$(srcdir)/Audio/AVRMarantz.cpp'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + 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; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS + + +# 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/src/bin/calaos_server/Output.cpp b/src/bin/calaos_server/Output.cpp new file mode 100644 index 00000000..c40248da --- /dev/null +++ b/src/bin/calaos_server/Output.cpp @@ -0,0 +1,59 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +Output::Output(Params &p): + IOBase(p) +{ + iter_output = signal_output.connect(sigc::mem_fun(&ListeRule::Instance(), &ListeRule::ExecuteRuleSignal)); + + ListeRoom::Instance().addOutputHash(this); +} + +Output::~Output() +{ + iter_output->disconnect(); + ListeRoom::Instance().delOutputHash(this); +} + +void Output::EmitSignalOutput() +{ + Utils::logger("output") << Priority::DEBUG << "Input::EmitSignalOutput(" << get_param("id") << ")" << log4cpp::eol; + signal_output.emit(get_param("id")); +} + +bool Output::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *cnode = new TiXmlElement("calaos:output"); + node->LinkEndChild(cnode); + + for (int i = 0;i < get_params().size();i++) + { + string key, value; + get_params().get_item(i, key, value); + cnode->SetAttribute(key, value); + } + + return true; +} diff --git a/src/bin/calaos_server/Output.h b/src/bin/calaos_server/Output.h new file mode 100644 index 00000000..678213e7 --- /dev/null +++ b/src/bin/calaos_server/Output.h @@ -0,0 +1,56 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_OUTPUT_H +#define S_OUTPUT_H + +#include +#include + +namespace Calaos +{ + +class Output: public IOBase +{ + protected: + typedef sigc::signal type_signal_output; + type_signal_output signal_output; + type_signal_output::iterator iter_output; + + public: + Output(Params &p); + virtual ~Output(); + + virtual bool set_value(bool val) { return false; } + virtual bool set_value(double val) { return false; } + virtual bool set_value(std::string val) { return false; } + + //used to retreive the last state command of the TSTRING output + virtual std::string get_command_string() { return ""; } + + virtual void EmitSignalOutput(); + + virtual bool LoadFromXml(TiXmlElement *node) + { return false; } + virtual bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/PollListenner.cpp b/src/bin/calaos_server/PollListenner.cpp new file mode 100644 index 00000000..1af76077 --- /dev/null +++ b/src/bin/calaos_server/PollListenner.cpp @@ -0,0 +1,160 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +//For UUID generation +#include +#include + +using kashmir::uuid_t; +using kashmir::system::DevRand; + +using namespace Calaos; + +PollObject::PollObject(string _uuid): + uuid(_uuid), + timeout(NULL) +{ + timeout = new EcoreTimer(TIMEOUT_POLLLISTENNER, (sigc::slot)sigc::mem_fun(*this, &PollObject::Timeout_cb)); + + //Attach the callback to IPC + sig_events.connect( sigc::mem_fun(*this, &PollObject::HandleEventsFromSignals) ); + IPC::Instance().AddHandler("events", "*", sig_events); + + Utils::logger("poll_listenner") << Priority::DEBUG << "PollObject: New object for " << uuid << log4cpp::eol; +} + +PollObject::~PollObject() +{ + if (timeout) + { + delete timeout; + timeout = NULL; + } + + IPC::Instance().DeleteHandler(sig_events); + + Utils::logger("poll_listenner") << Priority::DEBUG << "~PollObject: Cleaning object " << uuid << log4cpp::eol; +} + +void PollObject::HandleEventsFromSignals(string source, string emission, void *mydata, void *sender_data) +{ + vector tokens; + split(emission, tokens, " "); + + if (tokens.size() < 3) + return; + + string id = tokens[0] + ":" + tokens[1]; + + Utils::logger("poll_listenner") << Priority::DEBUG << "PollObject: Handling signal: " << id << " -> " << url_decode(tokens[2]) << log4cpp::eol; + + events.Add(id, url_decode(tokens[2])); +} + +Eina_Bool _timeout_poll_idler_cb(void *data) +{ + PollObject *obj = reinterpret_cast(data); + if (!obj) return ECORE_CALLBACK_CANCEL; + + PollListenner::Instance().Unregister(obj->getUUID()); + + //delete the ecore_idler + return ECORE_CALLBACK_CANCEL; +} + +void PollObject::Timeout_cb() +{ + delete timeout; + timeout = NULL; + + Utils::logger("poll_listenner") << Priority::DEBUG << "PollObject: " << uuid << " Timeout !" << log4cpp::eol; + + ecore_idler_add(_timeout_poll_idler_cb, this); +} + +PollListenner::PollListenner() +{ +} + +PollListenner::~PollListenner() +{ +} + +string PollListenner::Register() +{ + DevRand devrandom; + stringstream out; + + uuid_t _uuid; + devrandom >> _uuid; + out << _uuid; + + string uuid = out.str(); + + pollobjects[uuid] = new PollObject(uuid); + + Utils::logger("poll_listenner") << Priority::DEBUG << "PollListenner::Register uuid:" << uuid << log4cpp::eol; + + return uuid; +} + +bool PollListenner::Unregister(string uuid) +{ + if (pollobjects.find(uuid) == pollobjects.end()) + { + Utils::logger("poll_listenner") << Priority::DEBUG << "PollListenner::Unregister uuid:" << uuid << " not found ! " << log4cpp::eol; + return false; + } + + PollObject *o = pollobjects[uuid]; + + if (o) + { + delete o; + pollobjects[uuid] = NULL; + } + + pollobjects.erase(uuid); + + Utils::logger("poll_listenner") << Priority::DEBUG << "PollListenner::Unregister uuid:" << uuid << log4cpp::eol; + + return true; +} + +bool PollListenner::GetEvents(string uuid, Params &events) +{ + if (pollobjects.find(uuid) == pollobjects.end()) + { + Utils::logger("poll_listenner") << Priority::DEBUG << "PollListenner::GetEvents uuid:" << uuid << " not found ! " << log4cpp::eol; + return false; + } + + PollObject *o = pollobjects[uuid]; + + events = o->getEvents(); + + o->getEvents().clear(); + o->ResetTimer(); + + return true; +} diff --git a/src/bin/calaos_server/PollListenner.h b/src/bin/calaos_server/PollListenner.h new file mode 100644 index 00000000..7da20d1e --- /dev/null +++ b/src/bin/calaos_server/PollListenner.h @@ -0,0 +1,87 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef PollListenner_H +#define PollListenner_H + +#include +#include + +#define TIMEOUT_POLLLISTENNER 300.0 + +namespace Calaos +{ + +class PollObject +{ + private: + sigc::signal sig_events; + + string uuid; + EcoreTimer *timeout; //timer that invalidates uuid after some time of inactivity + + //IPC callback to handle all events from the system + void HandleEventsFromSignals(string source, string emission, void *mydata, void *sender_data); + + //Timeout callback + void Timeout_cb(); + + Params events; + + public: + PollObject(string uuid); + ~PollObject(); + + Params &getEvents() { return events; } + string getUUID() { return uuid; } + void ResetTimer() { timeout->Reset(); } +}; + +class PollListenner +{ + private: + map pollobjects; + + PollListenner(); + + public: + ~PollListenner(); + + static PollListenner &Instance() + { + static PollListenner pl; + + return pl; + } + + // Get an uuid. + // The uuid will be automatically unregistered after some time + // and become invalid + string Register(); + + // Unregister the uuid, return false if error + bool Unregister(string uuid); + + // Get events for the registered uuid, return false if error + bool GetEvents(string uuid, Params &events); +}; + +} +#endif diff --git a/src/bin/calaos_server/Room.cpp b/src/bin/calaos_server/Room.cpp new file mode 100644 index 00000000..ff962a77 --- /dev/null +++ b/src/bin/calaos_server/Room.cpp @@ -0,0 +1,294 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include +#include + +using namespace Calaos; + +Room::Room(string _name, string _type, int _hits): + name(_name), + type(_type), + hits(_hits) +{ + Utils::logger("room") << Priority::DEBUG << "Room::Room(" << name << ", " << type << "): Ok" << log4cpp::eol; +} + +Room::~Room() +{ + while (inputs.size() > 0) + ListeRoom::Instance().deleteIO(inputs[0]); + + while (outputs.size() > 0) + ListeRoom::Instance().deleteIO(outputs[0]); + + inputs.clear(); + outputs.clear(); + + Utils::logger("room") << Priority::DEBUG << "Room::~Room(): Ok" << log4cpp::eol; +} + +void Room::AddInput(Input *in) +{ + inputs.push_back(in); + + Utils::logger("room") << Priority::DEBUG << "Room::AddInput(" << in->get_param("id") << "): Ok" << log4cpp::eol; +} + +void Room::AddOutput(Output *out) +{ + outputs.push_back(out); + + Utils::logger("room") << Priority::DEBUG << "Room::AddOutput(" << out->get_param("id") << "): Ok" << log4cpp::eol; +} + +void Room::RemoveInput(int pos, bool del) +{ + string sig = "delete_input "; + sig += inputs[pos]->get_param("id") + " "; + sig += url_encode(string("room_name:") + name) + " "; + sig += url_encode(string("room_type:") + type); + IPC::Instance().SendEvent("events", sig); + + vector::iterator iter = inputs.begin(); + for (int i = 0;i < pos;iter++, i++) ; + if (del) delete inputs[pos]; + inputs.erase(iter); + + Utils::logger("room") << Priority::DEBUG << "Room::RemoveInput(): Ok" << log4cpp::eol; +} + +void Room::RemoveOutput(int pos, bool del) +{ + string sig = "delete_output "; + sig += outputs[pos]->get_param("id") + " "; + sig += url_encode(string("room_name:") + name) + " "; + sig += url_encode(string("room_type:") + type); + IPC::Instance().SendEvent("events", sig); + + vector::iterator iter = outputs.begin(); + for (int i = 0;i < pos;iter++, i++) ; + if (del) delete outputs[pos]; + outputs.erase(iter); + + Utils::logger("room") << Priority::DEBUG << "Room::RemoveOutput(): Ok" << log4cpp::eol; +} + +void Room::RemoveInputFromRoom(Input *in) +{ + vector::iterator it = find(inputs.begin(), inputs.end(), in); + if (it != inputs.end()) + { + inputs.erase(it); + + string sig = "modify_room "; + sig += url_encode(string("input_del:") + in->get_param("id")) + " "; + sig += url_encode(string("room_name:") + get_name()) + " "; + sig += url_encode(string("room_type:") + get_type()); + IPC::Instance().SendEvent("events", sig); + } +} + +void Room::RemoveOutputFromRoom(Output *out) +{ + vector::iterator it = find(outputs.begin(), outputs.end(), out); + if (it != outputs.end()) + { + outputs.erase(it); + + string sig = "modify_room "; + sig += url_encode(string("output_del:") + out->get_param("id")) + " "; + sig += url_encode(string("room_name:") + get_name()) + " "; + sig += url_encode(string("room_type:") + get_type()); + IPC::Instance().SendEvent("events", sig); + } +} + +void Room::set_name(std::string &s) +{ + string sig = "modify_room "; + sig += url_encode(string("old_room_name:") + name) + " "; + sig += url_encode(string("new_room_name:") + s) + " "; + sig += url_encode(string("room_type:") + type); + IPC::Instance().SendEvent("events", sig); + + name = s; +} + +void Room::set_type(std::string &s) +{ + string sig = "modify_room "; + sig += url_encode(string("old_room_type:") + type) + " "; + sig += url_encode(string("new_room_type:") + s) + " "; + sig += url_encode(string("room_name:") + name); + IPC::Instance().SendEvent("events", sig); + + type = s; +} + +void Room::set_hits(int h) +{ + string sig = "modify_room "; + sig += url_encode(string("old_room_hits:") + to_string(hits)) + " "; + sig += url_encode(string("new_room_hits:") + to_string(h)) + " "; + sig += url_encode(string("room_name:") + name) + " "; + sig += url_encode(string("room_type:") + type); + IPC::Instance().SendEvent("events", sig); + + hits = h; +} + +bool Room::LoadFromXml(TiXmlElement *room_node) +{ + TiXmlElement *node = room_node->FirstChildElement(); + for(; node; node = node->NextSiblingElement()) + { + if (node->ValueStr() == "calaos:input") + { + Input *in = IOFactory::CreateInput(node); + if (in) + { + AddInput(in); + + InputTimer *o = dynamic_cast(in); + if (o) AddOutput(o); + + Scenario *sc = dynamic_cast(in); + if (sc) AddOutput(sc); + } + } + else if (node->ValueStr() == "calaos:output") + { + Output *out = IOFactory::CreateOutput(node); + if (out) AddOutput(out); + } + else if (node->ValueStr() == "calaos:audio") + { + AudioPlayer *player = IOFactory::CreateAudio(node); + if (player) + { + if (AudioManager::Instance().get_size() <= 0) + AudioManager::Instance().Add(player, player->get_param("host")); + else + AudioManager::Instance().Add(player); + + AddInput(player->get_input()); + AddOutput(player->get_output()); + } + } + else if (node->ValueStr() == "calaos:internal") + { + Input *in = IOFactory::CreateInput(node); + if (in) + { + Internal *intern = dynamic_cast(in); + if (intern) + { + AddInput(intern); + AddOutput(intern); + } + } + } + else if (node->ValueStr() == "calaos:camera") + { + IPCam *camera = IOFactory::CreateIPCamera(node); + if (camera) + { + CamManager::Instance().Add(camera); + + AddInput(camera->get_input()); + AddOutput(camera->get_output()); + } + } + else if (node->ValueStr() == "calaos:avr") + { + Output *o = IOFactory::CreateOutput(node); + if (o) + { + IOAVReceiver *receiver = dynamic_cast(o); + if (receiver) + { + AddInput(receiver); + AddOutput(receiver); + } + } + } + } + + return true; +} + +bool Room::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *room_node = new TiXmlElement("calaos:room"); + room_node->SetAttribute("name", name); + room_node->SetAttribute("type", type); + room_node->SetAttribute("hits", to_string(hits)); + node->LinkEndChild(room_node); + + for (int i = 0;i < get_size_in();i++) + { + Input *input = get_input(i); + + if (input->get_param("type") == "WIDigital" || input->get_param("type") == "WIDigitalBP" || + input->get_param("type") == "WIDigitalTriple" || input->get_param("type") == "WITemp" || + input->get_param("type") == "scenario" || input->get_param("type") == "WIDigitalBP" || + input->get_param("type") == "InputTime" || input->get_param("type") == "InputTimer" || + input->get_param("type") == "InternalBool" || + input->get_param("type") == "InternalInt" || + input->get_param("type") == "InternalString" || + input->get_param("type") == "InPlageHoraire" || + input->get_param("type") == "WIAnalog") + { + input->SaveToXml(room_node); + } + } + + for (int i = 0;i < get_size_out();i++) + { + Output *output = get_output(i); + + if (output->get_param("type") == "WODigital" || output->get_param("type") == "OutputFake" || + output->get_param("type") == "WONeon" || output->get_param("type") == "WOVolet" || + output->get_param("type") == "X10Output" || output->get_param("type") == "WODali" || + output->get_param("type") == "WODaliRVB" || output->get_param("type") == "WOVoletSmart" || + output->get_param("type") == "WOAnalog" || output->get_param("type") == "AVReceiver") + { + output->SaveToXml(room_node); + } + + AudioOutput *audio_output = dynamic_cast(output); + if (audio_output) + { + audio_output->get_player()->SaveToXml(room_node); + } + + CamOutput *camera_output = dynamic_cast(output); + if (camera_output) + { + camera_output->get_cam()->SaveToXml(room_node); + } + } + + return true; +} diff --git a/src/bin/calaos_server/Room.h b/src/bin/calaos_server/Room.h new file mode 100644 index 00000000..ca550a58 --- /dev/null +++ b/src/bin/calaos_server/Room.h @@ -0,0 +1,77 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_ROOM_H +#define S_ROOM_H + +#include +#include +#include + +using namespace std; + +namespace Calaos +{ + +class Room +{ + protected: + string name; + string type; + int hits; + + vector inputs; + vector outputs; + + public: + Room(string _name, string _type, int _hits = 0); + ~Room(); + + string &get_name() { return name; } + string &get_type() { return type; } + + void set_name(string &s); + void set_type(string &s); + + int get_hits() { return hits; } + + void set_hits(int h); + + void AddInput(Input *p); + void RemoveInput(int i, bool del = true); + void AddOutput(Output *p); + void RemoveOutput(int i, bool del = true); + + void RemoveInputFromRoom(Input *in); + void RemoveOutputFromRoom(Output *out); + + Input *get_input(int i) { return inputs[i]; } + Output *get_output(int i) { return outputs[i]; } + + int get_size_in() { return inputs.size(); } + int get_size_out() { return outputs.size(); } + + + bool LoadFromXml(TiXmlElement *node); + bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/Rule.cpp b/src/bin/calaos_server/Rule.cpp new file mode 100644 index 00000000..d8374693 --- /dev/null +++ b/src/bin/calaos_server/Rule.cpp @@ -0,0 +1,177 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include + +using namespace Calaos; + +Rule::Rule(string type, string name): + auto_sc_mark(false) +{ + params.Add("type", type); + params.Add("name", name); + + Utils::logger("rule") << Priority::DEBUG << "Rule::Rule(" + << type << "," << name << "): Ok" << log4cpp::eol; +} + +Rule::~Rule() +{ + for (int i = 0;i < conds.size();i++) + delete conds[i]; + + for (int i = 0;i < actions.size();i++) + delete actions[i]; + + Utils::logger("rule") << Priority::DEBUG << "Rule::~Rule(): Ok" << log4cpp::eol; +} + +void Rule::AddCondition(Condition *cond) +{ + conds.push_back(cond); + + Utils::logger("rule") << Priority::DEBUG << "Rule::AddCondition(): Ok" << log4cpp::eol; +} + +void Rule::AddAction(Action *act) +{ + actions.push_back(act); + + Utils::logger("rule") << Priority::DEBUG << "Rule::AddAction(): Ok" << log4cpp::eol; +} + +bool Rule::Execute() +{ + bool ret; + bool cond = true; + bool action = true; + + Utils::logger("rule") << Priority::DEBUG << "Rule(" << get_param("type") << "," << get_param("name") << "): Trying execution..." << log4cpp::eol; + + for (int i = 0;i < conds.size();i++) + if (!conds[i]->Evaluate()) cond = false; + + //Actions are executed only if all conditions are true + if (cond) + { + Utils::logger("rule") << Priority::INFO << "Rule(" << get_param("type") << "," << get_param("name") + << "): Starting execution (" << actions.size() << " actions)" << log4cpp::eol; + + for (int i = 0;i < actions.size();i++) + if (!actions[i]->Execute()) action = false; + + Utils::logger("rule") << Priority::INFO << "Rule(" << get_param("type") << "," << get_param("name") + << "): Execution done." << log4cpp::eol; + } + else + { + return false; + } + + if (cond && action) + ret = true; + else + ret = false; + + if (ret) + Utils::logger("rule") << Priority::DEBUG << "Rule::Execute(): Ok" << log4cpp::eol; + else if (cond) + Utils::logger("rule") << Priority::WARN << "Rule::Execute(): Failed !" << log4cpp::eol; + + return ret; +} + +void Rule::RemoveCondition(int pos) +{ + vector::iterator iter = conds.begin(); + for (int i = 0;i < pos;iter++, i++) ; + conds.erase(iter); + + Utils::logger("rule") << Priority::DEBUG << "Rule::RemoveCondition(): Ok" << log4cpp::eol; +} + +void Rule::RemoveAction(int pos) +{ + vector::iterator iter = actions.begin(); + for (int i = 0;i < pos;iter++, i++) ; + actions.erase(iter); + + Utils::logger("rule") << Priority::DEBUG << "Rule::RemoveAction(): Ok" << log4cpp::eol; +} + +bool Rule::LoadFromXml(TiXmlElement *node) +{ + TiXmlAttribute *attr = node->ToElement()->FirstAttribute(); + + for (; attr; attr = attr->Next()) + { + if (string(attr->Name()) != "name" && string(attr->Name()) != "type") + params.Add(attr->Name(), attr->ValueStr()); + } + + TiXmlElement *cnode = node->FirstChildElement(); + + for (; cnode; cnode = cnode->NextSiblingElement()) + { + if (cnode->ValueStr() == "calaos:condition") + { + Condition *cond = RulesFactory::CreateCondition(cnode); + if (cond) + AddCondition(cond); + } + else if (cnode->ValueStr() == "calaos:action") + { + Action *action = RulesFactory::CreateAction(cnode); + if (action) + AddAction(action); + } + } + + return true; +} + +bool Rule::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *rule_node = new TiXmlElement("calaos:rule"); + + for (int i = 0;i < params.size();i++) + { + string key, value; + params.get_item(i, key, value); + rule_node->SetAttribute(key, value); + } + + node->LinkEndChild(rule_node); + + for (int i = 0;i < conds.size();i++) + { + Condition *cond = conds[i]; + cond->SaveToXml(rule_node); + } + + for (int i = 0;i < actions.size();i++) + { + Action *action = actions[i]; + action->SaveToXml(rule_node); + } + + return true; +} diff --git a/src/bin/calaos_server/Rule.h b/src/bin/calaos_server/Rule.h new file mode 100644 index 00000000..8f0a3f69 --- /dev/null +++ b/src/bin/calaos_server/Rule.h @@ -0,0 +1,74 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_RULE_H +#define S_RULE_H + +#include +#include +#include +#include + +using namespace std; + +namespace Calaos +{ + +class Rule +{ + protected: + vector conds; + vector actions; + + Params params; + + bool auto_sc_mark; //true if rule is used by an auto_scenario + + public: + Rule(string _type, string _name); + ~Rule(); + + void AddCondition(Condition *p); + void AddAction(Action *p); + bool Execute(); + void RemoveCondition(int i); + void RemoveAction(int i); + + Condition *get_condition(int i) { return conds[i]; } + Action *get_action(int i) { return actions[i]; } + + int get_size_conds() { return conds.size(); } + int get_size_actions() { return actions.size(); } + + string get_type() { return params["type"]; } + string get_name() { return params["name"]; } + string get_param(string p) { return params[p]; } + void set_param(string p, string v) { params.Add(p, v); } + bool param_exists(string p) { return params.Exists(p); } + + bool isAutoScenario() { return auto_sc_mark; } + void setAutoScenario(bool m) { auto_sc_mark = m; } + + virtual bool LoadFromXml(TiXmlElement *node); + virtual bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/Rules/Action.cpp b/src/bin/calaos_server/Rules/Action.cpp new file mode 100644 index 00000000..bdf24861 --- /dev/null +++ b/src/bin/calaos_server/Rules/Action.cpp @@ -0,0 +1,40 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +Action::Action(int type): action_type(type) +{ + Utils::logger("rule.action") << Priority::DEBUG << "Action::Action(): New action" << log4cpp::eol; +} + +Action::~Action() +{ + Utils::logger("rule.action") << Priority::DEBUG << "Action::~Action(): Ok" << log4cpp::eol; +} + +bool Action::Execute() +{ + Utils::logger("rule.action") << Priority::ERROR << "Action::Execute(): Can't execute base Action class !" << log4cpp::eol; + + return false; +} diff --git a/src/bin/calaos_server/Rules/Action.h b/src/bin/calaos_server/Rules/Action.h new file mode 100644 index 00000000..db0332dd --- /dev/null +++ b/src/bin/calaos_server/Rules/Action.h @@ -0,0 +1,54 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_ACTION_H +#define S_ACTION_H + +#include + +using namespace std; + +namespace Calaos +{ +//----------------------------------------------------------------------------- +// Base class for all actions +//----------------------------------------------------------------------------- + +enum { ACTION_UNKONWN = 0, ACTION_STD, ACTION_MAIL, ACTION_SCRIPT, ACTION_TOUCHSCREEN }; + +class Action +{ + protected: + int action_type; + + public: + Action(int type); + virtual ~Action(); + + virtual bool Execute(); + + int getType() { return action_type; } + + virtual bool LoadFromXml(TiXmlElement *node) { return true; } + virtual bool SaveToXml(TiXmlElement *node) { return true; } +}; + +} +#endif diff --git a/src/bin/calaos_server/Rules/ActionMail.cpp b/src/bin/calaos_server/Rules/ActionMail.cpp new file mode 100644 index 00000000..513b4a71 --- /dev/null +++ b/src/bin/calaos_server/Rules/ActionMail.cpp @@ -0,0 +1,170 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include + +using namespace Calaos; + +ActionMail::ActionMail(): Action(ACTION_MAIL) +{ + sigDownload.connect(sigc::mem_fun(*this, &ActionMail::IPCDownloadDone)); + + Utils::logger("rule.action.mail") << Priority::DEBUG << "ActionMail::ActionMail(): New Mail action" << log4cpp::eol; +} + +ActionMail::~ActionMail() +{ + Utils::logger("rule.action.mail") << Priority::DEBUG << "ActionMail::~ActionMail(): Ok" << log4cpp::eol; +} + +bool ActionMail::Execute() +{ + IPCam *camera = NULL; + + if (mail_attachment != "") + { + Input *in = ListeRoom::Instance().get_input(mail_attachment); + Output *out = NULL; + if (!in) out = ListeRoom::Instance().get_output(mail_attachment); + + if (in) + { + CamInput *cin = reinterpret_cast(in); + if (cin) camera = cin->get_cam(); + } + if (out) + { + CamOutput *cout = reinterpret_cast(out); + if (cout) camera = cout->get_cam(); + } + } + + MailMessage *msg = new MailMessage(); + + msg->setSender(mail_sender); + msg->setSubject(mail_subject); + + vector recips; + split(mail_recipients, recips, ","); + for (int i = 0;i < recips.size();i++) + msg->addRecipient(recips[i]); + + msg->setBodyText(mail_message); + + if (camera) + { + Utils::logger("rule.action.mail") << Priority::INFO << "ActionMail::Execute(): Need to download camera (" + << camera->get_param("name") + << ") attachment" << log4cpp::eol; + + string tmpFile; + int cpt = 0; + + //Get a temporary filename + do + { + tmpFile = "/tmp/calaos_mail_attachment_"; + tmpFile += to_string(cpt); + cpt++; + } + while (ecore_file_exists(tmpFile.c_str())); + + /* Autodestroy file downloader. Will send an ipc when done */ + FileDownloader* downloader = new FileDownloader(camera->get_picture(), tmpFile, true); + IPC::Instance().AddHandler("downloader::" + to_string(downloader), "*", + sigDownload, msg); + downloader->Start(); + } + else + { + SendMail::Instance().SendMessage(msg); + + Utils::logger("rule.action.mail") << Priority::INFO << "ActionMail::Execute(): Ok, mail is in queue" << log4cpp::eol; + } + + return true; +} + +void ActionMail::IPCDownloadDone(string source, string signal, void *listener_data, void *sender_data) +{ + if(signal == "done") + { + MailMessage *msg = reinterpret_cast(listener_data); + if (msg) + { + string file = *(reinterpret_cast(sender_data)); + msg->addAttachment(file, "camera.jpg", "Camera", "image/jpeg"); + + SendMail::Instance().SendMessage(msg); + } + } + else if (signal == "failed" || signal == "aborted") + { + MailMessage *msg = reinterpret_cast(listener_data); + if (msg) + { + SendMail::Instance().SendMessage(msg); + } + } +} + +bool ActionMail::LoadFromXml(TiXmlElement *pnode) +{ + TiXmlElement *mail_node = pnode->FirstChildElement("calaos:mail"); + if (!mail_node) return false; + + if (mail_node->Attribute("sender")) mail_sender = mail_node->Attribute("sender"); + if (mail_node->Attribute("recipients")) mail_recipients = mail_node->Attribute("recipients"); + if (mail_node->Attribute("subject")) mail_subject = mail_node->Attribute("subject"); + if (mail_node->Attribute("attachment")) mail_attachment = mail_node->Attribute("attachment"); + + //remove spaces + replace_str(mail_recipients, " ", ""); + + TiXmlText *tnode = dynamic_cast(mail_node->FirstChild()); + + if (tnode) + mail_message = tnode->ValueStr(); + + return true; +} + +bool ActionMail::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *action_node = new TiXmlElement("calaos:action"); + action_node->SetAttribute("type", "mail"); + node->LinkEndChild(action_node); + + TiXmlElement *mail_node = new TiXmlElement("calaos:mail"); + mail_node->SetAttribute("sender", mail_sender); + mail_node->SetAttribute("recipients", mail_recipients); + mail_node->SetAttribute("subject", mail_subject); + mail_node->SetAttribute("attachment", mail_attachment); + action_node->LinkEndChild(mail_node); + + TiXmlText *txt_node = new TiXmlText(mail_message); + txt_node->SetCDATA(true); + mail_node->LinkEndChild(txt_node); + + return true; +} diff --git a/src/bin/calaos_server/Rules/ActionMail.h b/src/bin/calaos_server/Rules/ActionMail.h new file mode 100644 index 00000000..17225b1f --- /dev/null +++ b/src/bin/calaos_server/Rules/ActionMail.h @@ -0,0 +1,55 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_ACTIONMAIL_H +#define S_ACTIONMAIL_H + +#include +#include +#include + +namespace Calaos +{ + +class ActionMail: public Action +{ + private: + string mail_sender; + string mail_recipients; + string mail_subject; + string mail_attachment; + string mail_message; + + sigc::signal sigDownload; + + void IPCDownloadDone(string source, string signal, void* listener_data, void* sender_data); + + public: + ActionMail(); + ~ActionMail(); + + bool Execute(); + + bool LoadFromXml(TiXmlElement *node); + bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/Rules/ActionScript.cpp b/src/bin/calaos_server/Rules/ActionScript.cpp new file mode 100644 index 00000000..d612050b --- /dev/null +++ b/src/bin/calaos_server/Rules/ActionScript.cpp @@ -0,0 +1,74 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include + +using namespace Calaos; + +ActionScript::ActionScript(): Action(ACTION_SCRIPT) +{ + Utils::logger("rule.action.script") << Priority::DEBUG << "ActionScript::ActionScript(): New Script action" << log4cpp::eol; +} + +ActionScript::~ActionScript() +{ + Utils::logger("rule.action.script") << Priority::DEBUG << "ActionScript::~ActionScript(): Ok" << log4cpp::eol; +} + +bool ActionScript::Execute() +{ + return ScriptManager::Instance().ExecuteScript(script); +} + +bool ActionScript::LoadFromXml(TiXmlElement *pnode) +{ + TiXmlElement *sc_node = pnode->FirstChildElement("calaos:script"); + if (!sc_node) return false; + + string type = ""; + if (sc_node->Attribute("type")) + type = sc_node->Attribute("type"); + if (type == "lua") + { + TiXmlText *tnode = dynamic_cast(sc_node->FirstChild()); + + if (tnode) + script = tnode->ValueStr(); + } + + return true; +} + +bool ActionScript::SaveToXml(TiXmlElement *node) +{ + TiXmlElement *action_node = new TiXmlElement("calaos:action"); + action_node->SetAttribute("type", "script"); + node->LinkEndChild(action_node); + + TiXmlElement *sc_node = new TiXmlElement("calaos:script"); + sc_node->SetAttribute("type", "lua"); + action_node->LinkEndChild(sc_node); + + TiXmlText *txt_node = new TiXmlText(script); + txt_node->SetCDATA(true); + sc_node->LinkEndChild(txt_node); + + return true; +} diff --git a/src/bin/calaos_server/Rules/ActionScript.h b/src/bin/calaos_server/Rules/ActionScript.h new file mode 100644 index 00000000..804b3725 --- /dev/null +++ b/src/bin/calaos_server/Rules/ActionScript.h @@ -0,0 +1,47 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#ifndef S_ACTIONSCRIPT_H +#define S_ACTIONSCRIPT_H + +#include +#include +#include + +namespace Calaos +{ + +class ActionScript: public Action +{ + private: + string script; + + public: + ActionScript(); + ~ActionScript(); + + bool Execute(); + + bool LoadFromXml(TiXmlElement *node); + bool SaveToXml(TiXmlElement *node); +}; + +} +#endif diff --git a/src/bin/calaos_server/Rules/ActionStd.cpp b/src/bin/calaos_server/Rules/ActionStd.cpp new file mode 100644 index 00000000..4e209696 --- /dev/null +++ b/src/bin/calaos_server/Rules/ActionStd.cpp @@ -0,0 +1,269 @@ +/****************************************************************************** +** Copyright (c) 2007-2008, Calaos. All Rights Reserved. +** +** This file is part of Calaos Home. +** +** Calaos Home is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 3 of the License, or +** (at your option) any later version. +** +** Calaos Home 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 Foobar; if not, write to the Free Software +** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +** +******************************************************************************/ +#include +#include +#include +#include +#include + +using namespace Calaos; + +ActionStd::~ActionStd() +{ + Utils::logger("rule.action.standard") << Priority::DEBUG << "ActionStd::~ActionStd(): Ok" << log4cpp::eol; +} + +void ActionStd::Add(Output *out) +{ + outputs.push_back(out); + + Utils::logger("rule.action.standard") << Priority::DEBUG << "ActionStd::Add(): Output(" << out->get_param("id") << ") added" << log4cpp::eol; +} + +bool ActionStd::Execute() +{ + std::string tmp; + bool ret = true; + std::string sval; + bool bval; + double dval; + + for (int i = 0;i < outputs.size();i++) + { + bool ovar = false; + switch (outputs[i]->get_type()) + { + case TBOOL: + { + if (params_var[outputs[i]->get_param("id")] != "") + { + std::string var_id = params_var[outputs[i]->get_param("id")]; + Output *out = ListeRoom::Instance().get_output(var_id); + if (out && out->get_type() == TBOOL) + { + bval = out->get_value_bool(); + ovar = true; + } + } + + if (ovar) + { + if (!outputs[i]->set_value(bval)) ret = false; + } + else if (params[outputs[i]->get_param("id")] == "true") + { + if (!outputs[i]->set_value(true)) ret = false; + } + else if (params[outputs[i]->get_param("id")] == "false") + { + if (!outputs[i]->set_value(false)) ret = false; + } + else if (params[outputs[i]->get_param("id")] == "toggle") + { + if (outputs[i]->get_value_bool()) + { + if (!outputs[i]->set_value(false)) ret = false; + } + else + { + if (!outputs[i]->set_value(true)) ret = false; + } + } + else if (params[outputs[i]->get_param("id")].compare(0, 8, "impulse ") == 0) + { + tmp = params[outputs[i]->get_param("id")]; + tmp.erase(0, 8); + WODigital* odg = dynamic_cast(outputs[i]); + if (odg) + { + // classic impulse, WODigital goes false after