pax_global_header00006660000000000000000000000064126255661000014515gustar00rootroot0000000000000052 comment=5405f610962cababa41304f5031d3a28bd2b7319 lxdm-0.5.3/000077500000000000000000000000001262556610000124665ustar00rootroot00000000000000lxdm-0.5.3/AUTHORS000066400000000000000000000007631262556610000135440ustar00rootroot00000000000000dgod Hong Jen Yee (PCMan) File in src/gdm were taken from gdm. src/gdm/gdm-languages.[ch]: Copyright 2008 Red Hat, Inc, 2007 William Jon McCann Ray Strode src/gdm/locarchive.h: Copyright (C) 2002 Free Software Foundation, Inc. Image files in data/theme/Industrial are taken from 'industrial' gdm theme. License: GPL v2 or later Copyright (C) 2002 Ximian, Inc. Jakub Steiner lxdm-0.5.3/COPYING000066400000000000000000001045131262556610000135250ustar00rootroot00000000000000 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 . lxdm-0.5.3/ChangeLog000066400000000000000000000000001262556610000142260ustar00rootroot00000000000000lxdm-0.5.3/INSTALL000066400000000000000000000007701262556610000135230ustar00rootroot000000000000001 compile and install ./configure --prefix=/usr --sysconfdir=/etc make make install libexecdir should change as you system path, to do that, pass --libexecdir=/your/path at configure. sysconfdir must be /etc. 2 custom modify data/Xsession.in as your distribution /etc/lxdm/PreLogin before login, have root's context /etc/lxdm/PostLogin login, before Xsession, user's context /etc/lxdm/PostLogout when session logout done and ui ready /etc/lxdm/LoginReady lxdm start done, called after ui ready lxdm-0.5.3/Makefile.am000066400000000000000000000007161262556610000145260ustar00rootroot00000000000000NULL = SUBDIRS= \ src \ po \ data \ $(NULL) if HAVE_SYSTEMD SUBDIRS += systemd endif if HAVE_PAM SUBDIRS += pam endif rpm: dist @PACKAGE_NAME@.spec rpmbuild -bb \ --define "_sourcedir `pwd`" \ --define "_builddir `pwd`" \ --define "_srcrpmdir `pwd`" \ --define "_rpmdir `pwd`" \ --define "_specdir `pwd`" \ @PACKAGE_NAME@.spec EXTRA_DIST= \ ChangeLog \ AUTHORS \ README \ NEWS \ INSTALL \ COPYING \ gpl-2.0.txt \ lgpl-2.1.txt \ $(NULL) lxdm-0.5.3/Makefile.in000066400000000000000000000626341262556610000145460ustar00rootroot00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : @HAVE_SYSTEMD_TRUE@am__append_1 = systemd @HAVE_PAM_TRUE@am__append_2 = pam subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) 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 = lxdm.spec CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = src po data systemd pam am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/lxdm.spec.in AUTHORS COPYING ChangeLog INSTALL NEWS \ README TODO compile depcomp install-sh ltmain.sh missing 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__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" GZIP_ENV = --best DIST_ARCHIVES = $(distdir).tar.xz DIST_TARGETS = dist-xz 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@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONSOLEKIT_CFLAGS = @CONSOLEKIT_CFLAGS@ CONSOLEKIT_LIBS = @CONSOLEKIT_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FULL_LIBEXECDIR = @FULL_LIBEXECDIR@ GDK_CFLAGS = @GDK_CFLAGS@ GDK_LIBS = @GDK_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XCONN_CFLAGS = @XCONN_CFLAGS@ XCONN_LIBS = @XCONN_LIBS@ XGETTEXT = @XGETTEXT@ XLIB_CFLAGS = @XLIB_CFLAGS@ XLIB_LIBS = @XLIB_LIBS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = SUBDIRS = src po data $(NULL) $(am__append_1) $(am__append_2) EXTRA_DIST = \ ChangeLog \ AUTHORS \ README \ NEWS \ INSTALL \ COPYING \ gpl-2.0.txt \ lgpl-2.1.txt \ $(NULL) 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) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 lxdm.spec: $(top_builddir)/config.status $(srcdir)/lxdm.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(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/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile 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." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive 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 pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-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 pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am .PRECIOUS: Makefile rpm: dist @PACKAGE_NAME@.spec rpmbuild -bb \ --define "_sourcedir `pwd`" \ --define "_builddir `pwd`" \ --define "_srcrpmdir `pwd`" \ --define "_rpmdir `pwd`" \ --define "_specdir `pwd`" \ @PACKAGE_NAME@.spec # 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: lxdm-0.5.3/NEWS000066400000000000000000000000001262556610000131530ustar00rootroot00000000000000lxdm-0.5.3/README000066400000000000000000000001301262556610000133400ustar00rootroot00000000000000LXDM - GUI login manager for LXDE A lightweight dropped-in replacement for GDM or KDM. lxdm-0.5.3/TODO000066400000000000000000000001021262556610000131470ustar00rootroot00000000000000help me! 1. multi seat support 2. manpage for lxdm and lxdm.conf lxdm-0.5.3/aclocal.m4000066400000000000000000001700361262556610000143350ustar00rootroot00000000000000# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) # serial 42 IT_PROG_INTLTOOL AC_DEFUN([IT_PROG_INTLTOOL], [ AC_PREREQ([2.50])dnl AC_REQUIRE([AM_NLS])dnl case "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "$1"; then AC_MSG_CHECKING([for intltool >= $1]) AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi AC_SUBST([AM_DEFAULT_VERBOSITY]) INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' AC_SUBST(INTLTOOL_V_MERGE) AC_SUBST(INTLTOOL__v_MERGE_) AC_SUBST(INTLTOOL__v_MERGE_0) INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) AC_SUBST(intltool__v_merge_options_) AC_SUBST(intltool__v_merge_options_0) INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' _IT_SUBST(INTLTOOL_DESKTOP_RULE) _IT_SUBST(INTLTOOL_DIRECTORY_RULE) _IT_SUBST(INTLTOOL_KEYS_RULE) _IT_SUBST(INTLTOOL_PROP_RULE) _IT_SUBST(INTLTOOL_OAF_RULE) _IT_SUBST(INTLTOOL_PONG_RULE) _IT_SUBST(INTLTOOL_SERVER_RULE) _IT_SUBST(INTLTOOL_SHEET_RULE) _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) _IT_SUBST(INTLTOOL_UI_RULE) _IT_SUBST(INTLTOOL_XAM_RULE) _IT_SUBST(INTLTOOL_KBD_RULE) _IT_SUBST(INTLTOOL_XML_RULE) _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) _IT_SUBST(INTLTOOL_CAVES_RULE) _IT_SUBST(INTLTOOL_SCHEMAS_RULE) _IT_SUBST(INTLTOOL_THEME_RULE) _IT_SUBST(INTLTOOL_SERVICE_RULE) _IT_SUBST(INTLTOOL_POLICY_RULE) # Check the gettext tools to make sure they are GNU AC_PATH_PROG(XGETTEXT, xgettext) AC_PATH_PROG(MSGMERGE, msgmerge) AC_PATH_PROG(MSGFMT, msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi AC_PATH_PROG(INTLTOOL_PERL, perl) if test -z "$INTLTOOL_PERL"; then AC_MSG_ERROR([perl not found]) fi AC_MSG_CHECKING([for perl >= 5.8.1]) $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then AC_MSG_ERROR([perl 5.8.1 is required for intltool]) else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` AC_MSG_RESULT([$IT_PERL_VERSION]) fi if test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile AC_SUBST(ALL_LINGUAS) IT_PO_SUBDIR([po]) ]) # IT_PO_SUBDIR(DIRNAME) # --------------------- # All po subdirs have to be declared with this macro; the subdir "po" is # declared by IT_PROG_INTLTOOL. # AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. dnl dnl The following CONFIG_COMMANDS should be executed at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) fi rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.in" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ]) ])dnl ]) # _IT_SUBST(VARIABLE) # ------------------- # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST # AC_DEFUN([_IT_SUBST], [ AC_SUBST([$1]) m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) ] ) # deprecated macros AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # A hint is needed for aclocal from Automake <= 1.9.4: # AC_DEFUN([AC_PROG_INTLTOOL], ...) # nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) # 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 # PKG_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable pkgconfigdir as the location where a module # should install pkg-config .pc files. By default the directory is # $libdir/pkgconfig, but the default can be changed by passing # DIRECTORY. The user can override through the --with-pkgconfigdir # parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_INSTALLDIR # PKG_NOARCH_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable noarch_pkgconfigdir as the location where a # module should install arch-independent pkg-config .pc files. By # default the directory is $datadir/pkgconfig, but the default can be # changed by passing DIRECTORY. The user can override through the # --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_NOARCH_INSTALLDIR # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # ------------------------------------------- # Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])# PKG_CHECK_VAR # Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' 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.15], [], [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.15])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-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) 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-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != 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-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR lxdm-0.5.3/compile000077500000000000000000000072711262556610000140530ustar00rootroot00000000000000#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2009-10-06.20; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software # Foundation, Inc. # Written by Tom Tromey . # # 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. # This file is maintained in Automake, please report # bugs to or send patches to # . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand `-c -o'. Remove `-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file `INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; esac ofile= cfile= eat= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we strip `-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use `[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # 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: lxdm-0.5.3/config.h.in000066400000000000000000000055641262556610000145230ustar00rootroot00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Gettext package. */ #undef GETTEXT_PACKAGE /* Define to 1 if you have the `atexit' function. */ #undef HAVE_ATEXIT /* Define to 1 if you have the `endpwent' function. */ #undef HAVE_ENDPWENT /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `getspnam' function. */ #undef HAVE_GETSPNAM /* Define to 1 if you have the `getusershell' function. */ #undef HAVE_GETUSERSHELL /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `ck-connector' library (-lck-connector). */ #undef HAVE_LIBCK_CONNECTOR /* Define to 1 if you have the `crypt' library (-lcrypt). */ #undef HAVE_LIBCRYPT /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV /* Define to 1 if you have the header file. */ #undef HAVE_SHADOW_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 `strstr' function. */ #undef HAVE_STRSTR /* 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 1 if you have the header file. */ #undef HAVE_UTMPX_H /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* ISO codes prefix */ #undef ISO_CODES_PREFIX /* 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 /* Use PAM for authentication */ #undef USE_PAM /* Version number of package */ #undef VERSION /* Define to `int' if does not define. */ #undef pid_t /* Define as `fork' if `vfork' does not work. */ #undef vfork lxdm-0.5.3/configure000077500000000000000000007267501262556610000144160ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for lxdm 0.5.3. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and http://lxde.org/ $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='lxdm' PACKAGE_TARNAME='lxdm' PACKAGE_VERSION='0.5.3' PACKAGE_STRING='lxdm 0.5.3' PACKAGE_BUGREPORT='http://lxde.org/' PACKAGE_URL='' ac_unique_file="src/lxdm.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS FULL_LIBEXECDIR GETTEXT_PACKAGE HAVE_SYSTEMD_FALSE HAVE_SYSTEMD_TRUE systemdsystemunitdir XCONN_LIBS XCONN_CFLAGS CONSOLEKIT_LIBS CONSOLEKIT_CFLAGS GTK_LIBS GTK_CFLAGS GDK_LIBS GDK_CFLAGS GLIB_LIBS GLIB_CFLAGS XLIB_LIBS XLIB_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG ALL_LINGUAS INTLTOOL_PERL GMSGFMT MSGFMT MSGMERGE XGETTEXT INTLTOOL_POLICY_RULE INTLTOOL_SERVICE_RULE INTLTOOL_THEME_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_CAVES_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_XML_RULE INTLTOOL_KBD_RULE INTLTOOL_XAM_RULE INTLTOOL_UI_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_SHEET_RULE INTLTOOL_SERVER_RULE INTLTOOL_PONG_RULE INTLTOOL_OAF_RULE INTLTOOL_PROP_RULE INTLTOOL_KEYS_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_DESKTOP_RULE intltool__v_merge_options_0 intltool__v_merge_options_ INTLTOOL_V_MERGE_OPTIONS INTLTOOL__v_MERGE_0 INTLTOOL__v_MERGE_ INTLTOOL_V_MERGE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE USE_NLS EGREP GREP CPP XMKMF HAVE_PAM_FALSE HAVE_PAM_TRUE 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 with_pam with_x enable_nls enable_gtk3 enable_consolekit enable_password enable_xauth enable_debug with_xconn with_systemdsystemunitdir ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS XMKMF CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR XLIB_CFLAGS XLIB_LIBS GLIB_CFLAGS GLIB_LIBS GDK_CFLAGS GDK_LIBS GTK_CFLAGS GTK_LIBS CONSOLEKIT_CFLAGS CONSOLEKIT_LIBS XCONN_CFLAGS XCONN_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 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 lxdm 0.5.3 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/lxdm] --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 X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of lxdm 0.5.3:";; 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") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-nls do not use Native Language Support --enable-gtk3 enable to use gtk-3.0 instead of gtk-2.0 --disable-consolekit disable ConsoleKit support --enable-password enable to load autologin password store at config file --disable-xauth disable the xauth support --enable-debug enable detailed debug Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pam Use PAM for authentication --with-x use the X Window System --with-xconn=[xlib/xcb] use xlib or xcb to use --with-systemdsystemunitdir=DIR Directory for systemd service files 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 XMKMF Path to xmkmf, Makefile generator for X Window System CPP 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 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config XLIB_LIBS linker flags for XLIB, overriding pkg-config GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config GDK_CFLAGS C compiler flags for GDK, overriding pkg-config GDK_LIBS linker flags for GDK, overriding pkg-config GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config CONSOLEKIT_CFLAGS C compiler flags for CONSOLEKIT, overriding pkg-config CONSOLEKIT_LIBS linker flags for CONSOLEKIT, overriding pkg-config XCONN_CFLAGS C compiler flags for XCONN, overriding pkg-config XCONN_LIBS linker flags for XCONN, 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 lxdm configure 0.5.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_try_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 http://lxde.org/ ## ## ------------------------------- ##" ) | 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_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type 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 lxdm $as_me 0.5.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.15' 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 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # 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 ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else 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; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file 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 --is-lightweight"; then am_missing_run="$MISSING " 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+set}" != 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 as_fn_executable_p "$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 as_fn_executable_p "$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 as_fn_executable_p "$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; } 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 as_fn_executable_p "$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 # 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=1;; 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='\' 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='lxdm' VERSION='0.5.3' 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"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). 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}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_headers="$ac_config_headers config.h" # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". 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 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_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 # Checks for libraries. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 $as_echo_n "checking for crypt in -lcrypt... " >&6; } if ${ac_cv_lib_crypt_crypt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $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 crypt (); int main () { return crypt (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypt_crypt=yes else ac_cv_lib_crypt_crypt=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_crypt_crypt" >&5 $as_echo "$ac_cv_lib_crypt_crypt" >&6; } if test "x$ac_cv_lib_crypt_crypt" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCRYPT 1 _ACEOF LIBS="-lcrypt $LIBS" fi # Check for PAM support # Check whether --with-pam was given. if test "${with_pam+set}" = set; then : withval=$with_pam; USE_PAM=$withval else USE_PAM=$use_pam_default fi if test "x$USE_PAM" != "xno" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5 $as_echo_n "checking for library containing pam_open_session... " >&6; } if ${ac_cv_search_pam_open_session+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pam_open_session (); int main () { return pam_open_session (); ; return 0; } _ACEOF for ac_lib in '' pam; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_pam_open_session=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_pam_open_session+:} false; then : break fi done if ${ac_cv_search_pam_open_session+:} false; then : else ac_cv_search_pam_open_session=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5 $as_echo "$ac_cv_search_pam_open_session" >&6; } ac_res=$ac_cv_search_pam_open_session if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session" if test "x$ac_cv_func_pam_open_session" = xyes; then : USE_PAM=1 $as_echo "#define USE_PAM 1" >>confdefs.h else if test "x$USE_PAM" != "xtry" ; then as_fn_error $? "\"PAM support requested, but pam_open_session not found.\"" "$LINENO" 5 fi fi fi if test -n "$USE_PAM" -a "x$USE_PAM" != xno ; then HAVE_PAM_TRUE= HAVE_PAM_FALSE='#' else HAVE_PAM_TRUE='#' HAVE_PAM_FALSE= fi # Checks for header files. 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 X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in shadow.h stdlib.h string.h unistd.h utmpx.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi # Checks for library functions. for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi for ac_func in atexit endpwent getspnam getusershell memset putenv strstr do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done PKG_CONFIG=pkg-config # FIXME: is this OK? # Check for ISO Codes, this is taken from gdm { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iso-codes has iso-639 domain" >&5 $as_echo_n "checking whether iso-codes has iso-639 domain... " >&6; } if $PKG_CONFIG --variable=domains iso-codes | grep 639 >/dev/null ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi cat >>confdefs.h <<_ACEOF #define ISO_CODES_PREFIX "`$PKG_CONFIG --variable=prefix iso-codes`" _ACEOF ISO_CODES=iso-codes { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } case "$am__api_version" in 1.01234) as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "0.40.0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.0" >&5 $as_echo_n "checking for intltool >= 0.40.0... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || as_fn_error $? "Your intltool is too old. You need intltool 0.40.0 or later." "$LINENO" 5 fi # Extract the first word of "intltool-update", so it can be a program name with args. set dummy intltool-update; 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_INTLTOOL_UPDATE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_UPDATE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_UPDATE="$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 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE if test -n "$INTLTOOL_UPDATE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 $as_echo "$INTLTOOL_UPDATE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-merge", so it can be a program name with args. set dummy intltool-merge; 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_INTLTOOL_MERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_MERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_MERGE="$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 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE if test -n "$INTLTOOL_MERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 $as_echo "$INTLTOOL_MERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-extract", so it can be a program name with args. set dummy intltool-extract; 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_INTLTOOL_EXTRACT+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_EXTRACT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_EXTRACT="$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 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT if test -n "$INTLTOOL_EXTRACT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 $as_echo "$INTLTOOL_EXTRACT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Check the gettext tools to make sure they are GNU # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; 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_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case $XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XGETTEXT="$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 XGETTEXT=$ac_cv_path_XGETTEXT if test -n "$XGETTEXT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; 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_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGMERGE="$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 MSGMERGE=$ac_cv_path_MSGMERGE if test -n "$MSGMERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGFMT="$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 MSGFMT=$ac_cv_path_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; 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_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$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 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; 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_INTLTOOL_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_PERL="$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 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 $as_echo "$INTLTOOL_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_PERL"; then as_fn_error $? "perl not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 $as_echo_n "checking for perl >= 5.8.1... " >&6; } $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 $as_echo "$IT_PERL_VERSION" >&6; } fi if test "x" != "xno-xml"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 $as_echo_n "checking for XML::Parser... " >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } else as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile 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 as_fn_executable_p "$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 as_fn_executable_p "$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 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 $as_echo_n "checking for XLIB... " >&6; } if test -n "$XLIB_CFLAGS"; then pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XLIB_LIBS"; then pkg_cv_XLIB_LIBS="$XLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 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 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` else XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XLIB_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (x11) were not met: $XLIB_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 XLIB_CFLAGS and XLIB_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 XLIB_CFLAGS and XLIB_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 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS XLIB_LIBS=$pkg_cv_XLIB_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 $as_echo_n "checking for GLIB... " >&6; } if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 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 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1` else GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0) were not met: $GLIB_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 GLIB_CFLAGS and GLIB_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 GLIB_CFLAGS and GLIB_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 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # Check whether --enable-gtk3 was given. if test "${enable_gtk3+set}" = set; then : enableval=$enable_gtk3; case "${enableval}" in yes) enable_gtk3=yes ;; no) enable_gtk3=no ;; *) as_fn_error $? "bad value \"${enableval}\" for --enable-gtk3, use \"yes\" (default) or \"no\"." "$LINENO" 5 ;; esac fi if test "x$enable_gtk3" = "xyes" ; then pkg_modules="gdk-3.0" else pkg_modules="gdk-2.0" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5 $as_echo_n "checking for GDK... " >&6; } if test -n "$GDK_CFLAGS"; then pkg_cv_GDK_CFLAGS="$GDK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GDK_LIBS"; then pkg_cv_GDK_LIBS="$GDK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 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 GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_modules" 2>&1` else GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_modules" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GDK_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ($pkg_modules) were not met: $GDK_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 GDK_CFLAGS and GDK_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 GDK_CFLAGS and GDK_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 GDK_CFLAGS=$pkg_cv_GDK_CFLAGS GDK_LIBS=$pkg_cv_GDK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi if test "x$enable_gtk3" = "xyes" ; then CFLAGS="$CFLAGS -DENABLE_GTK3" pkg_modules="gtk+-3.0 >= 3.0.0" else pkg_modules="gtk+-2.0 >= 2.12.0" fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 $as_echo_n "checking for GTK... " >&6; } if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 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 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_modules" 2>&1` else GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_modules" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ($pkg_modules) were not met: $GTK_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 GTK_CFLAGS and GTK_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 GTK_CFLAGS and GTK_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 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # Check whether --enable-consolekit was given. if test "${enable_consolekit+set}" = set; then : enableval=$enable_consolekit; enable_consolekit=$enableval else enable_consolekit=yes fi if test "x$enable_consolekit" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONSOLEKIT" >&5 $as_echo_n "checking for CONSOLEKIT... " >&6; } if test -n "$CONSOLEKIT_CFLAGS"; then pkg_cv_CONSOLEKIT_CFLAGS="$CONSOLEKIT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"ck-connector\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""ck-connector"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CONSOLEKIT_CFLAGS=`$PKG_CONFIG --cflags ""ck-connector"" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CONSOLEKIT_LIBS"; then pkg_cv_CONSOLEKIT_LIBS="$CONSOLEKIT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"ck-connector\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""ck-connector"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CONSOLEKIT_LIBS=`$PKG_CONFIG --libs ""ck-connector"" 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 CONSOLEKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""ck-connector"" 2>&1` else CONSOLEKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""ck-connector"" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CONSOLEKIT_PKG_ERRORS" >&5 echo "ConsoleKit devel package not found" elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } echo "ConsoleKit devel package not found" else CONSOLEKIT_CFLAGS=$pkg_cv_CONSOLEKIT_CFLAGS CONSOLEKIT_LIBS=$pkg_cv_CONSOLEKIT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ck_connector_open_session in -lck-connector" >&5 $as_echo_n "checking for ck_connector_open_session in -lck-connector... " >&6; } if ${ac_cv_lib_ck_connector_ck_connector_open_session+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lck-connector $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 ck_connector_open_session (); int main () { return ck_connector_open_session (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ck_connector_ck_connector_open_session=yes else ac_cv_lib_ck_connector_ck_connector_open_session=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_ck_connector_ck_connector_open_session" >&5 $as_echo "$ac_cv_lib_ck_connector_ck_connector_open_session" >&6; } if test "x$ac_cv_lib_ck_connector_ck_connector_open_session" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCK_CONNECTOR 1 _ACEOF LIBS="-lck-connector $LIBS" fi fi # Check whether --enable-password was given. if test "${enable_password+set}" = set; then : enableval=$enable_password; case "${enableval}" in yes) enable_password=yes ;; no) enable_password=no ;; *) as_fn_error $? "bad value \"${enableval}\" for --enable-password, use \"yes\" (default) or \"no\"." "$LINENO" 5 ;; esac fi if test "x$enable_password" = "xyes" ; then CFLAGS="$CFLAGS -DENABLE_PASSWORD" fi # Check whether --enable-xauth was given. if test "${enable_xauth+set}" = set; then : enableval=$enable_xauth; enable_xauth=$enablevar else enable_xauth=yes fi if test "x$enable_xauth" = "x$no" ; then CFLAGS="$CFLAGS -DDISABLE_XAUTH" fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; enable_debug=$enablevar else enable_debug=yes fi if test "x$enable_debug" = "x$yes" ; then CFLAGS="$CFLAGS -DLXDM_DEBUG" fi # Check whether --with-xconn was given. if test "${with_xconn+set}" = set; then : withval=$with_xconn; if test "x$with_xconn" = "xxlib"; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCONN" >&5 $as_echo_n "checking for XCONN... " >&6; } if test -n "$XCONN_CFLAGS"; then pkg_cv_XCONN_CFLAGS="$XCONN_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"x11\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""x11"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCONN_CFLAGS=`$PKG_CONFIG --cflags ""x11"" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XCONN_LIBS"; then pkg_cv_XCONN_LIBS="$XCONN_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"x11\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""x11"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCONN_LIBS=`$PKG_CONFIG --libs ""x11"" 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 XCONN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""x11"" 2>&1` else XCONN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""x11"" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XCONN_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (\"x11\") were not met: $XCONN_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 XCONN_CFLAGS and XCONN_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 XCONN_CFLAGS and XCONN_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 XCONN_CFLAGS=$pkg_cv_XCONN_CFLAGS XCONN_LIBS=$pkg_cv_XCONN_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi CFLAGS="$CFLAGS -DLXDM_XCONN_XLIB" else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCONN" >&5 $as_echo_n "checking for XCONN... " >&6; } if test -n "$XCONN_CFLAGS"; then pkg_cv_XCONN_CFLAGS="$XCONN_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"xcb\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""xcb"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCONN_CFLAGS=`$PKG_CONFIG --cflags ""xcb"" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XCONN_LIBS"; then pkg_cv_XCONN_LIBS="$XCONN_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"xcb\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""xcb"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCONN_LIBS=`$PKG_CONFIG --libs ""xcb"" 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 XCONN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""xcb"" 2>&1` else XCONN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""xcb"" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XCONN_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (\"xcb\") were not met: $XCONN_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 XCONN_CFLAGS and XCONN_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 XCONN_CFLAGS and XCONN_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 XCONN_CFLAGS=$pkg_cv_XCONN_CFLAGS XCONN_LIBS=$pkg_cv_XCONN_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi CFLAGS="$CFLAGS -DLXDM_XCONN_XCB" fi else pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCONN" >&5 $as_echo_n "checking for XCONN... " >&6; } if test -n "$XCONN_CFLAGS"; then pkg_cv_XCONN_CFLAGS="$XCONN_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"xcb\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""xcb"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCONN_CFLAGS=`$PKG_CONFIG --cflags ""xcb"" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XCONN_LIBS"; then pkg_cv_XCONN_LIBS="$XCONN_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"xcb\"\""; } >&5 ($PKG_CONFIG --exists --print-errors ""xcb"") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCONN_LIBS=`$PKG_CONFIG --libs ""xcb"" 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 XCONN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""xcb"" 2>&1` else XCONN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""xcb"" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XCONN_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (\"xcb\") were not met: $XCONN_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 XCONN_CFLAGS and XCONN_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 XCONN_CFLAGS and XCONN_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 XCONN_CFLAGS=$pkg_cv_XCONN_CFLAGS XCONN_LIBS=$pkg_cv_XCONN_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi CFLAGS="$CFLAGS -DLXDM_XCONN_XCB" fi # Check whether --with-systemdsystemunitdir was given. if test "${with_systemdsystemunitdir+set}" = set; then : withval=$with_systemdsystemunitdir; else with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) fi if test "x$with_systemdsystemunitdir" != xno; then systemdsystemunitdir=$with_systemdsystemunitdir fi if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then HAVE_SYSTEMD_TRUE= HAVE_SYSTEMD_FALSE='#' else HAVE_SYSTEMD_TRUE='#' HAVE_SYSTEMD_FALSE= fi GETTEXT_PACKAGE=lxdm cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF EXP_VAR=FULL_LIBEXECDIR FROM_VAR=$libexecdir prefix_save=$prefix exec_prefix_save=$exec_prefix if test "x$prefix" = "xNONE"; then prefix="$ac_default_prefix" fi if test "x$exec_prefix" = "xNONE"; then exec_prefix=$prefix fi full_var="$FROM_VAR" while true; do new_full_var="`eval echo $full_var`" if test "x$new_full_var" = "x$full_var"; then break; fi full_var=$new_full_var done full_var=$new_full_var FULL_LIBEXECDIR="$full_var" prefix=$prefix_save exec_prefix=$exec_prefix_save ac_config_files="$ac_config_files Makefile lxdm.spec src/Makefile po/Makefile.in pam/Makefile systemd/Makefile data/Makefile data/PostLogin data/PostLogout data/PreLogin data/PreReboot data/PreShutdown data/LoginReady data/lxdm.conf" ac_config_files="$ac_config_files data/lxdm" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } 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 "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then as_fn_error $? "conditional \"HAVE_PAM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then as_fn_error $? "conditional \"HAVE_SYSTEMD\" 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 -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by lxdm $as_me 0.5.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" 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="\\ lxdm config.status 0.5.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' 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" _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" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "lxdm.spec") CONFIG_FILES="$CONFIG_FILES lxdm.spec" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;; "systemd/Makefile") CONFIG_FILES="$CONFIG_FILES systemd/Makefile" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; "data/PostLogin") CONFIG_FILES="$CONFIG_FILES data/PostLogin" ;; "data/PostLogout") CONFIG_FILES="$CONFIG_FILES data/PostLogout" ;; "data/PreLogin") CONFIG_FILES="$CONFIG_FILES data/PreLogin" ;; "data/PreReboot") CONFIG_FILES="$CONFIG_FILES data/PreReboot" ;; "data/PreShutdown") CONFIG_FILES="$CONFIG_FILES data/PreShutdown" ;; "data/LoginReady") CONFIG_FILES="$CONFIG_FILES data/LoginReady" ;; "data/lxdm.conf") CONFIG_FILES="$CONFIG_FILES data/lxdm.conf" ;; "data/lxdm") CONFIG_FILES="$CONFIG_FILES data/lxdm" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) 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"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $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"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_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 } ;; "data/lxdm":F) chmod +x data/lxdm ;; "po/stamp-it":C) if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 fi rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.in" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; 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 if test "$sysconfdir" != "/etc"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sysconfdir is not /etc." >&5 $as_echo "$as_me: WARNING: sysconfdir is not /etc." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please consider passing --sysconfdir=/etc to configure." >&5 $as_echo "$as_me: WARNING: Please consider passing --sysconfdir=/etc to configure." >&2;} fi lxdm-0.5.3/configure.ac000066400000000000000000000140441262556610000147570ustar00rootroot00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.63]) AC_INIT([lxdm], [0.5.3], [http://lxde.org/]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects no-dist-gzip dist-xz]) AC_CONFIG_SRCDIR([src/lxdm.c]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AM_PROG_CC_C_O # Checks for libraries. AC_CHECK_LIB([crypt], [crypt]) # Check for PAM support AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam],[Use PAM for authentication]), [USE_PAM=$withval], [USE_PAM=$use_pam_default]) if test "x$USE_PAM" != "xno" ; then AC_SEARCH_LIBS(pam_open_session,[pam]) AC_CHECK_FUNC(pam_open_session, [USE_PAM=1 AC_DEFINE(USE_PAM,1,[Use PAM for authentication])], [if test "x$USE_PAM" != "xtry" ; then AC_MSG_ERROR(["PAM support requested, but pam_open_session not found."]) fi]) fi AM_CONDITIONAL(HAVE_PAM, [test -n "$USE_PAM" -a "x$USE_PAM" != xno ]) # Checks for header files. AC_PATH_X AC_CHECK_HEADERS([shadow.h stdlib.h string.h unistd.h utmpx.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_PID_T # Checks for library functions. AC_FUNC_FORK AC_CHECK_FUNCS([atexit endpwent getspnam getusershell memset putenv strstr]) PKG_CONFIG=pkg-config # FIXME: is this OK? # Check for ISO Codes, this is taken from gdm AC_MSG_CHECKING([whether iso-codes has iso-639 domain]) if $PKG_CONFIG --variable=domains iso-codes | grep 639 >/dev/null ; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix]) ISO_CODES=iso-codes IT_PROG_INTLTOOL([0.40.0]) PKG_CHECK_MODULES(XLIB,x11) AC_SUBST(XLIB_CFLAGS) AC_SUBST(XLIB_LIBS) PKG_CHECK_MODULES(GLIB,glib-2.0) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) AC_ARG_ENABLE(gtk3, AC_HELP_STRING([--enable-gtk3],[enable to use gtk-3.0 instead of gtk-2.0]), [case "${enableval}" in yes) enable_gtk3=yes ;; no) enable_gtk3=no ;; *) AC_MSG_ERROR([bad value "${enableval}" for --enable-gtk3, use "yes" (default) or "no".]) ;; esac],[]) if test "x$enable_gtk3" = "xyes" ; then pkg_modules="gdk-3.0" else pkg_modules="gdk-2.0" fi PKG_CHECK_MODULES(GDK,[$pkg_modules]) AC_SUBST(GDK_CFLAGS) AC_SUBST(GDK_LIBS) if test "x$enable_gtk3" = "xyes" ; then CFLAGS="$CFLAGS -DENABLE_GTK3" pkg_modules="gtk+-3.0 >= 3.0.0" else pkg_modules="gtk+-2.0 >= 2.12.0" fi PKG_CHECK_MODULES(GTK, [$pkg_modules]) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) AC_ARG_ENABLE(consolekit, AC_HELP_STRING([--disable-consolekit],[disable ConsoleKit support]), [enable_consolekit=$enableval], [enable_consolekit=yes] ) if test "x$enable_consolekit" = "xyes" ; then PKG_CHECK_MODULES(CONSOLEKIT, "ck-connector",[ AC_SUBST(CONSOLEKIT_CFLAGS) AC_SUBST(CONSOLEKIT_LIBS)],[ echo "ConsoleKit devel package not found" ]) AC_CHECK_LIB([ck-connector],[ck_connector_open_session]) fi AC_ARG_ENABLE(password, AC_HELP_STRING([--enable-password],[enable to load autologin password store at config file]), [case "${enableval}" in yes) enable_password=yes ;; no) enable_password=no ;; *) AC_MSG_ERROR([bad value "${enableval}" for --enable-password, use "yes" (default) or "no".]) ;; esac],[]) if test "x$enable_password" = "xyes" ; then CFLAGS="$CFLAGS -DENABLE_PASSWORD" fi AC_ARG_ENABLE(xauth, AC_HELP_STRING([--disable-xauth],[disable the xauth support ]), [enable_xauth=$enablevar], [enable_xauth=yes] ) if test "x$enable_xauth" = "x$no" ; then CFLAGS="$CFLAGS -DDISABLE_XAUTH" fi AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[enable detailed debug]), [enable_debug=$enablevar], [enable_debug=yes] ) if test "x$enable_debug" = "x$yes" ; then CFLAGS="$CFLAGS -DLXDM_DEBUG" fi AC_ARG_WITH(xconn, [AC_HELP_STRING([--with-xconn=@<:@xlib/xcb@:>@],[use xlib or xcb to use])], [if test "x$with_xconn" = "xxlib"; then PKG_CHECK_MODULES(XCONN,"x11") AC_SUBST(XCONN_CFLAGS) AC_SUBST(XCONN_LIBS) CFLAGS="$CFLAGS -DLXDM_XCONN_XLIB" else PKG_CHECK_MODULES(XCONN,"xcb") AC_SUBST(XCONN_CFLAGS) AC_SUBST(XCONN_LIBS) CFLAGS="$CFLAGS -DLXDM_XCONN_XCB" fi], [PKG_CHECK_MODULES(XCONN,"xcb") AC_SUBST(XCONN_CFLAGS) AC_SUBST(XCONN_LIBS) CFLAGS="$CFLAGS -DLXDM_XCONN_XCB" ] ) AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) if test "x$with_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) GETTEXT_PACKAGE=lxdm AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) AC_DEFUN([AS_AC_EXPAND],[ EXP_VAR=[$1] FROM_VAR=[$2] dnl first expand prefix and exec_prefix if necessary prefix_save=$prefix exec_prefix_save=$exec_prefix dnl if no prefix given, then use /usr/local, the default prefix if test "x$prefix" = "xNONE"; then prefix="$ac_default_prefix" fi dnl if no exec_prefix given, then use prefix if test "x$exec_prefix" = "xNONE"; then exec_prefix=$prefix fi full_var="$FROM_VAR" dnl loop until it doesn not change anymore while true; do new_full_var="`eval echo $full_var`" if test "x$new_full_var" = "x$full_var"; then break; fi full_var=$new_full_var done dnl clean up full_var=$new_full_var AC_SUBST([$1], "$full_var") dnl restore prefix and exec_prefix prefix=$prefix_save exec_prefix=$exec_prefix_save ]) AS_AC_EXPAND(FULL_LIBEXECDIR, $libexecdir) AC_CONFIG_FILES([ Makefile lxdm.spec src/Makefile po/Makefile.in pam/Makefile systemd/Makefile data/Makefile data/PostLogin data/PostLogout data/PreLogin data/PreReboot data/PreShutdown data/LoginReady data/lxdm.conf ]) AC_CONFIG_FILES([data/lxdm], [chmod +x data/lxdm]) AC_OUTPUT dnl sanity checks if test "$sysconfdir" != "/etc"; then AC_MSG_WARN(sysconfdir is not /etc.) AC_MSG_WARN(Please consider passing --sysconfdir=/etc to configure.) fi lxdm-0.5.3/data/000077500000000000000000000000001262556610000133775ustar00rootroot00000000000000lxdm-0.5.3/data/LoginReady000066400000000000000000000001001262556610000153460ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/LoginReady.in000077500000000000000000000001001262556610000157560ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/Makefile.am000066400000000000000000000021231262556610000154310ustar00rootroot00000000000000NULL= sbin_SCRIPTS = lxdm CLEANFILES = $(sbin_SCRIPTS) lxdmdir = $(datadir)/lxdm lxdm_DATA = \ lxdm.glade \ config.ui \ $(NULL) lxdm_confdir = /etc/lxdm lxdm_conf_DATA = \ PostLogin \ PostLogout \ PreLogin \ PreReboot \ PreShutdown \ LoginReady \ lxdm.conf \ Xsession \ $(NULL) install-data-hook: chmod +x $(DESTDIR)/etc/lxdm/Xsession \ $(DESTDIR)/etc/lxdm/PostLogin \ $(DESTDIR)/etc/lxdm/PostLogout \ $(DESTDIR)/etc/lxdm/PreLogin \ $(DESTDIR)/etc/lxdm/PreReboot \ $(DESTDIR)/etc/lxdm/PreShutdown \ $(DESTDIR)/etc/lxdm/LoginReady chmod 640 $(DESTDIR)/etc/lxdm/lxdm.conf themedir=$(datadir)/lxdm/themes/Industrial theme_DATA= \ themes/Industrial/index.theme \ themes/Industrial/gtkrc \ themes/Industrial/wave.svg \ themes/Industrial/login.png \ themes/Industrial/shade.png \ themes/Industrial/lang.png \ themes/Industrial/session.png \ themes/Industrial/greeter.ui \ themes/Industrial/greeter-gtk3.ui \ themes/Industrial/gtk.css \ themes/Industrial/nobody.png \ $(NULL) EXTRA_DIST= \ $(lxdm_DATA) \ $(lxdm_conf_DATA) \ $(theme_DATA) \ lxdm.conf.in \ $(NULL) lxdm-0.5.3/data/Makefile.in000066400000000000000000000475211262556610000154550ustar00rootroot00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = data 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) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = PostLogin PostLogout PreLogin PreReboot \ PreShutdown LoginReady lxdm.conf lxdm CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__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)$(sbindir)" "$(DESTDIR)$(lxdmdir)" \ "$(DESTDIR)$(lxdm_confdir)" "$(DESTDIR)$(themedir)" SCRIPTS = $(sbin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(lxdm_DATA) $(lxdm_conf_DATA) $(theme_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/LoginReady.in $(srcdir)/Makefile.in \ $(srcdir)/PostLogin.in $(srcdir)/PostLogout.in \ $(srcdir)/PreLogin.in $(srcdir)/PreReboot.in \ $(srcdir)/PreShutdown.in $(srcdir)/lxdm.conf.in \ $(srcdir)/lxdm.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONSOLEKIT_CFLAGS = @CONSOLEKIT_CFLAGS@ CONSOLEKIT_LIBS = @CONSOLEKIT_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FULL_LIBEXECDIR = @FULL_LIBEXECDIR@ GDK_CFLAGS = @GDK_CFLAGS@ GDK_LIBS = @GDK_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XCONN_CFLAGS = @XCONN_CFLAGS@ XCONN_LIBS = @XCONN_LIBS@ XGETTEXT = @XGETTEXT@ XLIB_CFLAGS = @XLIB_CFLAGS@ XLIB_LIBS = @XLIB_LIBS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = sbin_SCRIPTS = lxdm CLEANFILES = $(sbin_SCRIPTS) lxdmdir = $(datadir)/lxdm lxdm_DATA = \ lxdm.glade \ config.ui \ $(NULL) lxdm_confdir = /etc/lxdm lxdm_conf_DATA = \ PostLogin \ PostLogout \ PreLogin \ PreReboot \ PreShutdown \ LoginReady \ lxdm.conf \ Xsession \ $(NULL) themedir = $(datadir)/lxdm/themes/Industrial theme_DATA = \ themes/Industrial/index.theme \ themes/Industrial/gtkrc \ themes/Industrial/wave.svg \ themes/Industrial/login.png \ themes/Industrial/shade.png \ themes/Industrial/lang.png \ themes/Industrial/session.png \ themes/Industrial/greeter.ui \ themes/Industrial/greeter-gtk3.ui \ themes/Industrial/gtk.css \ themes/Industrial/nobody.png \ $(NULL) EXTRA_DIST = \ $(lxdm_DATA) \ $(lxdm_conf_DATA) \ $(theme_DATA) \ lxdm.conf.in \ $(NULL) 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) --foreign data/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign data/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): PostLogin: $(top_builddir)/config.status $(srcdir)/PostLogin.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ PostLogout: $(top_builddir)/config.status $(srcdir)/PostLogout.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ PreLogin: $(top_builddir)/config.status $(srcdir)/PreLogin.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ PreReboot: $(top_builddir)/config.status $(srcdir)/PreReboot.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ PreShutdown: $(top_builddir)/config.status $(srcdir)/PreShutdown.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ LoginReady: $(top_builddir)/config.status $(srcdir)/LoginReady.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ lxdm.conf: $(top_builddir)/config.status $(srcdir)/lxdm.conf.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ lxdm: $(top_builddir)/config.status $(srcdir)/lxdm.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-sbinSCRIPTS: $(sbin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(sbin_SCRIPTS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | 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; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$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_SCRIPT) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(sbin_SCRIPTS)'; test -n "$(sbindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(sbindir)'; $(am__uninstall_files_from_dir) install-lxdmDATA: $(lxdm_DATA) @$(NORMAL_INSTALL) @list='$(lxdm_DATA)'; test -n "$(lxdmdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lxdmdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lxdmdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lxdmdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lxdmdir)" || exit $$?; \ done uninstall-lxdmDATA: @$(NORMAL_UNINSTALL) @list='$(lxdm_DATA)'; test -n "$(lxdmdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lxdmdir)'; $(am__uninstall_files_from_dir) install-lxdm_confDATA: $(lxdm_conf_DATA) @$(NORMAL_INSTALL) @list='$(lxdm_conf_DATA)'; test -n "$(lxdm_confdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lxdm_confdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lxdm_confdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lxdm_confdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lxdm_confdir)" || exit $$?; \ done uninstall-lxdm_confDATA: @$(NORMAL_UNINSTALL) @list='$(lxdm_conf_DATA)'; test -n "$(lxdm_confdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lxdm_confdir)'; $(am__uninstall_files_from_dir) install-themeDATA: $(theme_DATA) @$(NORMAL_INSTALL) @list='$(theme_DATA)'; test -n "$(themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(themedir)" || exit $$?; \ done uninstall-themeDATA: @$(NORMAL_UNINSTALL) @list='$(theme_DATA)'; test -n "$(themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(themedir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) $(DATA) installdirs: for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(lxdmdir)" "$(DESTDIR)$(lxdm_confdir)" "$(DESTDIR)$(themedir)"; 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic 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-lxdmDATA install-lxdm_confDATA \ install-themeDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-sbinSCRIPTS 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-lxdmDATA uninstall-lxdm_confDATA \ uninstall-sbinSCRIPTS uninstall-themeDATA .MAKE: install-am install-data-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-data-hook install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-lxdmDATA \ install-lxdm_confDATA install-man install-pdf install-pdf-am \ install-ps install-ps-am install-sbinSCRIPTS install-strip \ install-themeDATA installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-lxdmDATA uninstall-lxdm_confDATA \ uninstall-sbinSCRIPTS uninstall-themeDATA .PRECIOUS: Makefile install-data-hook: chmod +x $(DESTDIR)/etc/lxdm/Xsession \ $(DESTDIR)/etc/lxdm/PostLogin \ $(DESTDIR)/etc/lxdm/PostLogout \ $(DESTDIR)/etc/lxdm/PreLogin \ $(DESTDIR)/etc/lxdm/PreReboot \ $(DESTDIR)/etc/lxdm/PreShutdown \ $(DESTDIR)/etc/lxdm/LoginReady chmod 640 $(DESTDIR)/etc/lxdm/lxdm.conf # 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: lxdm-0.5.3/data/PostLogin000066400000000000000000000001001262556610000152270ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PostLogin.in000077500000000000000000000001001262556610000156370ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PostLogout000066400000000000000000000001001262556610000154300ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PostLogout.in000077500000000000000000000001001262556610000160400ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PreLogin000066400000000000000000000001001262556610000150300ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PreLogin.in000077500000000000000000000001001262556610000154400ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PreReboot000066400000000000000000000001001262556610000152120ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PreReboot.in000077500000000000000000000001001262556610000156220ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PreShutdown000066400000000000000000000001001262556610000155730ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/PreShutdown.in000077500000000000000000000001001262556610000162030ustar00rootroot00000000000000#!/bin/sh # # Note: this is a sample and will not be run as is. lxdm-0.5.3/data/Xsession000077500000000000000000000021471262556610000151440ustar00rootroot00000000000000#!/bin/bash # use bash for "exec -l", howto run login shell by /bin/sh ? if [ $# -eq 1 -a -n "$1" ]; then LXSESSION=$1 else # default session LXSESSION=/usr/bin/startlxde fi [ -f /etc/xprofile ] && . /etc/xprofile [ -f ~/.xprofile ] && . ~/.xprofile if [ -f /etc/X11/xinit/xinitrc-common ]; then # fedora . /etc/X11/xinit/xinitrc-common exec -l bash -c "$LXSESSION" elif [ -x /etc/X11/xinit/Xsession ]; then # fedora exec /etc/X11/xinit/Xsession "$LXSESSION" elif [ -x /etc/X11/Xsession ]; then # mandriva, debian, ubuntu exec /etc/X11/Xsession "$LXSESSION" elif [ -x /etc/X11/xinit/xinitrc ]; then #suse export WINDOWMANAGER=$LXSESSION exec -l bash -c /etc/X11/xinit/xinitrc else # unknown, user should custom /etc/lxdm/xinitrc self if [ -x /etc/lxdm/xinitrc ]; then . /etc/lxdm/xinitrc "$LXSESSION" fi if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/* ; do [ -x "$f" ] && . "$f" done unset f fi if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then eval "$(dbus-launch --sh-syntax --exit-with-session)" fi exec -l bash -c "$LXSESSION" fi lxdm-0.5.3/data/config.ui000066400000000000000000000504061262556610000152100ustar00rootroot00000000000000 False 5 lxdm config dialog True False vertical 2 True False True True True False True False gtk-missing-image False True 0 True False 0.10000000149011612 True True 1 Automatic Login True True False False 0 True False True 2 False True 0 True False True False Background False True 0 True True False False 0 True True True True 1 200 True False True True 2 True True False False 0 True lxdm-bg-image-button False True 3 True True True False True True 4 Default True True False False 0 True lxdm-bg-image-button True True 5 False True 2 True False Enable bottom panel True True False False 0 True False True 0 False True 3 True 0 0 True False True False Bottom Panel Options False True 0 True False Transparent panel True True False False 0 True False True 0 Hide sessions True True False False 0 True False True 1 Show languages menu True True False False 0 True False True 2 Show keyboard layouts True True False False 0 True False True 3 Hide quit button True True False False 0 True False True 4 False True 5 True 0 0 True False True False Other Options False True 0 Show user list True True False False 0 True False True 7 Hide time True True False False 0 True False True 8 True False end False 5 True dialog lxdm-config-dlg lxdm-image-preview True False vertical 2 True False end gtk-cancel True True True False True False True 0 gtk-open True True True True False True False True 1 button1 button2 True False gtk-missing-image lxdm-0.5.3/data/lxdm.conf000066400000000000000000000023261262556610000152150ustar00rootroot00000000000000[base] ## uncomment and set autologin username to enable autologin # autologin=dgod ## uncomment and set timeout to enable timeout autologin, ## the value should >=5 # timeout=10 ## default session or desktop used when no systemwide config # session=/usr/bin/startlxde ## uncomment and set to set numlock on your keyboard # numlock=0 ## set this if you don't want to put xauth file at ~/.Xauthority # xauth_path=/tmp # not ask password for users who have empty password # skip_password=1 ## greeter used to welcome the user greeter=/usr/libexec/lxdm-greeter-gtk [server] ## arg used to start xserver, not fully function # arg=/usr/bin/X -background vt1 # uncomment this if you really want xserver listen to tcp # tcp_listen=1 # uncoment this if you want reset the xserver after logou # reset=1 [display] ## gtk theme used by greeter gtk_theme=Clearlooks ## background of the greeter bg=/usr/share/backgrounds/default.png ## if show bottom pane bottom_pane=1 ## if show language select control lang=1 ## if show keyboard layout select control keyboard=0 ## the theme of greeter theme=Industrial [input] [userlist] ## if disable the user list control at greeter disable=0 ## whitelist user white= ## blacklist user black= lxdm-0.5.3/data/lxdm.conf.in000066400000000000000000000023331262556610000156200ustar00rootroot00000000000000[base] ## uncomment and set autologin username to enable autologin # autologin=dgod ## uncomment and set timeout to enable timeout autologin, ## the value should >=5 # timeout=10 ## default session or desktop used when no systemwide config # session=/usr/bin/startlxde ## uncomment and set to set numlock on your keyboard # numlock=0 ## set this if you don't want to put xauth file at ~/.Xauthority # xauth_path=/tmp # not ask password for users who have empty password # skip_password=1 ## greeter used to welcome the user greeter=@FULL_LIBEXECDIR@/lxdm-greeter-gtk [server] ## arg used to start xserver, not fully function # arg=/usr/bin/X -background vt1 # uncomment this if you really want xserver listen to tcp # tcp_listen=1 # uncoment this if you want reset the xserver after logou # reset=1 [display] ## gtk theme used by greeter gtk_theme=Clearlooks ## background of the greeter bg=/usr/share/backgrounds/default.png ## if show bottom pane bottom_pane=1 ## if show language select control lang=1 ## if show keyboard layout select control keyboard=0 ## the theme of greeter theme=Industrial [input] [userlist] ## if disable the user list control at greeter disable=0 ## whitelist user white= ## blacklist user black= lxdm-0.5.3/data/lxdm.glade000066400000000000000000000164541262556610000153530ustar00rootroot00000000000000 False True vertical True 0 0 True 12 True User: False False 0 True True False False 1 0 True True 6 12 True 6 True Desktop: False 0 True 0 False 1 False 0 True 6 True Language: False 0 True 0 False 1 False 1 Keyboard: False 2 0 False 3 True True False 4 gtk-quit True True True none True False end 5 False 1 lxdm-0.5.3/data/lxdm.in000066400000000000000000000010531262556610000146720ustar00rootroot00000000000000#!/bin/sh [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n if [ -z "$LANG" -a -e /etc/sysconfig/language ]; then . /etc/sysconfig/language if [ -n "$RC_LANG"]; then LANG=$RC_LANG fi fi if [ -n "$LANG" ]; then export LANG fi [ -f /etc/sysconfig/desktop ] && . /etc/sysconfig/desktop [ -f /etc/sysconfig/windowmanager ] && . /etc/sysconfig/windowmanager if [ -n "$DEFAULT_WM" ]; then PREFERRED=$DEFAULT_WM fi if [ -n "$DESKTOP" ]; then export DESKTOP fi if [ -n "$PREFERRED" ]; then export PREFERRED fi exec @prefix@/sbin/lxdm-binary $* lxdm-0.5.3/data/themes/000077500000000000000000000000001262556610000146645ustar00rootroot00000000000000lxdm-0.5.3/data/themes/Industrial/000077500000000000000000000000001262556610000170025ustar00rootroot00000000000000lxdm-0.5.3/data/themes/Industrial/greeter-gtk3.ui000066400000000000000000000257731262556610000216620ustar00rootroot00000000000000 False True vertical True 1 12 12 True False 0 True 0 1 True vertical True login.png 0.8 0 True 0.1 0 0 True 12 True User: 0.2 False False 0 True False GTK_POLICY_NEVER GTK_POLICY_NEVER True True 1 2 0 1 True True False False 1 1 1 True True False True 6 12 True 6 True session.png False 0 True Desktop: False 1 True 0 True False 2 False 0 True 6 True False 0 True Language: False 1 True 0 True False 2 False 1 Keyboard: False 2 True False 3 gtk-quit True True True none True False end 4 False 2 lxdm-0.5.3/data/themes/Industrial/greeter.ui000066400000000000000000000257151262556610000210100ustar00rootroot00000000000000 False True vertical True 1 12 12 True False 0 True 0 1 True vertical True login.png 0.8 0 True 0.1 0 0 True 12 True User: 0.2 False False 0 True False GTK_POLICY_NEVER GTK_POLICY_NEVER True True 1 2 0 1 True True False False 1 1 1 True True False True 6 12 True 6 True session.png False 0 True Desktop: False 1 True 0 False 2 False 0 True 6 True False 0 True Language: False 1 True 0 False 2 False 1 Keyboard: False 2 0 False 3 gtk-quit True True True none True False end 4 False 2 lxdm-0.5.3/data/themes/Industrial/gtk.css000066400000000000000000000004261262556610000203030ustar00rootroot00000000000000#lxdm { background-image: url("wave.svg"); background-repeat: round; } #bottom_pane { background-color: rgba(0,0,0,0.24); } #time { font: Sans 12; color: #ffffff; } #prompt { font: Sans 14; color: #000000; } #bottom_pane GtkLabel { font: Sans 12; color: #9E9D9B; } lxdm-0.5.3/data/themes/Industrial/gtkrc000066400000000000000000000014041262556610000200360ustar00rootroot00000000000000style "back" { engine "pixmap" { image { function = FLAT_BOX shadow=NONE state = NORMAL file="wave.svg" stretch=TRUE detail = "base" } } } style "time" { fg[NORMAL]="#ffffff" font_name="Sans 12" } style "prompt" { fg[NORMAL]="#000000" font_name="Sans Bold 14" } # Normally this won't paint an invisible event box, but we did some hacks in greeter.c. style "bottom" { font_name="Sans 12" fg[NORMAL] = "#9E9D9B" engine "pixmap" { image { function = FLAT_BOX file="shade.png" stretch=TRUE detail="eventbox" } } } widget "lxdm" style "back" widget "lxdm.*.time" style "time" widget "*.prompt" style "prompt" widget "lxdm.*.bottom_pane" style "bottom" widget_class "GtkWindow.*.GtkEventBox.*." style "bottom" lxdm-0.5.3/data/themes/Industrial/index.theme000066400000000000000000000002501262556610000211320ustar00rootroot00000000000000[LXDM Theme] Name=Industrial Comment=The Industrial Theme ported from gdm Author=Jakub Steiner ;Hong Jen Yee(PCMan) License=GPL lxdm-0.5.3/data/themes/Industrial/lang.png000066400000000000000000000021451262556610000204330ustar00rootroot00000000000000‰PNG  IHDR szzôbKGDÿÿÿ ½§“IDATxÚÅ—=L-EÇwvݽ„ŸàM4!!¡°Z¤ÄX˜Ø= ¬D+ mH(M.Î(,^m§66ÆŽé((¤°Á—kôñ¼x?ækÇâÍlfïÝËWHœd²“Ý™sþçüÏ9sþçÑxà·‡ wW%Hü¤¼¬ŸÅMà©Gû˜ó3`˜ò:j‡žžœœ8k­“R:)¥SJ9¥”ÓZß8•Rå™ápèƒëõz®Óé¸ÍÍM| ¼íAˆ: ^”1c RJ„!h4^mk48çê}\8çpÎa­%–sqqÁÚÚÀ{Àsà@¤ÀZ;¦<žÎ¹1 Î9’$©€B$ I’°°°¶¾¼þ àÒ ^-"å£ë<Ï‘R–`bTQ•óÞýYE×XZDJ£ƒÕ|±>ÞŸB”2#}‚:«c±µûûûäyNžçdYF–eäy^z!¼Ïóœf³ÉÞÞÞ˜ò@cRhx÷ô´Öh­K!yž£”óB–e(¥Já†<Ïé÷ûXkQJ¡”b0°¸¸ððð0Š´¶:E7–«BŒÑÜøåŠ&tb9<ƒŠÁ„ ¨“1)uoF»Ý&˲úÃiZ»?΂:cncLź8ª“$ÁZ[yj­Ë(Š‚¢(ÊR"¥œbRšº-T¸àîP´ê\€cn¥@Ô)·ÖV8 ÏÃÃCvvv*Ûí6•ò¬wΡ”*Ü @Ü7Ë\¿ººbkk«bùöö6Ýn—©©)¦§§±ÖVdzî×××t»]Ò4%MÓ’÷¸ ÄZë’)%ZëÒÆ–——ïVÂe,I’¤¼B¾ÇÔ„µ1¦ä=¦ÁƒÖº®;rµiØétÊ8°Ö’¦i "I’±ûÀZ‹scLù JƒÎÎÎâÎÈv@ñuüûÌÌÌdz³³4›Í’ë”!½‚…ñ:(Ž•k­9>>æÙ³g\^^þ ü¼ˆ®ã±†døøæ¶u~~^‚ZZZºmû·À÷žûKàÊ7$•~À}à;àß<„ö©1ⵃBæççÃûO½eÒËŠåJ߈ü ôü»±(µK/G›äÉÆÆFYlŽŽŽ½ð?ëÐnErµú¾SLº Z㑊‘tM€wVVVR2;;Ëîî.ÀÏ@Ç÷{ÝÀopÛòtB_DB€ðø±Õj177Çêê*½^ïkÏé ï½~¤ÄÝöcrŸ‘Ÿ¯¯¯»ÓÓS×jµ° |¼ ¼é){ì?ªŠ·ð…~|à[í·FûýûXuÏà}ŸRùÙõ\<æÏi€iàu é#ûÚ«I½{ ½ÏæÐ»?ñA2¦x(¯ÿkþ¼5 IEND®B`‚lxdm-0.5.3/data/themes/Industrial/login.png000066400000000000000000000412341262556610000206240ustar00rootroot00000000000000‰PNG  IHDR€¯m¨oégAMA± üabKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÓ 9EdÊ IDATxÚíy|EÞÆÝ3¹o‰Ü„K¹ ‰Š Þ¼+QÜUVŒâº*ì«ntPA…EQVWå2…XàÂ-H8È2ÓýþáLètªº{fº's<ÏçSŸÌL’éêê:¾õÔ%ȲLAÁ(A……Ìæ5AA^²# ‚ ``ò¡ü ‚Kpl!‚ òA=ÐÀö,½¸B ‚ ²ÑÀ@A…—Bn,`‚BEè Cd/¡‚ ‚  /a(´z4p€! Á ,m/‘Á ‚ ‚ÂKp! -`‚BDVtp!‚ ‚ÂLp!‚ `ò ¼ Kpd!‚ ²A=ÐÀö,½8B‡ ‚ ò ¢Á ‚  /á(8‚ :äù—Pá@A…—° Z=8À©`È@~m/‘á  ÃŽ‚Ç=•%A@‚ €;Í_›x)TœùV‰Ô2! e LBY£G% APðÕ¨»  #ð¼€@ÙÈgÁ€xîH2Z^µ+´d9üi½7ZÊ^! žºõUH7|Þ)2Šà'€?Aú”ïe€ d€Dð$½x~zLˆd¶0qÁ Vß§?yy_Ö@APÐÕ›¨£B¢±3 1Ñ 5øÓz-(3² e!ÖrcÒÏËà3c…£ìÁßBP ” #ÐÇ Êÿg9¼ÀƒCCå|APm)äN Õ Õàü&oàÕè¹.ш p5 íðéŸÈÀ½{÷ö–$I()))éÝ»÷Ü)ƒ¤‚>^G å‚ À¬?Q75üy3±4Ü –sÔC[˜ÚEÃü‰¬ŸEEECRRRŒ¼EÅ$õ;Î㹇þ¬sçÎ?ª€OR¼—HÛä•5( …öBÞŸ7Ú ìáOÌo‚±\¨áO ~â±cÇînܸñ4›Í–fôZ•••{öìÙójzzú øÓA”‚€%ð§5©]µV8êMpG£JÙЃ¿ªP^^>7..îo¯yôèÑç[´h±Ä{NW9p’17P]æ  3Zs N‡ƒÕà Ä_ݨ€zstW;¡Z.–ß[GŽÕ²eË% ð“T¯µÊÊ A@ȧFŽˆ=©]$¾+HTCº“4 T›eƒWD"²¹áïôéÓ#ëÕ«7ŬëoÞ¼ùzõêõ£ü”ÈÁªÊŠßó ‚xåIà_©ÿ9ðG ÐÊËË_“e™$IdYvRþT^[ùÕ‚ È‚ ¨ÊIIIS0(ß DÃBÇHíüÙ–,YÒ졇ZÏZèá­®\¹òÑÑÑw¸ÀÏÉA¦ ˆrAPÀÔ§¨‚Æá`Nn—e¹Ü‚ë'²;œ (Ðʆ¨*n÷ÏváÂ…©ÉÉÉ#ÌŽÇŽ;žJOOÿÖ}ƒˆÎù·¾@"hÈŽ ¼<ËxÏÛËL´(6ÅkIq-Iõw²ªaFæ#´ý¦—ÍNR||ü]V\¸Y³fˆhµ+Ï‹ Ès¿VòA¨o ‘@Ûc4<å0—b}¯ÄiĪ>C^‚,.‚Vs.\ØÔn·7±".ñññ=]%%ôIª¸ð6S‡ ª} #  Êèk÷P—R¯LüE%rˆ¤5\å‚÷º Û´i“fU"""«:bUwÿ‚ëA°öl®”Dñ&»[ €Ê9Lš@ÈeC÷Ø7§Ó)ZŸ?þ¸ÝСCw« PïlaÇÃA„ª7 áÏs•«Ý×Ò„À@lØàJ†OñQI’,}ø)))ÉTs+&u\dÆOäË08BÞ4f¼×ê#®¬kXK&¾³°C]¨€Cªƒ¤~5>“$ÉÒøÜsÏ=[‰¿ ;+ž2ò%A@Èämmå"‘ªOnWÇC&Ìq‚¯¼T…‚‚‚“ýúõ³äBN§³”´ÏÞ¼€Y‚BHÞÑÃ>€ô0ªïqÆZðáþiwY–¶ 7Ðo{›©ƒz¯3lt ÕvùPîýgS•ˆ«W¯æºl˜ª3gÎ|U¿~ýÑDTé êrâD9 (0ˆ²~Ø_׃ KtêÔ©¦¥¥2û{wïÞý=R7(: HÒ ÈByÒÑ×q8D°Ws8dYþÉ‚J³ ]s5”î†ûÔî™§p6 sO@ûàÁƒ¯[²dÉF›Í–hV<.^¼Xÿ?TÝý«¤šî@‚V¢ë¼X‹‚…°n¥#§åú¡ÓÕ&üqûZ,ÐZ¶lYiaaá[fÆeþüùc©úÜW™‚«APd‰ÀÊŸ;UwYPHÚ*Ü Þü&¦î Œ¿ oެÚŒpÿ<}úôõêÕäk<6nܘsë­·~AÕ]¿JâÏÿÙÀ¤p\€õN8@ȃÅÚpÕ'‡ &MR~M°6𾦅Ù÷Í€?æeÁ _RýúõÿzêÔ)¡~ýúx 6äôë×o… ì$ε Ý—Uy$О!A€€¬àˆ¶`X«×¢ôü×¸Çæ…rZèÀ‡láµy(‘Ô Aƒÿ]µjÕºÌÌÌÑQQQ ~é… ¶¿ÿþû3ÆŒ³ª;{’øñ@°Z§IÔŒ€˜`A¡S§•@èKüªäCÙCù (8U»Wâ2·¸ ßܣģ=ý6¬u•´‡¸ÔHÀVȳa$`/é!Xuß&@*«œ(§J°LÙ•Ÿ}ýõ×·wîÜ9355µkttt ,++;pêÔ©‚eË–ýëµ×^Û¯ÈóÊÅPê©îRºÃ¿~êXò ÍÈ·V@+`‚€á€²,±Yóƒ uŽ×³ e“>÷'>¦…ìÃß^܃rz‚Hüý2m T–§ª-&MšÔzìØ±qU:}N T~&‘Æ*yŸ·lñ³­|+˜Xæj»<±  „€A}ž­ 42²‡ï-s18éákZxÒ(½'O]ZÖbÞ¶06ü)õ|e:àÇÚ$]"öâ(Ù‹4ô&ýÌz†šq÷a˜Ú—øê–'8‚¤-l …"@mdôxêªÈªßk9L˜t߃…Ãl‚ÉiÁ›Óg4-¼…?#€ „8Ágê¿Qozn ñ œç­—Þ±h¦“=Œ‡àåóå•'uYB~S°õ9€P¨ÂŸÞù¬žüÞWBf€Ìh`¹—/èazøš,‡H`@ q>óY«ÕY(h€ës‰jâ5rz „ÎçžÀŸ/ÏPÐx–¬¿ñô™jåAo;X¬²dZ‡ ‚BM@ÈW§%˜ÀOÐ_!A22Œ¸‚ÕœO/Òƒ5”ÊK£Ð"s~Öh=€£ùUÕ0è–ȹ¦¬Fœ?jº¾‚4éÀž§`%sÒŒ÷Ä|̃FPÖ‰‹`¤C…£â °@-t$ƒ üxÐ'èÀ7 Ì?Œ(ô5ÒDï^Nºh¯Q– À @àA™7H*ø“8ÿ/sPÖ?=Ìðê´Ö½Éëdðz’oyì̓¼<Ç‹£^œ4!õ9Öˆ…üy7‚4 Z¤Õ˜ÊN'.†/éáIZ_3PÏbÁï~H $â Ë `Ô:ñÆÓ9x‚Fþ1F\_Ÿ!k³k½ï äE½¼§€2ìµâ‚Fâµ%á €p¡ +P‚N#h¤¡Y³dÉ’´ôôôuêÔio³Ù’bbbÚ»y+22²½(ŠIî‹]¾|9Ïݰ”••å9Ž’¢¢¢=ŸþùîéÓ§—pQ"ýÓ#4çz°Ÿ‘´YŸ/]º4­K—.RRR:ÄÆÆVÝwTTToÅýç ‚@N§³¤¢¢bÏñãÇs—.]ºûõ×_/Ñh¨ÆÛˆ[¥çŠ :ß!ðÒ˜BD|—ÖÈyÙFîMÏIåA'óyoÚ´©CÓ¦M;$&&vˆŽŽnODd·Û›Øl¶4""‡ÃqÜápœÊÊÊò.]ºt|Ó¦M¹=öØqË $ÕïçAy¯ªL®X±"­eË–MÝÿ¼lÙ²Ý&L(ÑèD Œ8éu (ì`l˜ÎVmoÓ~Û: ¶á føj¼_²dIZ¿~ýîJLLìÝ[ x¾èêÕ«{.^¼˜wúôéܶmÛ®bŸ¤á®Èðäé\0#é!‘°~ýúŽ;w~$66¶wDDD{oïýâÅ‹«Îž=»ªE‹ŸéAàž={z7lØðW¾”²û=#¸A¸êuEEÅñF-aà¢E‹Ò ðˆ,Ë‚$I‚$I‚û5‘û½:Ûº¿ßýSEÙýóâÅ‹Ç[µjõ±ƒ£ .ŒV> Y–«ÝëÞ”÷å~?{öìy*ðÑ«;wÞÒ²eË¬ØØØ»¼ÍˇãDYYÙª¯¿þú½?üá?{(œ—oõâÉʃ" 'Ož|ôºë®»+22òVÜ%I*¹téÒ·§OŸþ¶U«VßrʤáXÊ®ê ýæXyãn-ZÔÓtÒIù^ÔqÉ’%iwÜqÇäää‡ív{šÕT’¤’òòòÕ………ŸuïÞ=—øsÊX¯YNš:õ†k4¶Êô8~üø#õë×ÿ“/ÐÇ»ï_ýu~½zõÞä8jôË/¿¼œššú²¯×ºråJnttô,èØ²eKï=z|aæ½UTTäÅÆÆþž²,Ÿ3ã:Û·o [·n¹z`uäÈ‘¬&Mš¼l·Û›˜yŸ—/_ÎÛ½{÷ôîÝ»ÿÈȳ¬óõP™EWÜïIKK›êv&¨²²rÏž={^MOOWÇKo¾&ɲ,¡Ù‡ ß$†{¸zäžÌ4 ¸ êM€kœQPPÐ÷âÅ‹geeíHMM}ÙðGD$ŠbRbbâÃ_^ºté«Ã‡?J5&SÆWôæç : 7=~úé§Ç*++w4iÒäm³áÏ}ßuëÖ}©²²rÛ† ú(:-U÷ÑÔ¤<§î$U¥¥Óé´âÈ1Ì(7Ÿ6EW®\aeWòòòúTVVnoÞ¼ù³áˆ(::ºWFFÆ—ååå5*…jnžmcäWQ'V…òòòyÍ›7_ì üEDD´ïҥˊ#GŽéøÎ;ï,¿þúë‡ùµ¡ŤöíÛPXXøˆ*õÜÀá×_ã+ü¹Õ¢E‹Ùyyy·p@´FG £4„öj.ø`Íd5¾¶‚‚‚>“&MÚœœ<"ï1))é¡Ù³goËÍÍíCìsj=A& ¿üòËו––¾Ý AƒÉµy¿©©©¿?sæÌt7ÌÄÄÄÜdÆ÷ºt°ÒÎVYYiмkšuèèè4%0/\¸°ÃÃ?üYtttÛÚz†­[·žµÿþG°Í›ÆP-?.^¼¸Y:u^13N³5ÊŒ¨¬;|uÂ+!(0á ȈˆÆ“'OFüù€ÕÒ¦nݺ½¬ŒOïÞ½Û+œ`ÑSøƒ p3¸àÂm ”¤·ßxJJJÞøSBàáLJ“öÄvž;hûõ×_'ÇÄÄô —JÛµ×Æ,\¬ Ó@"¢¦M›ÞÈiߤI“¦L™Ò”´ƒØˆÈié¶C 6lGÚ{!8Àpá6Zb¸Zh#"Û™3gF[5§¨¶Õ¢E‹œµk×ÞBœíMˆ½Úž››{K:už§JÛ5¹ýˆA»Ä[ #†ÛÈÁðáÃ_0âT[.®á~°4®Ä ±€Ã8ýxçØÇý³mÙ²¥Oݺu_ 弨¯_¿ùC† ¹ŽªÈÛzÄ6lذ”ŒŒŒYáVf] ?sΗ™nœFÇD}ݰRjjêïÇŸ¦ÑA1Ýåt>Ò?E‚ ·èÇô#cG½Uƒ¿Q£F%wíÚuv¨çE›Í–8wîÜ7õÀϦNú’Y§k!²ò‹%¨˜¨w:KØhèС’þ}zÚõ×_ÿT˜vÚÔ}UÚXì:±CÇÅc7DDo¹™œjnÁâ/Pó˜D½‘,üƒ€äâ3~Öo•‹ðÞ{ï¥Y=ÇíçŸÎ=zô;Ÿ~úéil¹U@DBFFFÜܹswëÖíVÆçöÛoÿõ£kûªPxâ‰'þìgvéÒ¥Ó{öìùw^^ÞÎO>ùäP~~~9Ñc=VwÀ€7ôìÙó–&MšÜb53må^o‚tt D$œ?¾Ðµ…KØ(22²ÑܹsÛ9òÿéQ-–””ìKHHènUŽ;¶ŸØ# <BÊ‚œ†µÆðïСCçX‰ÊÊÊòÏ>ûìo?þø*Ð’ZU|·mÛVš‘‘±ðÕW_ÝôòË/IJJºÁ¢Æµñ¶mÛgdd,'†8qâÄ&uêÔyÐjð{ï½÷¦¿øâ‹;iS•&‹/>µxñâSD´©{÷î ï¼ó΃ݺuû£ŸPdVãoòõ¸ qùòåržK—.>zôhîÚµkýôÓ""ÚADËÿþ÷¿w>|ø+±±±õ­ŠOÓ¦Mo'¢]o%u:ÝqÇ?8ŽR+N4)))É_µj•î ,p!èš°ªÚ«¹ò·TÃìÓ§eC¿sçÎë‚?§"8ˆ¨Ò´^;·nÝZòüóÏÿoee¥%îOddd£Õ«W÷wuÚªÂ]wÝ•R·nÝAVÂß 7Üðz~~~ #mxÁIDÎçž{nû¤I“ž·*M4 Œõ:¤TRRr¨W¯^Üwß}«\°Åz6Uïÿüç?ôë×oXIIÉ!«â׆ث±«žÅáÇ[qío¾ùf§£&ûXO! `#hlÆ Õ¦û7lذ”ää䇬¸x~~þ‡/¼ðBÜTr^W…E‹ýüÅ_L±*‘ºví:ˆªï híµ×ú[ Œt©4˜.ÎI“&Z™&~pù¼OËá/99ùéüüüRü±@бmÛ¶Ò;ï¼ó…ŠŠŠÓVÄËn·'Ìš5« þˆˆFõ±Ãá(5óºÅÅÅù>úè6ªéØ+jÙÄþ´Ø›1CþÁ«€_}õUK6|®¨¨8‘‘ñŽ»UÉ 5œ¯¬¬¬ çÎÛaE\SSS3333“”`ÇŽ‡ZC† yË ëW©åfeem8uêÔ&doßuéÒ¥Óýû÷Á~’AG¶*lݺµxáÂ…S­Š_jjj±÷󔉈V¯^]¶víÚ±f]Ïáp”åääŒ#ö” ¯ ‚Âņ÷±6 Œ 3\W4h0ØŠø®[·îàgô½ƒˆcÆŒ™hUú¾öÚk·»]À[o½5)..Î’sb?ú裷·nÝZbŠYÃã¥#5vìØ¿£9ñ] ,x}Û¶meÜj”;³³³·[ÕIIOOïÆ(ÏJ'N8pà?þøã83àoæÌ™ÃçÌ™sRÄ’ B`8€pk³Àp\?®øä“O&GEEµ³Âý»û5à¤uDä\°`ÁÉóçÏX‘¾mÛ¶íG®!` š®“'OþøüóϸÒÅ¡ãüUrà¯Ú<´üã'OŸ>½MŠ÷:räÈêQ£Fí íá^-¬úŸï¿ÿþs‹üUƒ"H}úôùòÇçp8ʼ¹ÀåË—‹f̘1bôèÑû\÷¥?-„ È%, K8\ÒG£Ñ`†—^zi€qÝ·oß*ü¹_W’Áa5×ßVûŽ;vüËŠ8§¦¦¦»ÐÖªU«®V\㫯¾ZJÕ‡~8LÜE!¹¹¹ÿ ¥ªÀß\¸párÒúe¸?üðzoáKK 4è¦~ÊЧOŸ¯^z饇Ož<ùµ'®ßîÝ»ç0`Ș1cÔðçT¼çÍ„ hÃУ£ßÔŸÕXý[¯^½^VÄõí·ßþFt¼ NúmñÃVÄÙn·'Œ;öF"²Õ­[·‹Ùß_QQq*;;»€Æ<°à¹Õ\§9sæl Á*Að–––š2eÊF~uê<®S}îܹ?¥‰r[%%:gÏž}¢qãÆcŸ{î¹»·mÛ6ãÌ™3ëËÊÊ(ïüùóÇÿæû￟xûí·ß×±cÇw7lØP¢Î_Ts˜µeAîöIÕbé5ü[bccÛZ:|ðA‘Fƒê¤šCK2RmêûÚ°aCÉÙ³g××­[·ŸÙqïÞ½{댌Œ³111 Ìþîýû÷³¶Q§‰:]”÷ÎJ""aãÆ%‡£Ìn·' û{¦sçÎ$¶û§~&jØ]ŸÛÔyø—_~9P¯^½[­ì’þª\™ˆä·ß~ûÄÛo¿ý1}Bìs|Y.¢“ÔÃÁ€@b ¨PXYÑÑѦà™3gv{øÈ¬ ýú믅V$Rݺu>òÈ#–,þX±bÅF{ªátzš&åååÍ=Wqqñ)E>UÿÔ› È‚EçÑ£G÷û!êZàæ0)h¹€€?â ¨à'‘°víZKNþ8pà@ªA’ ¸ jPݰ(AçöíÛ·µmÛv„ÙqoÖ¬Y§òòò‹V¤Ë„ „buãê¾w¥ÛDŠÏXŽ!d´€ü6w–—OÕóß”’ˆãR—ø þX&+ò†ò¸Gu@¤ZELú. ×Ä^¯á-lõ„þ¸@˜dÅEúé§"FC"q¸ TþøÑGí:Ôümú"##ãcccMFum b´urX9ªàTC1`¯PoÔ¡åêg$‘d³Ù¬l Õý¬Nѵ!jAÕ0)itÞ4·ƒ@ªFLÐÁ¡Aƒm­ˆËðáÃó5‰Œ9€êø; š´víZK–äää– 6úèÖ!C†øþXåH¢š§ÿ°ö ­0œ IDATuÿ¤¼ü)›ø¡ÐÀpËÐèF{ÆùY£¡²ð˜/™ø«YCH’ê•Î…ûïEõ÷•””ä'%%u3;òQQQñfgIIÉ)Uéçò@I€Uß…Ô'd¹`Nâ»Õ¸”ÁÒê–_Vžáuyß'i”_‰Ø®£) ˆö )D††j‰Ó qqq;ðåË—O{~’¤¬†”~Ù|ÖÂr«—¼4Q7æîôáý-ä’‹:eÕ3ÏÏÊ|ÄAÞÜYÖkÖwI?%«à‚ –Óà@ôÈ¡+Õ@0**Êt¬¨¨(Òh”ôÏá9ß4:tèP¡(ÖÛZCV@1Îf5¨xÏF怠ú_‰þŒ3oe® ó“H{N¡lü÷ k3|jpÑ{ð[àÜoÎoÈÌÆÉð“5#n°ê™FEEÅ™ýÅÅÅe^‚1Mt8}ªô:¬ýöDüùÆeàʺ>ïlpõw‘ù”Ðñ€ " qrÿz•¿U”'ðÇš[å ™¦¸¸¸z<;­{Ö»GA§‘F#lnÞõ¤³â÷ü©# ‚Ê,þ Ș°´ÙµŽ‚óõþüEÐz £çjøò]>ëܹsGÍþÎöíÛ·Ö7­ûA£kmÇÊ´éPm¹Öõ%‚øƒ ˆ#8€Ù •àÁf[F¶…1]ñ8z ®Þ¼À ‘koAY§×ûL/M!ó:.ZŽ­xù;¾žtšƒyÐh§KVtN‘ÿ H!8€×¬ÇùÉÜïOðrl¸´´tŸÙ¿ÑÈÓ>= šoþ¼iHÑøšSF~o¤ãR0è˵Ìrßþ ¨¦àBz€gôoeƒÀgdÁGÕë+W®”s"&$$t7û;ÏŸ?ÔŠ¸Ö©SçFƒyAðÎ3†¬AÞ60²‡èOpUþ`ào<î`ñQ˜ p¾G‚iÀkìÏç%4òàü ‹/îFÚ›Îj¥…! 4(ÁЏ_¹råbQQ‘éßÚÃg+È3uPeÄÅóëÜT/òŽV×14²‘| 0@ýy&8€/·Àhl¾³Æg»víÚÚ¼ysÓo¬iÓ¦ 46‚ŽÛ%hÄ]øãÿhÉ1vEEEG/]ºtÑôÊÀnO˜1cÆùË_öçh>tôÒƒˆ(**ªŠ•e0LIكΆ ª_dÆ{ó™LäñÜdónÎ#Èl”ï׊š4¢šg¿’ÊiàUê¼ïªQñŸ={¶ÔŠlÔ¨ÑÄv5µ FÖh jP‡zX÷³gÏž-((8Ú§OÓ¿{РA÷ýå/ù?ð3òL™ ôö‚±©ÎÊ= BØi w¢½‚Y",^È@åÍ‚BQ£ÁuÞëAeÕu‡¾ßŠ«[·n7à¢7=0’““o²"îG¶oß~ÆŠïnذa¦´=x¦UÏÅŠ=P¤ e ë #He^rã3÷ç6ß‹d|ª ù§„€8 Ò«À•gˆ*{¼^/ž4 ’뤕––nKLLÌ0óãâân|ñÅÏœ9ó'PÖiЪ5D)))wXñp^{íµÝDDW¯^-ŒŒŒ7󻣢¢~úé§C† ÙÂxFÊ| |öZù¦ê}×®]û£hüùsȘÕq$:CÈÍÍmŸ”””$I’@DôÏþsׄ JIû88‰s¿‚Ű Aüকˆ‰£p7  ^¯]Ðè‘‹:=v­^¼@DÂ… ,q{ì±Û}úônw£wêÔ©=V\ã®»î©J½çgèù_ýõw I¨§/P:‘êúÃFD¶W_}5åôéÓÏ^¾|ù_²,ŸïիׯvíÚ}Ý¡C‡•:tX9~üøcN§óhYYÙÜ;wöU¹6†s¨7]‚ Â*`ëkAìØ@Ñ@`UÂZÃ9Z Q#lÙ²å+n²mÛ¶iÜ« 9¬†­ÚÏn¸Áܵk×f·ãQXX¸ËŠk$%%uËËËdà™Ú >gaïÞ½O`þ_Ø!o^m!Ý¢¢¢g&Nœ¸³^½zS¢¢¢zs*QLФS§N+***VþðÈ=,Ì«Kôs­¼ Ö<¨_ ¢^/>++k»Ãá0}?À¨¨¨† Ð9 'j8L÷kÒ¤IMâãã-™ï6þü|x#ßY‘Ahè‘§g]zf­~ Û·o·£¢¢8p ›ôWj­J¬ ¹¹¹¿³ÊýÛ¾}û¿Ýðçú)¬±*ÄÆÆ¶ùüóÏ?º÷Þ{“UÏÝÆx¯~mËÊÊJþð×ÄÄÄÜ„"–ukº„ø·¿ýmbddd;3.Ò¬Y³‰ß|óMGÒžA«£$€Ôš?~7»Ý.EDD8#""œv»Ýéz/Ùl6Éf³É6›ME‘ìv»DD$‚LD$Šü>…$][¨'˲àúLp8‚,Ë‚ÃáN§û§èp8Ä«W¯Ú¶lÙrúþûïßXQQq*::ºÙ÷ÛªU«‘Ë—/ÿσ>èž_gdƒã0øÉ'Ÿ´ëÑ£Ç߬x&•••å£G^C×V>ÑèÑ£WoÛ¶m¤•øå—_~¿qãÆ¿ÞvÛmki"©ã¢läW­ZÕë¶Ûn›Ù%*|äšÊÂÚïˆH^³fM”””Á¦9¢˜Ô¯_¿IDô?T}@åjcå9åxH—_ (6lؼ@ŠO§NÞ›3gÎ?6mÚ´ ÿþc­¸Æ<ðÖ¼yóþðÌ3Ïìá ²!«1¬••••H ,XÐ&::Ú’ãÓÓÓŸ&¢ÍªN‰Ò tR á„ü)±¶w¢† HD$äå啯]»ö-«®c³Ù»uë6íüùóóÆß”øs#ˆÈž••uÝO?ýôâ!C¾µr¨s×®]Ë/^\äjÄÔAZ´hQѱcǾõç3‰‰‰iß#..îfw×ì©ó>Üá¯jªDffæV]ЕÿX[ÂÕ쇋àÏ`‡%‹HDÂÀW•”” NLLleÕõRRRîÈÉɹã•W^ÙwæÌ™ïöíÛ·EYE™ˆ¨yóæíêÖ­Û#))éN«ï½¢¢âtvvöç ÷OéFVm¹1yòäï¾ûn+ÜQÈøA|÷O "áúë¯ïneçmÍš5=÷»ßåÒµkÔç Ãq€»àøÙÃQpP0 }üñÇo=ûì³süàrÝÔ¬Y³›š5kö|mÝûÊ•+goÙ²¥”®­üe{%þãÿøyذa n¾ùæ?#Ç@µ\VÕ(‘ÛÆÊkÇÆÆ&SõÅYa(¸Ê_¯‡£àp\Е‘ììì„úîß¿iVVÖ"rе!_‡â§òµ³gÏžŸž?¾Y$tó~°,´z/ÈFµ##%‘} H€H(H\e.wíÚõƒÒÒÒC¡zÏ¥¥¥oºé¦YT}¾ŸC~NÕkçØ±cs¬85‚¼€@¿˜«­>±çC b¬öÖî¼óÎç+**N…Úý:޲>Ë€? Vùsçþxðà¿;uêôžŸáH¶(?²@OöcÀ»žìèù½þ8qâD¾…§Ò‘#Gî'þœ?Á]— `__lðW«•w- þœ*t‘3''gÿþý/++;l÷wîܹ|Öåüñ\>î¼?-@¼ÿþû˜1cƈòòòµu‡ZÓºuë7‰H¶¢‘8{öl™ª\(@tȪ]× ×Qã>´àÎïà§€ãÏbÑ¢E묺î/¿ü²N§ a£eìdƒüxn@¸ ¤€?5:rss‹Ûµkׂ`¹·;w.LMM}6//¯Øð9us8x̘1{ï¹çžáüÌŸ÷VYYY¾råÊ¿µjÕêM+áhܸqy°ãÇ!`YqVƒ•Öh€VgQfÄÛêt©z?gΜ¢“'O®´â‚o¾ùæ<ucÈÕ—p| ",à „ÂpsIüj@P§NÞ›?þȲ²²zOçÎÛ1a„?téÒe¾A‡Ïéa¨ö=6l(nݺõô… þÉ{þúë¯;srrþ|ÿý÷¯&öYÊ–ƒ˜ÅnœäÏk(û²ÿõw¥<¹F""iúôéïš=%áÈ‘#ŸÌœ9ó¤F>ÝÆ®#‚A„´n`Ø€ (Šj÷7G®Òýùðá÷&&&>¶yóæY´@¤¢¢âÔš5k¦¤¦¦>ëšï§»ªWxy. óõSO=µµN:#æÏŸ?Ò ,--=´dÉ’W¯¿þú¦M›vPåÜJÁ‘ÌÙÂ멃¥ë:†Ð À±ŽN¥ÄJ›Ù³gÿ¼yóæéf]¯¼¼¼pøðáï2€3¬@ Oœˆ`º{*s†nXG‚…j&—Ƀ!O:zõêµø¶Ûn{`×®] js‘ˆübcc0`À×Zq&ö°¯CÀ,(6’6"r >ü?uêÔùÓðáÃmÞ¼y–/s'+**N=ztUNNÎIIIO 2d#'žR£FZ˜™® —— e6›Íª†_¢šç3KD$¹ÏŒ¶:%\ñ G6àZU8yiCDRß¾}¿***òy(Øáp”½ûî»9ßÿ} ãZµµP‚‚ƶõ ,š÷ÂyPæ4*ÊûWnë>ÔFDâ¦M›Š]+Pç/[¶¬ß-·ÜrwýúõûZïÊÊʲ“'OnZµjÕª‘#Gn§ê‹X$2>œ«ußî{'Ò"T‘ˆäùó矘?þ§DôYïÞ½†ÚºGéÉÉÉ ðîíĉ;Μ9sjóæÍ'L˜pÓÀ*·ã‰HˆŠŠŠ79ˉ=ä(Ùl6É‚r*3ž‰â׿»Ž®2Às¸´ G&Õ):~pYñ$Eù¤F½¶qãÆü>}úLôÒù;pï½÷>½~ýúF9ñ›3 AÁ,;’ pážQq«+péäÉ“w:¢2H’$H’$J’$Ȳ,H’$‘à¢~AÕƒ0áz.2 wïÞýAdV9T]»Zùv(ó¿$Š¢l³Ù¤½{÷nÑèð…ÈŠ¼Áú{Cõ‡+T먺ã©N› .ü¬ÇʸôíÛ÷«çŸ>ÿ•W^y¦Q£F÷yÞ—/_>•——÷þí·ß¾’ª;ã¼@„a`b·¿pÊT­òê²åÔ€@­9³2‚® CÀ$Y–e=PÝ ª×NÕß‹tm˜O«¡«­}{´&¨K ®Dü¡7÷ýHŠ{–T‹¤=¤ç/ÐM«ÁS70§‘Ž•§˜Ñø¹½Í}õöwcÆsÚ´iÉýë_Ë4þOb¤—Þ}«¯+{›Z½zuf›6mþdEæY¾|y¾AW•×I Ø 'UÕ è tíI:yE=mÁ›úƒ :¤zñaMÓ0 ÈFçdzÇáØ¾ ‘…®UÈÙKc­&bÏaÒ›@…?o!J=´'k¸Qñç}‰:®Ÿhô^xÀ§7ïO þ*`áÀ}[¶lùiiié»o¼ñÆ{¯¿þz¹yC«mô¬ˆƒmùòå=xà·l6[¢Ù™¦¼¼ü@BBÂ#t핪c©úv0’¤‘0¦·ï/ÿyã:zÒq €”¼¬?X0iŒeƒyFÏ%2¶ÈJ³£(˲„‚L@XÊÖ=†žy¶™6Ï”MΫFòš7ßa¸ ° Çý™Iõ‡ Ì*{¼ßé]Kö6] ;ñW¦êÍÛ ø[6±&Ïh#íI£({øÞÛ†Š¹ä™gžIŽŒŒlje`×®] Þ{s¤~2k«8X zåÑ´2 —wLª?Èä2©f”+9œvªëBÀ†@Nož*¡RÈFÒ„IGÚ養Þ6r²§¿óÁàÎ1bDïPËûeee:uêô>üôœ?"ÏÎS6xÌ(²7ù¿êo:0†;H~*W„‚}u)‚îþ=ù;FZY βY÷Àˆëu5°aÆ!5üëp8Ê^zé¥Wˆ}Þ«Ö9ÑZ'Aø«œÈµY¼þðtkÙÊt ´ $„èX‡•º‰ñr ßéoÝ!‘œœü»P‚¿iÓ¦=ûþûïÿLÕW÷²zÝhÛ/ÏÓÌòhØXQ§ÎµäÚNBaJç z5`pΜ9iMBåY­[·nÖ¸qãö+`O´æ’üYýŒ‚­<ú3¾¼ké•EÔqdžD$ 4_~Œ~5'°ÿþ!1üëp8Ê&Nœø‡;ï¼ókà9àÇÖò­…g™T‘BdžàBPð‰{Ä_ýúõoö›+--=8kÖ¬É999û9ðÇA½Ó ªÙ‚ A¡„DD×3˜o¤°°pé“O>¹ //¯Ø ü±6{®­A@‚ü&™ˆè™gžI Öù§>üðé#GŽÌWžCñÓAü¹ZÃÀ× îAÐ5çu"p½6)^ëø7›«3gŸ5kV³¡C‡þåºë®{0XÀoãÆ  ð Õ\èáð¹[¿!‚€Ì(âÜ_5‘}âĉM‡ 2¸qãÆƒ¢¢¢Ú}•––ÌËË[6pàÀo¨æ¶.jd½æmøƒ BPÈ ¨€Ê0kÖ¬¶ýû÷¿#--­_||üµ }'OžÜ9}úôÏ?øàƒSTóDµ«§5ÿ5üËÜóðA„ P@õ0°•ŸÛúöí›4tèÐ6Ý»wïÚ¸qãô˜˜˜111 ¬¾sçÎ*,,ܱtéÒôÉÄž·ÇrµöüÓö…ûA„ @¢kG¾ øãA ñZdaÞ¼yé))) 7Þxc+Y–©~ýú­"##ãÄñÊ•+ågΜ9HD´yóægÏž-›0aÂ!”±Îîuê@ üA@ TŸý«„:úl(p‚òšFÅÚOb Ëtü©wæoU<A|a É* s¿—\?eÅkÁL¤2™¢ø)¯'è@ŸIüô†Ær¨ÌIDATµ¶xÑ[í èƒ BPSŸ,˪óQe)]6R¡òïm è²Qõ9„FÜ?='PfÀ&1àOõ‚lþàþA!(dxPc,è’P¦vþ$⻂øùâòP6{zàøƒ BPØ€ ú½ÄøL=ä+„?Þ@Á@<ˆhF ÷™ ðA„ Ð¦½êÃÀ2ÄÜ®ž¤ø‘jÎÁÓƒ?=4 ¦zÃÀ<ä}¦åøþ ‚€>\¨x­žû'¨ P ˆZ ?¬@Yõ>#ÒYìøƒ òLØ‚‚¥°V_ Â7Ö†Ñé;~Þ¬fÁ¨§¨ˆt\?ÀA‚ÂÀ ‘á^oÝ?jm £ˆ<¬v €A‚ÂIìHd}óÒÀÇú\ 挟̻à‚ AáDÆ=#ŽŸàCÔô¶…ñä'2A@²ÁMk¨ØèkÒø~&œéœü ‚€™‚z€'=O%{ …?‚ A>@ ™À'x{žÀ ÷;~A@‚|‡A=˜LŽŠìáç€>‚ AàUàgö}A@‚ý"@A‚ †BÀAPàéÿµ®°m&¶oYIEND®B`‚lxdm-0.5.3/data/themes/Industrial/nobody.png000066400000000000000000000060631262556610000210070ustar00rootroot00000000000000‰PNG  IHDR00Wù‡sBIT|dˆ pHYs × ×B(›xtEXtSoftwarewww.inkscape.org›î<tEXtTitleUser Infoì1÷ßtEXtAuthorLapo Calamandreiß‘* rIDAThÞÍZ lTÇž÷ÞÞ—×'˜p•ÆØ`Óxv©¡I . *¡QÕ¤ ©Z©jI•6Ri£¢T–Õ& µé¡S©E-1RÕ†:Ð5æ> .”’`ˆ1æ0öú¨í=ß¾³óϼÙ÷ÖÆ`–t¥Ù·3ofÞÿý÷?o9]×ѽø444ðN¯ðˆw<Ç ürMצ©ŠlB„ç…°®ªÇqÿω„t´¾¾^C÷èÃÝ ¯¿þ³‚ñ'à••–zg?Àûý~ätºP*%¢h4Šnööh:.&¢±HX•¤'ëê^¾ð`Ë–W×;\®_®\ñ÷Œâx?Ê\ØWÓ4Äó<â8Ž>Œã1›úƒû“’(nxé¥MÛ?1›7oα9¸…+W>¶Â#:}¾äp8ôyžÃ t¤ª*’¤ŠÅF<úL P$ýë7n½[üÝ.Ü?U,z|Uí*ª*Èëõ¡¢¢äj·ÛÄ“+ô­÷EA«j¿è©(¯xöù8¸+¯myåÙü¼¼PùÂr{$2Œrsó1çÈД´Ê¤ÅœV!Dæååå£Hd•/\hÏ æ†`¿ûà7‚vÁñæ²ÏÕx¢ÑQÂ]·ÛƒUE%:6ÀÔ’}‡û0æÃºX,Šj–.õØû›°ï} ¨®_TT”»G²,}•½VUF¤f­§܇y0ÖÁz›M@e ÊܰoÖlÝÚPäp:ÖÍ/)qF"`w:Å$&H6@( ˜TLâ2æÃ:X.¶ïgwØ×ÁþY ªöÐôiÓeð(@ &ËŠÇc„( @±ªX€±q™Ì‡uà¡4M!¿ %IåBYÀ |eA~ ˆ°ªØ%J¶HC6@Éi®Ã}˜ó­ö÷sƒA·¦ª•S`›Òd»°<̱!T-T¨x^E‰DœpÒåra½¶ ÷¡TmD‚Ú mtƒAÒ¹åb²@–•§1ÌAJ„*їƇD=¯jQ'•ŒÁ>`œJIr(«ÀÊ? Ü3)Œu— ‘ñ4ƒëJÚkÁ|*A9©Wš–Uøá½)15 8L‰%céûcóh™®TM»QXûPJ&“dÿ¬PdõÌðð𬜟Ahq‰0&Œû ŽŒ3ÉP«¶#@yl36Ô?0„cŒv&«âÉıpxu~~®ŒÑLÅ÷óh\$&y”‘'QîóÄèûúúäX4z,«nT’ų×n\ጃ‘™QÌ«€GbÅ Jôøu‚`CÝW¯ŠŠ$Í®'õ3W.w9@÷Yú¬iTU8N7ü:‡h*dMÓ¹´á3é0Œ÷M¥Ô3Y•@ccã ˜w9rXôx< Fþoþ¾SŸIâFË{-b*•ÜÑÔÔ4˜õd.:š¨;Þz#C8£tªÀÔÂ$râ+ ºï@áðjm{?¡«|Ý}ÉFwî܉'âÏïljJÐÊËFˆ™,çi6’R¿µkWçVÏþ÷ÀöíÛíŸy(„3‡x¬¹ù"à$•ÂXBÇN\çß››‘”ãU/Y­‰ñlŸó[X~>göWéü2÷{--ÜÍÞôܺu(ˆS«k5¨ ,^?<2‚švíBÓŠ¦£ÚÚZ½««3yõúÕ”"+?ÉÍ)ؾ~ýzù^à6o}eÀ ¡Ð’Ü¥ÕK±Ý¹Ib‡Ñþ-èø‰cèËk×¢‡C!K< Iœéï©ç9Ýþ/´gï^´¬f9zìѨ°°C€ã—S§NŠígÛGuE¡®îǻǸ²)àÚÛÛmµl..žþݯ<õU7Î")Ô££\ÛFÐõë×ÑÞw÷¢+ªD%~×ÉAL˜§Ïq4<<‚:;;ÑÙsÿ& žüÒZ4sæ,øQNœb8@Žƒ”"šßÙ ‡ûþ°ú‰y?\¸ðiùv@&Àµ¶¶ºNœ<úÏ¥Õ5UÕUŸuêº Ùè˜"#um,'¹Lww7:ÿÁ9îï'•V"ž@¯ùýTTT„•/BsçÎ%÷z½¸À÷§S ±Á)Àöm§Ú¤“§ZÏ”•”¯\³fMr"2îð‘ƒÛjj–UWWU;@·©:pÄC rp Îåç ŠŠE$YI±\ˆ® 9Nܤ¨gôí,éƒùP¡ÁµjI•CQåPë‰Ö?bÏNà–Øôò¦oÎ/yðwÏ<ý57TT™É2ŽO8‹4Æ«NÊEÊ]DÔ†Ek:~»n”š4Mÿëßþ’ììêÚðêO_kœ8¤MŠÑß{áÅbà!pr@¹„28G×ê©ã:­¸ Ʊ¤Ž­eŒÈ”,OîãàŽüh[ã¶A¯;P\__¯ÜQ…††úŸ*-+ ñƒƒ$èX«-Ír®L ³äÿ¼…˜ÌlÔšVS/•™¡²ýh­Òé7ùÜÙsÜ.u<ƒ§4ÝÙôíÊÊJïððÖë8¢Ç#zšP–Ð>J»JF¼™Js‰ežQâÍBÇ×Ó@˜J•W”{;>úè;“€‹–R/öpz† É6d+䩯sßj#Œ¦6¦éc@h§w0†}Ûpª]2)/„Ôà-úû‡Èá3BðÕÖ"d"ÕOüíA0®[AH’dTm9ÍÈË+À¶*ÂûƒÍê·—€¢èô(ÿ/âˆ:³°0Ÿˆ$@uQ!\b*Ã8ŸÉ}t‹XÁÏT#+Æ}fÀð,x.«—{n^Ãti“J§ÉTÓù/ÄáÀ}ÓOVãšÇ‡ª%`Yƒ™ (Ó¥riâÙ›óØQ2ÎKé³`ž`.]êÄZ•xkRoî¾ÒmFcWTC×B«¼Ìüž³Tc\ºÚb¹fŸ³Teܸ“î/‘[%À€Žî«×l’(힀·ßnÂEö¯9‘p¹p–“i”‰Ú0Ÿõá }g}ëšÌØÂ§ŸETl­ïŸN`iü~ß¾}½“®È1qÓž›WÎýç¼)4T]>Ÿ¼”€ß´ ³§++³ÙÇ´‰Æ2×°=ax0 ú;µžÞ¾Ÿ'ð£)¥Ó˜#üâÅ‹?Èõïðy¼¡ÕOÔzkp20Зq¢`mÌ;±|Æ4dó|ÔLG´tÂf}6QP0 sý8Ú·o<ŸEâßhkkëÔÙw€‰·Þ jÔ‚Ò¥«pAó›ßþú H³Œr¼Í|/6ö%;OëJiDýï¿øµ·¯oCLJïâ[pÔ"ƒÄ÷ä)À-øÈ£Ÿÿué¼ysä²²R{ñôbª-—ÛEÂ<¼‘wº\$ð8C%è«Và*øuð0)ì–S)Üp9 %$AɤHÞ-ô…ûÔ å®ËÝv\t9tj€‘)`*„/ \}~¿6®ª{<® ›ÝQl³ñAl˜~Žç½X4n¼Ä‰-ʉWÛÈ:M·A‡wø[Á¥€Š³kì“u kƒ¨jzR×Ô8N×£ØÇ(ªÔ›Hˆô÷õŸÆÕÜ5¼G p¸NZ…&c#Ö¼ò†„ ¹qs¿íàÖ ©0BŒMá–4~CÓˆï¤óTƒãwüSÈ]ÿÕ€£ŠÍQŠ]­Íêá4#!²66¦éãܽú»Í'õùo9ª½êN 6IEND®B`‚lxdm-0.5.3/data/themes/Industrial/session.png000066400000000000000000000022121262556610000211700ustar00rootroot00000000000000‰PNG  IHDR szzôbKGDÿÿÿ ½§“?IDATxÚÅ—ËOGÇ?³;»ë5~Å&I VQ¹¢Š(âRõé!‘r©Ä5ÜzìÑS=T½pi•z¨ÔK¥Fˆ[¥E§ÅƘ`üö>zˆ½¬í5à@Õ‘F?Ïovæ÷ý½Çð?Ѧî¾ â‰KÊweç׋­]þÜý§k÷Ñò½AÀº x~üyƒ¯¿}êmÜ¿{ç,ááA ‡–ïøòñ¬rŽD"ÉÉ›œþÍwƒ]b<ýe“o¾ÿÉÛh–P…M(&ýá'$®%ˆ'"\KÄIÄGHÆ£Ä"!¤¢pôû¯Ýøâá§ìî8ÏÆF묘Ðf'GøjõÁ9zZÀ!T¡ ¥67b(ý*• sssA&ï]+ŸöÅbñLñ­V EQÈårD£QfffxòäI?€B¡@£Ñ ™LúÙ±€¸‰tu[E(×-R1Õµp€75!BHpñï‚W'¤¢¡þ ˜Å¶í^%ŽÎÒP ™¨ŠÂûiP-ìqëÎ /öHO$p‡¿ö¹}=F8¤ñú°Äì$Á …Íf“ññq·¾¾~š´®‹mÛ±¶¶ö]©BØÐP\‡„ÈØ8Íz•DX£Xª‚TÔ RoPm41¤BØÐ‚D"TUíÒð‡ßvšDJ MÓP… Ùhxûc#)áîû)EA!‹)…z½îÝëº.Š¢à8Nû; ›Í211áñv^çÑuMJt]GUœÖ)€l6K2™Ä¶m„˜¦I©T"‘xkþL&C:ƶmLÓää䄱±±` d2,Ëbss“—/_ðÁÍ8ªTQU}põÚiŠŽŽŽzš!ˆÅb†”’t:M8F×ut]gddMÓ< œÛ r¹®ëz³Õj‘ËåXXXàÙ³gd2\×õbÄ»¸Mýæöb±Èêêj_3¹ dòù<©TÊ»Ø ŸÏ3==Í•ö‚¾6åÓÊ?;~~þü9ûûûÔëõ®}ÿÙŽ[:k˲XYYx dWrðA  1::J8Ʋ,\×Åqœ@ þu«åÅΰ @”’h4Šiš]šú5š>@(ËaÌï×@UUT'¿;@: ]> lxdm-0.5.3/depcomp000077500000000000000000000442671262556610000140600ustar00rootroot00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 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 outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi 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 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. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. 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" ;; #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" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "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: lxdm-0.5.3/gpl-2.0.txt000066400000000000000000000431031262556610000143070ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. lxdm-0.5.3/install-sh000077500000000000000000000325371262556610000145040ustar00rootroot00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.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 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: lxdm-0.5.3/lgpl-2.1.txt000066400000000000000000000635021262556610000144710ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! lxdm-0.5.3/ltmain.sh000066400000000000000000010515221262556610000143140ustar00rootroot00000000000000 # 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 # 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 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% $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" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi 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 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 ;; 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 lxdm-0.5.3/lxdm.spec.in000066400000000000000000000025651262556610000147230ustar00rootroot00000000000000# on SuSE based distros that's allow compilation # without root rights, on other distros that's just # a comment, you should keep it. # norootforbuild Name: lxdm Version: @PACKAGE_VERSION@ Release: 1 Summary: Light weight X11 display manager License: GPL Group: User Interface/X URL: http://lxde.sourceforge.net/ Source0: lxdm-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRequires: gtk3-devel pam-devel intltool Provides: service(graphical-login) = lxdm %description Light weight X11 display manager %prep %setup -q %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" %configure --enable-gtk3 %__make %install make DESTDIR=${RPM_BUILD_ROOT} install cd ${RPM_BUILD_ROOT}/%{_sysconfdir}/lxdm rm -rf LoginReady PostLogin PreLogin PostLogout PreReboot PreShutdown cd - %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post %pre %preun %postun %files -f %{name}.lang %defattr (-,root,root,-) %doc AUTHORS NEWS README COPYING INSTALL ChangeLog %dir %{_datadir}/lxdm/ %{_datadir}/lxdm/* %dir %{_sysconfdir}/lxdm/ %{_sbindir}/lxdm %{_sbindir}/lxdm-binary %{_bindir}/lxdm-config %{_libexecdir}/lxdm-greeter-gtk %{_libexecdir}/lxdm-greeter-gdk %{_libexecdir}/lxdm-numlock %{_libexecdir}/lxdm-session %{_sysconfdir}/lxdm/Xsession %config %{_sysconfdir}/lxdm/lxdm.conf %{_sysconfdir}/pam.d/lxdm %{_unitdir}/lxdm.service %changelog lxdm-0.5.3/missing000077500000000000000000000262331262556610000140730ustar00rootroot00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 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 tar try tar, gnutar, gtar, then tar without non-portable flags 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. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $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 ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: lxdm-0.5.3/pam/000077500000000000000000000000001262556610000132435ustar00rootroot00000000000000lxdm-0.5.3/pam/Makefile.am000066400000000000000000000001611262556610000152750ustar00rootroot00000000000000NULL= lxdm_pamdir = /etc/pam.d lxdm_pam_DATA = \ lxdm \ $(NULL) EXTRA_DIST = \ $(lxdm_pam_DATA) \ $(NULL) lxdm-0.5.3/pam/Makefile.in000066400000000000000000000341751262556610000153220ustar00rootroot00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = pam 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) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(lxdm_pamdir)" DATA = $(lxdm_pam_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONSOLEKIT_CFLAGS = @CONSOLEKIT_CFLAGS@ CONSOLEKIT_LIBS = @CONSOLEKIT_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FULL_LIBEXECDIR = @FULL_LIBEXECDIR@ GDK_CFLAGS = @GDK_CFLAGS@ GDK_LIBS = @GDK_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XCONN_CFLAGS = @XCONN_CFLAGS@ XCONN_LIBS = @XCONN_LIBS@ XGETTEXT = @XGETTEXT@ XLIB_CFLAGS = @XLIB_CFLAGS@ XLIB_LIBS = @XLIB_LIBS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = lxdm_pamdir = /etc/pam.d lxdm_pam_DATA = \ lxdm \ $(NULL) EXTRA_DIST = \ $(lxdm_pam_DATA) \ $(NULL) 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) --foreign pam/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign pam/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-lxdm_pamDATA: $(lxdm_pam_DATA) @$(NORMAL_INSTALL) @list='$(lxdm_pam_DATA)'; test -n "$(lxdm_pamdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lxdm_pamdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lxdm_pamdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lxdm_pamdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lxdm_pamdir)" || exit $$?; \ done uninstall-lxdm_pamDATA: @$(NORMAL_UNINSTALL) @list='$(lxdm_pam_DATA)'; test -n "$(lxdm_pamdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lxdm_pamdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(lxdm_pamdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic 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-lxdm_pamDATA 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-lxdm_pamDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic 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-lxdm_pamDATA 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 pdf \ pdf-am ps ps-am tags-am uninstall uninstall-am \ uninstall-lxdm_pamDATA .PRECIOUS: Makefile # 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: lxdm-0.5.3/pam/lxdm000066400000000000000000000004731262556610000141360ustar00rootroot00000000000000#%PAM-1.0 auth substack system-auth auth optional pam_gnome_keyring.so account include system-auth session optional pam_keyinit.so force revoke session include system-auth session optional pam_console.so session optional pam_gnome_keyring.so auto_start session optional pam_selinux.so lxdm-0.5.3/po/000077500000000000000000000000001262556610000131045ustar00rootroot00000000000000lxdm-0.5.3/po/LINGUAS000066400000000000000000000002271262556610000141320ustar00rootroot00000000000000af ar bg bn_IN ca cs da de el es et eu fa fi fr gl he hr hu id it ja ko lt ml ms nb nl nn pl ps pt pt_BR ru sk sl sr sv tr uk ur ur_PK vi zh_CN zh_TW lxdm-0.5.3/po/Makefile.in.in000066400000000000000000000157561262556610000155740ustar00rootroot00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ localedir = @localedir@ subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $* $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< .po.gmo: $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: lxdm-0.5.3/po/POTFILES.in000066400000000000000000000003461262556610000146640ustar00rootroot00000000000000[type: gettext/glade]data/lxdm.glade [type: gettext/glade]data/config.ui [type: gettext/glade]data/themes/Industrial/greeter.ui data/themes/Industrial/greeter-gtk3.ui src/gdm/gdm-languages.c src/greeter.c src/lang.c src/config.c lxdm-0.5.3/po/af.po000066400000000000000000000051261262556610000140360ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2010-09-01 23:37+0200\n" "Last-Translator: F \n" "Language-Team: LANGUAGE \n" "Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /af/lxdm/po/af.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Gebruiker:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Werkskerm:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Taal:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 #, fuzzy msgid "Keyboard:" msgstr "Sleutelborduitleg:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Verstek" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Ongespesifiseerd" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Wagwoord:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "He_rbegin" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Skakel af" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "Aangemeld" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Meer..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/ar.po000066400000000000000000000063311262556610000140510ustar00rootroot00000000000000# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Tareq Al Jurf , 2010. # Safa Alfulaij , 2014. msgid "" msgstr "" "Project-Id-Version: lxde.lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2015-04-10 15:49+0000\n" "Last-Translator: ØµÙØ§ الÙليج \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" "X-Generator: Pootle 2.7.0-alpha1\n" "X-POOTLE-MTIME: 1428680981.000000\n" "X-Pootle-Path: /ar/lxdm/po/ar.po\n" "X-Pootle-Revision: 590\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "المستخدم:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "سطح المكتب:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "اللغة:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "لوحة Ø§Ù„Ù…ÙØ§ØªÙŠØ­:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "ضبط lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "ولوج آليّ" #: ../data/config.ui.h:3 msgid "Background" msgstr "الخلÙيّة" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Ø§Ù„Ø§ÙØªØ±Ø§Ø¶ÙŠÙ‘Ø©" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "مكّن اللوحة السّÙليّة" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "خيارات اللوحة السّÙليّة" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "لوحة Ø´ÙÙ‘Ø§ÙØ©" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "أخÙ٠الجلسات" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "أظهر قائمة اللغات" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "أظهر تخطيطات لوحة Ø§Ù„Ù…ÙØ§ØªÙŠØ­" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "أخÙ٠زرّ الإنهاء" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "خيارات أخرى" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "أظهر قائمة المستخدمين" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "أخÙ٠الوقت" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "غير محدّد" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "كلمة المرور:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "Ø£_عد الإقلاع" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "Ø£_Ø·ÙØ¦" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "والج ÙÙŠ" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "أكثر..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "تصÙّح صورًا أكثر..." lxdm-0.5.3/po/bg.po000066400000000000000000000063671262556610000140500ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-09-30 08:37+0200\n" "Last-Translator: РадоÑлав \n" "Language-Team: MIME-Version: 1.0\n" "Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Bulgarian\n" "X-Poedit-Country: BULGARIA\n" "X-Pootle-Path: /bg/lxdm/po/bg.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Потребител:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Работен плот:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Език:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Клавиатурна подредба:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "ÐаÑтройка" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Ðвтоматично впиÑване" #: ../data/config.ui.h:3 msgid "Background" msgstr "Фон" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "По подразбиране" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Включване на Ð´Ð¾Ð»Ð½Ð¸Ñ Ð¿Ð°Ð½ÐµÐ»" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Опции на Ð´Ð¾Ð»Ð½Ð¸Ñ Ð¿Ð°Ð½ÐµÐ»" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Прозрачен панел" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Скриване на ÑеÑиите" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Показване на меню Ñ ÐµÐ·Ð¸Ñ†Ð¸" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Показване на клавиатурните подредби" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Скриване на бутона за изход" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Други опции" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Показване на лиÑÑ‚ Ñ Ð¿Ð¾Ñ‚Ñ€ÐµÐ±Ð¸Ñ‚ÐµÐ»Ð¸" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Скриване на времето" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Ðе е зададен" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Парола:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_РеÑтартирай" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Изключи" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "впиÑан" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Още..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Други Ñнимки..." lxdm-0.5.3/po/bn_IN.po000066400000000000000000000062621262556610000144370ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2011-04-11 15:20+0200\n" "Last-Translator: Sankarshan \n" "Language-Team: LANGUAGE \n" "Language: bn_IN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /bn_IN/lxdm/po/bn_IN.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "বà§à¦¯à¦¬à¦¹à¦¾à¦°à¦•ারী:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "ডেসà§à¦•টপ:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "ভাষা:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "কী-বোরà§à¦¡ বিনà§à¦¯à¦¾à¦¸:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "সয়ংকà§à¦°à§€à¦¯à¦¼ লগ-ইন" #: ../data/config.ui.h:3 msgid "Background" msgstr "পà§à¦°à§‡à¦•à§à¦·à¦¾à¦ªà¦Ÿ" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "ডিফলà§à¦Ÿ" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 #, fuzzy msgid "Show languages menu" msgstr "ভাষার মেনৠপà§à¦°à¦¦à¦°à§à¦¶à¦¨ করà§à¦¨" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "কি-বোরà§à¦¡ à¦à¦° বিনà§à¦¯à¦¾à¦¸ পà§à¦°à¦¦à¦°à§à¦¶à¦¨ করà§à¦¨" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "বà§à¦¯à¦¬à¦¹à¦¾à¦°à¦•ারীদের তালিকা পà§à¦°à¦¦à¦°à§à¦¶à¦¨ করà§à¦¨" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "অনিরà§à¦¦à¦¿à¦·à§à¦Ÿ" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "পাসওয়ারà§à¦¡:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "রিবà§à¦Ÿ(_R)" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "শাটডাউন(_S)" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "লগ-ইন করা হয়েছে" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "অধিক ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "অনà§à¦¯à¦¾à¦¨à§à¦¯ ছবি দেখà§à¦¨..." lxdm-0.5.3/po/ca.po000066400000000000000000000052351262556610000140340ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2010-09-03 00:24+0200\n" "Last-Translator: sisco \n" "Language-Team: LANGUAGE \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /ca/lxdm/po/ca.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Usuari:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Escriptori:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Idioma:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 #, fuzzy msgid "Keyboard:" msgstr "Disposició del teclat:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Predeterminat" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Sense especificar" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Contrasenya:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Reinicia" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Atura" # no sé si no és una mica simplificadora. Cal revisió. #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "validat" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Més ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/cs.po000066400000000000000000000061341262556610000140550ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-09 17:16+0200\n" "Last-Translator: ALIUM \n" "Language-Team: \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Czech\n" "X-Poedit-SourceCharset: utf-8\n" "X-Poedit-Country: CZECH REPUBLIC\n" "X-Pootle-Path: /cs/lxdm/po/cs.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Uživatel:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Pracovní plocha:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Jazyk:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Klávesnice:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatické pÅ™ihlaÅ¡ování" #: ../data/config.ui.h:3 msgid "Background" msgstr "Pozadí" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Výchozí" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Zobrazit spodní panel" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Nastavení spodního panelu" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Průhledný panel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Skrýt sezení" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Zobrazit nabídku jazyků" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Zobrazit rozložení klávesnice" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Skrýt zavírací tlaÄítko" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Jiné nastavení" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Zobrazit seznam uživatelů" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Skrýt Äas" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "NeurÄeno" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Heslo:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Restartovat" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Vypnout" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "pÅ™ihlášeno" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Více ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Vyhledat další obrázky..." #~ msgid "US English" #~ msgstr "AngliÄtina (USA)" #~ msgid "Simpllified Chinese" #~ msgstr "ZjednoduÅ¡ená ÄínÅ¡tina" #~ msgid "Traditional Chinese" #~ msgstr "TradiÄní ÄínÅ¡tina" #~ msgid "German" #~ msgstr "NÄ›mÄina" #~ msgid "Italian" #~ msgstr "ItalÅ¡tina" #~ msgid "Portuguese" #~ msgstr "PortugalÅ¡tina" lxdm-0.5.3/po/da.po000066400000000000000000000056031262556610000140340ustar00rootroot00000000000000# danish translation lxde.lxdm. # Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER. # This file is distributed under the same license as the lxde.lxdm package. # Joe Hansen (joedalton2@yahoo.dk), 2010. # msgid "" msgstr "" "Project-Id-Version: lxde.lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2014-09-07 21:34+0000\n" "Last-Translator: Peter Jespersen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.6.0-rc1\n" "X-POOTLE-MTIME: 1410125667.000000\n" "X-Pootle-Path: /da/lxdm/po/da.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Bruger:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Skrivebord:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Sprog:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tastatur:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm konfiguration" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatisk login" #: ../data/config.ui.h:3 msgid "Background" msgstr "Baggrund" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Standard" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Aktiver bundpanel" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Indstillinger for bundpanel" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Transparent panel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Gem sessioner" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Vis sprogmenu" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Vis tastaturlayouts" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Gem afslut-knap" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Andre Indstillinger" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Vis brugerliste" #: ../data/config.ui.h:14 #, fuzzy msgid "Hide time" msgstr "Skjuletid" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Uspecificeret" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Adgangskode:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Genstart" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Luk computeren" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "logget ind" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Mere ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Se efter flere billeder..." lxdm-0.5.3/po/de.po000066400000000000000000000064421262556610000140420ustar00rootroot00000000000000# German translations for PACKAGE package # German messages for PACKAGE. # Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Mark Trompell , 2009. msgid "" msgstr "" "Project-Id-Version: lxdm r2100\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-07-25 11:33+0000\n" "Last-Translator: Daniel \n" "Language-Team: German\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.5.0\n" "X-POOTLE-MTIME: 1374751980.0\n" "X-Pootle-Path: /de/lxdm/po/de.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Benutzer:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Desktop:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Sprache:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tastatur:" # Dies ist der Fenstertitel #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Einstellungen für den Anmeldebildschirm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatische Anmeldung" #: ../data/config.ui.h:3 msgid "Background" msgstr "Hintergrund" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Standard" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Untere Leiste aktivieren" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Optionen für untere Leiste" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Transparente Leiste" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Sitzungen verstecken" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Sprachauswahl anzeigen" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Tastaturbelegung anzeigen" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Beenden-Knopf ausblenden" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Andere Optionen" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Benutzerliste anzeigen" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Zeit ausblenden" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Nicht festgelegt" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Passwort:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Neustarten" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Beenden" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "angemeldet" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Weitere…" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Nach weiteren Bildern suchen..." #~ msgid "US English" #~ msgstr "Englisch (USA)" #~ msgid "Simpllified Chinese" #~ msgstr "Chinesisch (vereinfacht)" #~ msgid "Traditional Chinese" #~ msgstr "Chinesisch (traditionell)" #~ msgid "German" #~ msgstr "Deutsch" #~ msgid "Italian" #~ msgstr "Italienisch" #~ msgid "Portuguese" #~ msgstr "Portugiesisch" lxdm-0.5.3/po/el.po000066400000000000000000000064361262556610000140550ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2014-11-01 23:27+0000\n" "Last-Translator: armakolas \n" "Language-Team: LANGUAGE \n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.6.0-rc2\n" "X-POOTLE-MTIME: 1414884454.000000\n" "X-Pootle-Path: /el/lxdm/po/el.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "ΧÏήστης:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Επιφάνεια ΕÏγασίας:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Γλώσσα:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "ΠληκτÏολόγιο:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Ïυθμίσεις lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Αυτόματη ΣÏνδεση" #: ../data/config.ui.h:3 msgid "Background" msgstr "ΠαÏασκήνιο" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "ΠÏοεπιλογή" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "ΕνεÏγοποίηση κάτω γÏαμμής" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Επιλογές Κάτω ΓÏαμμής" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Διάφανη γÏαμμή" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "ΑπόκÏυψη συνεδÏιών" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Εμφάνιση καταλόγου γλωσσών" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Εμφάνιση διατάξεων πληκτÏολογίου" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "ΑπόκÏυψη πλήκτÏου εξόδου" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Λοιπές Επιλογές" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Εμφάνιση λίστας χÏηστών" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "ΑπόκÏυψη ÏŽÏας" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "ΑκαθόÏιστο" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Κωδικός:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "Επανεκκίνηση" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "ΤεÏματισμός" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "συνδεδεμένος" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "ΠεÏισσότεÏα ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Αναζήτηση για πεÏισσότεÏες εικόνες..." lxdm-0.5.3/po/es.po000066400000000000000000000056271262556610000140650ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-07-27 17:54+0000\n" "Last-Translator: Adolfo \n" "Language-Team: LANGUAGE \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.5.0\n" "X-POOTLE-MTIME: 1374947652.0\n" "X-Pootle-Path: /es/lxdm/po/es.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Usuario:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Escritorio:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Idioma:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Teclado:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Inicio de sesión automático" #: ../data/config.ui.h:3 msgid "Background" msgstr "Fondo" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Predeterminado" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Activar el panel inferior" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opciones del panel inferior" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Panel transparente" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ocultar las sesiones" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Mostrar menú de idiomas" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Mostrar distribuciones del teclado" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ocultar el botón «Salir»" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Otras opciones" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Mostrar lista de usuarios" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ocultar la hora" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "No especificado" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Contraseña:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Reiniciar" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Apagar" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "autenticado" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Más…" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Examinar imágenes…" lxdm-0.5.3/po/et.po000066400000000000000000000055771262556610000140720ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-12-20 01:30+0000\n" "Last-Translator: mahfiaz \n" "Language-Team: LANGUAGE \n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.5.0\n" "X-POOTLE-MTIME: 1387503023.0\n" "X-Pootle-Path: /et/lxdm/po/et.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Kasutaja:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Töölaud:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Keel:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Klaviatuur:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm konfig" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automaatne sisselogimine" #: ../data/config.ui.h:3 msgid "Background" msgstr "Taust" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Vaikimisi" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Alumise paneeli lubamine" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Alumise paneeli valikud" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Läbipaistev paneel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Seansside peitmine" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Keeltemenüü näitamine" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Klaviatuuripaigutuste näitamine" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Väljumise nupu peitmine" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Muud valikud" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Kasutajate nimekirja näitamine" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Peida aeg" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Määramata" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Parool:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Taaskäivita" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Lülita välja" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "sisselogitud" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Rohkem..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Sirvi veel pilte..." lxdm-0.5.3/po/eu.po000066400000000000000000000055771262556610000140730ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-27 21:35+0200\n" "Last-Translator: Asier \n" "Language-Team: LANGUAGE \n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /eu/lxdm/po/eu.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Erabiltzailea:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Mahaigaina:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Hizkuntza:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Teklatua:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm konfigurazioa" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Saio hasiera automatikoa" #: ../data/config.ui.h:3 msgid "Background" msgstr "Atzeko planoa" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Lehenetsia" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Gaitu beheko panela" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Beheko panelaren aukerak" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Panel gardena" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ezkutatu saioak" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Erakutsi hizkuntzen menua" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Erakutsi teklatu-diseinuak" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ezkutatu irteteko botoia" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Beste aukerak" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Erakutsi erabiltzaile-zerrenda" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ezkutatu denbora" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Zehaztu gabea" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Pasahitza:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Berrabiarazi" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Itzali" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "saioa hasita" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Gehiago..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Arakatu irudi gehiagoren bila..." lxdm-0.5.3/po/fa.po000066400000000000000000000056421262556610000140410ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2011-04-24 16:44+0200\n" "Last-Translator: Hamidreza \n" "Language-Team: Persian \n" "Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Persian\n" "X-Poedit-Country: Iran\n" "X-Pootle-Path: /fa/lxdm/po/fa.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "کاربر:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "میزکار:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "زبان:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "ØµÙØ­Ù‡ کلید:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "ورود خودکار" #: ../data/config.ui.h:3 msgid "Background" msgstr "پس زمینه" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Ù¾ÛŒØ´â€ŒÙØ±Ø¶" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 #, fuzzy msgid "Show languages menu" msgstr "نمایش منوی زبان ها" #: ../data/config.ui.h:10 #, fuzzy msgid "Show keyboard layouts" msgstr "نمایش روکش‌های ØµÙØ­Ù‡ کلید" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 #, fuzzy msgid "Show user list" msgstr "نمایش لیست کاربران" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "نامشخص" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "گذرواژه:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_آغاز به کار مجدد" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_خاموش" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "وارد شد" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "بیشتر ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "مرور برای تصاویر بیشتر..." lxdm-0.5.3/po/fi.po000066400000000000000000000056741262556610000140560ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2014-11-25 21:04+0000\n" "Last-Translator: Juhani Numminen \n" "Language-Team: LANGUAGE \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.6.0-rc2\n" "X-POOTLE-MTIME: 1416949483.000000\n" "X-Pootle-Path: /fi/lxdm/po/fi.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Käyttäjä:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Työpöytä:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Kieli:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Näppäimistö:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm:n asetukset" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automaattinen kirjautuminen" #: ../data/config.ui.h:3 msgid "Background" msgstr "Tausta" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Oletus" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Ota käyttöön alareunan paneeli" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Alareunan paneelin asetukset" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Läpinäkyvä paneeli" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Piilota istunnot" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Näytä kielivalikko" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Näytä näppäimistöasettelut" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Piilota lopetuspainike" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Muut asetukset" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Näytä käyttäjälista" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Piilota aika" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Määrittelemätön" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Salasana:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Käynnistä uudelleen" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Sammuta" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "kirjautunut" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Lisää…" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Selaa lisää kuvia..." lxdm-0.5.3/po/fr.po000066400000000000000000000057141262556610000140620ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-08-12 20:02+0000\n" "Last-Translator: Julien \n" "Language-Team: LANGUAGE \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Pootle 2.5.0\n" "X-POOTLE-MTIME: 1376337751.0\n" "X-Pootle-Path: /fr/lxdm/po/fr.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Utilisateur :" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Bureau :" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Langue :" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Clavier :" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Configuration de LXDM" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Connexion automatique" #: ../data/config.ui.h:3 msgid "Background" msgstr "Arrière-plan" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Par défaut" #: ../data/config.ui.h:5 #, fuzzy msgid "Enable bottom panel" msgstr "Autoriser le panneau inférieur" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Options du panneau inférieur" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Panneau transparent" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Cacher les sessions" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Afficher le menu des langues" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Afficher les dispositions de clavier" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Cacher le bouton « Quitter »" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Autres options" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Afficher la liste des utilisateurs" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Cacher l'heure" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Non spécifié" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Mot de passe :" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Redémarrer" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Éteindre" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "connecté" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Plus..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Rechercher d'autres images..." lxdm-0.5.3/po/gl.po000066400000000000000000000056501262556610000140540ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-15 15:59+0200\n" "Last-Translator: mbouzada \n" "Language-Team: Proxecto Trasno \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-SourceCharset: utf-8\n" "X-Pootle-Path: /gl/lxdm/po/gl.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Usuario:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Escritorio:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Idioma:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Teclado:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Configuración de LXDM" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Acceso automático" #: ../data/config.ui.h:3 msgid "Background" msgstr "Fondo" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Predeterminado" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Activar o panel inferior" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opcións do panel inferior" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Panel transparente" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Agochar as sesións" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Amosar o menú de idiomas" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Amosar as distribucións de teclado" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Agochar o botón «Saír»" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Outras opcións" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Amosar a lista de usuarios" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Agochar a hora" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Sen especificar" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Contrasinal:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Reiniciar" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Apagar" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "autenticado" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Máis ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Buscar máis imaxes..." lxdm-0.5.3/po/he.po000066400000000000000000000057561262556610000140550ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-12 14:33+0200\n" "Last-Translator: Yaron \n" "Language-Team: LANGUAGE \n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /he/lxdm/po/he.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "משתמש:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "שולחן העבודה:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "שפה:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "מקלדת:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "תצורת lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "כניסה ×וטומטית" #: ../data/config.ui.h:3 msgid "Background" msgstr "רקע" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "בררת מחדל" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "הפעלת לוח תחתון" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "×פשרויות הלוח התחתון" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "לוח שקוף" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "הסתרת הפעלות" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "הצגת תפריט השפות" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "הצגת פריסות המקלדת" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "הסתרת לחצן היצי××”" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "×פשרויות ×חרות" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "הצגת רשימת המשתמשי×" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "הסתרת השעון" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "×œ× ×ž×•×’×“×¨" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "סיסמה:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "×”_פעלה מחדש" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_כיבוי" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "נכנסת" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "עוד ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "עיון למצי×ת תמונות נוספות..." lxdm-0.5.3/po/hr.po000066400000000000000000000056371262556610000140700ustar00rootroot00000000000000# Croatian translation to lxde.lxdm. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the lxde.lxdm package. # Ivica Kolić , 2010. # msgid "" msgstr "" "Project-Id-Version: lxde.lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-17 00:09+0200\n" "Last-Translator: zvacet \n" "Language-Team: Croatian (hr) <>\n" "Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /hr/lxdm/po/hr.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Korisnik:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Radna povrÅ¡ina:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Jezik:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tipkovnica:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatska prijava" #: ../data/config.ui.h:3 msgid "Background" msgstr "Pozadina" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Zadano" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Omogući donju ploÄu" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opcije donje ploÄe" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Prozirna ploÄa" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Sakrij sesije" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Pokaži izbornik jezika" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Pokaži raspored tipkovnice" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Sakrij dugme iskljuÄivanja" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Ostale opcije" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Pokaži listu korisnika" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Sakrij vrijeme" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "NeodreÄ‘eno" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Lozinka:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Ponovo pokreni" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_IskljuÄi" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "prijavljen" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "ViÅ¡e ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Pregledaj za viÅ¡e slika..." lxdm-0.5.3/po/hu.po000066400000000000000000000057561262556610000140750ustar00rootroot00000000000000# Hungarian translation of lxdm. # Copyright (C) 2010-2011 The LXDE Team # This file is distributed under the same license as the lxdm package. # Attila Szervac , 2010. # Laszlo Dvornik , 2011. # msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2015-05-04 19:12+0000\n" "Last-Translator: Balázs Úr \n" "Language-Team: Hungarian\n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.7.0-alpha1\n" "X-POOTLE-MTIME: 1430766754.000000\n" "X-Pootle-Path: /hu/lxdm/po/hu.po\n" "X-Pootle-Revision: 1628\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Felhasználó:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Asztal:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Nyelv:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Billentyűzet:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm beállítása" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatikus bejelentkezés" #: ../data/config.ui.h:3 msgid "Background" msgstr "Háttér" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Alapértelmezett" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Alsó panel engedélyezése" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Alsó panel beállítások" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Ãtlátszó panel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Munkamenetek elrejtése" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Nyelvek menü megjelenítése" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Billentyűzetkiosztás megjelenítése" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Kilépés gomb elrejtése" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Egyéb beállítások" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Felhasználólista megjelenítése" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "IdÅ‘ elrejtése" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Nincs megadva" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Jelszó:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "Újra_indítás" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Leállítás" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "bejelentkezve" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Több…" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "További képek tallózása…" lxdm-0.5.3/po/id.po000066400000000000000000000056161262556610000140500ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2014-09-04 14:08+0000\n" "Last-Translator: Andika Triwidada \n" "Language-Team: LANGUAGE \n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.6.0-rc1\n" "X-POOTLE-MTIME: 1409839721.000000\n" "X-Pootle-Path: /id/lxdm/po/id.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Pengguna:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Desktop:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Bahasa:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Papan Ketik:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "konfigurasi lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Log Masuk Otomatis" #: ../data/config.ui.h:3 msgid "Background" msgstr "Latar Belakang" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Default" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Fungsikan panel dasar" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opsi Panel Dasar" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Panel transparan" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Sembunyikan sesi" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Tampilkan menu bahasa" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Tampilkan tata letak papan tik" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Sembunyikan tombol keluar" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Opsi Lain" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Tampilkan daftar pengguna" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Sembunyikan waktu" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Tak dinyatakan" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Kata Sandi:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Boot Ulang" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Matikan" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "log masuk" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Lebih banyak ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Ramban untuk lebih banyak gambar..." lxdm-0.5.3/po/it.po000066400000000000000000000063051262556610000140640ustar00rootroot00000000000000# Translation of lxdm to Italian # Copyright (C) 2012 THE lxdm'S COPYRIGHT HOLDER # This file is distributed under the same license as the lxdm package. # Alessandro , 2011\n" # Daniele Forsi , 2012 msgid "" msgstr "" "Project-Id-Version: lxem r2100\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-07-15 12:01+0000\n" "Last-Translator: Daniele \n" "Language-Team: Italian\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.5.0\n" "X-POOTLE-MTIME: 1373889713.0\n" "X-Pootle-Path: /it/lxdm/po/it.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Utente:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Desktop:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Lingua:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tastiera:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Accesso automatico" #: ../data/config.ui.h:3 msgid "Background" msgstr "Sfondo" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Predefinito" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Abilitare il pannello inferiore" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opzioni del pannello inferiore" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Pannello trasparente" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Nascondere le sessioni" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Mostra menu lingue" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Mostra disposizioni tastiera" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Nascondere il pulsante «Esci»" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Altre opzioni" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Mostra elenco utenti" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Nascondere l'ora" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Non specificato" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Password:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Riavvia" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Spegni" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "connesso" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Di più..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Esplora altre immagini..." #~ msgid "US English" #~ msgstr "Inglese US" #~ msgid "Simpllified Chinese" #~ msgstr "Cinese Semplificato" #~ msgid "Traditional Chinese" #~ msgstr "Cinese Tradizionale" #~ msgid "German" #~ msgstr "Tedesco" #~ msgid "Italian" #~ msgstr "Italiano" #~ msgid "Portuguese" #~ msgstr "Portoghese" lxdm-0.5.3/po/ja.po000066400000000000000000000060771262556610000140500ustar00rootroot00000000000000# Japanese translations for PACKAGE package # PACKAGE パッケージã«å¯¾ã™ã‚‹è‹±è¨³. # Copyright (C) 2009, 2010 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Hironao Komatsu , 2009, 2010. # msgid "" msgstr "" "Project-Id-Version: lxdm 0.3.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2010-10-07 18:43+0900\n" "Last-Translator: Hironao Komatsu \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Pootle-Path: /ja/lxdm/po/ja.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "ユーザ:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "デスクトップ:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "言語:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "キーボード:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm 設定" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "自動ログイン" #: ../data/config.ui.h:3 msgid "Background" msgstr "背景" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "デフォルト" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "下部パãƒãƒ«ã‚’有効ã«ã™ã‚‹" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "下部パãƒãƒ«ã®ã‚ªãƒ—ション" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "パãƒãƒ«ã‚’逿˜Žã«ã™ã‚‹" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "セッションを隠ã™" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "言語メニューを表示" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "キーボードã®ãƒ¬ã‚¤ã‚¢ã‚¦ãƒˆã‚’表示" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "終了ボタンを隠ã™" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "ãã®ä»–ã®ã‚ªãƒ—ション" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "ユーザã®ãƒªã‚¹ãƒˆã‚’表示" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "時刻を隠ã™" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "未指定" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "パスワード:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "å†èµ·å‹•(_R)" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "シャットダウン(_S)" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "ログイン中" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "ãã®ä»– ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "ä»–ã®ç”»åƒã‚’一覧ã™ã‚‹..." lxdm-0.5.3/po/ko.po000066400000000000000000000055161262556610000140640ustar00rootroot00000000000000# Korean translation for lxdm. # Copyright (C) 2010 Free Software Foundation. Inc. # This file is distributed under the same license as the lxdm package. # Hyun-Gwan Seo , 2010. # Seong-ho Cho , 2012. # msgid "" msgstr "" "Project-Id-Version: lxdm.master\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-16 17:30+0900\n" "Last-Translator: Seong-ho Cho \n" "Language-Team: Seong-ho Cho \n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /ko/lxdm/po/ko.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "사용ìž:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "ë°ìФí¬í†±:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "언어:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "키보드:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm 설정" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "ìžë™ 로그ì¸" #: ../data/config.ui.h:3 msgid "Background" msgstr "비경" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "기본값" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "하단 ì°½ 활성화" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "하단 ì°½ 옵션" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "투명 ì°½" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "세션 숨기기" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "언어 메뉴 표시" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "키보드 배치 표시" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "나가기 단추 숨기기" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "다른 옵션" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "ì‚¬ìš©ìž ëª©ë¡ í‘œì‹œ" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "시간 숨기기" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "미분류" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "암호:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "재시작(_R)" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "종료(_S)" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "ë¡œê·¸ì¸ í•¨" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "ë‹¤ìŒ ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "ë‹¤ìŒ ê·¸ë¦¼ 찾아보기..." lxdm-0.5.3/po/lt.po000066400000000000000000000060321262556610000140640ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # Algimantas MargeviÄius , 2012. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-09-24 08:56+0300\n" "Last-Translator: Algimantas MargeviÄius \n" "Language-Team: Lietuvių <>\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "(n%100<10 || n%100>=20) ? 1 : 2)\n" "X-Generator: Gtranslator 2.91.5\n" "X-Pootle-Path: /lt/lxdm/po/lt.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Naudotojas:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Darbastalis:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Kalba:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "KlaviatÅ«ra:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatinis prisijungimas" #: ../data/config.ui.h:3 msgid "Background" msgstr "Fonas" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Numatyta" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Ä®jungti apatinį skydelį" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Apatinio skydelio parinktys" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Permatomas skydelis" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "SlÄ—pti sesijas" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Rodyti kalbų meniu" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Rodyti klaviatÅ«ros iÅ¡dÄ—stymÄ…" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "SlÄ—pti išėjimo mygtukÄ…" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Kitos parinktys" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Rodyti naudotojų sÄ…rašą" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "SlÄ—pti laikÄ…" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Nenurodyta" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Slaptažodis:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Perkrauti" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_IÅ¡jungti" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "prisijungÄ™s" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Daugiau ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "NarÅ¡yti daugiau paveikslÄ—lių..." lxdm-0.5.3/po/ml.po000066400000000000000000000045761262556610000140700ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /ml/lxdm/po/ml.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/ms.po000066400000000000000000000045761262556610000140770ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /ms/lxdm/po/ms.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/nb.po000066400000000000000000000050701262556610000140450ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2010-11-04 11:20+0200\n" "Last-Translator: Sam \n" "Language-Team: LANGUAGE \n" "Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /nb/lxdm/po/nb.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Bruker:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Skrivebord:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "SprÃ¥k:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tastatur:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Standard" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Uangitt" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Passord:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Omstart" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "SlÃ¥ av" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "Logget pÃ¥" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Mere..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/nl.po000066400000000000000000000062751262556610000140670ustar00rootroot00000000000000# Dutch translation of the lxdm package. # Copyright (C) the author of the lxdm package. # This file is distributed under the same license as the # lxdm package. # Vincent Van Houtte, 2009. # Pjotr, 2011. msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2014-01-28 14:27+0000\n" "Last-Translator: Pjotr \n" "Language-Team: Dutch\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.5.0\n" "X-POOTLE-MTIME: 1390919255.0\n" "X-Pootle-Path: /nl/lxdm/po/nl.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Gebruiker:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Bureaublad:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Taal:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Toetsenbord:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatisch aanmelden" #: ../data/config.ui.h:3 msgid "Background" msgstr "Achtergrond" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Standaard" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Onderste werkbalk inschakelen" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opties voor onderste werkbalk" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Doorzichtige werkbalk" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Sessies verbergen" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Toon talenmenu" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Toon toetsenbordindelingen" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Verberg afsluitknop" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Andere opties" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Toon gebruikerslijst" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Verberg tijd" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Niet-gespecificeerd" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Wachtwoord:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Herstarten" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Afsluiten" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "aangemeld" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Meer ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Blader naar meer afbeeldingen..." #~ msgid "US English" #~ msgstr "Engels (Verenigde Staten)" #~ msgid "Simpllified Chinese" #~ msgstr "Chinees (vereenvoudigd)" #~ msgid "Traditional Chinese" #~ msgstr "Chinees (traditioneel)" #~ msgid "German" #~ msgstr "Duits" #~ msgid "Italian" #~ msgstr "Italiaans" #~ msgid "Portuguese" #~ msgstr "Portugees" lxdm-0.5.3/po/nn.po000066400000000000000000000045761262556610000140730ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /nn/lxdm/po/nn.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/pl.po000066400000000000000000000066001262556610000140610ustar00rootroot00000000000000# Polish translations for PACKAGE package # Polskie tÃ…?umaczenia dla pakietu PACKAGE. # Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Grzegorz Gibas , 2009. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2014-08-25 20:25+0000\n" "Last-Translator: Piotr Sokół \n" "Language-Team: Polish\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.6.0-rc1\n" "X-POOTLE-MTIME: 1408998336.000000\n" "X-Pootle-Path: /pl/lxdm/po/pl.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Nazwa użytkownika:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Åšrodowisko graficzne:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "JÄ™zyk:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "UkÅ‚ad klawiatury:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Konfiguracja lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatyczne logowanie" #: ../data/config.ui.h:3 msgid "Background" msgstr "TÅ‚o" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "DomyÅ›lny" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Włączenie dolnego panelu" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opcje górnego panelu" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Przezroczysty panel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ukrycie sesji" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "WyÅ›wietlanie listy jÄ™zyków" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "WyÅ›wietlanie listy ukÅ‚adów klawiatury" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ukrycie przycisku wyłączenia" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Inne opcje" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "WyÅ›wietlanie listy użytkowników" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ukrywanie czasu" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Niezdefiniowany" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "HasÅ‚o:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Uruchom ponownie" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Wyłącz" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "zalogowany" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "WiÄ™cej..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "PrzeglÄ…daj w poszukiwaniu obrazów..." #~ msgid "US English" #~ msgstr "Angielski US" #~ msgid "Simpllified Chinese" #~ msgstr "ChiÃ…?ski Uproszczony" #~ msgid "Traditional Chinese" #~ msgstr "ChiÃ…?ski Tradycyjny" #~ msgid "German" #~ msgstr "Niemiecki" #~ msgid "Italian" #~ msgstr "WÃ…?oski" #~ msgid "Portuguese" #~ msgstr "Portugalski" lxdm-0.5.3/po/ps.po000066400000000000000000000045761262556610000141020ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /ps/lxdm/po/ps.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/pt.po000066400000000000000000000057241262556610000140770ustar00rootroot00000000000000# Portuguese translation for lxdm package. # Copyright (C) 2009 THE lxdm COPYRIGHT HOLDER # This file is distributed under the same license as the lxdm package. # Sérgio Marques , 2009-2010. # Adaptado ao acordo ortográfico de 1990 msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2015-03-26 13:31+0000\n" "Last-Translator: Sérgio Marques \n" "Language-Team: \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.7.0-alpha1\n" "X-POOTLE-MTIME: 1427376707.000000\n" "X-Pootle-Path: /pt/lxdm/po/pt.po\n" "X-Pootle-Revision: 85\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Utilizador:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Ambiente de trabalho:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Idioma:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Teclado:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Configuração do lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Inicio automático" #: ../data/config.ui.h:3 msgid "Background" msgstr "Fundo" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Pré-definido" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Ativar painel inferior" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opções do painel inferior" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Painel transparente" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ocultar sessões" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Mostrar menu de idiomas" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Mostrar esquemas de teclado" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ocultar botão Sair" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Outras opções" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Mostrar lista de utilizadores" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ocultar horas" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Não especificado" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Palavra-passe:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Reiniciar" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Desligar" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "sessão iniciada" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Mais..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Procurar mais imagens..." lxdm-0.5.3/po/pt_BR.po000066400000000000000000000056321262556610000144600ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Sérgio Cipolla , 2010. # msgid "" msgstr "" "Project-Id-Version: LXDM 0.3.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-09-24 19:33+0200\n" "Last-Translator: Adriano \n" "Language-Team: \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Portuguese\n" "X-Poedit-Country: BRAZIL\n" "X-Pootle-Path: /pt_BR/lxdm/po/pt_BR.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Usuário:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Ambiente:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Idioma:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Teclado:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm config" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Autenticação automática" #: ../data/config.ui.h:3 msgid "Background" msgstr "Plano de fundo" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Padrão" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Ativar painel inferior" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Opções do Painel Inferior" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Painel Transparente" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ocultar sessões" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Mostrar menu de idiomas" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Mostrar disposições de teclado" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ocultar botão sair" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Outras Opções" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Mostrar lista de usuários" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ocultar tempo" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Não especificado" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Senha:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Reiniciar" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "De_sligar" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "conectado" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Mais..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Procurar outras imagens..." lxdm-0.5.3/po/ru.po000066400000000000000000000070011262556610000140700ustar00rootroot00000000000000# msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-02 19:53+0200\n" "Last-Translator: Alexander \n" "Language-Team: \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Russian\n" "X-Poedit-SourceCharset: utf-8\n" "X-Poedit-Country: RUSSIAN FEDERATION\n" "X-Pootle-Path: /ru/lxdm/po/ru.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Пользователь:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "СеанÑ:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Язык:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Клавиатура:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "ÐºÐ¾Ð½Ñ„Ð¸Ð³ÑƒÑ€Ð°Ñ†Ð¸Ñ lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "ÐвтоматичеÑкий вход" #: ../data/config.ui.h:3 msgid "Background" msgstr "Фон" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "По умолчанию" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Включить нижнюю панель" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Параметры нижней панели" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "ÐŸÑ€Ð¾Ð·Ñ€Ð°Ñ‡Ð½Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Скрыть ÑеÑÑии" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Показать меню выбора Ñзыка" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Показать раÑкладки клавиатуры" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Скрыть кнопку выхода" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Другие параметры" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Показать ÑпиÑок пользователей" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Скрыть времÑ" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Ðезадано" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Пароль:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Перезагрузка" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Выключение" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "вошел" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Ещё ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Ещё изображениÑ..." #~ msgid "US English" #~ msgstr "ÐнглийÑкий" #~ msgid "Simpllified Chinese" #~ msgstr "Упрощенный китайÑкий " #~ msgid "Traditional Chinese" #~ msgstr "Традиционный китайÑкий" #~ msgid "German" #~ msgstr "Ðемецкий" #~ msgid "Italian" #~ msgstr "ИтальÑнÑкий" #~ msgid "Portuguese" #~ msgstr "ПортугальÑкий" lxdm-0.5.3/po/sk.po000066400000000000000000000050311262556610000140600ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2010-01-16 19:21+0100\n" "Last-Translator: Ivan Masár \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /sk/lxdm/po/sk.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Používateľ:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Plocha:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Jazyk:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 #, fuzzy msgid "Keyboard:" msgstr "Rozloženie klávesnice:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Predvolené" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "NeurÄené" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Heslo:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_ReÅ¡tartovaÅ¥" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Vypnúť" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "prihlásený" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "ÄŽalÅ¡ie..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/sl.po000066400000000000000000000056131262556610000140670ustar00rootroot00000000000000# Slovenian translation of lxdm. # Copyright (C) 2011 - 2013 Free Software Foundation, Inc. # This file is distributed under the same license as the lxdm package. # Klemen KoÅ¡ir , 2011 - 2013. msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-07-19 15:53+0000\n" "Last-Translator: Klemen KoÅ¡ir \n" "Language-Team: Slovenian \n" "Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || " "n%100==4 ? 3 : 0);\n" "X-Generator: Translate Toolkit 1.12.0\n" "X-Pootle-Path: /sl/lxdm/po/sl.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Uporabnik:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Namizje:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Jezik:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tipkovnica:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "Nastavitve LXDM" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Samodejna prijava" #: ../data/config.ui.h:3 msgid "Background" msgstr "Ozadje" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Privzeto" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "OmogoÄi spodnji pult" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Možnosti spodnjega pulta" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Prozoren pult" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Skrij seje" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Pokaži seznam jezikov" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Pokaži razporeditve tipk" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Skrij gumb za izhod" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Druge možnosti" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Pokaži seznam uporabnikov" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Skrij uro" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "NedoloÄeno" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Geslo:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Ponovni zagon" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Izklop" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "Prijavljen" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "VeÄ ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Brskaj ..." lxdm-0.5.3/po/sr.po000066400000000000000000000063461262556610000141010ustar00rootroot00000000000000# Serbian translation for lxdm package # Copyright (C) 2010 The LXDE Project # This file is distributed under the same license as the lxdm package. # Jay A. Fleming , 2011. # msgid "" msgstr "" "Project-Id-Version: lxdm\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2013-09-06 02:20+0100\n" "Last-Translator: Jay A.Fleming \n" "Language-Team: \n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /sr/lxdm/po/sr.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "КориÑник:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Радна површ:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Језик:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "TаÑтатурa:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm подешавање" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Самопријављивање" #: ../data/config.ui.h:3 msgid "Background" msgstr "Позадина" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Подразумевано" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Омогући доњи панел" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "ПоÑтавке доњег панела" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Провидан панел" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ðе приказуј ÑеÑије" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Прикажи мени за избор језика" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Прикажи раÑпореде таÑтатуре" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ðе приказуј дугме за излаз" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Друге поÑтавке" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Прикажи лиÑту кориÑника" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ðе приказуј време" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Ðеодређено" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Лозинка:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "Поново пок_рени" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "Уга_Ñи" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "пријављен у" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Више..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Потражи више Ñлика..." lxdm-0.5.3/po/sv.po000066400000000000000000000063631262556610000141040ustar00rootroot00000000000000# Swedish translation of the LXDM package. # Copyright (C) 2010 Martin Bagge # This file is distributed under the same license as the LXDM package. # Martin Bagge , 2010. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-09-23 15:03+0200\n" "Last-Translator: Martin \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Swedish\n" "X-Poedit-Country: Sweden\n" "X-Pootle-Path: /sv/lxdm/po/sv.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Användare:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Skrivbord:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "SprÃ¥k:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Tangentbord:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm-inställningar" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Automatisk inloggning" #: ../data/config.ui.h:3 msgid "Background" msgstr "Bakgrund" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Standard" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Aktivera panel i nederkant" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Alternativ för panel i nederkant" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Genomskinlig panel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Göm sessioner" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Visa sprÃ¥kmeny" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Visa tangentbordsuppsättningar" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Göm knapp för att avsluta" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Andra alternativ" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Visa användarlista" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Göm tid" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Ospecificerat" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Lösenord:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Starta om" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Avsluta" # ? #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "inloggade" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Mer ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Leta upp fler bilder..." #~ msgid "US English" #~ msgstr "Amerikansk engelska" #~ msgid "Simpllified Chinese" #~ msgstr "Förenklad kinesiska" #~ msgid "Traditional Chinese" #~ msgstr "Traditionell kinesiska" #~ msgid "German" #~ msgstr "Tyska" #~ msgid "Italian" #~ msgstr "Italienska" #~ msgid "Portuguese" #~ msgstr "Portugisiska" lxdm-0.5.3/po/tr.po000066400000000000000000000055561262556610000141040ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-08 12:36+0200\n" "Last-Translator: Necdet \n" "Language-Team: LANGUAGE \n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /tr/lxdm/po/tr.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Kullanıcı:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Masaüstü:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Dil:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "TuÅŸtakımı:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm yapılandırması" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Otomatik Oturum Aç" #: ../data/config.ui.h:3 msgid "Background" msgstr "Arkaplan" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Öntanımlı" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Alt paneli etkinleÅŸtir" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Alt Panel Seçenekleri" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Åžeffaf panel" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Oturumları gizle" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Dil menüsünü göster" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Klavye yerleÅŸimini göster" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Çıkış düğmesini gizle" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "DiÄŸer Seçenekler" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Kullanıcı listesini göster" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Zamanı gizle" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "BelirlenmemiÅŸ" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Parola:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Yeniden BaÅŸlat" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Kapat" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "giriÅŸ yaptı" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Daha Fazla..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Daha fazla resim göster" lxdm-0.5.3/po/uk.po000066400000000000000000000063521262556610000140710ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-09-28 23:32+0200\n" "Last-Translator: Y P \n" "Language-Team: LANGUAGE \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /uk/lxdm/po/uk.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "КориÑтувач:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Робочий Ñтіл:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Мова:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Клавіатура:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "ÐšÐ¾Ð½Ñ„Ñ–Ð³ÑƒÑ€Ð°Ñ†Ñ–Ñ lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Ðвтоматичний вхід" #: ../data/config.ui.h:3 msgid "Background" msgstr "Тло" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "По замовчуванню" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Включити нижню панель" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Параметри нижньої панелі" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Прозора панель" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Приховати ÑеÑÑ–Ñ—" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Показати меню мов" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Показати розкладки клавіатури" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Сховати кнопку виходу" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Інші параметри" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Показати ÑпиÑок кориÑтувачів" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Сховати чаÑ" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Ðевизначено" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Пароль:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Перезавантажити" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Виключити" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "ввійшов" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Більше ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Показати більше малюнків..." lxdm-0.5.3/po/ur.po000066400000000000000000000045761262556610000141060ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /ur/lxdm/po/ur.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/ur_PK.po000066400000000000000000000046041262556610000144700ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Pootle-Path: /ur_PK/lxdm/po/ur_PK.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "" #: ../data/config.ui.h:3 msgid "Background" msgstr "" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "" #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "" lxdm-0.5.3/po/vi.po000066400000000000000000000060621262556610000140660ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: LXDE\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-12 05:04+0200\n" "Last-Translator: Duy Hung \n" "Language-Team: Viet \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" "X-Poedit-Language: Vietnamese\n" "X-Poedit-Country: Vietnam\n" "X-Pootle-Path: /vi/lxdm/po/vi.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "Ngưá»i dùng:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "Máy tính:" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "Ngôn ngữ:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "Bàn phím:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "cấu hình lxdm" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "Tá»± động đăng nhập" #: ../data/config.ui.h:3 msgid "Background" msgstr "Ná»n" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "Mặc định" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "Bật bảng Ä‘iá»u khiển dưới cùng" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "Tùy chá»n bảng Ä‘iá»u khiển dưới cùng" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "Bảng Ä‘iá»u khiển trong suốt" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "Ẩn phiên làm việc" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "Hiển thị trình đơn ngôn ngữ" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "Hiển thị kiểu bàn phím" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "Ẩn nút thoát" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "Tùy chá»n khác" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "Hiển thị danh sách ngưá»i dùng" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "Ẩn thá»i gian" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "Chưa xác định" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "Mật khẩu:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "_Khởi động lại" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "_Tắt máy" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "đã đăng nhập" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "Xem thêm.." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "Duyệt thêm nhiá»u ảnh..." lxdm-0.5.3/po/zh_CN.po000066400000000000000000000061351262556610000144520ustar00rootroot00000000000000# Chinese translations for lxdm package # lxdm 软件包的简体中文翻译. # Copyright (C) 2009 THE lxdm'S COPYRIGHT HOLDER # This file is distributed under the same license as the lxdm package. # dgod , 2009. # msgid "" msgstr "" "Project-Id-Version: lxdm 0.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-10-14 12:27+0200\n" "Last-Translator: Wylmer \n" "Language-Team: Chinese (simplified)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /zh_CN/lxdm/po/zh_CN.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "用户:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "桌é¢ï¼š" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "语言:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "键盘:" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm设置" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "自动登录" #: ../data/config.ui.h:3 msgid "Background" msgstr "背景" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "默认" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "å¯ç”¨åº•éƒ¨é¢æ¿" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "åº•éƒ¨é¢æ¿é€‰é¡¹" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "逿˜Žé¢æ¿" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "éšè—会è¯" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "显示语言èœå•" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "显示键盘布局" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "éšè—退出按钮" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "其他选项" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "显示用户列表" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "éšè—æ—¶é—´" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "未定义" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "密ç ï¼š" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "é‡å¯(_R)" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "关机(_S)" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "已登录" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "更多 ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "æµè§ˆæ›´å¤šå›¾ç‰‡..." #~ msgid "US English" #~ msgstr "美国英语" #~ msgid "Simpllified Chinese" #~ msgstr "简体中文" #~ msgid "Traditional Chinese" #~ msgstr "ç¹ä½“中文" #~ msgid "German" #~ msgstr "德语" #~ msgid "Italian" #~ msgstr "æ„大利语" #~ msgid "Portuguese" #~ msgstr "è‘¡è„牙语" lxdm-0.5.3/po/zh_TW.po000066400000000000000000000061551262556610000145060ustar00rootroot00000000000000# Chinese translations for lxdm package # Traditional Chinese translation for lxdm. # Copyright (C) 2009 THE lxdm'S COPYRIGHT HOLDER # This file is distributed under the same license as the lxdm package. # dgod , 2009. # msgid "" msgstr "" "Project-Id-Version: lxdm 0.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-13 23:52+0100\n" "PO-Revision-Date: 2012-09-30 05:32+0200\n" "Last-Translator: Walter \n" "Language-Team: Chinese (traditional)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Pootle 2.0.5\n" "X-Pootle-Path: /zh_TW/lxdm/po/zh_TW.po\n" "X-Pootle-Revision: 0\n" #: ../data/lxdm.glade.h:1 ../data/themes/Industrial/greeter.ui.h:1 #: ../src/greeter.c:141 ../src/greeter.c:239 ../src/greeter.c:935 msgid "User:" msgstr "使用者:" #: ../data/lxdm.glade.h:2 ../data/themes/Industrial/greeter.ui.h:2 msgid "Desktop:" msgstr "桌é¢ï¼š" #: ../data/lxdm.glade.h:3 ../data/themes/Industrial/greeter.ui.h:3 msgid "Language:" msgstr "語言:" #: ../data/lxdm.glade.h:4 ../data/themes/Industrial/greeter.ui.h:4 msgid "Keyboard:" msgstr "éµç›¤ï¼š" #: ../data/config.ui.h:1 msgid "lxdm config" msgstr "lxdm 設定" #: ../data/config.ui.h:2 msgid "Automatic Login" msgstr "自動登入" #: ../data/config.ui.h:3 msgid "Background" msgstr "背景" #: ../data/config.ui.h:4 ../src/greeter.c:307 ../src/lang.c:103 msgid "Default" msgstr "é è¨­" #: ../data/config.ui.h:5 msgid "Enable bottom panel" msgstr "å•Ÿç”¨åº•é¢æ¿" #: ../data/config.ui.h:6 msgid "Bottom Panel Options" msgstr "åº•é¢æ¿é¸é …" #: ../data/config.ui.h:7 msgid "Transparent panel" msgstr "逿˜Žé¢æ¿" #: ../data/config.ui.h:8 msgid "Hide sessions" msgstr "éš±è—工作階段" #: ../data/config.ui.h:9 msgid "Show languages menu" msgstr "顯示語言é¸å–®" #: ../data/config.ui.h:10 msgid "Show keyboard layouts" msgstr "顯示éµç›¤é…ç½®" #: ../data/config.ui.h:11 msgid "Hide quit button" msgstr "éš±è—çµæŸæŒ‰éˆ•" #: ../data/config.ui.h:12 msgid "Other Options" msgstr "å…¶ä»–é¸é …" #: ../data/config.ui.h:13 msgid "Show user list" msgstr "顯示使用者清單" #: ../data/config.ui.h:14 msgid "Hide time" msgstr "éš±è—æ™‚é–“" #: ../src/gdm/gdm-languages.c:614 msgid "Unspecified" msgstr "未定義" #: ../src/greeter.c:168 ../src/greeter.c:197 ../src/greeter.c:921 msgid "Password:" msgstr "密碼:" #: ../src/greeter.c:726 msgid "_Reboot" msgstr "釿–°é–‹æ©Ÿ(_R)" #: ../src/greeter.c:730 msgid "_Shutdown" msgstr "關機(_S)" #: ../src/greeter.c:1041 msgid "" "\n" "logged in" msgstr "" "\n" "已登入" #: ../src/greeter.c:1055 ../src/lang.c:125 msgid "More ..." msgstr "更多 ..." #: ../src/config.c:313 msgid "Browse for more pictures..." msgstr "ç€è¦½æ›´å¤šåœ–片..." #~ msgid "US English" #~ msgstr "美國英語" #~ msgid "Simpllified Chinese" #~ msgstr "簡體中文" #~ msgid "Traditional Chinese" #~ msgstr "正體中文" #~ msgid "German" #~ msgstr "德語" #~ msgid "Italian" #~ msgstr "æ„大利語" #~ msgid "Portuguese" #~ msgstr "è‘¡è„牙語" lxdm-0.5.3/src/000077500000000000000000000000001262556610000132555ustar00rootroot00000000000000lxdm-0.5.3/src/Makefile.am000066400000000000000000000046441262556610000153210ustar00rootroot00000000000000NULL = sbin_PROGRAMS = lxdm-binary lxdm_binary_CFLAGS = \ $(GLIB_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DXSESSIONS_DIR=\"@datarootdir@/xsessions\" \ -DLXDM_DATA_DIR=@datadir@/@PACKAGE@ \ -DLXDM_NUMLOCK_PATH=\"@libexecdir@/lxdm-numlock\" \ -DLXDM_SESSION_PATH=\"@libexecdir@/lxdm-session\" \ $(CONSOLEKIT_CFLAGS) \ -Werror-implicit-function-declaration \ -Wall \ -rdynamic \ $(NULL) lxdm_binary_LDADD = \ $(GLIB_LIBS) \ $(XCONN_LIBS) \ $(CONSOLEKIT_LIBS) \ $(NULL) lxdm_binary_SOURCES = \ lxdm.c lxdm.h ui.c lxcom.c lxcom.h xconn.c xconn.h auth.c auth.h lxcommon.h \ $(NULL) libexec_PROGRAMS = lxdm-greeter-gdk lxdm-numlock lxdm-greeter-gtk lxdm-session lxdm_greeter_gtk_CFLAGS = \ $(GTK_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DXSESSIONS_DIR=\"@datarootdir@/xsessions\" \ -DLXDM_DATA_DIR=\"@datadir@/@PACKAGE@\" \ -DPACKAGE_LOCALE_DIR=\"@localedir@\" \ -DGNOMELOCALEDIR=\"@localedir@\" \ -DLIBLOCALEDIR=\"@prefix@/lib/locale\" \ -Werror-implicit-function-declaration \ -Wall \ $(NULL) lxdm_greeter_gtk_LDADD = \ $(XLIB_LIBS) \ $(GTK_LIBS) \ $(NULL) lxdm_greeter_gtk_SOURCES = \ greeter.c \ lang.c lang.h \ gdm/gdm-languages.c gdm/gdm-languages.h \ gdm/locarchive.h \ lxcom.c lxcom.h \ greeter-utils.c greeter-utils.h \ lxcommon.h \ $(NULL) lxdm_greeter_gdk_CFLAGS = \ $(GTK_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DXSESSIONS_DIR=\"@datarootdir@/xsessions\" \ -DLXDM_DATA_DIR=\"@datadir@/@PACKAGE@\" \ -DPACKAGE_LOCALE_DIR=\"@localedir@\" \ -DGNOMELOCALEDIR=\"@localedir@\" \ -DLIBLOCALEDIR=\"@prefix@/lib/locale\" \ -Werror-implicit-function-declaration \ -Wall \ $(NULL) lxdm_greeter_gdk_LDADD = \ $(XLIB_LIBS) \ $(GDK_LIBS) \ $(NULL) lxdm_greeter_gdk_SOURCES = \ greeter-gdk.c greeter-utils.c lxdm_numlock_SOURCES = \ numlock.c \ $(NULL) lxdm_numlock_CFLAGS = \ $(XLIB_CFLAGS) \ -DLXDM_NUMLOCK_PATH=\"@libexecdir@/lxdm-numlock\" \ $(NULL) lxdm_numlock_LDADD = \ $(XLIB_LIBS) \ $(NULL) lxdm_session_SOURCES = \ pam.c \ $(NULL) lxdm_session_CFLAGS = \ $(GLIB_CFLAGS) \ $(NULL) lxdm_session_LDADD = \ $(GLIB_LIBS) \ $(NULL) bin_PROGRAMS = lxdm-config lxdm_config_CFLAGS = \ $(GTK_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DLXDM_DATA_DIR=\"@datadir@/@PACKAGE@\" \ $(NULL) lxdm_config_LDADD = \ $(GTK_LIBS) \ $(NULL) lxdm_config_SOURCES = \ config.c \ $(NULL) lxdm-0.5.3/src/Makefile.in000066400000000000000000001621451262556610000153330ustar00rootroot00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : sbin_PROGRAMS = lxdm-binary$(EXEEXT) libexec_PROGRAMS = lxdm-greeter-gdk$(EXEEXT) lxdm-numlock$(EXEEXT) \ lxdm-greeter-gtk$(EXEEXT) lxdm-session$(EXEEXT) bin_PROGRAMS = lxdm-config$(EXEEXT) subdir = src 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) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" \ "$(DESTDIR)$(sbindir)" PROGRAMS = $(bin_PROGRAMS) $(libexec_PROGRAMS) $(sbin_PROGRAMS) am__objects_1 = am_lxdm_binary_OBJECTS = lxdm_binary-lxdm.$(OBJEXT) \ lxdm_binary-ui.$(OBJEXT) lxdm_binary-lxcom.$(OBJEXT) \ lxdm_binary-xconn.$(OBJEXT) lxdm_binary-auth.$(OBJEXT) \ $(am__objects_1) lxdm_binary_OBJECTS = $(am_lxdm_binary_OBJECTS) am__DEPENDENCIES_1 = lxdm_binary_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) lxdm_binary_LINK = $(CCLD) $(lxdm_binary_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_lxdm_config_OBJECTS = lxdm_config-config.$(OBJEXT) $(am__objects_1) lxdm_config_OBJECTS = $(am_lxdm_config_OBJECTS) lxdm_config_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) lxdm_config_LINK = $(CCLD) $(lxdm_config_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_lxdm_greeter_gdk_OBJECTS = lxdm_greeter_gdk-greeter-gdk.$(OBJEXT) \ lxdm_greeter_gdk-greeter-utils.$(OBJEXT) lxdm_greeter_gdk_OBJECTS = $(am_lxdm_greeter_gdk_OBJECTS) lxdm_greeter_gdk_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) lxdm_greeter_gdk_LINK = $(CCLD) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__dirstamp = $(am__leading_dot)dirstamp am_lxdm_greeter_gtk_OBJECTS = lxdm_greeter_gtk-greeter.$(OBJEXT) \ lxdm_greeter_gtk-lang.$(OBJEXT) \ gdm/lxdm_greeter_gtk-gdm-languages.$(OBJEXT) \ lxdm_greeter_gtk-lxcom.$(OBJEXT) \ lxdm_greeter_gtk-greeter-utils.$(OBJEXT) $(am__objects_1) lxdm_greeter_gtk_OBJECTS = $(am_lxdm_greeter_gtk_OBJECTS) lxdm_greeter_gtk_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) lxdm_greeter_gtk_LINK = $(CCLD) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_lxdm_numlock_OBJECTS = lxdm_numlock-numlock.$(OBJEXT) \ $(am__objects_1) lxdm_numlock_OBJECTS = $(am_lxdm_numlock_OBJECTS) lxdm_numlock_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) lxdm_numlock_LINK = $(CCLD) $(lxdm_numlock_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_lxdm_session_OBJECTS = lxdm_session-pam.$(OBJEXT) $(am__objects_1) lxdm_session_OBJECTS = $(am_lxdm_session_OBJECTS) lxdm_session_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) lxdm_session_LINK = $(CCLD) $(lxdm_session_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(lxdm_binary_SOURCES) $(lxdm_config_SOURCES) \ $(lxdm_greeter_gdk_SOURCES) $(lxdm_greeter_gtk_SOURCES) \ $(lxdm_numlock_SOURCES) $(lxdm_session_SOURCES) DIST_SOURCES = $(lxdm_binary_SOURCES) $(lxdm_config_SOURCES) \ $(lxdm_greeter_gdk_SOURCES) $(lxdm_greeter_gtk_SOURCES) \ $(lxdm_numlock_SOURCES) $(lxdm_session_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONSOLEKIT_CFLAGS = @CONSOLEKIT_CFLAGS@ CONSOLEKIT_LIBS = @CONSOLEKIT_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FULL_LIBEXECDIR = @FULL_LIBEXECDIR@ GDK_CFLAGS = @GDK_CFLAGS@ GDK_LIBS = @GDK_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XCONN_CFLAGS = @XCONN_CFLAGS@ XCONN_LIBS = @XCONN_LIBS@ XGETTEXT = @XGETTEXT@ XLIB_CFLAGS = @XLIB_CFLAGS@ XLIB_LIBS = @XLIB_LIBS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = lxdm_binary_CFLAGS = \ $(GLIB_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DXSESSIONS_DIR=\"@datarootdir@/xsessions\" \ -DLXDM_DATA_DIR=@datadir@/@PACKAGE@ \ -DLXDM_NUMLOCK_PATH=\"@libexecdir@/lxdm-numlock\" \ -DLXDM_SESSION_PATH=\"@libexecdir@/lxdm-session\" \ $(CONSOLEKIT_CFLAGS) \ -Werror-implicit-function-declaration \ -Wall \ -rdynamic \ $(NULL) lxdm_binary_LDADD = \ $(GLIB_LIBS) \ $(XCONN_LIBS) \ $(CONSOLEKIT_LIBS) \ $(NULL) lxdm_binary_SOURCES = \ lxdm.c lxdm.h ui.c lxcom.c lxcom.h xconn.c xconn.h auth.c auth.h lxcommon.h \ $(NULL) lxdm_greeter_gtk_CFLAGS = \ $(GTK_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DXSESSIONS_DIR=\"@datarootdir@/xsessions\" \ -DLXDM_DATA_DIR=\"@datadir@/@PACKAGE@\" \ -DPACKAGE_LOCALE_DIR=\"@localedir@\" \ -DGNOMELOCALEDIR=\"@localedir@\" \ -DLIBLOCALEDIR=\"@prefix@/lib/locale\" \ -Werror-implicit-function-declaration \ -Wall \ $(NULL) lxdm_greeter_gtk_LDADD = \ $(XLIB_LIBS) \ $(GTK_LIBS) \ $(NULL) lxdm_greeter_gtk_SOURCES = \ greeter.c \ lang.c lang.h \ gdm/gdm-languages.c gdm/gdm-languages.h \ gdm/locarchive.h \ lxcom.c lxcom.h \ greeter-utils.c greeter-utils.h \ lxcommon.h \ $(NULL) lxdm_greeter_gdk_CFLAGS = \ $(GTK_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DXSESSIONS_DIR=\"@datarootdir@/xsessions\" \ -DLXDM_DATA_DIR=\"@datadir@/@PACKAGE@\" \ -DPACKAGE_LOCALE_DIR=\"@localedir@\" \ -DGNOMELOCALEDIR=\"@localedir@\" \ -DLIBLOCALEDIR=\"@prefix@/lib/locale\" \ -Werror-implicit-function-declaration \ -Wall \ $(NULL) lxdm_greeter_gdk_LDADD = \ $(XLIB_LIBS) \ $(GDK_LIBS) \ $(NULL) lxdm_greeter_gdk_SOURCES = \ greeter-gdk.c greeter-utils.c lxdm_numlock_SOURCES = \ numlock.c \ $(NULL) lxdm_numlock_CFLAGS = \ $(XLIB_CFLAGS) \ -DLXDM_NUMLOCK_PATH=\"@libexecdir@/lxdm-numlock\" \ $(NULL) lxdm_numlock_LDADD = \ $(XLIB_LIBS) \ $(NULL) lxdm_session_SOURCES = \ pam.c \ $(NULL) lxdm_session_CFLAGS = \ $(GLIB_CFLAGS) \ $(NULL) lxdm_session_LDADD = \ $(GLIB_LIBS) \ $(NULL) lxdm_config_CFLAGS = \ $(GTK_CFLAGS) \ -DCONFIG_FILE=\"@sysconfdir@/@PACKAGE@/@PACKAGE@.conf\" \ -DLXDM_DATA_DIR=\"@datadir@/@PACKAGE@\" \ $(NULL) lxdm_config_LDADD = \ $(GTK_LIBS) \ $(NULL) lxdm_config_SOURCES = \ config.c \ $(NULL) all: all-am .SUFFIXES: .SUFFIXES: .c .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) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/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) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; 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) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(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: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) install-libexecPROGRAMS: $(libexec_PROGRAMS) @$(NORMAL_INSTALL) @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; 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) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-libexecPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || 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)$(libexecdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(libexecdir)" && rm -f $$files clean-libexecPROGRAMS: -test -z "$(libexec_PROGRAMS)" || rm -f $(libexec_PROGRAMS) install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; 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) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || 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)$(sbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(sbindir)" && rm -f $$files clean-sbinPROGRAMS: -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS) lxdm-binary$(EXEEXT): $(lxdm_binary_OBJECTS) $(lxdm_binary_DEPENDENCIES) $(EXTRA_lxdm_binary_DEPENDENCIES) @rm -f lxdm-binary$(EXEEXT) $(AM_V_CCLD)$(lxdm_binary_LINK) $(lxdm_binary_OBJECTS) $(lxdm_binary_LDADD) $(LIBS) lxdm-config$(EXEEXT): $(lxdm_config_OBJECTS) $(lxdm_config_DEPENDENCIES) $(EXTRA_lxdm_config_DEPENDENCIES) @rm -f lxdm-config$(EXEEXT) $(AM_V_CCLD)$(lxdm_config_LINK) $(lxdm_config_OBJECTS) $(lxdm_config_LDADD) $(LIBS) lxdm-greeter-gdk$(EXEEXT): $(lxdm_greeter_gdk_OBJECTS) $(lxdm_greeter_gdk_DEPENDENCIES) $(EXTRA_lxdm_greeter_gdk_DEPENDENCIES) @rm -f lxdm-greeter-gdk$(EXEEXT) $(AM_V_CCLD)$(lxdm_greeter_gdk_LINK) $(lxdm_greeter_gdk_OBJECTS) $(lxdm_greeter_gdk_LDADD) $(LIBS) gdm/$(am__dirstamp): @$(MKDIR_P) gdm @: > gdm/$(am__dirstamp) gdm/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) gdm/$(DEPDIR) @: > gdm/$(DEPDIR)/$(am__dirstamp) gdm/lxdm_greeter_gtk-gdm-languages.$(OBJEXT): gdm/$(am__dirstamp) \ gdm/$(DEPDIR)/$(am__dirstamp) lxdm-greeter-gtk$(EXEEXT): $(lxdm_greeter_gtk_OBJECTS) $(lxdm_greeter_gtk_DEPENDENCIES) $(EXTRA_lxdm_greeter_gtk_DEPENDENCIES) @rm -f lxdm-greeter-gtk$(EXEEXT) $(AM_V_CCLD)$(lxdm_greeter_gtk_LINK) $(lxdm_greeter_gtk_OBJECTS) $(lxdm_greeter_gtk_LDADD) $(LIBS) lxdm-numlock$(EXEEXT): $(lxdm_numlock_OBJECTS) $(lxdm_numlock_DEPENDENCIES) $(EXTRA_lxdm_numlock_DEPENDENCIES) @rm -f lxdm-numlock$(EXEEXT) $(AM_V_CCLD)$(lxdm_numlock_LINK) $(lxdm_numlock_OBJECTS) $(lxdm_numlock_LDADD) $(LIBS) lxdm-session$(EXEEXT): $(lxdm_session_OBJECTS) $(lxdm_session_DEPENDENCIES) $(EXTRA_lxdm_session_DEPENDENCIES) @rm -f lxdm-session$(EXEEXT) $(AM_V_CCLD)$(lxdm_session_LINK) $(lxdm_session_OBJECTS) $(lxdm_session_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f gdm/*.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_binary-auth.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_binary-lxcom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_binary-lxdm.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_binary-ui.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_binary-xconn.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_config-config.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_greeter_gtk-greeter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_greeter_gtk-lang.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_greeter_gtk-lxcom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_numlock-numlock.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lxdm_session-pam.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` lxdm_binary-lxdm.o: lxdm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-lxdm.o -MD -MP -MF $(DEPDIR)/lxdm_binary-lxdm.Tpo -c -o lxdm_binary-lxdm.o `test -f 'lxdm.c' || echo '$(srcdir)/'`lxdm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-lxdm.Tpo $(DEPDIR)/lxdm_binary-lxdm.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lxdm.c' object='lxdm_binary-lxdm.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-lxdm.o `test -f 'lxdm.c' || echo '$(srcdir)/'`lxdm.c lxdm_binary-lxdm.obj: lxdm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-lxdm.obj -MD -MP -MF $(DEPDIR)/lxdm_binary-lxdm.Tpo -c -o lxdm_binary-lxdm.obj `if test -f 'lxdm.c'; then $(CYGPATH_W) 'lxdm.c'; else $(CYGPATH_W) '$(srcdir)/lxdm.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-lxdm.Tpo $(DEPDIR)/lxdm_binary-lxdm.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lxdm.c' object='lxdm_binary-lxdm.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-lxdm.obj `if test -f 'lxdm.c'; then $(CYGPATH_W) 'lxdm.c'; else $(CYGPATH_W) '$(srcdir)/lxdm.c'; fi` lxdm_binary-ui.o: ui.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-ui.o -MD -MP -MF $(DEPDIR)/lxdm_binary-ui.Tpo -c -o lxdm_binary-ui.o `test -f 'ui.c' || echo '$(srcdir)/'`ui.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-ui.Tpo $(DEPDIR)/lxdm_binary-ui.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ui.c' object='lxdm_binary-ui.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-ui.o `test -f 'ui.c' || echo '$(srcdir)/'`ui.c lxdm_binary-ui.obj: ui.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-ui.obj -MD -MP -MF $(DEPDIR)/lxdm_binary-ui.Tpo -c -o lxdm_binary-ui.obj `if test -f 'ui.c'; then $(CYGPATH_W) 'ui.c'; else $(CYGPATH_W) '$(srcdir)/ui.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-ui.Tpo $(DEPDIR)/lxdm_binary-ui.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ui.c' object='lxdm_binary-ui.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-ui.obj `if test -f 'ui.c'; then $(CYGPATH_W) 'ui.c'; else $(CYGPATH_W) '$(srcdir)/ui.c'; fi` lxdm_binary-lxcom.o: lxcom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-lxcom.o -MD -MP -MF $(DEPDIR)/lxdm_binary-lxcom.Tpo -c -o lxdm_binary-lxcom.o `test -f 'lxcom.c' || echo '$(srcdir)/'`lxcom.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-lxcom.Tpo $(DEPDIR)/lxdm_binary-lxcom.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lxcom.c' object='lxdm_binary-lxcom.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-lxcom.o `test -f 'lxcom.c' || echo '$(srcdir)/'`lxcom.c lxdm_binary-lxcom.obj: lxcom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-lxcom.obj -MD -MP -MF $(DEPDIR)/lxdm_binary-lxcom.Tpo -c -o lxdm_binary-lxcom.obj `if test -f 'lxcom.c'; then $(CYGPATH_W) 'lxcom.c'; else $(CYGPATH_W) '$(srcdir)/lxcom.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-lxcom.Tpo $(DEPDIR)/lxdm_binary-lxcom.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lxcom.c' object='lxdm_binary-lxcom.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-lxcom.obj `if test -f 'lxcom.c'; then $(CYGPATH_W) 'lxcom.c'; else $(CYGPATH_W) '$(srcdir)/lxcom.c'; fi` lxdm_binary-xconn.o: xconn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-xconn.o -MD -MP -MF $(DEPDIR)/lxdm_binary-xconn.Tpo -c -o lxdm_binary-xconn.o `test -f 'xconn.c' || echo '$(srcdir)/'`xconn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-xconn.Tpo $(DEPDIR)/lxdm_binary-xconn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xconn.c' object='lxdm_binary-xconn.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-xconn.o `test -f 'xconn.c' || echo '$(srcdir)/'`xconn.c lxdm_binary-xconn.obj: xconn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-xconn.obj -MD -MP -MF $(DEPDIR)/lxdm_binary-xconn.Tpo -c -o lxdm_binary-xconn.obj `if test -f 'xconn.c'; then $(CYGPATH_W) 'xconn.c'; else $(CYGPATH_W) '$(srcdir)/xconn.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-xconn.Tpo $(DEPDIR)/lxdm_binary-xconn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xconn.c' object='lxdm_binary-xconn.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-xconn.obj `if test -f 'xconn.c'; then $(CYGPATH_W) 'xconn.c'; else $(CYGPATH_W) '$(srcdir)/xconn.c'; fi` lxdm_binary-auth.o: auth.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-auth.o -MD -MP -MF $(DEPDIR)/lxdm_binary-auth.Tpo -c -o lxdm_binary-auth.o `test -f 'auth.c' || echo '$(srcdir)/'`auth.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-auth.Tpo $(DEPDIR)/lxdm_binary-auth.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='auth.c' object='lxdm_binary-auth.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-auth.o `test -f 'auth.c' || echo '$(srcdir)/'`auth.c lxdm_binary-auth.obj: auth.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_binary_CFLAGS) $(CFLAGS) -MT lxdm_binary-auth.obj -MD -MP -MF $(DEPDIR)/lxdm_binary-auth.Tpo -c -o lxdm_binary-auth.obj `if test -f 'auth.c'; then $(CYGPATH_W) 'auth.c'; else $(CYGPATH_W) '$(srcdir)/auth.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_binary-auth.Tpo $(DEPDIR)/lxdm_binary-auth.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='auth.c' object='lxdm_binary-auth.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) $(lxdm_binary_CFLAGS) $(CFLAGS) -c -o lxdm_binary-auth.obj `if test -f 'auth.c'; then $(CYGPATH_W) 'auth.c'; else $(CYGPATH_W) '$(srcdir)/auth.c'; fi` lxdm_config-config.o: config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_config_CFLAGS) $(CFLAGS) -MT lxdm_config-config.o -MD -MP -MF $(DEPDIR)/lxdm_config-config.Tpo -c -o lxdm_config-config.o `test -f 'config.c' || echo '$(srcdir)/'`config.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_config-config.Tpo $(DEPDIR)/lxdm_config-config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='config.c' object='lxdm_config-config.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) $(lxdm_config_CFLAGS) $(CFLAGS) -c -o lxdm_config-config.o `test -f 'config.c' || echo '$(srcdir)/'`config.c lxdm_config-config.obj: config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_config_CFLAGS) $(CFLAGS) -MT lxdm_config-config.obj -MD -MP -MF $(DEPDIR)/lxdm_config-config.Tpo -c -o lxdm_config-config.obj `if test -f 'config.c'; then $(CYGPATH_W) 'config.c'; else $(CYGPATH_W) '$(srcdir)/config.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_config-config.Tpo $(DEPDIR)/lxdm_config-config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='config.c' object='lxdm_config-config.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) $(lxdm_config_CFLAGS) $(CFLAGS) -c -o lxdm_config-config.obj `if test -f 'config.c'; then $(CYGPATH_W) 'config.c'; else $(CYGPATH_W) '$(srcdir)/config.c'; fi` lxdm_greeter_gdk-greeter-gdk.o: greeter-gdk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gdk-greeter-gdk.o -MD -MP -MF $(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Tpo -c -o lxdm_greeter_gdk-greeter-gdk.o `test -f 'greeter-gdk.c' || echo '$(srcdir)/'`greeter-gdk.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Tpo $(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter-gdk.c' object='lxdm_greeter_gdk-greeter-gdk.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) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gdk-greeter-gdk.o `test -f 'greeter-gdk.c' || echo '$(srcdir)/'`greeter-gdk.c lxdm_greeter_gdk-greeter-gdk.obj: greeter-gdk.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gdk-greeter-gdk.obj -MD -MP -MF $(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Tpo -c -o lxdm_greeter_gdk-greeter-gdk.obj `if test -f 'greeter-gdk.c'; then $(CYGPATH_W) 'greeter-gdk.c'; else $(CYGPATH_W) '$(srcdir)/greeter-gdk.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Tpo $(DEPDIR)/lxdm_greeter_gdk-greeter-gdk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter-gdk.c' object='lxdm_greeter_gdk-greeter-gdk.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) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gdk-greeter-gdk.obj `if test -f 'greeter-gdk.c'; then $(CYGPATH_W) 'greeter-gdk.c'; else $(CYGPATH_W) '$(srcdir)/greeter-gdk.c'; fi` lxdm_greeter_gdk-greeter-utils.o: greeter-utils.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gdk-greeter-utils.o -MD -MP -MF $(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Tpo -c -o lxdm_greeter_gdk-greeter-utils.o `test -f 'greeter-utils.c' || echo '$(srcdir)/'`greeter-utils.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Tpo $(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter-utils.c' object='lxdm_greeter_gdk-greeter-utils.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) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gdk-greeter-utils.o `test -f 'greeter-utils.c' || echo '$(srcdir)/'`greeter-utils.c lxdm_greeter_gdk-greeter-utils.obj: greeter-utils.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gdk-greeter-utils.obj -MD -MP -MF $(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Tpo -c -o lxdm_greeter_gdk-greeter-utils.obj `if test -f 'greeter-utils.c'; then $(CYGPATH_W) 'greeter-utils.c'; else $(CYGPATH_W) '$(srcdir)/greeter-utils.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Tpo $(DEPDIR)/lxdm_greeter_gdk-greeter-utils.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter-utils.c' object='lxdm_greeter_gdk-greeter-utils.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) $(lxdm_greeter_gdk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gdk-greeter-utils.obj `if test -f 'greeter-utils.c'; then $(CYGPATH_W) 'greeter-utils.c'; else $(CYGPATH_W) '$(srcdir)/greeter-utils.c'; fi` lxdm_greeter_gtk-greeter.o: greeter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-greeter.o -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-greeter.Tpo -c -o lxdm_greeter_gtk-greeter.o `test -f 'greeter.c' || echo '$(srcdir)/'`greeter.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-greeter.Tpo $(DEPDIR)/lxdm_greeter_gtk-greeter.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter.c' object='lxdm_greeter_gtk-greeter.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-greeter.o `test -f 'greeter.c' || echo '$(srcdir)/'`greeter.c lxdm_greeter_gtk-greeter.obj: greeter.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-greeter.obj -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-greeter.Tpo -c -o lxdm_greeter_gtk-greeter.obj `if test -f 'greeter.c'; then $(CYGPATH_W) 'greeter.c'; else $(CYGPATH_W) '$(srcdir)/greeter.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-greeter.Tpo $(DEPDIR)/lxdm_greeter_gtk-greeter.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter.c' object='lxdm_greeter_gtk-greeter.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-greeter.obj `if test -f 'greeter.c'; then $(CYGPATH_W) 'greeter.c'; else $(CYGPATH_W) '$(srcdir)/greeter.c'; fi` lxdm_greeter_gtk-lang.o: lang.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-lang.o -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-lang.Tpo -c -o lxdm_greeter_gtk-lang.o `test -f 'lang.c' || echo '$(srcdir)/'`lang.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-lang.Tpo $(DEPDIR)/lxdm_greeter_gtk-lang.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lang.c' object='lxdm_greeter_gtk-lang.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-lang.o `test -f 'lang.c' || echo '$(srcdir)/'`lang.c lxdm_greeter_gtk-lang.obj: lang.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-lang.obj -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-lang.Tpo -c -o lxdm_greeter_gtk-lang.obj `if test -f 'lang.c'; then $(CYGPATH_W) 'lang.c'; else $(CYGPATH_W) '$(srcdir)/lang.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-lang.Tpo $(DEPDIR)/lxdm_greeter_gtk-lang.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lang.c' object='lxdm_greeter_gtk-lang.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-lang.obj `if test -f 'lang.c'; then $(CYGPATH_W) 'lang.c'; else $(CYGPATH_W) '$(srcdir)/lang.c'; fi` gdm/lxdm_greeter_gtk-gdm-languages.o: gdm/gdm-languages.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT gdm/lxdm_greeter_gtk-gdm-languages.o -MD -MP -MF gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Tpo -c -o gdm/lxdm_greeter_gtk-gdm-languages.o `test -f 'gdm/gdm-languages.c' || echo '$(srcdir)/'`gdm/gdm-languages.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Tpo gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gdm/gdm-languages.c' object='gdm/lxdm_greeter_gtk-gdm-languages.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o gdm/lxdm_greeter_gtk-gdm-languages.o `test -f 'gdm/gdm-languages.c' || echo '$(srcdir)/'`gdm/gdm-languages.c gdm/lxdm_greeter_gtk-gdm-languages.obj: gdm/gdm-languages.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT gdm/lxdm_greeter_gtk-gdm-languages.obj -MD -MP -MF gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Tpo -c -o gdm/lxdm_greeter_gtk-gdm-languages.obj `if test -f 'gdm/gdm-languages.c'; then $(CYGPATH_W) 'gdm/gdm-languages.c'; else $(CYGPATH_W) '$(srcdir)/gdm/gdm-languages.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Tpo gdm/$(DEPDIR)/lxdm_greeter_gtk-gdm-languages.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gdm/gdm-languages.c' object='gdm/lxdm_greeter_gtk-gdm-languages.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o gdm/lxdm_greeter_gtk-gdm-languages.obj `if test -f 'gdm/gdm-languages.c'; then $(CYGPATH_W) 'gdm/gdm-languages.c'; else $(CYGPATH_W) '$(srcdir)/gdm/gdm-languages.c'; fi` lxdm_greeter_gtk-lxcom.o: lxcom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-lxcom.o -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-lxcom.Tpo -c -o lxdm_greeter_gtk-lxcom.o `test -f 'lxcom.c' || echo '$(srcdir)/'`lxcom.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-lxcom.Tpo $(DEPDIR)/lxdm_greeter_gtk-lxcom.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lxcom.c' object='lxdm_greeter_gtk-lxcom.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-lxcom.o `test -f 'lxcom.c' || echo '$(srcdir)/'`lxcom.c lxdm_greeter_gtk-lxcom.obj: lxcom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-lxcom.obj -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-lxcom.Tpo -c -o lxdm_greeter_gtk-lxcom.obj `if test -f 'lxcom.c'; then $(CYGPATH_W) 'lxcom.c'; else $(CYGPATH_W) '$(srcdir)/lxcom.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-lxcom.Tpo $(DEPDIR)/lxdm_greeter_gtk-lxcom.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lxcom.c' object='lxdm_greeter_gtk-lxcom.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-lxcom.obj `if test -f 'lxcom.c'; then $(CYGPATH_W) 'lxcom.c'; else $(CYGPATH_W) '$(srcdir)/lxcom.c'; fi` lxdm_greeter_gtk-greeter-utils.o: greeter-utils.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-greeter-utils.o -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Tpo -c -o lxdm_greeter_gtk-greeter-utils.o `test -f 'greeter-utils.c' || echo '$(srcdir)/'`greeter-utils.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Tpo $(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter-utils.c' object='lxdm_greeter_gtk-greeter-utils.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-greeter-utils.o `test -f 'greeter-utils.c' || echo '$(srcdir)/'`greeter-utils.c lxdm_greeter_gtk-greeter-utils.obj: greeter-utils.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -MT lxdm_greeter_gtk-greeter-utils.obj -MD -MP -MF $(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Tpo -c -o lxdm_greeter_gtk-greeter-utils.obj `if test -f 'greeter-utils.c'; then $(CYGPATH_W) 'greeter-utils.c'; else $(CYGPATH_W) '$(srcdir)/greeter-utils.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Tpo $(DEPDIR)/lxdm_greeter_gtk-greeter-utils.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='greeter-utils.c' object='lxdm_greeter_gtk-greeter-utils.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) $(lxdm_greeter_gtk_CFLAGS) $(CFLAGS) -c -o lxdm_greeter_gtk-greeter-utils.obj `if test -f 'greeter-utils.c'; then $(CYGPATH_W) 'greeter-utils.c'; else $(CYGPATH_W) '$(srcdir)/greeter-utils.c'; fi` lxdm_numlock-numlock.o: numlock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_numlock_CFLAGS) $(CFLAGS) -MT lxdm_numlock-numlock.o -MD -MP -MF $(DEPDIR)/lxdm_numlock-numlock.Tpo -c -o lxdm_numlock-numlock.o `test -f 'numlock.c' || echo '$(srcdir)/'`numlock.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_numlock-numlock.Tpo $(DEPDIR)/lxdm_numlock-numlock.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='numlock.c' object='lxdm_numlock-numlock.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) $(lxdm_numlock_CFLAGS) $(CFLAGS) -c -o lxdm_numlock-numlock.o `test -f 'numlock.c' || echo '$(srcdir)/'`numlock.c lxdm_numlock-numlock.obj: numlock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_numlock_CFLAGS) $(CFLAGS) -MT lxdm_numlock-numlock.obj -MD -MP -MF $(DEPDIR)/lxdm_numlock-numlock.Tpo -c -o lxdm_numlock-numlock.obj `if test -f 'numlock.c'; then $(CYGPATH_W) 'numlock.c'; else $(CYGPATH_W) '$(srcdir)/numlock.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_numlock-numlock.Tpo $(DEPDIR)/lxdm_numlock-numlock.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='numlock.c' object='lxdm_numlock-numlock.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) $(lxdm_numlock_CFLAGS) $(CFLAGS) -c -o lxdm_numlock-numlock.obj `if test -f 'numlock.c'; then $(CYGPATH_W) 'numlock.c'; else $(CYGPATH_W) '$(srcdir)/numlock.c'; fi` lxdm_session-pam.o: pam.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_session_CFLAGS) $(CFLAGS) -MT lxdm_session-pam.o -MD -MP -MF $(DEPDIR)/lxdm_session-pam.Tpo -c -o lxdm_session-pam.o `test -f 'pam.c' || echo '$(srcdir)/'`pam.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_session-pam.Tpo $(DEPDIR)/lxdm_session-pam.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pam.c' object='lxdm_session-pam.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) $(lxdm_session_CFLAGS) $(CFLAGS) -c -o lxdm_session-pam.o `test -f 'pam.c' || echo '$(srcdir)/'`pam.c lxdm_session-pam.obj: pam.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lxdm_session_CFLAGS) $(CFLAGS) -MT lxdm_session-pam.obj -MD -MP -MF $(DEPDIR)/lxdm_session-pam.Tpo -c -o lxdm_session-pam.obj `if test -f 'pam.c'; then $(CYGPATH_W) 'pam.c'; else $(CYGPATH_W) '$(srcdir)/pam.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lxdm_session-pam.Tpo $(DEPDIR)/lxdm_session-pam.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pam.c' object='lxdm_session-pam.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) $(lxdm_session_CFLAGS) $(CFLAGS) -c -o lxdm_session-pam.obj `if test -f 'pam.c'; then $(CYGPATH_W) 'pam.c'; else $(CYGPATH_W) '$(srcdir)/pam.c'; fi` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(sbindir)"; 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) -rm -f gdm/$(DEPDIR)/$(am__dirstamp) -rm -f gdm/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libexecPROGRAMS \ clean-sbinPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) gdm/$(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-libexecPROGRAMS \ install-sbinPROGRAMS 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) gdm/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-libexecPROGRAMS \ uninstall-sbinPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic clean-libexecPROGRAMS \ clean-sbinPROGRAMS cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libexecPROGRAMS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-sbinPROGRAMS install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-libexecPROGRAMS \ uninstall-sbinPROGRAMS .PRECIOUS: Makefile # 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: lxdm-0.5.3/src/auth.c000066400000000000000000000305641262556610000143720ustar00rootroot00000000000000/* * lxdm.c - main entry of lxdm * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #define _GNU_SOURCE #ifdef HAVE_CONFIG_H #include #endif #ifndef HAVE_LIBPAM #ifdef USE_PAM #define HAVE_LIBPAM 1 #else #define HAVE_LIBPAM 0 #endif #endif #include #include #include #include #include #include #include #include #include #include #include "lxdm.h" #include "auth.h" #if HAVE_LIBPAM #define PAM_MP 1 #endif void switch_user(struct passwd *pw, const char *run, char **env); static void passwd_clean(struct passwd *pw) { g_free(pw->pw_name); g_free(pw->pw_gecos); g_free(pw->pw_dir); g_free(pw->pw_shell); memset(pw,0,sizeof(*pw)); } #if !PAM_MP static void passwd_copy(struct passwd *dst,struct passwd *src) { dst->pw_name=g_strdup(src->pw_name); dst->pw_uid=src->pw_uid; dst->pw_gid=src->pw_gid; if(src->pw_gecos) dst->pw_gecos=g_strdup(src->pw_gecos); dst->pw_dir=g_strdup(src->pw_dir); dst->pw_shell=g_strdup(src->pw_shell); } #endif #if !HAVE_LIBPAM int lxdm_auth_init(LXDM_AUTH *a) { memset(a,0,sizeof(*a)); return 0; } int lxdm_auth_cleanup(LXDM_AUTH *a) { passwd_clean(&a->pw); return 0; } int lxdm_auth_user_authenticate(LXDM_AUTH *a,const char *user,const char *pass,int type) { struct passwd *pw; struct spwd *sp; char *real; char *enc; if(!user || !user[0]) { g_debug("user==NULL\n"); return AUTH_ERROR; } pw = getpwnam(user); endpwent(); if(!pw) { g_debug("user %s not found\n",user); return AUTH_BAD_USER; } if(strstr(pw->pw_shell, "nologin")) { g_debug("user %s have nologin shell\n",user); return AUTH_PRIV; } if(type==AUTH_TYPE_AUTO_LOGIN && !pass) { goto out; } sp = getspnam(user); if( !sp ) { return AUTH_FAIL; } endspent(); real = sp->sp_pwdp; if( !real || !real[0] ) { if( !pass || !pass[0] ) { passwd_copy(&a->pw,pw); g_debug("user %s auth with no password ok\n",user); return AUTH_SUCCESS; } else { g_debug("user %s password not match\n",user); return AUTH_FAIL; } } enc = crypt(pass, real); if( strcmp(real, enc) ) { g_debug("user %s password not match\n",user); return AUTH_FAIL; } out: g_debug("user %s auth ok\n",pw->pw_name); passwd_copy(&a->pw,pw); return AUTH_SUCCESS; } int lxdm_auth_session_begin(LXDM_AUTH *a,const char *name,int tty,int display,char mcookie[16]) { return 0; } int lxdm_auth_session_end(LXDM_AUTH *a) { return 0; } int lxdm_auth_clean_for_child(LXDM_AUTH *a) { return 0; } char **lxdm_auth_append_env(LXDM_AUTH *a,char **env) { return env; } int lxdm_auth_session_run(LXDM_AUTH *a,const char *session_exec,char **env) { int pid; pid = fork(); if(pid==0) { //env=lxdm_auth_append_env(a,env); lxdm_auth_clean_for_child(a); switch_user(&a->pw, session_exec, env); lxdm_quit_self(4); } return pid; } #elif !PAM_MP #include static char *user_pass[2]; static int do_conv(int num, const struct pam_message **msg,struct pam_response **resp, void *arg) { int result = PAM_SUCCESS; int i; *resp = (struct pam_response *) calloc(num, sizeof(struct pam_response)); for(i=0;imsg_style,msg[i]->msg); switch(msg[i]->msg_style){ case PAM_PROMPT_ECHO_ON: resp[i]->resp=strdup(user_pass[0]?user_pass[0]:""); break; case PAM_PROMPT_ECHO_OFF: //resp[i]->resp=strdup(user_pass[1]?user_pass[1]:""); resp[i]->resp=user_pass[1]?strdup(user_pass[1]):NULL; break; case PAM_ERROR_MSG: case PAM_TEXT_INFO: //printf("PAM: %s\n",msg[i]->msg); break; default: break; } } return result; } static struct pam_conv conv={.conv=do_conv,.appdata_ptr=user_pass}; int lxdm_auth_init(LXDM_AUTH *a) { memset(a,0,sizeof(*a)); return 0; } int lxdm_auth_cleanup(LXDM_AUTH *a) { passwd_clean(&a->pw); return 0; } int lxdm_auth_user_authenticate(LXDM_AUTH *a,const char *user,const char *pass,int type) { struct passwd *pw; if(!user || !user[0]) { g_debug("user==NULL\n"); return AUTH_ERROR; } pw = getpwnam(user); endpwent(); if(!pw) { g_debug("user %s not found\n",user); return AUTH_BAD_USER; } if(strstr(pw->pw_shell, "nologin")) { g_debug("user %s have nologin shell\n",user); return AUTH_PRIV; } if(a->handle) pam_end(a->handle,0); if(PAM_SUCCESS != pam_start("lxdm", pw->pw_name, &conv, (pam_handle_t**)&a->handle)) { a->handle=NULL; g_debug("user %s start pam fail\n",user); return AUTH_FAIL; } else { int ret; if(type==AUTH_TYPE_AUTO_LOGIN && !pass) goto out; user_pass[0]=(char*)user;user_pass[1]=(char*)pass; ret=pam_authenticate(a->handle,PAM_SILENT); user_pass[0]=0;user_pass[1]=0; if(ret!=PAM_SUCCESS) { g_debug("user %s auth fail with %d\n",user,ret); return AUTH_FAIL; } ret=pam_acct_mgmt(a->handle,PAM_SILENT); if(ret!=PAM_SUCCESS) { g_debug("user %s acct mgmt fail with %d\n",user,ret); return AUTH_FAIL; } } out: passwd_copy(&a->pw,pw); return AUTH_SUCCESS; } int lxdm_auth_session_begin(LXDM_AUTH *a,const char *name,int tty,int display,char mcookie[16]) { int err; char x[256]; if(!a->handle) { g_message("begin session without auth\n"); return -1; } sprintf(x, "tty%d", tty); pam_set_item(a->handle, PAM_TTY, x); #ifdef PAM_XDISPLAY sprintf(x,":%d",display); pam_set_item(a->handle, PAM_XDISPLAY, x); #endif #if !defined(DISABLE_XAUTH) && defined(PAM_XAUTHDATA) struct pam_xauth_data value; value.name="MIT-MAGIC-COOKIE-1"; value.namelen=18; value.data=mcookie; value.datalen=16; pam_set_item (a->handle, PAM_XAUTHDATA, &value); #endif if(name && name[0]) { char *env; env = g_strdup_printf ("DESKTOP_SESSION=%s", name); pam_putenv (a->handle, env); g_free (env); } err = pam_open_session(a->handle, 0); /* FIXME pam session failed */ if( err != PAM_SUCCESS ) g_warning( "pam open session error \"%s\"\n", pam_strerror(a->handle, err)); else a->in_session=1; return 0; } int lxdm_auth_session_end(LXDM_AUTH *a) { int err; if(!a->handle) return 0; if(a->in_session) { err = pam_close_session(a->handle, 0); a->in_session=0; } pam_end(a->handle, err); a->handle = NULL; passwd_clean(&a->pw); return 0; } int lxdm_auth_clean_for_child(LXDM_AUTH *a) { pam_end(a->handle,0); return 0; } char **lxdm_auth_append_env(LXDM_AUTH *a,char **env) { int i,j,n,pa; char **penv; if(!a->handle) return env; penv=pam_getenvlist(a->handle); if(!penv) return env; pa=g_strv_length(penv); if(pa==0) { free(penv); return env; } env=g_renew(char *,env,g_strv_length(env)+1+pa+10); for(i=0;penv[i]!=NULL;i++) { fprintf(stderr,"PAM %s\n",penv[i]); n=strcspn(penv[i],"=")+1; for(j=0;env[j]!=NULL;j++) { if(!strncmp(penv[i],env[j],n)) break; if(env[j+1]==NULL) { env[j+1]=g_strdup(penv[i]); env[j+2]=NULL; break; } } free(penv[i]); } free(penv); return env; } int lxdm_auth_session_run(LXDM_AUTH *a,const char *session_exec,char **env) { int pid; pid = fork(); if(pid==0) { //env=lxdm_auth_append_env(a,env); lxdm_auth_clean_for_child(a); switch_user(&a->pw, session_exec, env); lxdm_quit_self(4); } return pid; } #else static void xwrite(int fd,const void *buf,size_t size) { int ret; do{ ret=write(fd,buf,size); }while(ret==-1 && errno==EINTR); } static int xreadline(int fd,char *buf,size_t size) { int i; for(i=0;ipipe[0]=a->pipe[1]=-1; return 0; } int lxdm_auth_cleanup(LXDM_AUTH *a) { passwd_clean(&a->pw); if(a->pipe[0]!=-1) { close(a->pipe[0]); a->pipe[0]=-1; } if(a->pipe[1]!=-1) { close(a->pipe[1]); a->pipe[1]=-1; } return 0; } //#undef LXDM_SESSION_PATH //#define LXDM_SESSION_PATH "./lxdm-session" static int check_child(LXDM_AUTH *a) { if(a->pipe[0]!=-1) return 0; char *argv[3]={LXDM_SESSION_PATH,NULL,NULL}; GPid pid; gboolean ret; ret = g_spawn_async_with_pipes(NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL,NULL, &pid, a->pipe + 0, a->pipe + 1, NULL, NULL); if(ret==FALSE) { g_message("spawn lxdm-session fail\n"); return -1; } a->child=(int)pid; return 0; } int lxdm_auth_user_authenticate(LXDM_AUTH *a,const char *user,const char *pass,int type) { char temp[128]; char res[8]; int ret; if(check_child(a)!=0) { printf("check child fail\n"); return -1; } if(type==AUTH_TYPE_AUTO_LOGIN && pass) type=AUTH_TYPE_NORMAL; else if(type==AUTH_TYPE_NORMAL && !pass) type=AUTH_TYPE_NULL_PASS; xwrite(a->pipe[0],"auth\n",5); ret=sprintf(temp,"%d\n",type); xwrite(a->pipe[0],temp,ret); ret=sprintf(temp,"%s\n",user); xwrite(a->pipe[0],temp,ret); if(pass!=NULL) ret=sprintf(temp,"%s\n",pass); xwrite(a->pipe[0],temp,ret); ret=xreadline(a->pipe[1],res,sizeof(res)); if(ret<=0) { g_message("read user auth result fail\n"); return -1; } ret=atoi(res); if(ret==AUTH_SUCCESS) { passwd_clean(&a->pw); a->pw.pw_name=g_strdup(user); ret=xreadline(a->pipe[1],temp,sizeof(temp)); if(ret==-1) return -1; a->pw.pw_uid=atoi(temp); ret=xreadline(a->pipe[1],temp,sizeof(temp)); if(ret==-1) return -1; a->pw.pw_gid=atoi(temp); ret=xreadline(a->pipe[1],temp,sizeof(temp)); if(ret==-1) return -1; a->pw.pw_gecos=g_strdup(temp); ret=xreadline(a->pipe[1],temp,sizeof(temp)); if(ret==-1) return -1; a->pw.pw_dir=g_strdup(temp); ret=xreadline(a->pipe[1],temp,sizeof(temp)); if(ret==-1) return -1; a->pw.pw_shell=g_strdup(temp); } return atoi(res); } #include int lxdm_auth_session_begin(LXDM_AUTH *a,const char *name,int tty,int display,char mcookie[16]) { char temp[256]; char res[8]; gchar *b64; int ret; if(check_child(a)!=0) return -1; xwrite(a->pipe[0],"begin\n",6); ret=sprintf(temp,"%s\n",name?:""); xwrite(a->pipe[0],temp,ret); ret=sprintf(temp,"%d\n",tty); xwrite(a->pipe[0],temp,ret); ret=sprintf(temp,"%d\n",display); xwrite(a->pipe[0],temp,ret); b64=g_base64_encode((const guchar*)mcookie,16); assert(b64!=NULL); ret=sprintf(temp,"%s\n",b64); g_free(b64); xwrite(a->pipe[0],temp,ret); ret=xreadline(a->pipe[1],res,sizeof(res)); if(ret<=0) { g_message("pam session begin fail\n"); return -1; } ret=atoi(res); return ret; } int lxdm_auth_session_end(LXDM_AUTH *a) { passwd_clean(&a->pw); if(a->pipe[0]!=-1) { xwrite(a->pipe[0],"exit\n",5); close(a->pipe[0]); a->pipe[0]=-1; } if(a->pipe[1]!=-1) { close(a->pipe[1]); a->pipe[1]=-1; } return 0; } int lxdm_auth_clean_for_child(LXDM_AUTH *a) { return 0; } char **lxdm_auth_append_env(LXDM_AUTH *a,char **env) { int i,j,n,pa; char temp[1024]; int ret; char **penv; if(check_child(a)!=0) return env; xwrite(a->pipe[0],"env\n",4); ret=xreadline(a->pipe[1],temp,sizeof(temp)); if(ret<=0) return env; penv=g_strsplit(temp," ",-1); pa=g_strv_length(penv); if(pa==0) { g_strfreev(penv); return env; } env=g_renew(char *,env,g_strv_length(env)+1+pa+10); for(i=0;penv[i]!=NULL;i++) { g_debug("PAM %s\n",penv[i]); n=strcspn(penv[i],"=")+1; for(j=0;env[j]!=NULL;j++) { if(!strncmp(penv[i],env[j],n)) break; if(env[j+1]==NULL) { env[j+1]=g_strdup(penv[i]); env[j+2]=NULL; break; } } } g_strfreev(penv); return env; } int lxdm_auth_session_run(LXDM_AUTH *a,const char *session_exec,char **env) { int fd; if(check_child(a)!=0) return -1; fd=a->pipe[0]; if(env!=NULL) { int i; xwrite(fd,"putenv\n",7); for(i=0;env[i]!=NULL;i++) { xwrite(fd,env[i],strlen(env[i])); xwrite(fd,"\n",1); } xwrite(a->pipe[0],"\n",1); } xwrite(fd,"exec\n",5); xwrite(fd,session_exec,strlen(session_exec)); xwrite(fd,"\n",1); return a->child; } #endif lxdm-0.5.3/src/auth.h000066400000000000000000000030161262556610000143670ustar00rootroot00000000000000/* * lxdm.c - main entry of lxdm * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #pragma once typedef struct{ void *handle; struct passwd pw; int pipe[2]; int child; int in_session; }LXDM_AUTH; enum{ AUTH_TYPE_NORMAL=0, AUTH_TYPE_AUTO_LOGIN, AUTH_TYPE_NULL_PASS }; int lxdm_auth_init(LXDM_AUTH *a); int lxdm_auth_cleanup(LXDM_AUTH *a); int lxdm_auth_user_authenticate(LXDM_AUTH *a,const char *user,const char *pass,int type); int lxdm_auth_session_begin(LXDM_AUTH *a,const char *name,int tty,int display,char mcookie[16]); int lxdm_auth_session_end(LXDM_AUTH *a); int lxdm_auth_clean_for_child(LXDM_AUTH *a); char **lxdm_auth_append_env(LXDM_AUTH *a,char **env); int lxdm_auth_session_run(LXDM_AUTH *a,const char *session_exec,char **env); lxdm-0.5.3/src/config.c000066400000000000000000000505271262556610000146770ustar00rootroot00000000000000/* * lxdm.c - main entry of lxdm * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #define CONFIG_UI_FILE LXDM_DATA_DIR"/config.ui" //#define CONFIG_UI_FILE "../data/config.ui" #define FACES_DIR "/usr/share/pixmaps/faces" #define ROW_SPAN 6 GtkBuilder *builder; GKeyFile *config; int dirty; char *user_name; struct passwd *user; gboolean root; char *theme_name; char *theme_dir; char *ui_nobody; GtkWidget *photo_popup; void prepare_user(void) { root=getuid()==0; if(!user_name) { if(!root) user_name=getenv("USER"); if(!user_name) user_name=getenv("SUDO_USER"); if(!user_name) user_name=getenv("USER"); if(!user_name) exit(1); } user=getpwnam(user_name); if(!user) { exit(1); } } void prepare_config(void) { config=g_key_file_new(); g_key_file_load_from_file(config,CONFIG_FILE,G_KEY_FILE_KEEP_COMMENTS,NULL); theme_name=g_key_file_get_string(config,"display", "theme", NULL); theme_dir=g_build_filename(LXDM_DATA_DIR "/themes", theme_name, NULL); ui_nobody = g_build_filename(theme_dir, "nobody.png", NULL); if( !g_file_test(ui_nobody, G_FILE_TEST_EXISTS) ) { g_free(ui_nobody); ui_nobody = NULL; } } void popup_menu_below_button (GtkMenu *menu, gint *x, gint *y, gboolean *push_in, GtkWidget *button) { GtkRequisition menu_req; GtkTextDirection direction; GtkAllocation allocation; #if GTK_CHECK_VERSION(3,0,0) gtk_widget_get_preferred_size (GTK_WIDGET (menu), NULL, &menu_req); #else gtk_widget_size_request(GTK_WIDGET(menu),&menu_req); #endif direction = gtk_widget_get_direction (button); gdk_window_get_origin (gtk_widget_get_window (button), x, y); gtk_widget_get_allocation (button, &allocation); *x += allocation.x; *y += allocation.y + allocation.height; if (direction == GTK_TEXT_DIR_LTR) *x += MAX (allocation.width - menu_req.width, 0); else if (menu_req.width > allocation.width) *x -= menu_req.width - allocation.width; *push_in = TRUE; } static gboolean image_file_valid(const char *filename) { GdkPixbuf *pixbuf; pixbuf=gdk_pixbuf_new_from_file(filename,NULL); if(pixbuf) g_object_unref(pixbuf); return pixbuf?TRUE:FALSE; } static void update_face_image(GtkWidget *w) { GdkPixbuf *pixbuf; char *path=g_build_filename(user->pw_dir,".face",NULL); pixbuf=gdk_pixbuf_new_from_file_at_scale(path,48,48,FALSE,NULL); g_free(path); if(!pixbuf && ui_nobody) pixbuf=gdk_pixbuf_new_from_file_at_scale(ui_nobody,48,48,FALSE,NULL); if(!pixbuf) pixbuf=gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "avatar-default", 48,GTK_ICON_LOOKUP_FORCE_SIZE,NULL); if(pixbuf) { gtk_image_set_from_pixbuf(GTK_IMAGE(w),pixbuf); g_object_unref(pixbuf); } } static void set_face_file(const char *filename) { GtkWidget *w; if(filename) { gchar *contents; gsize length; GdkPixbuf *pixbuf; pixbuf=gdk_pixbuf_new_from_file(filename,NULL); if(!pixbuf) return; g_object_unref(pixbuf); if(g_file_get_contents(filename,&contents,&length,NULL)) { gchar *path=g_build_filename(user->pw_dir,".face",NULL); seteuid(user->pw_uid); setegid(user->pw_gid); g_file_set_contents(path,contents,length,NULL); seteuid(getuid()); setegid(getgid()); g_free(path); } } else { gchar *path=g_build_filename(user->pw_dir,".face",NULL); seteuid(user->pw_uid); setegid(user->pw_gid); unlink(path); seteuid(getuid()); setegid(getgid()); g_free(path); } w=(GtkWidget*)gtk_builder_get_object(builder,"user-icon-image"); update_face_image(w); } static void stock_icon_selected (GtkMenuItem *menuitem) { const char *filename; filename = g_object_get_data (G_OBJECT (menuitem), "filename"); set_face_file(filename); } static GtkWidget *menu_item_for_filename(const char *filename) { GtkWidget *image, *menuitem; GFile *file; GIcon *icon; file = g_file_new_for_path (filename); icon = g_file_icon_new (file); g_object_unref (file); image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG); g_object_unref (icon); menuitem = gtk_menu_item_new (); gtk_container_add (GTK_CONTAINER (menuitem), image); gtk_widget_show_all (menuitem); g_object_set_data_full (G_OBJECT (menuitem), "filename", g_strdup (filename), (GDestroyNotify) g_free); g_signal_connect (G_OBJECT (menuitem), "activate", G_CALLBACK (stock_icon_selected), NULL); return menuitem; } static void on_photo_popup_unmap (GtkWidget *popup_menu, GtkWidget *popup_button) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (popup_button), FALSE); } static void update_preview (GtkFileChooser *chooser) { gchar *uri; uri = gtk_file_chooser_get_preview_filename(chooser); if (uri) { GdkPixbuf *pixbuf = NULL; GtkWidget *preview; preview = gtk_file_chooser_get_preview_widget (chooser); pixbuf=gdk_pixbuf_new_from_file_at_scale(uri,96,96,TRUE,NULL); gtk_dialog_set_response_sensitive (GTK_DIALOG (chooser), GTK_RESPONSE_ACCEPT, (pixbuf != NULL)); if (pixbuf != NULL) { gtk_image_set_from_pixbuf (GTK_IMAGE (preview), pixbuf); g_object_unref (pixbuf); } else { gtk_image_set_from_stock (GTK_IMAGE (preview), GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG); } g_free (uri); } gtk_file_chooser_set_preview_widget_active (chooser, TRUE); } static void file_icon_selected (GtkMenuItem *menuitem) { gint res; GtkWidget *w; const gchar *folder; folder = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-image-chooser"); if(folder) gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(w),folder); g_signal_connect(w,"update-preview",G_CALLBACK(update_preview),NULL); res=gtk_dialog_run(GTK_DIALOG(w)); if(res==GTK_RESPONSE_ACCEPT) { char *filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(w)); set_face_file(filename); g_free(filename); } gtk_widget_hide(GTK_WIDGET(w)); } void on_user_icon_toggled(GtkToggleButton *togglebutton,gpointer user_data) { if(!photo_popup) { gboolean added_faces=TRUE; GtkWidget *menu,*menuitem; int x=0,y=0; GDir *dir; const char *face; menu=gtk_menu_new(); dir=g_dir_open(FACES_DIR,0,NULL); if(dir) while((face=g_dir_read_name(dir))!=NULL) { char *path=g_build_filename(FACES_DIR,face,NULL); menuitem=menu_item_for_filename(path); g_free(path); gtk_menu_attach (GTK_MENU (menu), GTK_WIDGET (menuitem), x, x + 1, y, y + 1); gtk_widget_show (menuitem); x++; if (x >= ROW_SPAN - 1) { y++; x = 0; } added_faces = TRUE; } if(added_faces) { GtkWidget *image = gtk_image_new_from_icon_name("avatar-default", GTK_ICON_SIZE_DIALOG); menuitem = gtk_menu_item_new (); gtk_container_add (GTK_CONTAINER (menuitem), image); gtk_widget_show_all (menuitem); gtk_menu_attach (GTK_MENU (menu), GTK_WIDGET (menuitem), x, x + 1, y, y + 1); g_signal_connect (G_OBJECT (menuitem), "activate", G_CALLBACK (stock_icon_selected), NULL); gtk_widget_show (menuitem); y++; menuitem = gtk_separator_menu_item_new (); gtk_menu_attach (GTK_MENU (menu), GTK_WIDGET (menuitem), 0, ROW_SPAN - 1, y, y + 1); gtk_widget_show (menuitem); y++; } menuitem=gtk_menu_item_new_with_label(_("Browse for more pictures...")); gtk_menu_attach (GTK_MENU (menu), GTK_WIDGET (menuitem), 0, ROW_SPAN - 1, y, y + 1); g_signal_connect (G_OBJECT (menuitem), "activate", G_CALLBACK (file_icon_selected), NULL); gtk_widget_show (menuitem); photo_popup=menu; g_signal_connect (menu, "unmap",G_CALLBACK (on_photo_popup_unmap), togglebutton); } if(gtk_toggle_button_get_active(togglebutton)) { gtk_menu_popup(GTK_MENU(photo_popup),NULL,NULL, (GtkMenuPositionFunc) popup_menu_below_button, GTK_WIDGET(togglebutton), 0, gtk_get_current_event_time ()); } else { gtk_menu_popdown(GTK_MENU(photo_popup)); } } static gboolean on_popup_button_button_pressed (GtkToggleButton *button, GdkEventButton *event) { if (event->button == 1) { if (!gtk_widget_get_visible (photo_popup)) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); } else { gtk_menu_popdown (GTK_MENU (photo_popup)); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE); } return TRUE; } return FALSE; } void prepare_user_icon(GtkBuilder *builder) { GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"user-icon-image"); update_face_image(w); w=(GtkWidget*)gtk_builder_get_object(builder,"user-icon-button"); g_signal_connect(w,"toggled",G_CALLBACK(on_user_icon_toggled),NULL); } void prepare_user_name(GtkBuilder *builder) { GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"user-name"); gtk_label_set_text(GTK_LABEL(w),user_name); } void on_user_autologin_toggled(GtkToggleButton *togglebutton,gpointer user_data) { if(gtk_toggle_button_get_active(togglebutton)) g_key_file_set_string(config,"base","autologin",user_name); else g_key_file_remove_key(config,"base","autologin",NULL); dirty++; } void prepare_user_autologin(GtkBuilder *builder) { char *name; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"user-autologin"); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_user_autologin_toggled),NULL); name=g_key_file_get_string(config,"base","autologin",NULL); if(!name) return; if(!strcmp(name,user_name)) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),TRUE); } g_free(name); } static void on_bg_type_toggled(void) { GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-image-button"); if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) { char *s; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-file"); s=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(w)); if(s) { if(!image_file_valid(s)) { g_free(s); s=g_key_file_get_string(config,"display","bg",NULL); if(s) { gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(w),s); g_free(s); } return; } g_key_file_set_string(config,"display","bg",s); g_free(s); } } else if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder,"lxdm-bg-color-button")))) { gchar *s; GdkColor color; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-color"); gtk_color_button_get_color(GTK_COLOR_BUTTON(w),&color); s=gdk_color_to_string(&color); g_key_file_set_string(config,"display","bg",s); g_free(s); } else { g_key_file_remove_key(config,"display","bg",NULL); } dirty++; } void prepare_bg(GtkBuilder *builder) { char *s; GtkWidget *w; s=g_key_file_get_string(config,"display","bg",NULL); if(!s) { w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-default"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),TRUE); } else if(s[0]=='#') { GdkColor color; gdk_color_parse(s,&color); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-color"); gtk_color_button_set_color(GTK_COLOR_BUTTON(w),&color); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-color-button"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),TRUE); } else { w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-file"); gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(w),s); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-image-button"); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),TRUE); } g_free(s); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-image-button"); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",on_bg_type_toggled,NULL); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-color-button"); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",on_bg_type_toggled,NULL); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-file"); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"file-set",G_CALLBACK(on_bg_type_toggled),NULL); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-color"); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"color-set",G_CALLBACK(on_bg_type_toggled),NULL); w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-bg-default"); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",on_bg_type_toggled,NULL); } static void on_enable_pane_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","bottom_pane",val); GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"vbox2"); gtk_widget_set_sensitive(w,val?TRUE:FALSE); dirty++; } static void prepare_enable_pane(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-enable-bottom-pane"); val=g_key_file_get_integer(config,"display","bottom_pane",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_enable_pane_toggled),NULL); } static void prepare_vbox2(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"vbox2"); val=g_key_file_get_integer(config,"display","bottom_pane",NULL); if(!root) { gtk_widget_set_sensitive(w,FALSE); } else { gtk_widget_set_sensitive(w,val?TRUE:FALSE); } } static void on_transparent_pane_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","transparent_pane",val); dirty++; } static void prepare_transparent_pane(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-transparent-pane"); val=g_key_file_get_integer(config,"display","transparent_pane",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_transparent_pane_toggled),NULL); } static void on_hide_sessions_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","hide_sessions",val); dirty++; } static void prepare_hide_sessions(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-hide-sessions"); val=g_key_file_get_integer(config,"display","hide_sessions",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_hide_sessions_toggled),NULL); } static void on_show_lang_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","lang",val); dirty++; } static void prepare_show_lang(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-show-lang"); val=g_key_file_get_integer(config,"display","lang",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_show_lang_toggled),NULL); } static void on_show_keyboard_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","keyboard",val); dirty++; } static void prepare_show_keyboard(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-show-keyboard"); val=g_key_file_get_integer(config,"display","keyboard",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_show_keyboard_toggled),NULL); } static void on_hide_exit_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","hide_exit",val); dirty++; } static void prepare_hide_exit(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-hide-exit"); val=g_key_file_get_integer(config,"display","hide_exit",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_hide_exit_toggled),NULL); } static void on_hide_time_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"display","hide_time",val); dirty++; } static void prepare_hide_time(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-hide-time"); val=g_key_file_get_integer(config,"display","hide_time",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?TRUE:FALSE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_hide_time_toggled),NULL); } static void on_show_userlist_toggled(GtkToggleButton *button) { int val; val=gtk_toggle_button_get_active(button); g_key_file_set_integer(config,"userlist","disable",!val); dirty++; } static void prepare_show_userlist(GtkBuilder *builder) { gint val; GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder,"lxdm-user-list"); val=g_key_file_get_integer(config,"userlist","disable",NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),val?FALSE:TRUE); if(!root) gtk_widget_set_sensitive(w,FALSE); g_signal_connect(w,"toggled",G_CALLBACK(on_show_userlist_toggled),NULL); } GtkDialog *dialog_create(void) { GtkDialog *dlg; builder=gtk_builder_new(); gtk_builder_add_from_file(builder,CONFIG_UI_FILE,NULL); dlg=(GtkDialog*)gtk_builder_get_object(builder,"lxdm-config-dlg"); if(!dlg) return NULL; prepare_user_icon(builder); prepare_user_name(builder); prepare_user_autologin(builder); prepare_bg(builder); prepare_enable_pane(builder); prepare_vbox2(builder); prepare_transparent_pane(builder); prepare_hide_sessions(builder); prepare_show_lang(builder); prepare_show_keyboard(builder); prepare_hide_exit(builder); prepare_hide_time(builder); prepare_show_userlist(builder); return dlg; } static GOptionEntry entries[] = { { "user", 0, 0, G_OPTION_ARG_STRING, &user_name, "user name", NULL }, { NULL } }; int main(int arc,char *arg[]) { GError *error = NULL; GOptionContext *context; GtkDialog *dlg; context = g_option_context_new ("- lxdm config"); g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE); g_option_context_add_group (context, gtk_get_option_group (TRUE)); if (!g_option_context_parse (context, &arc, &arg, &error)) { g_print ("option parsing failed: %s\n", error->message); exit (1); } prepare_user(); #if !GTK_CHECK_VERSION(3,0,0) gtk_set_locale(); #endif bindtextdomain("lxdm", "/usr/share/locale"); textdomain("lxdm"); gtk_init(&arc,&arg); prepare_config(); dlg=dialog_create(); if(!dlg) exit(-1); gtk_dialog_run(dlg); if(dirty) { gsize length; gchar *s=g_key_file_to_data(config,&length,NULL); g_file_set_contents(CONFIG_FILE,s,length,NULL); } return 0; } lxdm-0.5.3/src/gdm/000077500000000000000000000000001262556610000140245ustar00rootroot00000000000000lxdm-0.5.3/src/gdm/gdm-languages.c000066400000000000000000000734551262556610000167210ustar00rootroot00000000000000/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright 2008 Red Hat, Inc, * 2007 William Jon McCann * * 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. * * Written by : William Jon McCann * Ray Strode */ #include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include "gdm-languages.h" #include #ifndef __LC_LAST #define __LC_LAST 13 #endif #include "locarchive.h" #define ALIASES_FILE LIBLOCALEDIR "/locale.alias" #define ARCHIVE_FILE LIBLOCALEDIR "/locale-archive" #define ISO_CODES_DATADIR ISO_CODES_PREFIX "/share/xml/iso-codes" #define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX "/share/locale" typedef struct _GdmLocale { char *id; char *name; char *language_code; char *territory_code; char *codeset; char *modifier; } GdmLocale; static GHashTable *gdm_languages_map; static GHashTable *gdm_territories_map; static GHashTable *gdm_available_locales_map; static void gdm_locale_free (GdmLocale *locale) { if (locale == NULL) { return; } g_free (locale->id); g_free (locale->name); g_free (locale->codeset); g_free (locale->modifier); g_free (locale); } static char * normalize_codeset (const char *codeset) { char *normalized_codeset; const char *p; char *q; normalized_codeset = g_strdup (codeset); if (codeset != NULL) { for (p = codeset, q = normalized_codeset; *p != '\0'; p++) { if (*p == '-' || *p == '_') { continue; } *q = g_ascii_tolower (*p); q++; } *q = '\0'; } return normalized_codeset; } /* * According to http://en.wikipedia.org/wiki/Locale * locale names are of the form: * [language[_territory][.codeset][@modifier]] */ void gdm_parse_language_name (const char *name, char **language_codep, char **territory_codep, char **codesetp, char **modifierp) { GRegex *re; GMatchInfo *match_info; gboolean res; GError *error; error = NULL; re = g_regex_new ("^(?P[^_.@[:space:]]+)" "(_(?P[[:upper:]]+))?" "(\\.(?P[-_0-9a-zA-Z]+))?" "(@(?P[[:ascii:]]+))?$", 0, 0, &error); if (re == NULL) { g_critical ("%s", error->message); return; } if (!g_regex_match (re, name, 0, &match_info) || g_match_info_is_partial_match (match_info)) { g_match_info_free (match_info); g_regex_unref (re); g_warning ("locale %s isn't valid\n", name); return; } res = g_match_info_matches (match_info); if (! res) { g_warning ("Unable to parse locale: %s", name); return; } if (language_codep != NULL) { *language_codep = g_match_info_fetch_named (match_info, "language"); } if (territory_codep != NULL) { *territory_codep = g_match_info_fetch_named (match_info, "territory"); if (*territory_codep != NULL && *territory_codep[0] == '\0') { g_free (*territory_codep); *territory_codep = NULL; } } if (codesetp != NULL) { *codesetp = g_match_info_fetch_named (match_info, "codeset"); if (*codesetp != NULL && *codesetp[0] == '\0') { g_free (*codesetp); *codesetp = NULL; } if (*codesetp != NULL) { char *codeset; codeset = normalize_codeset (*codesetp); g_free (*codesetp); *codesetp = codeset; } } if (modifierp != NULL) { *modifierp = g_match_info_fetch_named (match_info, "modifier"); if (*modifierp != NULL && *modifierp[0] == '\0') { g_free (*modifierp); *modifierp = NULL; } } g_match_info_free (match_info); g_regex_unref (re); } static char * construct_language_name (const char *language, const char *territory, const char *codeset, const char *modifier) { char *name; g_assert (language[0] != 0); g_assert (territory == NULL || territory[0] != 0); g_assert (codeset == NULL || codeset[0] != 0); g_assert (modifier == NULL || modifier[0] != 0); name = g_strdup_printf ("%s%s%s%s%s%s%s", language, territory != NULL? "_" : "", territory != NULL? territory : "", codeset != NULL? "." : "", codeset != NULL? codeset : "", modifier != NULL? "@" : "", modifier != NULL? modifier : ""); return name; } static void make_codeset_canonical_for_locale (const char *name, char **codeset) { char *old_locale; old_locale = setlocale (LC_CTYPE, name); if (old_locale == NULL) { return; } g_free (*codeset); *codeset = g_strdup (nl_langinfo (CODESET)); setlocale (LC_CTYPE, old_locale); } char * gdm_normalize_language_name (const char *name) { char *normalized_name; char *language_code; char *territory_code; char *codeset; char *modifier; if (name[0] == '\0') { return NULL; } gdm_parse_language_name (name, &language_code, &territory_code, &codeset, &modifier); if (codeset != NULL) { make_codeset_canonical_for_locale (name, &codeset); } normalized_name = construct_language_name (language_code, territory_code, codeset, modifier); g_free (language_code); g_free (territory_code); g_free (codeset); g_free (modifier); return normalized_name; } static gboolean language_name_is_valid (const char *language_name) { char *old_locale; gboolean is_valid; old_locale = g_strdup (setlocale (LC_MESSAGES, NULL)); is_valid = setlocale (LC_MESSAGES, language_name) != NULL; setlocale (LC_MESSAGES, old_locale); g_free (old_locale); return is_valid; } static gboolean language_name_is_utf8 (const char *language_name) { char *old_locale; char *codeset; gboolean is_utf8; old_locale = g_strdup (setlocale (LC_CTYPE, NULL)); if (setlocale (LC_CTYPE, language_name) == NULL) { g_free (old_locale); return FALSE; } codeset = normalize_codeset (nl_langinfo (CODESET)); is_utf8 = strcmp (codeset, "utf8") == 0; g_free (codeset); setlocale (LC_CTYPE, old_locale); g_free (old_locale); return is_utf8; } static gboolean language_name_has_translations (const char *language_name) { GDir *dir; char *path; const char *name; gboolean has_translations; path = g_build_filename (GNOMELOCALEDIR, language_name, "LC_MESSAGES", NULL); has_translations = FALSE; dir = g_dir_open (path, 0, NULL); g_free (path); if (dir == NULL) { goto out; } do { name = g_dir_read_name (dir); if (name == NULL) { break; } if (g_str_has_suffix (name, ".mo")) { has_translations = TRUE; break; } } while (name != NULL); g_dir_close (dir); out: return has_translations; } static gboolean add_locale (const char *language_name) { GdmLocale *locale; GdmLocale *old_locale; char *name; if (language_name_is_utf8 (language_name)) { name = g_strdup (language_name); } else { name = g_strdup_printf ("%s.utf8", language_name); if (!language_name_is_utf8 (name)) { g_free (name); return FALSE; } } if (!language_name_is_valid (name)) { g_free (name); return FALSE; } locale = g_new0 (GdmLocale, 1); gdm_parse_language_name (name, &locale->language_code, &locale->territory_code, &locale->codeset, &locale->modifier); g_free (name); name = NULL; locale->id = construct_language_name (locale->language_code, locale->territory_code, NULL, locale->modifier); locale->name = construct_language_name (locale->language_code, locale->territory_code, locale->codeset, locale->modifier); if (!language_name_has_translations (locale->name) && !language_name_has_translations (locale->id) && !language_name_has_translations (locale->language_code)) { gdm_locale_free (locale); return FALSE; } old_locale = g_hash_table_lookup (gdm_available_locales_map, locale->id); if (old_locale != NULL) { if (strlen (old_locale->name) > strlen (locale->name)) { gdm_locale_free (locale); return FALSE; } } g_hash_table_insert (gdm_available_locales_map, g_strdup (locale->id), locale); return TRUE; } struct nameent { char *name; uint32_t locrec_offset; }; static gboolean collect_locales_from_archive (void) { GMappedFile *mapped; GError *error; char *addr; struct locarhead *head; struct namehashent *namehashtab; struct nameent *names; uint32_t used; uint32_t cnt; gsize len; gboolean locales_collected; error = NULL; mapped = g_mapped_file_new (ARCHIVE_FILE, FALSE, &error); if (mapped == NULL) { g_warning ("Mapping failed for %s: %s", ARCHIVE_FILE, error->message); g_error_free (error); return FALSE; } locales_collected = FALSE; addr = g_mapped_file_get_contents (mapped); len = g_mapped_file_get_length (mapped); head = (struct locarhead *) addr; if (head->namehash_offset + head->namehash_size > len || head->string_offset + head->string_size > len || head->locrectab_offset + head->locrectab_size > len || head->sumhash_offset + head->sumhash_size > len) { goto out; } namehashtab = (struct namehashent *) (addr + head->namehash_offset); names = (struct nameent *) g_new0 (struct nameent, head->namehash_used); for (cnt = used = 0; cnt < head->namehash_size; ++cnt) { if (namehashtab[cnt].locrec_offset != 0) { names[used].name = addr + namehashtab[cnt].name_offset; names[used++].locrec_offset = namehashtab[cnt].locrec_offset; } } for (cnt = 0; cnt < used; ++cnt) { add_locale (names[cnt].name); } g_free (names); locales_collected = TRUE; out: #if GLIB_CHECK_VERSION(2,22,0) g_mapped_file_unref(mapped); #else g_mapped_file_free (mapped); #endif return locales_collected; } static int select_dirs (const struct dirent *dirent) { int result = 0; if (strcmp (dirent->d_name, ".") != 0 && strcmp (dirent->d_name, "..") != 0) { mode_t mode = 0; #ifdef _DIRENT_HAVE_D_TYPE if (dirent->d_type != DT_UNKNOWN && dirent->d_type != DT_LNK) { mode = DTTOIF (dirent->d_type); } else #endif { struct stat st; char *path; path = g_build_filename (LIBLOCALEDIR, dirent->d_name, NULL); if (g_stat (path, &st) == 0) { mode = st.st_mode; } g_free (path); } result = S_ISDIR (mode); } return result; } static void collect_locales_from_directory (void) { struct dirent **dirents; int ndirents; int cnt; ndirents = scandir (ISO_CODES_LOCALESDIR, &dirents, select_dirs, alphasort); for (cnt = 0; cnt < ndirents; ++cnt) { add_locale (dirents[cnt]->d_name); } if (ndirents > 0) { free (dirents); } } static void collect_locales (void) { if (gdm_available_locales_map == NULL) { gdm_available_locales_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) gdm_locale_free); } if (collect_locales_from_archive ()) { return; } else { g_warning ("Could not read list of available locales from libc, " "guessing possible locales from available translations, " "but list may be incomplete!"); collect_locales_from_directory (); } } static gboolean is_fallback_language (const char *code) { const char *fallback_language_names[] = { "C", "POSIX", NULL }; int i; for (i = 0; fallback_language_names[i] != NULL; i++) { if (strcmp (code, fallback_language_names[i]) == 0) { return TRUE; } } return FALSE; } static const char * get_language (const char *code) { const char *name; int len; g_assert (code != NULL); if (is_fallback_language (code)) { return "Unspecified"; } len = strlen (code); if (len != 2 && len != 3) { return NULL; } name = (const char *) g_hash_table_lookup (gdm_languages_map, code); return name; } static char * get_first_item_in_semicolon_list (const char *list) { char **items; char *item; /* Some entries in iso codes have multiple values, separated * by semicolons. Not really sure which one to pick, so * we just arbitrarily pick the first one. */ items = g_strsplit (list, "; ", 2); item = g_strdup (items[0]); g_strfreev (items); return item; } static char * get_translated_language (const char *code, const char *locale) { const char *language; char *name; language = get_language (code); name = NULL; if (language != NULL) { const char *translated_name; char *old_locale; if (locale != NULL) { old_locale = g_strdup (setlocale (LC_MESSAGES, NULL)); setlocale (LC_MESSAGES, locale); setlocale (LC_ALL, locale); } if (is_fallback_language (code)) { name = _("Unspecified"); } else { translated_name = dgettext ("iso_639", language); name = get_first_item_in_semicolon_list (translated_name); } if (locale != NULL) { setlocale (LC_MESSAGES, old_locale); g_free (old_locale); } } return name; } static const char * get_territory (const char *code) { const char *name; int len; g_assert (code != NULL); len = strlen (code); if (len != 2 && len != 3) { return NULL; } name = (const char *) g_hash_table_lookup (gdm_territories_map, code); return name; } static const char * get_translated_territory (const char *code, const char *locale) { const char *territory; char *name; territory = get_territory (code); name = NULL; if (territory != NULL) { const char *translated_territory; char *old_locale; if (locale != NULL) { old_locale = g_strdup (setlocale (LC_MESSAGES, NULL)); setlocale (LC_MESSAGES, locale); } translated_territory = dgettext ("iso_3166", territory); name = get_first_item_in_semicolon_list (translated_territory); if (locale != NULL) { setlocale (LC_MESSAGES, old_locale); g_free (old_locale); } } return name; } static void languages_parse_start_tag (GMarkupParseContext *ctx, const char *element_name, const char **attr_names, const char **attr_values, gpointer user_data, GError **error) { const char *ccode_longB; const char *ccode_longT; const char *ccode; const char *lang_name; if (! g_str_equal (element_name, "iso_639_entry") || attr_names == NULL || attr_values == NULL) { return; } ccode = NULL; ccode_longB = NULL; ccode_longT = NULL; lang_name = NULL; while (*attr_names && *attr_values) { if (g_str_equal (*attr_names, "iso_639_1_code")) { /* skip if empty */ if (**attr_values) { if (strlen (*attr_values) != 2) { return; } ccode = *attr_values; } } else if (g_str_equal (*attr_names, "iso_639_2B_code")) { /* skip if empty */ if (**attr_values) { if (strlen (*attr_values) != 3) { return; } ccode_longB = *attr_values; } } else if (g_str_equal (*attr_names, "iso_639_2T_code")) { /* skip if empty */ if (**attr_values) { if (strlen (*attr_values) != 3) { return; } ccode_longT = *attr_values; } } else if (g_str_equal (*attr_names, "name")) { lang_name = *attr_values; } ++attr_names; ++attr_values; } if (lang_name == NULL) { return; } if (ccode != NULL) { g_hash_table_insert (gdm_languages_map, g_strdup (ccode), g_strdup (lang_name)); } if (ccode_longB != NULL) { g_hash_table_insert (gdm_languages_map, g_strdup (ccode_longB), g_strdup (lang_name)); } if (ccode_longT != NULL) { g_hash_table_insert (gdm_languages_map, g_strdup (ccode_longT), g_strdup (lang_name)); } } static void territories_parse_start_tag (GMarkupParseContext *ctx, const char *element_name, const char **attr_names, const char **attr_values, gpointer user_data, GError **error) { const char *acode_2; const char *acode_3; const char *ncode; const char *territory_common_name; const char *territory_name; if (! g_str_equal (element_name, "iso_3166_entry") || attr_names == NULL || attr_values == NULL) { return; } acode_2 = NULL; acode_3 = NULL; ncode = NULL; territory_common_name = NULL; territory_name = NULL; while (*attr_names && *attr_values) { if (g_str_equal (*attr_names, "alpha_2_code")) { /* skip if empty */ if (**attr_values) { if (strlen (*attr_values) != 2) { return; } acode_2 = *attr_values; } } else if (g_str_equal (*attr_names, "alpha_3_code")) { /* skip if empty */ if (**attr_values) { if (strlen (*attr_values) != 3) { return; } acode_3 = *attr_values; } } else if (g_str_equal (*attr_names, "numeric_code")) { /* skip if empty */ if (**attr_values) { if (strlen (*attr_values) != 3) { return; } ncode = *attr_values; } } else if (g_str_equal (*attr_names, "common_name")) { /* skip if empty */ if (**attr_values) { territory_common_name = *attr_values; } } else if (g_str_equal (*attr_names, "name")) { territory_name = *attr_values; } ++attr_names; ++attr_values; } if (territory_common_name != NULL) { territory_name = territory_common_name; } if (territory_name == NULL) { return; } if (acode_2 != NULL) { g_hash_table_insert (gdm_territories_map, g_strdup (acode_2), g_strdup (territory_name)); } if (acode_3 != NULL) { g_hash_table_insert (gdm_territories_map, g_strdup (acode_3), g_strdup (territory_name)); } if (ncode != NULL) { g_hash_table_insert (gdm_territories_map, g_strdup (ncode), g_strdup (territory_name)); } } static void languages_init (void) { GError *error; gboolean res; char *buf; gsize buf_len; bindtextdomain ("iso_639", ISO_CODES_LOCALESDIR); bind_textdomain_codeset ("iso_639", "UTF-8"); gdm_languages_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); error = NULL; res = g_file_get_contents (ISO_CODES_DATADIR "/iso_639.xml", &buf, &buf_len, &error); if (res) { GMarkupParseContext *ctx; GMarkupParser parser = { languages_parse_start_tag, NULL, NULL, NULL, NULL }; ctx = g_markup_parse_context_new (&parser, 0, NULL, NULL); error = NULL; res = g_markup_parse_context_parse (ctx, buf, buf_len, &error); if (! res) { g_warning ("Failed to parse '%s': %s\n", ISO_CODES_DATADIR "/iso_639.xml", error->message); g_error_free (error); } g_markup_parse_context_free (ctx); g_free (buf); } else { g_warning ("Failed to load '%s': %s\n", ISO_CODES_DATADIR "/iso_639.xml", error->message); g_error_free (error); } } static void territories_init (void) { GError *error; gboolean res; char *buf; gsize buf_len; bindtextdomain ("iso_3166", ISO_CODES_LOCALESDIR); bind_textdomain_codeset ("iso_3166", "UTF-8"); gdm_territories_map = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); error = NULL; res = g_file_get_contents (ISO_CODES_DATADIR "/iso_3166.xml", &buf, &buf_len, &error); if (res) { GMarkupParseContext *ctx; GMarkupParser parser = { territories_parse_start_tag, NULL, NULL, NULL, NULL }; ctx = g_markup_parse_context_new (&parser, 0, NULL, NULL); error = NULL; res = g_markup_parse_context_parse (ctx, buf, buf_len, &error); if (! res) { g_warning ("Failed to parse '%s': %s\n", ISO_CODES_DATADIR "/iso_3166.xml", error->message); g_error_free (error); } g_markup_parse_context_free (ctx); g_free (buf); } else { g_warning ("Failed to load '%s': %s\n", ISO_CODES_DATADIR "/iso_3166.xml", error->message); g_error_free (error); } } char * gdm_get_language_from_name (const char *name, const char *locale) { char *full_language; char *language_code; char *territory_code; const char *language; const char *territory; if (gdm_languages_map == NULL) { languages_init (); } if (gdm_territories_map == NULL) { territories_init (); } language_code = NULL; territory_code = NULL; full_language = NULL; gdm_parse_language_name (name, &language_code, &territory_code, NULL, NULL); if (language_code == NULL) { goto out; } language = get_translated_language (language_code, locale); if (territory_code != NULL) { territory = get_translated_territory (territory_code, locale); } else { territory = NULL; } if (territory != NULL) { full_language = g_strdup_printf ("%s (%s)", language ? language : "", territory ? territory : ""); } else { full_language = g_strdup (language); } out: g_free (language_code); g_free (territory_code); return full_language; } char ** gdm_get_all_language_names (void) { GHashTableIter iter; gpointer key, value; GPtrArray *array; if (gdm_available_locales_map == NULL) { collect_locales (); } array = g_ptr_array_new (); g_hash_table_iter_init (&iter, gdm_available_locales_map); while (g_hash_table_iter_next (&iter, &key, &value)) { GdmLocale *locale; locale = (GdmLocale *) value; g_ptr_array_add (array, g_strdup (locale->name)); } g_ptr_array_add (array, NULL); return (char **) g_ptr_array_free (array, FALSE); } lxdm-0.5.3/src/gdm/gdm-languages.h000066400000000000000000000031611262556610000167110ustar00rootroot00000000000000/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright 2008 Red Hat, Inc. * Copyright 2007 William Jon McCann * * 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. * * Written by: Ray Strode * William Jon McCann */ #ifndef __GDM_LANGUAGES_H #define __GDM_LANGUAGES_H G_BEGIN_DECLS char * gdm_get_language_from_name (const char *name, const char *locale); char ** gdm_get_all_language_names (void); void gdm_parse_language_name (const char *name, char **language_codep, char **territory_codep, char **codesetp, char **modifierp); char * gdm_normalize_language_name (const char *name); G_END_DECLS #endif /* __GDM_LANGUAGE_CHOOSER_WIDGET_H */ lxdm-0.5.3/src/gdm/locarchive.h000066400000000000000000000043401262556610000163150ustar00rootroot00000000000000/* Definitions for locale archive handling. Copyright (C) 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _LOCARCHIVE_H #define _LOCARCHIVE_H 1 #include #define AR_MAGIC 0xde020109 struct locarhead { uint32_t magic; /* Serial number. */ uint32_t serial; /* Name hash table. */ uint32_t namehash_offset; uint32_t namehash_used; uint32_t namehash_size; /* String table. */ uint32_t string_offset; uint32_t string_used; uint32_t string_size; /* Table with locale records. */ uint32_t locrectab_offset; uint32_t locrectab_used; uint32_t locrectab_size; /* MD5 sum hash table. */ uint32_t sumhash_offset; uint32_t sumhash_used; uint32_t sumhash_size; }; struct namehashent { /* Hash value of the name. */ uint32_t hashval; /* Offset of the name in the string table. */ uint32_t name_offset; /* Offset of the locale record. */ uint32_t locrec_offset; }; struct sumhashent { /* MD5 sum. */ char sum[16]; /* Offset of the file in the archive. */ uint32_t file_offset; }; struct locrecent { uint32_t refs; /* # of namehashent records that point here */ struct { uint32_t offset; uint32_t len; } record[__LC_LAST]; }; struct locarhandle { int fd; void *addr; size_t len; }; /* In memory data for the locales with their checksums. */ typedef struct locale_category_data { off_t size; void *addr; char sum[16]; } locale_data_t[__LC_LAST]; #endif /* locarchive.h */ lxdm-0.5.3/src/greeter-gdk.c000066400000000000000000000221041262556610000156200ustar00rootroot00000000000000/* * greeter-gdk.c - basic ui of lxdm * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #define XLIB_ILLEGAL_ACCESS #include #include #include #ifdef ENABLE_GTK3 #include #endif #include #include #include #include #include #include #include #include #include "greeter-utils.h" #define MAX_INPUT_CHARS 32 #define MAX_VISIBLE_CHARS 14 static Display *dpy; static GdkWindow *root, *win; static PangoLayout *layout; static char user[MAX_INPUT_CHARS]; static char pass[MAX_INPUT_CHARS]; static int stage; static GdkRectangle rc; static GdkColor bg, border, hint, text, msg; static char *message; GKeyFile *config; static GIOChannel *greeter_io; static GMainLoop *greeter_loop; static int get_text_layout(char *s, int *w, int *h) { pango_layout_set_text(layout, s, -1); pango_layout_get_pixel_size(layout, w, h); return 0; } static void draw_text(cairo_t *cr, double x, double y, char *text, GdkColor *color) { pango_layout_set_text(layout, text, -1); cairo_move_to(cr, x, y); gdk_cairo_set_source_color(cr, color); pango_cairo_show_layout(cr, layout); } static void on_ui_expose(void) { cairo_t *cr; char *p = (stage == 0) ? user : pass; int len = strlen(p); GdkColor *color=&text; if(stage==2) { return; } cr=gdk_cairo_create(win); cairo_pattern_t *pattern=gdk_window_get_background_pattern(win); if(pattern) { cairo_set_source(cr,pattern); cairo_paint(cr); } gdk_cairo_set_source_color(cr, &bg); cairo_rectangle(cr, rc.x, rc.y, rc.width, rc.height); cairo_fill(cr); gdk_cairo_set_source_color(cr, &border); cairo_set_line_width(cr, 1.0); cairo_stroke(cr); cairo_rectangle(cr, rc.x, rc.y, rc.width, rc.height); if( message ) { color = &msg; p = message; } else if( stage == 0 ) { if( len < MAX_VISIBLE_CHARS ) p = user; else p = user + len - MAX_VISIBLE_CHARS; if( len == 0 ) { p = "Username"; color = &hint; } } else if( stage >= 1 ) { char spy[MAX_VISIBLE_CHARS + 1]; p = spy; if( len < MAX_VISIBLE_CHARS ) { memset(spy, '*', len); p[len] = 0; } else { memset(spy, '*', MAX_VISIBLE_CHARS); p[MAX_VISIBLE_CHARS] = 0; } if( len == 0 ) { p = "Password"; color = &hint; } } draw_text(cr, rc.x+3, rc.y+3, p, color); cairo_destroy(cr); } static int ui_do_login(void) { if( stage != 2 ) return -1; if( !strcmp(user, "reboot") ) printf("reboot\n"); else if(!strcmp(user, "shutdown")) printf("shutdown\n"); else { char *temp; temp=(char*)g_base64_encode((guchar*)pass,strlen(pass)+1); printf("login user=%s pass=%s\n",user, temp); g_free(temp); } return 0; } static void on_ui_key(GdkEventKey *event) { char *p; int len; int key; if( stage != 0 && stage != 1 ) return; message = 0; key = event->keyval; p = (stage == 0) ? user : pass; len = strlen(p); if( key == GDK_Escape ) { user[0] = 0; pass[0] = 0; stage = 0; } else if( key == GDK_BackSpace ) { if( len > 0 ) p[--len] = 0; } else if( key == GDK_Return ) { if( stage == 0 && len == 0 ) return; stage++; if( stage == 1 ) if( !strcmp(user, "reboot") || !strcmp(user, "shutdown") ) stage = 2; } else if( key >= 0x20 && key <= 0x7e ) if( len < MAX_INPUT_CHARS - 1 ) { p[len++] = key; p[len] = 0; } if(stage==2) { #ifndef ENABLE_GTK3 gdk_window_clear(win); #else cairo_t *cr=gdk_cairo_create(win); cairo_pattern_t *pattern=gdk_window_get_background_pattern(win); cairo_set_source(cr,pattern); cairo_paint(cr); cairo_destroy(cr); #endif } else { on_ui_expose(); } if( stage == 2 ) { ui_do_login(); if( stage != 2 ) on_ui_expose(); } } void ui_event_cb(GdkEvent *event, gpointer data) { if(stage == 2) return; if(event->type == GDK_KEY_PRESS) { on_ui_key((GdkEventKey*)event); } else if(event->type == GDK_EXPOSE) { on_ui_expose(); } } static void on_screen_size_changed(GdkScreen *screen,GdkWindow *window) { GdkRectangle dest; gdk_window_hide(window); ui_get_geometry(window,&dest); rc.x = dest.x + (dest.width - rc.width) / 2; rc.y = dest.y + (dest.height - rc.height) / 2; gdk_window_move_resize(window,dest.x,dest.y,dest.width,dest.height); ui_set_bg(window,config); gdk_window_show(window); } void ui_prepare(void) { cairo_t *cr; PangoFontDescription *desc; char *p; int w, h; /* get current display */ dpy = gdk_x11_get_default_xdisplay(); root = gdk_get_default_root_window(); user[0] = pass[0] = 0; stage = 0; p = g_key_file_get_string(config, "input", "border", 0); if( !p ) p = g_strdup("#CBCAE6"); gdk_color_parse(p, &border); g_free(p); p = g_key_file_get_string(config, "input", "bg", 0); if( !p ) p = g_strdup("#ffffff"); gdk_color_parse(p, &bg); g_free(p); p = g_key_file_get_string(config, "input", "hint", 0); if( !p ) p = g_strdup("#CBCAE6"); gdk_color_parse(p, &hint); g_free(p); p = g_key_file_get_string(config, "input", "text", 0); if( !p ) p = g_strdup("#000000"); gdk_color_parse(p, &text); g_free(p); p = g_key_file_get_string(config, "input", "msg", 0); if( !p ) p = g_strdup("#ff0000"); gdk_color_parse(p, &msg); g_free(p); /* create the window */ if( !win ) { GdkScreen *scr; GdkWindowAttr attr; int mask = 0; memset( &attr, 0, sizeof(attr) ); attr.window_type = GDK_WINDOW_TOPLEVEL; attr.event_mask = GDK_EXPOSURE_MASK | GDK_KEY_PRESS_MASK; attr.wclass = GDK_INPUT_OUTPUT; win = gdk_window_new(root, &attr, mask); gdk_window_set_decorations(win,0); gdk_window_set_title(win,"lxdm-greter-gdk"); scr=gdk_screen_get_default(); g_signal_connect(scr, "size-changed", G_CALLBACK(on_screen_size_changed), win); } /* create the font */ if( layout ) { g_object_unref(layout); layout = NULL; } cr = gdk_cairo_create(win); layout = pango_cairo_create_layout(cr); cairo_destroy(cr); p = g_key_file_get_string(config, "input", "font", 0); if( !p ) p = g_strdup("Sans 14"); desc = pango_font_description_from_string(p); pango_layout_set_font_description(layout, desc); pango_font_description_free(desc); g_free(p); /* set window size */ if( layout ) { char temp[MAX_VISIBLE_CHARS + 1 + 1]; GdkRectangle dest; ui_get_geometry(win,&dest); memset( temp, 'A', sizeof(temp) ); temp[sizeof(temp) - 1] = 0; get_text_layout(temp, &w, &h); rc.width = w + 6; rc.height = h + 6; rc.x = dest.x + (dest.width - rc.width) / 2; rc.y = dest.y + (dest.height - rc.height) / 2; gdk_window_move_resize(win, dest.x, dest.y, dest.width, dest.height); } /* connect event */ gdk_window_set_events(win, GDK_EXPOSURE_MASK | GDK_KEY_PRESS_MASK); /* draw the first time */ ui_set_bg(win,config); gdk_window_show(win); ui_set_focus(win); } static gboolean on_lxdm_command(GIOChannel *source, GIOCondition condition, gpointer data) { GIOStatus ret; char *str; if( !(G_IO_IN & condition) ) return FALSE; ret = g_io_channel_read_line(source, &str, NULL, NULL, NULL); if( ret != G_IO_STATUS_NORMAL ) return FALSE; if( !strncmp(str, "quit", 4) || !strncmp(str, "exit",4)) g_main_loop_quit(greeter_loop); else if( !strncmp(str, "reset", 5) ) { user[0] = pass[0] = 0; stage = 0; on_ui_expose(); } g_free(str); return TRUE; } int main(void) { greeter_loop = g_main_loop_new(NULL, 0); config = g_key_file_new(); g_key_file_load_from_file(config, CONFIG_FILE, G_KEY_FILE_KEEP_COMMENTS, NULL); greeter_io = g_io_channel_unix_new(0); g_io_add_watch(greeter_io, G_IO_IN, on_lxdm_command, NULL); setvbuf(stdout, NULL, _IOLBF, 0 ); gdk_init(NULL,NULL); ui_prepare(); ui_add_cursor(); gdk_event_handler_set(ui_event_cb, 0, 0); g_main_loop_run(greeter_loop); return 0; } lxdm-0.5.3/src/greeter-utils.c000066400000000000000000000105541262556610000162210ustar00rootroot00000000000000#include #include #include #include #include #include #include #include static cairo_surface_t *cairo_surface_create_from_pixbuf (GdkWindow *root,GdkPixbuf *pixbuf) { Display *dpy=GDK_WINDOW_XDISPLAY(root); int scr=DefaultScreen(dpy); Visual *visual=DefaultVisual(dpy,scr); gint width=gdk_pixbuf_get_width(pixbuf); gint height=gdk_pixbuf_get_height(pixbuf); Pixmap pix=XCreatePixmap(dpy,GDK_WINDOW_XID(root),width,height,DefaultDepth(dpy,scr)); cairo_surface_t *surface=cairo_xlib_surface_create(dpy,pix,visual,width,height); cairo_t *cr=cairo_create(surface); gdk_cairo_set_source_pixbuf(cr,pixbuf,0,0); cairo_paint(cr); cairo_destroy(cr); return surface; } int ui_get_geometry(GdkWindow *win,GdkRectangle *rc) { #if GTK_CHECK_VERSION(2,24,0) GdkScreen *screen=gdk_window_get_screen(win); #else GdkScreen *screen=gdk_screen_get_default(); #endif #if GTK_CHECK_VERSION(2,24,0) gint monitor=gdk_screen_get_primary_monitor(screen); #else gint monitor=0; #endif gdk_screen_get_monitor_geometry(screen,monitor,rc); return 0; } void ui_set_bg(GdkWindow *win,GKeyFile *config) { GdkPixbuf *bg_img=NULL; #if GTK_CHECK_VERSION(3,4,0) GdkRGBA bg_color; #else GdkColor bg_color; #endif GdkWindow *root=gdk_get_default_root_window(); char *p=g_key_file_get_string(config,"display","bg",NULL); #if GTK_CHECK_VERSION(3,4,0) gdk_rgba_parse(&bg_color,"#222E45"); #else gdk_color_parse("#222E45",&bg_color); #endif if( p && p[0] != '#' ) { bg_img = gdk_pixbuf_new_from_file(p, 0); } if( p && p[0] == '#' ) { #if GTK_CHECK_VERSION(3,4,0) gdk_rgba_parse(&bg_color,p); #else gdk_color_parse(p,&bg_color); #endif } g_free(p); /* set background */ if( bg_img ) { p = g_key_file_get_string(config, "display", "bg_style", 0); if( !p || !strcmp(p, "stretch") ) { GdkPixbuf *pb; GdkRectangle rc; ui_get_geometry(win,&rc); pb = gdk_pixbuf_scale_simple(bg_img, rc.width, rc.height, GDK_INTERP_BILINEAR); g_object_unref(bg_img); bg_img = pb; } g_free(p); #ifdef ENABLE_GTK3 cairo_surface_t *surface; cairo_pattern_t *pattern; surface=cairo_surface_create_from_pixbuf(root,bg_img); pattern=cairo_pattern_create_for_surface(surface); g_object_unref(bg_img); gdk_window_set_background_pattern(win,pattern); gdk_window_set_background_pattern(root,pattern); cairo_pattern_destroy(pattern); #else GdkPixmap *pix = NULL; gdk_pixbuf_render_pixmap_and_mask(bg_img, &pix, NULL, 0); g_object_unref(bg_img); gdk_window_set_back_pixmap(win,pix,FALSE); gdk_window_set_back_pixmap(root,pix,FALSE); g_object_unref(pix); #endif } else { #ifdef ENABLE_GTK3 #if GTK_CHECK_VERSION(3,4,0) if(win) gdk_window_set_background_rgba(win,&bg_color); gdk_window_set_background_rgba(root,&bg_color); #else if(win) gdk_window_set_background(win,&bg_color); gdk_window_set_background(root,&bg_color); #endif #else GdkColormap *map; if(win) { map=(GdkColormap*)gdk_drawable_get_colormap(win); gdk_colormap_alloc_color(map, &bg_color, TRUE, TRUE); gdk_window_set_background(win, &bg_color); } map=(GdkColormap*)gdk_drawable_get_colormap(root); gdk_colormap_alloc_color(map, &bg_color, TRUE, TRUE); gdk_window_set_background(root, &bg_color); #endif } } void ui_set_focus(GdkWindow *win) { #if GTK_CHECK_VERSION(2,24,0) Display *dpy=gdk_x11_display_get_xdisplay(gdk_window_get_display(win)); #else Display *dpy=gdk_x11_display_get_xdisplay(gdk_display_get_default()); #endif gdk_flush(); while(1) { XWindowAttributes attr; XGetWindowAttributes(dpy,GDK_WINDOW_XID(win),&attr); if(attr.map_state == IsViewable) break; usleep(10000); } XSetInputFocus(dpy,GDK_WINDOW_XID(win),RevertToParent,CurrentTime); } void ui_add_cursor(void) { GdkCursor *cur; GdkWindow *root=gdk_get_default_root_window(); cur = gdk_cursor_new(GDK_LEFT_PTR); gdk_window_set_cursor(root, cur); XDefineCursor(gdk_x11_get_default_xdisplay(), GDK_WINDOW_XID(gdk_get_default_root_window()), GDK_CURSOR_XCURSOR(cur)); #if GTK_CHECK_VERSION(3,0,0) g_object_unref(cur); #else gdk_cursor_unref(cur); #endif } void ui_set_cursor(GdkWindow *win,int which) { GdkCursor *cursor=gdk_cursor_new(which); gdk_window_set_cursor (win,cursor); #if GTK_CHECK_VERSION(3,0,0) g_object_unref(cursor); #else gdk_cursor_unref(cursor); #endif } lxdm-0.5.3/src/greeter-utils.h000066400000000000000000000004441262556610000162230ustar00rootroot00000000000000#ifndef _GREETER_UTILS_H_ #define _GREETER_UTILS_H_ void ui_set_bg(GdkWindow *win,GKeyFile *config); void ui_set_focus(GdkWindow *win); void ui_add_cursor(void); void ui_set_cursor(GdkWindow *win,int which); int ui_get_geometry(GdkWindow *win,GdkRectangle *rc); #endif/*_GREETER_UTILS_H_*/ lxdm-0.5.3/src/greeter.c000066400000000000000000001101321262556610000150540ustar00rootroot00000000000000/* * lxdm-ui.c * * Copyright 2009 PCMan * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #ifdef ENABLE_GTK3 #include #endif #include #include #include "lang.h" #include #include #include #include #include "lxcom.h" #include "greeter-utils.h" #include "lxcommon.h" enum { COL_SESSION_NAME, COL_SESSION_EXEC, COL_SESSION_DESKTOP_FILE, N_SESSION_COLS }; enum { COL_LANG_DISPNAME, COL_LANG, N_LANG_COLS }; #define XKB_SYMBOL_DIR "/usr/share/X11/xkb/symbols.dir" static GtkBuilder* builder; static GKeyFile *config; static GKeyFile * var_config; static GtkWidget* win; static GtkWidget* alignment2; static GtkWidget* prompt; static GtkWidget* login_entry; static GtkWidget* user_list_scrolled; static GtkWidget* user_list; static GtkWidget* sessions; static GtkWidget* lang; static GtkWidget* exit_btn; static GtkWidget* exit_menu; static GtkWidget *lang_menu; static char* user = NULL; static char* pass = NULL; static char* ui_file = NULL; static char *ui_nobody = NULL; static GIOChannel *greeter_io; static int auto_login; static char datetime_fmt[8]="%c"; static void do_reboot(void) { printf("reboot\n"); } static void do_shutdown(void) { printf("shutdown\n"); } static char *get_session_lang(void) { GtkTreeModel* model; GtkTreeIter it; gchar *res; if(!lang) return g_strdup(""); if(!gtk_combo_box_get_active_iter(GTK_COMBO_BOX(lang), &it)) return g_strdup(""); model = gtk_combo_box_get_model(GTK_COMBO_BOX(lang)); gtk_tree_model_get(model, &it, 1, &res, -1); return res; } static char *get_session_exec(void) { GtkTreeModel* model; GtkTreeIter it; gchar *res; if(!sessions) return g_strdup(""); if(!gtk_combo_box_get_active_iter(GTK_COMBO_BOX(sessions), &it)) return g_strdup(""); model = gtk_combo_box_get_model(GTK_COMBO_BOX(sessions)); gtk_tree_model_get(model, &it, 1, &res, -1); return res; } static void switch_to_input_user(void) { if(user) { g_free(user); user=NULL; } if(pass) { g_free(pass); pass=NULL; } gtk_label_set_text( GTK_LABEL(prompt), _("User:")); gtk_widget_show(prompt); if(user_list) { gtk_widget_hide(login_entry); if(user_list_scrolled) gtk_widget_show(user_list_scrolled); else gtk_widget_hide(user_list); gtk_widget_grab_focus(user_list); } else { gtk_widget_show(login_entry); gtk_widget_grab_focus(login_entry); } } static void switch_to_input_passwd(void) { if(user_list!=NULL) { if(user_list_scrolled) gtk_widget_hide(user_list_scrolled); else gtk_widget_hide(user_list); } gtk_label_set_text( GTK_LABEL(prompt), _("Password:") ); gtk_entry_set_text(GTK_ENTRY(login_entry), ""); gtk_entry_set_visibility(GTK_ENTRY(login_entry), FALSE); gtk_widget_show(login_entry); gtk_widget_grab_focus(login_entry); } static void try_login_user(const char *user) { char *session_exec=get_session_exec(); char *session_lang=get_session_lang(); printf("login user=%s session=%s lang=%s\n", user, session_exec, session_lang); g_free(session_lang); g_free(session_exec); } static void on_entry_activate(GtkEntry* entry) { char* tmp; if( !user ) { user = g_strdup( gtk_entry_get_text( GTK_ENTRY(entry) ) ); if(strlen(user)==0) { g_free(user); user=NULL; return; } if(strchr(user, ' ')) { gtk_entry_set_text(GTK_ENTRY(entry), ""); g_free(user); user = NULL; return; } if(g_key_file_get_integer(config,"base","skip_password",NULL)!=0) { gtk_label_set_text( GTK_LABEL(prompt), ""); try_login_user(user); } else { switch_to_input_passwd(); } } else { char *session_exec=get_session_exec(); char *session_lang=get_session_lang(); tmp = g_strdup( gtk_entry_get_text(entry) ); pass=g_base64_encode((guchar*)tmp,strlen(tmp)+1); g_free(tmp); printf("login user=%s pass=%s session=%s lang=%s\n", user, pass, session_exec, session_lang); /* password check failed */ g_free(user); user = NULL; g_free(pass); pass = NULL; g_free(session_lang); g_free(session_exec); gtk_widget_hide(prompt); gtk_widget_hide( GTK_WIDGET(entry) ); gtk_label_set_text( GTK_LABEL(prompt), _("User:") ); gtk_entry_set_text(GTK_ENTRY(entry), ""); gtk_entry_set_visibility(GTK_ENTRY(entry), TRUE); } } static void load_sessions() { GtkListStore* list; GtkTreeIter it, active_it = {0}; char* last; char *path, *file_name, *name, *exec; GKeyFile* kf; GDir* dir = g_dir_open(XSESSIONS_DIR, 0, NULL); if( !dir ) return; last = g_key_file_get_string(var_config, "base", "last_session", NULL); list = gtk_list_store_new(N_SESSION_COLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); kf = g_key_file_new(); while( ( file_name = (char*)g_dir_read_name(dir) ) != NULL ) { path = g_build_filename(XSESSIONS_DIR, file_name, NULL); if( g_key_file_load_from_file(kf, path, 0, NULL) ) { name = g_key_file_get_locale_string(kf, "Desktop Entry", "Name", NULL, NULL); if(!name || !name[0]) { g_free(name); g_free(path); continue; } exec = g_key_file_get_string(kf, "Desktop Entry", "Exec", NULL); if(!exec || !exec[0]) { /* bad session config file */ g_free(exec); g_free(name); g_free(path); continue; } g_free(exec); /* we just test it, and not use it */ exec=g_strdup(path); if( !strcmp(name, "LXDE") ) gtk_list_store_prepend(list, &it); else gtk_list_store_append(list, &it); gtk_list_store_set(list, &it, COL_SESSION_NAME, name, COL_SESSION_EXEC, exec, COL_SESSION_DESKTOP_FILE, file_name, -1); if( last && g_strcmp0(path, last) == 0 ) { active_it = it; } g_free(name); g_free(exec); } g_free(path); } g_dir_close(dir); g_key_file_free(kf); gtk_list_store_prepend(list, &it); gtk_list_store_set(list, &it, COL_SESSION_NAME, _("Default"), COL_SESSION_EXEC, "", COL_SESSION_DESKTOP_FILE, "__default__", -1); if( last && g_strcmp0("__default__", last) == 0 ) active_it = it; g_free(last); gtk_combo_box_set_model( GTK_COMBO_BOX(sessions), GTK_TREE_MODEL(list) ); #if GTK_CHECK_VERSION(2,24,0) gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(sessions), 0); #else gtk_combo_box_entry_set_text_column(GTK_COMBO_BOX_ENTRY(sessions), 0); #endif if( active_it.stamp ) gtk_combo_box_set_active_iter(GTK_COMBO_BOX(sessions), &active_it); else gtk_combo_box_set_active(GTK_COMBO_BOX(sessions), 0); g_object_unref(list); } static void load_lang_cb(void *arg, char *lang, char *desc) { GtkListStore* list = (GtkListStore*)arg; GtkTreeIter it; gchar *temp,*p,*lang2; lang2=g_strdup(lang); p=strchr(lang2,'.'); if(p) *p=0; if(lang2[0] && lang2[0]!='~') temp=g_strdup_printf("%s\t%s",lang2,desc?desc:""); else temp=g_strdup(desc); g_free(lang2); gtk_list_store_append(list, &it); gtk_list_store_set(list, &it, COL_LANG_DISPNAME, temp, COL_LANG, lang, -1); g_free(temp); } static gint lang_cmpr(GtkTreeModel *list,GtkTreeIter *a,GtkTreeIter *b,gpointer user_data) { gint ret; gchar *as,*bs; gtk_tree_model_get(list,a,1,&as,-1); gtk_tree_model_get(list,b,1,&bs,-1); ret=strcmp(as,bs); g_free(as);g_free(bs); return ret; } static gint keyboard_cmpr(GtkTreeModel *list,GtkTreeIter *a,GtkTreeIter *b,gpointer user_data) { gint ret; gchar *as,*bs; gtk_tree_model_get(list,a,0,&as,-1); gtk_tree_model_get(list,b,0,&bs,-1); ret=strcmp(as,bs); g_free(as);g_free(bs); return ret; } static void on_menu_lang_select(GtkMenuItem *item,gpointer user_data) { GtkTreeIter iter; char *sel=(char*)user_data; int i; gboolean res; GtkTreeModel *list; int active=-1; char *temp; if(!sel || !sel[0]) return; list=gtk_combo_box_get_model(GTK_COMBO_BOX(lang)); res=gtk_tree_model_get_iter_first(GTK_TREE_MODEL(list),&iter); for(i=0;res==TRUE;i++) { gtk_tree_model_get(GTK_TREE_MODEL(list),&iter,1,&temp,-1); if(!strcmp(temp,sel)) { g_free(temp); active=i; break; } g_free(temp); res=gtk_tree_model_iter_next(GTK_TREE_MODEL(list),&iter); } if(active>=0) { gtk_combo_box_set_active(GTK_COMBO_BOX(lang),active); return; } gtk_list_store_append((GtkListStore*)list, &iter); temp=(char*)gtk_menu_item_get_label(item); gtk_list_store_set((GtkListStore*)list, &iter, COL_LANG_DISPNAME, temp, COL_LANG, sel, -1); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(lang),&iter); } static void load_menu_lang_cb(void *arg, char *lang, char *desc) { GtkWidget *menu=GTK_WIDGET(arg); GtkWidget* item; gchar *temp,*p,*lang2; lang2=g_strdup(lang); p=strchr(lang2,'.'); if(p) *p=0; if(lang2[0] && lang2[0]!='~') temp=g_strdup_printf("%s\t%s",lang2,desc?desc:""); else temp=g_strdup(desc); g_free(lang2); item = gtk_menu_item_new_with_label(temp); g_signal_connect(item, "activate", G_CALLBACK(on_menu_lang_select), g_strdup(lang)); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); g_free(temp); } static void show_all_languages(void) { if(!lang_menu) { lang_menu=gtk_menu_new(); lxdm_load_langs(var_config,TRUE,lang_menu,load_menu_lang_cb); gtk_widget_show_all(lang_menu); } gtk_menu_popup(GTK_MENU(lang_menu),NULL,NULL,NULL,NULL,0,gtk_get_current_event_time()); } static void on_lang_changed(GtkComboBox *widget) { GtkTreeIter it; if( gtk_combo_box_get_active_iter(widget, &it) ) { GtkListStore *list=(GtkListStore*)gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); char *lang=NULL; gtk_tree_model_get(GTK_TREE_MODEL(list), &it, 1, &lang, -1); if(lang[0]=='~') { gtk_combo_box_set_active(widget,0); show_all_languages(); } g_free(lang); } } static void load_langs() { GtkListStore* list; char* lang_str; int active = 0; list = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(list),0,GTK_SORT_ASCENDING); gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(list),0,lang_cmpr,NULL,NULL); lxdm_load_langs(var_config,FALSE,list, load_lang_cb); lang_str = g_key_file_get_string(var_config, "base", "last_lang", NULL); if(lang_str && lang_str[0]) { gboolean res; GtkTreeIter iter; int i; res=gtk_tree_model_get_iter_first(GTK_TREE_MODEL(list),&iter); if(res) for(i=0;;i++) { gchar *lang; gtk_tree_model_get(GTK_TREE_MODEL(list),&iter,1,&lang,-1); if(!strcmp(lang,lang_str)) { g_free(lang); active=i; break; } g_free(lang); res=gtk_tree_model_iter_next(GTK_TREE_MODEL(list),&iter); if(!res) break; } } g_free(lang_str); gtk_combo_box_set_model( GTK_COMBO_BOX(lang), GTK_TREE_MODEL(list) ); #if GTK_CHECK_VERSION(2,24,0) gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(lang), 0); #else gtk_combo_box_entry_set_text_column(GTK_COMBO_BOX_ENTRY(lang), 0); #endif gtk_combo_box_set_active(GTK_COMBO_BOX(lang), active < 0 ? 0 : active); g_object_unref(list); g_signal_connect(G_OBJECT(lang),"changed",G_CALLBACK(on_lang_changed),NULL); } static void on_keyboard_changed(GtkComboBox *widget) { GtkTreeIter it; if( gtk_combo_box_get_active_iter(widget, &it) ) { GtkListStore *list=(GtkListStore*)gtk_combo_box_get_model(GTK_COMBO_BOX(widget)); char *keyboard=NULL; char *cmd; int status; gboolean res; gtk_tree_model_get(GTK_TREE_MODEL(list), &it, 0, &keyboard, -1); /* set the current xkb */ cmd=g_strdup_printf("setxkbmap %s",keyboard); res=g_spawn_command_line_sync(cmd,NULL,NULL,&status,NULL); printf("%s %d %d\n",cmd,res,WEXITSTATUS (status)); g_free(cmd); g_free(keyboard); } } static gchar *xkb_name_norm(gchar *s) { if(!strcmp(s,"pc")) return NULL; if(!strncmp(s,"pc(",3)) return NULL; if(!strncmp(s,"inet(",5)) return NULL; if(!strncmp(s,"group(",6)) return NULL; if(!strncmp(s,"srvr_ctrl(",10)) return NULL; if(g_str_has_suffix(s,"(basic)")) { *strstr(s,"(basic)")=0; } else if(!strcmp(s,"jp(106)")) //TODO: is default jp jp(106) { s[2]=0; } return s; } static char *xkb_get_current(void) { Display *dpy=gdk_x11_display_get_xdisplay(gdk_display_get_default()); XkbDescRec * xkb_desc; char *symbol_string=NULL; gchar **list; int i; if(!dpy) return NULL; xkb_desc=XkbAllocKeyboard(); if (xkb_desc == NULL) return NULL; XkbGetControls(dpy, XkbAllControlsMask, xkb_desc); XkbGetNames(dpy, XkbSymbolsNameMask | XkbGroupNamesMask, xkb_desc); if ((xkb_desc->names == NULL) || (xkb_desc->ctrls == NULL) || (xkb_desc->names->groups == NULL)) { } else { if (xkb_desc->names->symbols != None) { symbol_string=XGetAtomName(dpy, xkb_desc->names->symbols); } } XkbFreeKeyboard(xkb_desc, 0, True); if(!symbol_string) return FALSE; list=g_strsplit(symbol_string,"+",-1); XFree(symbol_string); if(!list) return NULL; for(i=0;list[i]!=NULL;i++) { if(!xkb_name_norm(list[i])) continue; symbol_string=g_strdup(list[i]); break; } g_strfreev(list); return symbol_string; } #if 0 static gboolean load_keyboards(GtkWidget *w) { GtkListStore* list; char p1[16],p2[16],p3[64]; FILE *fp; char *cur; int ret; int count,active; GtkTreeIter active_iter; GdkScreen *scr; scr=gdk_screen_get_default(); if(gdk_screen_get_width(scr)<1024) return FALSE; if(!w) return FALSE; cur=xkb_get_current(); if(!cur) return FALSE; fp=fopen(XKB_SYMBOL_DIR,"r"); if(!fp) { g_print("open xkb symbol dir fail\n"); g_free(cur); return FALSE; } list = gtk_list_store_new(1, G_TYPE_STRING); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(list),0,GTK_SORT_ASCENDING); gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(list),0,keyboard_cmpr,NULL,NULL); for(count=0,active=-1;(ret=fscanf(fp,"%16s %16s %64s\n",p1,p2,p3))==3;) { GtkTreeIter iter; if(strchr(p2,'m') && !strchr(p2,'a')) continue; if(!xkb_name_norm(p3)) continue; gtk_list_store_append(list,&iter); gtk_list_store_set(list,&iter,0,p3,-1); if(!strcmp(cur,p3)) { active=count; active_iter=iter; } count++; } fclose(fp); g_free(cur); if(count==0 || active==-1) { g_object_unref(list); return FALSE; } gtk_combo_box_set_model(GTK_COMBO_BOX(w), GTK_TREE_MODEL(list) ); gtk_combo_box_entry_set_text_column(GTK_COMBO_BOX_ENTRY(w), 0); g_object_unref(G_OBJECT(list)); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(w), &active_iter); g_signal_connect(G_OBJECT(w),"changed",G_CALLBACK(on_keyboard_changed),NULL); return TRUE; } #else static gboolean load_keyboards(GtkWidget *w) { GtkListStore* list; char *cur; int count,active; GtkTreeIter active_iter; GdkScreen *scr; GDir *dir; const gchar *filename; scr=gdk_screen_get_default(); if(gdk_screen_get_width(scr)<1024) return FALSE; if(!w) return FALSE; cur=xkb_get_current(); if(!cur) return FALSE; dir=g_dir_open("/usr/share/X11/xkb/symbols",0,FALSE); if(!dir) { g_print("open xkb symbol dir fail\n"); g_free(cur); return FALSE; } list = gtk_list_store_new(1, G_TYPE_STRING); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(list),0,GTK_SORT_ASCENDING); gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(list),0,keyboard_cmpr,NULL,NULL); for(count=0,active=-1;(filename=g_dir_read_name(dir))!=NULL;) { GtkTreeIter iter; if(strlen(filename)!=2) continue; gtk_list_store_append(list,&iter); gtk_list_store_set(list,&iter,0,filename,-1); if(!strcmp(cur,filename)) { active=count; active_iter=iter; } count++; } g_dir_close(dir); g_free(cur); if(count==0 || active==-1) { g_object_unref(list); return FALSE; } gtk_combo_box_set_model(GTK_COMBO_BOX(w), GTK_TREE_MODEL(list) ); #if GTK_CHECK_VERSION(2,24,0) gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(w), 0); #else gtk_combo_box_entry_set_text_column(GTK_COMBO_BOX_ENTRY(w), 0); #endif g_object_unref(G_OBJECT(list)); gtk_combo_box_set_active_iter(GTK_COMBO_BOX(w), &active_iter); g_signal_connect(G_OBJECT(w),"changed",G_CALLBACK(on_keyboard_changed),NULL); return TRUE; } #endif static void on_exit_clicked(GtkButton* exit_btn, gpointer user_data) { gtk_menu_popup( GTK_MENU(exit_menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time() ); } static void load_exit() { GtkWidget* item; exit_menu = gtk_menu_new(); item = gtk_image_menu_item_new_with_mnemonic( _("_Reboot") ); g_signal_connect(item, "activate", G_CALLBACK(do_reboot), NULL); gtk_menu_shell_append(GTK_MENU_SHELL(exit_menu), item); item = gtk_image_menu_item_new_with_mnemonic( _("_Shutdown") ); g_signal_connect(item, "activate", G_CALLBACK(do_shutdown), NULL); gtk_menu_shell_append(GTK_MENU_SHELL(exit_menu), item); gtk_widget_show_all(exit_menu); g_signal_connect(exit_btn, "clicked", G_CALLBACK(on_exit_clicked), NULL); } #if 0 static gboolean on_expose(GtkWidget* widget, GdkEventExpose* evt, gpointer user_data) { cairo_t *cr; GdkRectangle *r=&evt->area; #if GTK_CHECK_VERSION(2,18,0) if(! gtk_widget_get_has_window(widget)) #else if( !GTK_WIDGET_REALIZED(widget) ) #endif return FALSE; #if GTK_CHECK_VERSION(2,14,0) cr = gdk_cairo_create(gtk_widget_get_window(widget)); #else cr = gdk_cairo_create(widget->window); #endif if(bg_img ) { gdk_cairo_set_source_pixbuf(cr, bg_img, 0, 0); gdk_cairo_rectangle (cr,r); cairo_paint(cr); } else { gdk_cairo_set_source_color(cr, &bg_color); gdk_cairo_rectangle (cr,r); cairo_fill(cr); } cairo_destroy(cr); return FALSE; } #endif static gboolean on_combobox_entry_button_release(GtkWidget* w, GdkEventButton* evt, GtkComboBox* combo) { gboolean shown; g_object_get(combo, "popup-shown", &shown, NULL); if( shown ) gtk_combo_box_popdown(combo); else gtk_combo_box_popup(combo); return FALSE; } static void fix_combobox_entry(GtkWidget* combo) { GtkWidget* edit = gtk_bin_get_child(GTK_BIN(combo)); gtk_editable_set_editable( (GtkEditable*)edit, FALSE ); #if GTK_CHECK_VERSION(2,18,0) gtk_widget_set_can_focus(edit, FALSE); #else GTK_WIDGET_UNSET_FLAGS(edit, GTK_CAN_FOCUS); #endif g_signal_connect(edit, "button-release-event", G_CALLBACK(on_combobox_entry_button_release), combo); } #if GTK_CHECK_VERSION(3,0,0) static gboolean on_evt_box_draw(GtkWidget *widget,cairo_t *cr,gpointer user_data) { GtkStyleContext *style=gtk_widget_get_style_context(widget); gtk_render_background(style,cr,0,0, gtk_widget_get_allocated_width(widget), gtk_widget_get_allocated_height(widget)); return FALSE; } #else static gboolean on_evt_box_expose(GtkWidget *widget, GdkEventExpose* evt, gpointer user_data) { #if GTK_CHECK_VERSION(2,18,0) if (gtk_widget_is_drawable(widget)) #else if (GTK_WIDGET_DRAWABLE (widget)) #endif { GtkWidgetClass* klass = (GtkWidgetClass*)G_OBJECT_GET_CLASS(widget); gtk_paint_flat_box (gtk_widget_get_style(widget), #if GTK_CHECK_VERSION(2,14,0) gtk_widget_get_window(widget), #else widget->window, #endif #if GTK_CHECK_VERSION(2,18,0) gtk_widget_get_state(widget), GTK_SHADOW_NONE, #else widget->state, GTK_SHADOW_NONE, #endif &evt->area, widget, "eventbox", 0, 0, -1, -1); klass->expose_event (widget, evt); } return FALSE; } #endif static gboolean on_timeout(GtkLabel* label) { char buf[128]; time_t t; struct tm* tmbuf; time(&t); tmbuf = localtime(&t); strftime(buf, 128, datetime_fmt, tmbuf); gtk_label_set_text(label, buf); return TRUE; } static gboolean autologin_timeout(gpointer data) { char *user=g_key_file_get_string(config,"base","autologin",NULL); if(auto_login && user && user[0]) { char *session_exec=get_session_exec(); char *session_lang=get_session_lang(); printf("autologin session=%s lang=%s\n", session_exec, session_lang); g_free(session_lang); g_free(session_exec); gtk_widget_hide(prompt); gtk_widget_hide( GTK_WIDGET(login_entry) ); } g_free(user); return FALSE; } static gboolean is_autologin_user(const char *name) { char *autologin=g_key_file_get_string(config,"base","autologin",NULL); if(!autologin) return FALSE; return strcmp(name,autologin)?FALSE:TRUE; } static void on_user_select(GtkIconView *iconview) { GList *list=gtk_icon_view_get_selected_items(iconview); GtkTreeIter iter; GtkTreeModel *model=gtk_icon_view_get_model(iconview); char *name; if(!list) return; gtk_tree_model_get_iter(model,&iter,list->data); g_list_foreach (list, (GFunc)gtk_tree_path_free, NULL); g_list_free (list); gtk_tree_model_get(model,&iter,2,&name,-1); if(user_list_scrolled) gtk_widget_hide(user_list_scrolled); else gtk_widget_hide(user_list); if(name && name[0]) { if(auto_login && is_autologin_user(name)) { g_free(name); char *session_exec=get_session_exec(); char *session_lang=get_session_lang(); printf("autologin session=%s lang=%s\n", session_exec, session_lang); g_free(session_lang); g_free(session_exec); gtk_widget_hide(prompt); gtk_widget_hide( GTK_WIDGET(login_entry) ); return; } if(g_key_file_get_integer(config,"base","skip_password",NULL)!=0) { gtk_label_set_text( GTK_LABEL(prompt), ""); user=name; try_login_user(user); return; } gtk_entry_set_text(GTK_ENTRY(login_entry),name); g_free(name); on_entry_activate(GTK_ENTRY(login_entry)); gtk_widget_show(login_entry); gtk_widget_grab_focus(login_entry); gtk_label_set_text( GTK_LABEL(prompt), _("Password:") ); gtk_widget_show(prompt); } else { g_free(name); if(user) { g_free(user); user=NULL; } gtk_entry_set_text(GTK_ENTRY(login_entry),""); gtk_widget_show(login_entry); gtk_widget_grab_focus(login_entry); gtk_label_set_text( GTK_LABEL(prompt), _("User:") ); gtk_widget_show(prompt); } auto_login=0; } static void on_user_click(GtkIconView *iconview) { on_user_select(iconview); } static gboolean load_user_list(GtkWidget *widget) { GtkListStore *model; GtkTreeIter iter; GKeyFile *kf; GtkTreePath *path; char *res=NULL; char **users; gsize count; int i; lxcom_send("/var/run/lxdm/lxdm.sock","USER_LIST",&res); if(!res) { printf("log USER_LIST fail\n"); return FALSE; } kf=g_key_file_new(); if(!g_key_file_load_from_data(kf,res,-1,0,NULL)) { g_key_file_free(kf); g_free(res); printf("log USER_LIST data bad\n"); return FALSE; } g_free(res); gtk_icon_view_set_selection_mode(GTK_ICON_VIEW(widget),GTK_SELECTION_SINGLE); gtk_icon_view_set_pixbuf_column(GTK_ICON_VIEW(widget),0); gtk_icon_view_set_markup_column(GTK_ICON_VIEW(widget),1); #if GTK_CHECK_VERSION(2,22,0) gtk_icon_view_set_item_orientation(GTK_ICON_VIEW(widget),GTK_ORIENTATION_HORIZONTAL); #else gtk_icon_view_set_orientation(GTK_ICON_VIEW(widget),GTK_ORIENTATION_HORIZONTAL); #endif // FIXME: this should be done at greeter-gtk3.ui // but set there will cause "Floating point exception" gtk_icon_view_set_columns(GTK_ICON_VIEW(widget),1); model=gtk_list_store_new(5,GDK_TYPE_PIXBUF,G_TYPE_STRING, G_TYPE_STRING,G_TYPE_STRING,G_TYPE_BOOLEAN); gtk_icon_view_set_model(GTK_ICON_VIEW(widget),GTK_TREE_MODEL(model)); g_signal_connect(G_OBJECT(widget),"item-activated",G_CALLBACK(on_user_select),NULL); //g_signal_connect(G_OBJECT(widget),"selection-changed",G_CALLBACK(on_user_select),NULL); g_signal_connect(G_OBJECT(widget),"button-release-event",G_CALLBACK(on_user_click),NULL); users=g_key_file_get_groups(kf,&count); if(!users || count<=0) { g_key_file_free(kf); printf("USER_LIST 0 user\n"); return FALSE; } if(count>3) { if(user_list_scrolled) { gtk_alignment_set(GTK_ALIGNMENT(alignment2), 0.5, 0.1, 0, 0.3); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(user_list_scrolled), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); } else count=3; } for(i=0;i%s%s%s%s%s", gecos_escape, (gecos&&strcmp(gecos,users[i]))?" (":"", (gecos&&strcmp(gecos,users[i]))?users[i]:"", (gecos&&strcmp(gecos,users[i]))?")":"", login?_("\nlogged in"):""); // don't translate it now, not freeze g_free(gecos_escape); gtk_list_store_set(model,&iter,0,face,1,display,2,users[i],3,gecos,4,login,-1); if(face) g_object_unref(G_OBJECT(face)); g_free(display); g_free(gecos); g_free(face_path); } g_strfreev(users); g_key_file_free(kf); // add "More ..." gtk_list_store_append(model,&iter); gtk_list_store_set(model,&iter,1,_("More ..."),2,"",3,"",4,FALSE,-1); path=gtk_tree_path_new_from_string("0"); gtk_icon_view_select_path(GTK_ICON_VIEW(widget),path); gtk_widget_grab_focus(widget); gtk_icon_view_set_cursor(GTK_ICON_VIEW(widget),path,NULL,FALSE); gtk_tree_path_free(path); return TRUE; } static void on_screen_size_changed(GdkScreen *screen,GtkWidget *win) { GdkRectangle rc; GdkWindow *window; #if GTK_CHECK_VERSION(3,0,0) window=gtk_widget_get_window(win); #else window=win->window; #endif ui_get_geometry(window,&rc); if(rc.width<1024 && g_key_file_get_integer(config, "display", "keyboard", 0)==1) { GtkWidget *w; w=(GtkWidget*)gtk_builder_get_object(builder, "keyboard"); gtk_widget_hide(w); w=(GtkWidget*)gtk_builder_get_object(builder, "label_keyboard"); gtk_widget_hide(w); } gtk_window_move(GTK_WINDOW(win),rc.x,rc.y); gtk_window_resize(GTK_WINDOW(win),rc.width,rc.height); ui_set_bg(window,config); } static gint login_entry_on_key_press (GtkWidget *widget,GdkEventKey *event) { if(event->keyval == GDK_Escape) switch_to_input_user(); return FALSE; } static void create_win() { GSList* objs, *l; GtkWidget* w; GdkWindow *window; gchar *temp; GdkRectangle rc; GdkScreen *scr; temp=g_key_file_get_string(config,"display","datetime",NULL); if(temp && temp[0]=='%' && strlen(temp)<=3) strcpy(datetime_fmt,temp); g_free(temp); builder = gtk_builder_new(); gtk_builder_add_from_file(builder, ui_file ? ui_file : LXDM_DATA_DIR "/lxdm.glade", NULL); win = (GtkWidget*)gtk_builder_get_object(builder, "lxdm"); #if GTK_CHECK_VERSION(3,0,0) gtk_window_set_has_resize_grip(GTK_WINDOW(win),FALSE); #endif gtk_widget_realize(win); #if GTK_CHECK_VERSION(3,0,0) window=gtk_widget_get_window(win); #else window=win->window; #endif /* set widget names according to their object id in GtkBuilder xml */ objs = gtk_builder_get_objects(builder); for( l = objs; l; l = l->next ) { char* path; GtkWidget* widget = (GtkWidget*)l->data; gtk_widget_set_name( widget, gtk_buildable_get_name( (GtkBuildable*)widget ) ); gtk_widget_path(widget, NULL, &path, NULL); } g_slist_free(objs); if(g_key_file_has_key(config,"display","bg",NULL )) { #if GTK_CHECK_VERSION(3,0,0) GtkStyleContext *style=gtk_widget_get_style_context(win); gtk_style_context_remove_class(style,GTK_STYLE_PROPERTY_BACKGROUND_IMAGE); #endif gtk_widget_set_app_paintable(win, TRUE); } /* otherwise, let gtk theme paint it. */ alignment2=(GtkWidget*)gtk_builder_get_object(builder,"alignment2"); user_list_scrolled=(GtkWidget*)gtk_builder_get_object(builder,"user_list_scrolled"); user_list=(GtkWidget*)gtk_builder_get_object(builder,"user_list"); prompt = (GtkWidget*)gtk_builder_get_object(builder, "prompt"); login_entry = (GtkWidget*)gtk_builder_get_object(builder, "login_entry"); if(login_entry!=NULL) { g_signal_connect_after(login_entry,"key-press-event",G_CALLBACK(login_entry_on_key_press),NULL); } g_signal_connect(login_entry, "activate", G_CALLBACK(on_entry_activate), NULL); if( g_key_file_get_integer(config, "display", "bottom_pane", 0)==1) { /* hacks to let GtkEventBox paintable with gtk pixmap engine. */ w = (GtkWidget*)gtk_builder_get_object(builder, "bottom_pane"); if(g_key_file_get_integer(config, "display", "transparent_pane", 0)==1) { } else { #if GTK_CHECK_VERSION(2,18,0) if(gtk_widget_get_app_paintable(w)) #else if(GTK_WIDGET_APP_PAINTABLE(w)) #endif #if GTK_CHECK_VERSION(3,0,0) g_signal_connect(w,"draw",G_CALLBACK(on_evt_box_draw),NULL); #else g_signal_connect(w, "expose-event", G_CALLBACK(on_evt_box_expose), NULL); #endif } if( g_key_file_get_integer(config, "display", "hide_sessions", 0)==1) { w = (GtkWidget*)gtk_builder_get_object(builder, "sessions_box"); if(w) gtk_widget_hide(w); } else { sessions = (GtkWidget*)gtk_builder_get_object(builder, "sessions"); gtk_widget_set_name(sessions, "sessions"); fix_combobox_entry(sessions); load_sessions(); } if( g_key_file_get_integer(config, "display", "lang", 0) == 0 ) { w = (GtkWidget*)gtk_builder_get_object(builder, "lang_box"); if(w) gtk_widget_hide(w); } else { lang = (GtkWidget*)gtk_builder_get_object(builder, "lang"); gtk_widget_set_name(lang, "lang"); fix_combobox_entry(lang); load_langs(); } if(g_key_file_get_integer(config, "display", "keyboard", 0)==1) { w=(GtkWidget*)gtk_builder_get_object(builder, "keyboard"); if((load_keyboards(w))!=FALSE) { fix_combobox_entry(w); gtk_widget_show(w); w=(GtkWidget*)gtk_builder_get_object(builder, "label_keyboard"); if(w) gtk_widget_show(w); } } } else { w = (GtkWidget*)gtk_builder_get_object(builder, "bottom_pane"); gtk_widget_hide(w); } if(g_key_file_get_integer(config, "display", "hide_time", 0)==1) { w = (GtkWidget*)gtk_builder_get_object(builder, "time"); gtk_widget_hide(w); } else { if( (w = (GtkWidget*)gtk_builder_get_object(builder, "time"))!=NULL ) { guint timeout = g_timeout_add(1000, (GSourceFunc)on_timeout, w); g_signal_connect_swapped(w, "destroy", G_CALLBACK(g_source_remove), GUINT_TO_POINTER(timeout)); on_timeout((GtkLabel*)w); } } if(g_key_file_get_integer(config, "display", "hide_exit", 0)==1) { w=(GtkWidget*)gtk_builder_get_object(builder, "exit"); gtk_widget_hide(w); } else { exit_btn = (GtkWidget*)gtk_builder_get_object(builder, "exit"); load_exit(); } ui_get_geometry(window,&rc); gtk_window_move(GTK_WINDOW(win),rc.x,rc.y); gtk_window_set_default_size(GTK_WINDOW(win),rc.width,rc.height); if(user_list && !g_key_file_get_integer(config,"userlist","disable",NULL) && load_user_list(user_list)) { gtk_widget_hide(login_entry); } else { if(user_list) { if(user_list_scrolled) gtk_widget_hide(user_list_scrolled); else gtk_widget_hide(user_list); user_list=NULL; } } ui_add_cursor(); ui_set_cursor(gtk_widget_get_window(win),GDK_LEFT_PTR); gtk_widget_show(win); ui_set_bg(window,config); ui_set_focus(window); if(!user_list) gtk_widget_grab_focus(login_entry); scr = gtk_widget_get_screen(win); g_signal_connect(scr, "size-changed", G_CALLBACK(on_screen_size_changed), win); } static gboolean on_lxdm_command(GIOChannel *source, GIOCondition condition, gpointer data) { GIOStatus ret; char *str; if( !(G_IO_IN & condition) ) return FALSE; ret = g_io_channel_read_line(source, &str, NULL, NULL, NULL); if( ret != G_IO_STATUS_NORMAL ) return FALSE; if( !strncmp(str, "quit", 4) || !strncmp(str, "exit",4)) gtk_main_quit(); else if( !strncmp(str, "reset", 5) ) { switch_to_input_user(); } else if( !strncmp(str, "password", 8)) { switch_to_input_passwd(); } g_free(str); return TRUE; } void listen_stdin(void) { greeter_io = g_io_channel_unix_new(0); g_io_add_watch(greeter_io, G_IO_IN, on_lxdm_command, NULL); } static void apply_theme(const char* theme_name) { char* theme_dir = g_build_filename(LXDM_DATA_DIR "/themes", theme_name, NULL); char *rc; #if GTK_CHECK_VERSION(3,0,0) ui_file = g_build_filename(theme_dir, "greeter-gtk3.ui", NULL); rc=g_build_filename(theme_dir, "gtk.css", NULL); GtkCssProvider *css=gtk_css_provider_new(); gtk_css_provider_load_from_path(css,rc,NULL); g_free(rc); gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), GTK_STYLE_PROVIDER(css), GTK_STYLE_PROVIDER_PRIORITY_USER); #else ui_file = g_build_filename(theme_dir, "greeter.ui", NULL); rc = g_build_filename(theme_dir, "gtkrc", NULL); if( g_file_test(rc, G_FILE_TEST_EXISTS) ) { gtk_rc_parse(rc); } g_free(rc); #endif if( !g_file_test(ui_file, G_FILE_TEST_EXISTS) ) { g_free(ui_file); ui_file = NULL; } #if GTK_CHECK_VERSION(3,0,0) #endif ui_nobody = g_build_filename(theme_dir, "nobody.png", NULL); if( !g_file_test(ui_nobody, G_FILE_TEST_EXISTS) ) { g_free(ui_nobody); ui_nobody = NULL; } g_free(theme_dir); } int main(int arc, char *arg[]) { char* theme_name; GtkSettings *settings; int i; /* this will override LC_MESSAGES */ unsetenv("LANGUAGE"); #if !GTK_CHECK_VERSION(3,0,0) gtk_set_locale(); #endif bindtextdomain("lxdm", "/usr/share/locale"); textdomain("lxdm"); config = g_key_file_new(); g_key_file_load_from_file(config, CONFIG_FILE, G_KEY_FILE_KEEP_COMMENTS, NULL); var_config = g_key_file_new(); g_key_file_set_list_separator(var_config, ' '); g_key_file_load_from_file(var_config,VCONFIG_FILE,G_KEY_FILE_KEEP_COMMENTS, NULL); gtk_init(&arc, &arg); for(i=1;i * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #include "lang.h" #include #include #include #include #include #ifdef HAVE_CONFIG_H #include #endif #ifndef LXDM_DATA_DIR #define LXDM_DATA_DIR "/usr/share/lxdm" #endif #include "gdm/gdm-languages.h" static int cmpstr(const void *p1, const void *p2) { return strcmp(* (char * const *) p1, * (char * const *) p2); } static char **lxdm_get_all_language_names_static(void) { GPtrArray *array; FILE *fp; char line[128]; fp=fopen(LXDM_DATA_DIR "/lang.txt","r"); if(!fp) return NULL; array=g_ptr_array_new(); while(fgets(line,128,fp)!=NULL) { char *p=strchr(line,'\n'); if(*p) *p=0; g_ptr_array_add(array,g_strdup(line)); } fclose(fp); g_ptr_array_add (array, NULL); return (char **) g_ptr_array_free (array, FALSE); } static char **lxdm_get_all_language_names(void) { char **list,**lang; int len; list=gdm_get_all_language_names(); if(!list) return NULL; for(lang=list;*lang!=NULL;lang++) { char *normal=gdm_normalize_language_name(*lang); if(normal) { g_free(*lang); *lang=normal; } } len=g_strv_length(list); qsort(list,len,sizeof(char*),(void*)cmpstr); return list; } static char **lxdm_get_config_language_names(GKeyFile *config) { char **list; list=g_key_file_get_string_list(config,"base","last_langs",NULL,NULL); if(!list) { list=g_malloc0(sizeof(char*)); } return list; } void lxdm_load_langs(GKeyFile *config, gboolean all, void *arg, void (*cb)(void *arg, char *lang, char *desc)) { char **lang; int i; cb(arg, "", _("Default")); /* default is to use the system wide settings ,not use the "C" */ if(!all) { lang=lxdm_get_config_language_names(config); } else { lang=lxdm_get_all_language_names_static(); if(!lang) lang=lxdm_get_all_language_names(); } if(!lang) return; for(i=0;lang[i]!=NULL;i++) { char *readable=gdm_get_language_from_name(lang[i],lang[i]); cb(arg,lang[i],readable); g_free(readable); } g_strfreev(lang); if(!all) cb(arg,"~",_("More ...")); } lxdm-0.5.3/src/lang.h000066400000000000000000000021051262556610000143450ustar00rootroot00000000000000/* * lang.h - function define of lxdm_load_langs * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #ifndef _LXDM_LANG_H_ #define _LXDM_LANG_H_ #include void lxdm_load_langs(GKeyFile *config,gboolean all,void *arg,void (*cb)(void *arg,char *lang,char *desc)); #endif/*_LXDM_LANG_H_*/ lxdm-0.5.3/src/lxcom.c000066400000000000000000000266541262556610000145600ustar00rootroot00000000000000#define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined(__sun) #include #include #elif !defined(linux) && !defined(__NetBSD__) #include #endif #include #include #include #ifndef SCM_CREDS #if defined(SCM_CREDENTIALS) #define SCM_CREDS SCM_CREDENTIALS #elif defined(SCM_UCRED) #define SCM_CREDS SCM_UCRED #else #error not support unix socket creds #endif #endif #ifndef linux # if defined(__sun) # define LXDM_PEER_UID(c) ucred_geteuid(c) # define LXDM_PEER_GID(c) ucred_getegid(c) # define LXDM_PEER_PID(c) ucred_getpid(c) # elif !defined(__NetBSD__) # define LXDM_PEER_UID(c) ((c)->cr_uid) # define LXDM_PEER_GID(c) ((c)->cr_groups[0]) # define LXDM_PEER_PID -1 # else # define LXDM_PEER_UID(c) ((c)->sc_uid) # define LXDM_PEER_GID(c) ((c)->sc_gid) # define LXDM_PEER_PID -1 # endif #else # define LXDM_PEER_UID(c) ((c)->uid) # define LXDM_PEER_GID(c) ((c)->gid) # define LXDM_PEER_PID(c) ((c)->pid) #endif #if defined(__NetBSD__) typedef struct sockcred LXDM_CRED; #elif defined(__sun) typedef ucred_t LXDM_CRED; #else typedef struct ucred LXDM_CRED; #endif #include #include "lxcom.h" static const char *sock_path; static int self_client_fd=-1; static int self_server_fd=-1; static int self_source_id=0; typedef struct{ void *data; int pid; void (*func)(void *data,int pid,int status); }ChildWatch; typedef struct{ int signal; void *data; void (*func)(void *data,int signal); }SignalHandler; typedef struct{ int user; void *data; GString *(*func)(void *data,int user,int argc,char **argv); }UserCmd; static GSList *child_watch_list; static GSList *signal_handler_list; static GSList *user_cmd_list; typedef struct _LXComSource { GSource source; GPollFD poll; }LXComSource; typedef GString *(*LXComFunc)(gpointer data,int uid,int pid,int argc,char **argv); static gboolean lxcom_prepare (GSource *source,gint *timeout) { *timeout = -1; return FALSE; } static gboolean lxcom_check(GSource *source) { return (((LXComSource*)source)->poll.revents&G_IO_IN)?TRUE:FALSE; } static gboolean lxcom_dispatch (GSource *source,GSourceFunc callback,gpointer user_data) { char buf[4096]; char ctrl[/*CMSG_SPACE(sizeof(LXDM_CRED))*/1024]; struct sockaddr_un peer; struct iovec v={buf,sizeof(buf)}; struct msghdr h={&peer,sizeof(peer),&v,1,ctrl,sizeof(ctrl),0}; struct cmsghdr *cmptr; int ret; while(1) { peer.sun_family=0; ret=recvmsg(self_server_fd,&h,0); if(ret<0) break; if(ret>4000) continue; buf[ret]=0; for(cmptr = CMSG_FIRSTHDR(&h);cmptr!=NULL;cmptr=CMSG_NXTHDR(&h,cmptr)) { LXDM_CRED *c; int size; int argc; char **argv; GString *res; #if defined(__sun) size = ucred_size(); #elif defined(__NetBSD__) if (cmptr->cmsg_len < SOCKCREDSIZE(0)) break; size = SOCKCREDSIZE(((cred *)CMSG_DATA(cmptr))->sc_ngroups); #else size = sizeof(LXDM_CRED); #endif if (cmptr->cmsg_len != CMSG_LEN(size)) break; if (cmptr->cmsg_level != SOL_SOCKET) break; if (cmptr->cmsg_type != SCM_CREDS) break; c=(LXDM_CRED*)CMSG_DATA(cmptr); if(g_shell_parse_argv(buf,&argc,&argv,NULL)) { res=((LXComFunc)callback)(user_data,LXDM_PEER_UID(c),LXDM_PEER_PID(c),argc,argv); g_strfreev(argv); if(res) { do{ ret=sendto(self_server_fd,res->str,res->len,0,(struct sockaddr*)&peer,sizeof(peer)); }while(ret==-1 && errno==EINTR); g_string_free(res,TRUE); if(ret==-1) perror("sendto"); } } break; } } return TRUE; } static GSourceFuncs lxcom_funcs = { lxcom_prepare, lxcom_check, lxcom_dispatch, NULL }; static GString *lxcom_func(gpointer data,int uid,int pid,int argc,char **argv) { gboolean deal=FALSE; GSList *p,*n; GString *res=NULL; assert(argc>0 && argv!=NULL); do{ if(!strcmp(argv[0],"SIGNAL")) { if(argc!=2) break; if((pid==-1 && uid==0) || pid==getpid()) { int sig=atoi(argv[1]); if(sig==SIGCHLD) { CHECK_SIGCHLD: for(p=child_watch_list;p!=NULL;p=p->next) { ChildWatch *item=p->data; int status; if(waitpid(item->pid,&status,WNOHANG)>0) { child_watch_list=g_slist_delete_link(child_watch_list,p); // item->func may change the child_watch_list item->func(item->data,item->pid,status); g_free(item); goto CHECK_SIGCHLD; } } } else { for(p=signal_handler_list;p!=NULL;p=p->next) { SignalHandler *item=p->data; if(item->signal==sig) { item->func(item->data,sig); break; } } } } deal=TRUE; break; } if(!deal) for(p=user_cmd_list;p!=NULL;p=n) { UserCmd *item=p->data; n=p->next; if(item->user==uid) { res=item->func(item->data,uid,argc,argv); deal=TRUE; break; } } if(!deal) for(p=user_cmd_list;p!=NULL;p=n) { UserCmd *item=p->data; n=p->next; if(item->user==-1) { res=item->func(item->data,uid,argc,argv); deal=TRUE; break; } } }while(0); return res; } volatile sig_atomic_t lxcom_last_sig; static void sig_handler(int sig) { lxcom_last_sig=sig; lxcom_raise_signal(sig); } static void lxcom_exit_cb(void) { if(sock_path) unlink(sock_path); } void lxcom_init(const char *sock) { struct sockaddr_un su; int ret,on=1; struct sigaction action; struct stat st; sock_path=sock; atexit(lxcom_exit_cb); LXComSource *s=(LXComSource*)g_source_new(&lxcom_funcs,sizeof(LXComSource)); g_source_set_callback((GSource*)s,(GSourceFunc)lxcom_func,NULL,NULL); unlink(sock); memset(&su,0,sizeof(su)); su.sun_family=AF_UNIX; strcpy(su.sun_path,sock); self_server_fd=socket(AF_UNIX,SOCK_DGRAM,0); assert(self_server_fd!=-1); #if defined(__sun) ret=setsockopt(self_server_fd,SOL_SOCKET,SO_RECVUCRED,&on,sizeof(on)); #else ret=setsockopt(self_server_fd,SOL_SOCKET,SO_PASSCRED,&on,sizeof(on)); #endif assert(ret==0); fcntl(self_server_fd,F_SETFL,O_NONBLOCK|fcntl(self_server_fd,F_GETFL)); ret=bind(self_server_fd,(struct sockaddr*)&su,sizeof(su)); assert(ret==0); self_client_fd=socket(AF_UNIX,SOCK_DGRAM,0); assert(self_client_fd!=-1); fcntl(self_client_fd,F_SETFL,O_NONBLOCK|fcntl(self_client_fd,F_GETFL)); ret=connect(self_client_fd,(struct sockaddr*)&su,sizeof(su)); assert(ret==0); s->poll.fd=self_server_fd; s->poll.events=G_IO_IN; s->poll.revents=0; g_source_add_poll((GSource*)s,&s->poll); self_source_id=g_source_attach((GSource*)s,NULL); action.sa_handler = sig_handler; sigemptyset (&action.sa_mask); action.sa_flags = SA_NOCLDSTOP; sigaction (SIGCHLD, &action, NULL); if(!stat(sock,&st)) { chmod(sock,st.st_mode|S_IWOTH|S_IWGRP); } } static ssize_t lxcom_write(int s,const void *buf,size_t count) { struct iovec iov[1] ={{(void*)buf,count,}}; struct msghdr msg = { 0, 0, iov, 1, 0, 0, 0 }; #if !defined(linux) && !defined(__NetBSD__) #if defined(__sun) int size = ucred_size(); #else int size = sizeof(LXDM_CRED); #endif char ctrl[CMSG_SPACE(size)]; struct cmsghdr *cmptr; char *p; int i; msg.msg_control = ctrl; msg.msg_controllen = sizeof(ctrl); cmptr = CMSG_FIRSTHDR(&msg); cmptr->cmsg_len = CMSG_LEN(size); cmptr->cmsg_level = SOL_SOCKET; cmptr->cmsg_type = SCM_CREDS; p=(char*)CMSG_DATA(cmptr); for(i=0;i=0) { p[ret]=0; *res=p; } else { g_free(p); } } } } close(s); if(addr) unlink(addr); g_free(addr); return TRUE; } int lxcom_add_child_watch(int pid,void (*func)(void*,int,int),void *data) { ChildWatch *item; if(pid<=0 || !func) return -1; item=g_new(ChildWatch,1); item->func=func; item->data=data; item->pid=pid; child_watch_list=g_slist_prepend(child_watch_list,item); return 0; } int lxcom_del_child_watch(int pid) { GSList *p; for(p=child_watch_list;p!=NULL;p=p->next) { ChildWatch *item=p->data; if(item->pid==pid) { child_watch_list=g_slist_delete_link(child_watch_list,p); g_free(item); return 0; } } return -1; } int lxcom_set_signal_handler(int sig,void (*func)(void *,int),void *data) { SignalHandler *item; struct sigaction action; if(sig<=0 || sig>=64 || !func) return -1; if(sig==SIGCHLD) return -1; item=g_new(SignalHandler,1); item->data=data; item->signal=sig; item->func=func; signal_handler_list=g_slist_prepend(signal_handler_list,item); action.sa_handler = sig_handler; sigemptyset (&action.sa_mask); action.sa_flags = 0; sigaction (sig, &action, NULL); return 0; } int lxcom_add_cmd_handler(int user,GString *(*func)(void *,int,int,char **),void *data) { UserCmd *item; if(!func) return -1; item=g_new(UserCmd,1); item->data=data; item->user=user; item->func=func; user_cmd_list=g_slist_prepend(user_cmd_list,item); return 0; } int lxcom_del_cmd_handler(int user) { GSList *p; for(p=user_cmd_list;p!=NULL;p=p->next) { UserCmd *item=p->data; if(item->user==user) { user_cmd_list=g_slist_remove_link(user_cmd_list,p); g_free(item); return 0; } } return -1; } #if 0 #include void poll_sock(void) { struct pollfd pf; pf.fd=self_server_fd; pf.events=POLLIN; pf.revents=0; poll(&pf,1,-1); printf("%x\n",pf.revents); } void on_sigint(void *data,int sig) { printf("signal SIGINT %s\n",(char*)data); exit(0); } int cmd_count; GString *on_cmd(void *data,int user,int arc,char **arg) { int i; printf("%d %s: ",user,(char*)data); for(i=0;i * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #define _GNU_SOURCE #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_UTMPX_H #include #endif #if HAVE_LIBCK_CONNECTOR #include #endif #ifndef HAVE_LIBPAM #ifdef USE_PAM #define HAVE_LIBPAM 1 #else #define HAVE_LIBPAM 0 #endif #endif #if HAVE_LIBPAM #include #endif #include "lxdm.h" #include "lxcom.h" #include "xconn.h" #include "lxcommon.h" #include "auth.h" #define LOGFILE "/var/log/lxdm.log" typedef struct{ gboolean idle; gboolean greeter; int tty; pid_t server; pid_t child; uid_t user; int display; char *option; /* hold option in config file */ xconn_t dpy; /* hold this, or X crack */ LXDM_AUTH auth; #if HAVE_LIBCK_CONNECTOR CkConnector *ckc; #endif #ifndef DISABLE_XAUTH char mcookie[16]; #endif char **env; }LXSession; GKeyFile *config; static int old_tty=1,def_tty = 7,nr_tty=0; static int def_display=0; static GSList *session_list; static void lxdm_startx(LXSession *s); static int get_active_vt(void) { int console_fd; struct vt_stat console_state = { 0 }; console_fd = open("/dev/console", O_RDONLY | O_NOCTTY); if( console_fd < 0 ) goto out; if( ioctl(console_fd, VT_GETSTATE, &console_state) < 0 ) goto out; out: if( console_fd >= 0 ) close(console_fd); return console_state.v_active; } static void set_active_vt(int vt) { int fd; fd = open("/dev/console", O_RDWR); if( fd < 0 ) fd = 0; ioctl(fd, VT_ACTIVATE, vt); if(fd!=0) close(fd); } void stop_pid(int pid) { if( pid <= 0 ) return; lxcom_del_child_watch(pid); if( killpg(pid, SIGTERM) < 0 ) killpg(pid, SIGKILL); if( kill(pid, 0) == 0 ) { if( kill(pid, SIGTERM) ) kill(pid, SIGKILL); } while( 1 ) { int wpid, status; wpid = waitpid(pid,&status,0); if(pid == wpid) break; if(wpid<0 && errno!=EINTR) break; } while( waitpid(-1, 0, WNOHANG) > 0 ) ; } static LXSession *lxsession_find_greeter(void) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->greeter) return s; } return NULL; } static LXSession *lxsession_find_idle(void) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->idle) return s; } return NULL; } static LXSession *lxsession_find_user(uid_t user) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->greeter) continue; if(s->user==user) return s; } return NULL; } LXSession *lxsession_find_tty(int tty) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->tty==tty) return s; } return NULL; } static gboolean lxsession_get_active(void) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->greeter || s->idle) continue; return TRUE; } return FALSE; } static void lxsession_set_active(LXSession *s) { if(!s || s->tty<=0) return; if(get_active_vt()==s->tty) return; set_active_vt(s->tty); } static gboolean tty_is_used(int tty) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->tty==tty) return TRUE; } return FALSE; } static gboolean display_is_used(int display) { GSList *p; for(p=session_list;p!=NULL;p=p->next) { LXSession *s=p->data; if(s->display==display) return TRUE; } return FALSE; } static int lxsession_alloc_tty(void) { int i; if(!tty_is_used(def_tty)) return def_tty; for(i=7;i<13;i++) { if(!tty_is_used(i)) return i; } return 0; } static int lxsession_alloc_display(void) { int i; for(i=def_display;i<11;i++) { if(!display_is_used(i)) return i; } return -1; } static LXSession *lxsession_add(void) { LXSession *s; s=lxsession_find_idle(); if(s) return s; if(g_slist_length(session_list)>=4) return NULL; s=g_new0(LXSession,1); s->greeter=FALSE; s->tty=lxsession_alloc_tty(); s->display=lxsession_alloc_display(); s->idle=TRUE; if(!s->tty || s->display<0) { g_message("alloc tty s->tty, display %d fail\n",s->display); g_free(s); return NULL; } s->env=NULL; lxdm_auth_init(&s->auth); session_list=g_slist_prepend(session_list,s); lxdm_startx(s); return s; } static LXSession *lxsession_greeter(void) { char temp[128]; LXSession *s; s=lxsession_find_greeter(); if(s) { g_message("find prev greeter\n"); lxsession_set_active(s); return s; } g_message("find greeter %p\n",s); s=lxsession_find_idle(); g_message("find idle %p\n",s); if(!s) s=lxsession_add(); g_message("add %p\n",s); if(!s) { g_warning("add new fail\n"); return NULL; } s->greeter=TRUE; s->idle=FALSE; sprintf(temp,":%d",s->display); setenv("DISPLAY",temp,1); #ifndef DISABLE_XAUTH sprintf(temp,"/var/run/lxdm/lxdm-:%d.auth",s->display); setenv("XAUTHORITY",temp,1); #endif g_message("prepare greeter on %s\n",temp); ui_prepare(); lxsession_set_active(s); g_message("start greeter on %s\n",temp); #ifndef DISABLE_XAUTH unsetenv("XAUTHORITY"); #endif return s; } static void lxsession_stop(LXSession *s) { if(s->greeter) { ui_drop(); s->greeter=FALSE; } if(s->child>0) { lxcom_del_child_watch(s->child); killpg(s->child, SIGHUP); stop_pid(s->child); s->child = -1; } if( s->server > 0 ) { xconn_clean(s->dpy); } lxdm_auth_session_end(&s->auth); #if HAVE_LIBCK_CONNECTOR if( s->ckc != NULL ) { DBusError error; dbus_error_init(&error); ck_connector_close_session(s->ckc, &error); if(dbus_error_is_set(&error)) { dbus_error_free(&error); } ck_connector_unref(s->ckc); s->ckc=NULL; } #endif s->idle=TRUE; } static void lxsession_free(LXSession *s) { if(!s) return; session_list=g_slist_remove(session_list,s); lxsession_stop(s); if(s->server) { if(s->dpy) { xconn_close(s->dpy); s->dpy=NULL; } stop_pid(s->server); s->server=0; } g_free(s->option); g_strfreev(s->env); g_free(s); } static gboolean plymouth_is_running(void) { int status; gboolean res; res=g_spawn_command_line_sync ("/bin/plymouth --ping",NULL,NULL,&status,NULL); if(!res) return FALSE; return WIFEXITED (status) && WEXITSTATUS (status) == 0; } static void plymouth_quit_with_transition(void) { g_spawn_command_line_sync("/bin/plymouth quit --retain-splash",NULL,NULL,NULL,NULL); } static void plymouth_quit_without_transition(void) { g_spawn_command_line_sync("/bin/plymouth quit",NULL,NULL,NULL,NULL); } static void plymouth_prepare_transition(void) { g_spawn_command_line_sync ("/bin/plymouth deactivate",NULL,NULL,NULL,NULL); } static char *lxsession_xserver_command(LXSession *s) { char *p; int arc; char **arg; int i; int novtswitch=0; if(s->option) { p=g_key_file_get_string(config,s->option,"xarg",0); if(p) return p; } p=g_key_file_get_string(config, "server", "arg", 0); if(!p) p=g_strdup("/usr/bin/X"); g_shell_parse_argv(p, &arc, &arg, 0); g_free(p); for(i=1;idisplay); if(s->tty>0) arg[arc++] = g_strdup_printf("vt%02d", s->tty); if(g_key_file_get_integer(config,"server","tcp_listen",0)!=1) { arg[arc++] = g_strdup("-nolisten"); arg[arc++] = g_strdup("tcp"); } if(!novtswitch) { arg[arc++] = g_strdup("-novtswitch"); } #ifndef DISABLE_XAUTH arg[arc++] = g_strdup("-auth"); arg[arc++] = g_strdup_printf("/var/run/lxdm/lxdm-:%d.auth",s->display); #endif arg[arc] = NULL; p=g_strjoinv(" ", arg); g_strfreev(arg); return p; } void lxdm_get_tty(void) { char *s = g_key_file_get_string(config, "server", "arg", 0); int arc; char **arg; int len; int gotvtarg = 0; gboolean plymouth; plymouth=plymouth_is_running(); if(plymouth) { g_message("found plymouth running\n"); plymouth_prepare_transition(); } old_tty=get_active_vt(); if( !s ) s = g_strdup("/usr/bin/X"); g_shell_parse_argv(s, &arc, &arg, 0); g_free(s); for( len = 0; arg && arg[len]; len++ ) { char *p = arg[len]; if( !strncmp(p, "vt", 2) && isdigit(p[2]) && ( !p[3] || (isdigit(p[3]) && !p[4]) ) ) { def_tty = atoi(p + 2); gotvtarg = 1; } else if(!strcmp(p,"-background") || !strcmp(p,"-nr")) { nr_tty=1; } else if(p[0]==':' && isdigit(p[1])) { def_display=atoi(p+1); } } if(!gotvtarg) { /* support plymouth */ if(g_key_file_get_integer(config, "server", "active_vt", 0) ) /* use the active vt */ def_tty = old_tty; if(plymouth) { nr_tty=1; plymouth_quit_with_transition(); } } else { if(plymouth) /* set tty and plymouth running */ plymouth_quit_without_transition(); } g_strfreev(arg); } void lxdm_quit_self(int code) { g_message("quit code %d\n",code); exit(code); } static void log_init(void) { int fd_log; g_unlink(LOGFILE ".old"); g_rename(LOGFILE, LOGFILE ".old"); fd_log = open(LOGFILE, O_CREAT|O_APPEND|O_TRUNC|O_WRONLY|O_EXCL, 0640); if(fd_log == -1) return; dup2(fd_log, 1); dup2(fd_log, 2); close(fd_log); } static void log_ignore(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { } #if 0 GSList *do_scan_xsessions(void) { GSList *xsessions = NULL; GDir *d; const char *basename; GKeyFile *f; d = g_dir_open(XSESSIONS_DIR, 0, NULL); if( !d ) return NULL; f = g_key_file_new(); while( ( basename = g_dir_read_name(d) ) != NULL ) { char *file_path; gboolean loaded; if(!g_str_has_suffix(basename, ".desktop")) continue; file_path = g_build_filename(XSESSIONS_DIR, basename, NULL); loaded = g_key_file_load_from_file(f, file_path, G_KEY_FILE_NONE, NULL); g_free(file_path); if( loaded ) { char *name = g_key_file_get_locale_string(f, "Desktop Entry", "Name", NULL, NULL); if( name ) { char *exec = g_key_file_get_string(f, "Desktop Entry", "Exec", NULL); if(exec) { Session* sess = g_new( Session, 1 ); sess->name = name; sess->exec = exec; sess->desktop_file = g_strdup(basename); if( !strcmp(name, "LXDE") ) xsessions = g_slist_prepend(xsessions, sess); else xsessions = g_slist_append(xsessions, sess); continue; /* load next file */ g_free(exec); } g_free(name); } } } g_dir_close(d); g_key_file_free(f); return xsessions; } void free_xsessions(GSList *l) { GSList *p; Session *sess; for( p = l; p; p = p->next ) { sess = p->data; g_free(sess->name); g_free(sess->exec); g_free(sess); } g_slist_free(l); } #endif #ifndef DISABLE_XAUTH static inline void xauth_write_uint16(int fd,uint16_t data) { uint8_t t; t=data>>8; write(fd,&t,1); t=data&0xff; write(fd,&t,1); } static inline void xauth_write_string(int fd,const char *s) { size_t len=strlen(s); xauth_write_uint16(fd,(uint16_t)len); write(fd,s,len); } static int xauth_write_file(const char *file,int dpy,char data[16]) { int fd; char addr[128]; char buf[16]; sprintf(buf,"%d",dpy); gethostname(addr,sizeof(addr)); fd=open(file,O_CREAT|O_TRUNC|O_WRONLY,0600); if(fd==-1) return -1; xauth_write_uint16(fd,256); //FamilyLocalHost xauth_write_string(fd,addr); xauth_write_string(fd,buf); xauth_write_string(fd,"MIT-MAGIC-COOKIE-1"); xauth_write_uint16(fd,16); write(fd,data,16); close(fd); return 0; } static void create_server_auth(LXSession *s) { GRand *h; int i; char *authfile; struct passwd *pw; h = g_rand_new(); for( i = 0; i < 16; i++ ) { s->mcookie[i] = g_rand_int(h)&0xff; } g_rand_free(h); authfile = g_strdup_printf("/var/run/lxdm/lxdm-:%d.auth",s->display); setenv("XAUTHORITY",authfile,1); remove(authfile); xauth_write_file(authfile,s->display,s->mcookie); pw=getpwnam("lxdm");endpwent(); if(pw!=NULL) { chown(authfile,pw->pw_uid,pw->pw_gid); } g_free(authfile); } static char ** create_client_auth(struct passwd *pw,char **env) { LXSession *s; char *authfile; s=lxsession_find_user(pw->pw_uid); if(!s) return env; /* pam_mktemp may provide XAUTHORITY to DM, just use it */ if((authfile=(char*)g_environ_getenv(env,"XAUTHORITY"))!=NULL) { authfile=g_strdup(authfile); } else { char *path; path=g_key_file_get_string(config,"base","xauth_path",NULL); if(path) { authfile = g_strdup_printf("%s/.Xauth%d", path,pw->pw_uid); g_free(path); } else { authfile = g_strdup_printf("%s/.Xauthority", pw->pw_dir); } } remove(authfile); if(xauth_write_file(authfile,s->display,s->mcookie)==-1) { g_free(authfile); authfile = g_strdup_printf("/var/run/lxdm/.Xauth%d",pw->pw_uid); remove(authfile); xauth_write_file(authfile,s->display,s->mcookie); } env=g_environ_setenv(env,"XAUTHORITY",authfile,TRUE); chown(authfile,pw->pw_uid,pw->pw_gid); g_free(authfile); return env; } #endif int lxdm_auth_user(int type,char *user, char *pass, struct passwd **ppw) { LXSession *s; int ret; s=lxsession_find_greeter(); if(!s) s=lxsession_find_idle(); if(!s) s=lxsession_add(); if(!s) { g_critical("lxsession_add fail\n"); exit(0); } ret=lxdm_auth_user_authenticate(&s->auth,user,pass,type); if(ret==AUTH_SUCCESS) *ppw=&s->auth.pw; return ret; } static void close_left_fds(void) { struct dirent **list; char path[256]; int n; snprintf(path,sizeof(path),"/proc/%d/fd",getpid()); n=scandir(path,&list,0,0); if(n<0) return; while(n--) { int fd=atoi(list[n]->d_name); free(list[n]); if(fd<=STDERR_FILENO) continue; close(fd); } free(list); int fd = open("/dev/null", O_WRONLY); if(fd == -1) return; dup2(fd, 1); dup2(fd, 2); close(fd); } void switch_user(struct passwd *pw, const char *run, char **env) { int fd; setenv("USER",pw->pw_name,1); setenv("LOGNAME",pw->pw_name,1); setenv("SHELL",pw->pw_shell,1); setenv("HOME",pw->pw_dir,1); g_spawn_command_line_sync ("/etc/lxdm/PreLogin",NULL,NULL,NULL,NULL); if( !pw || initgroups(pw->pw_name, pw->pw_gid) || setgid(pw->pw_gid) || setuid(pw->pw_uid) || setsid() == -1 ) exit(EXIT_FAILURE); chdir(pw->pw_dir); fd=open(".xsession-errors",O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR); if(fd!=-1) { dup2(fd,STDERR_FILENO); close(fd); } /* reset signal */ signal(SIGCHLD, SIG_DFL); signal(SIGTERM, SIG_DFL); signal(SIGPIPE, SIG_DFL); signal(SIGALRM, SIG_DFL); signal(SIGHUP, SIG_DFL); signal(SIGTTIN, SIG_DFL); signal(SIGTTOU, SIG_DFL); signal(SIGUSR1, SIG_DFL); close_left_fds(); g_spawn_command_line_async ("/etc/lxdm/PostLogin",NULL); execle("/etc/lxdm/Xsession", "/etc/lxdm/Xsession", run, NULL, env); exit(EXIT_FAILURE); } static void get_lock(void) { FILE *fp; char *lockfile; lockfile = g_key_file_get_string(config, "base", "lock", 0); if( !lockfile ) lockfile = g_strdup("/var/run/lxdm.pid"); fp = fopen(lockfile, "r"); if( fp ) { int pid; int ret; ret = fscanf(fp, "%d", &pid); fclose(fp); if(ret == 1 && pid!=getpid()) { if(kill(pid, 0) == 0 || (ret == -1 && errno == EPERM)) { /* we should only quit if the pid running is lxdm */ #ifdef __linux__ char path[64],buf[128]; sprintf(path,"/proc/%d/exe",pid); ret=readlink(path,buf,128); if(ret<128 && ret>0 && strstr(buf,"lxdm-binary")) lxdm_quit_self(1); #else lxdm_quit_self(1); #endif } } } fp = fopen(lockfile, "w"); if( !fp ) { g_critical("open lock file %s fail\n",lockfile); lxdm_quit_self(0); } fprintf( fp, "%d", getpid() ); fclose(fp); g_free(lockfile); } static void put_lock(void) { FILE *fp; char *lockfile; lockfile = g_key_file_get_string(config, "base", "lock", 0); if( !lockfile ) lockfile = g_strdup("/var/run/lxdm.pid"); fp = fopen(lockfile, "r"); if( fp ) { int pid; int ret; ret = fscanf(fp, "%d", &pid); fclose(fp); if( ret == 1 && pid == getpid() ) remove(lockfile); } g_free(lockfile); } static int get_run_level(void) { #if defined(HAVE_UTMPX_H) && defined(RUN_LVL) int res; struct utmpx *ut,tmp; setutxent(); tmp.ut_type=RUN_LVL; ut=getutxid(&tmp); if(!ut) { endutxent(); return '5'; } res=ut->ut_pid & 0xff; endutxent(); //g_message("runlevel %c\n",res); return res; #else return '5'; #endif } static void on_xserver_stop(void *data,int pid, int status) { LXSession *s=data; LXSession *greeter; int level; stop_pid(pid); s->server = -1; lxsession_stop(s); level=get_run_level(); if(level=='6' || level=='0') { return; } g_message("xserver stop, restart. return status %x\n",status); greeter=lxsession_find_greeter(); if(s->greeter || !greeter) { s->greeter=TRUE; xconn_close(s->dpy); s->dpy=NULL; ui_drop(); lxdm_startx(s); ui_prepare(); lxsession_set_active(s); } else { lxsession_free(s); lxsession_set_active(greeter); } } static void lxdm_startx(LXSession *s) { char *arg; char **args; int i; char display[16]; lxsession_set_active(s); sprintf(display,":%d",s->display); setenv("DISPLAY",display,1); #ifndef DISABLE_XAUTH create_server_auth(s); #endif arg = lxsession_xserver_command(s); args = g_strsplit(arg, " ", -1); g_free(arg); s->server = vfork(); switch( s->server ) { case 0: execvp(args[0], args); g_critical("exec %s fail\n",args[0]); lxdm_quit_self(0); break; case -1: /* fatal error, should not restart self */ g_critical("fork proc fail\n"); lxdm_quit_self(0); break; default: break; } g_strfreev(args); lxcom_add_child_watch(s->server, on_xserver_stop, s); g_message("%ld: add xserver watch\n",time(NULL)); for( i = 0; i < 100; i++ ) { if(lxcom_last_sig==SIGINT || lxcom_last_sig==SIGTERM) break; if((s->dpy=xconn_open(display))!=NULL) break; g_usleep(50 * 1000); //g_message("retry %d\n",i); } g_message("%ld: start xserver in %d retry",time(NULL),i); if(s->dpy==NULL) exit(EXIT_FAILURE); if(s->option && g_key_file_has_key(config,s->option,"numlock",NULL)) { i=g_key_file_get_integer(config,s->option,"numlock",0); arg=g_strdup_printf("%s %d",LXDM_NUMLOCK_PATH,i); g_spawn_command_line_async(arg,NULL); g_free(arg); } else if(g_key_file_has_key(config,"base","numlock",NULL)) { i=g_key_file_get_integer(config,"base","numlock",0); arg=g_strdup_printf("%s %d",LXDM_NUMLOCK_PATH,i); g_spawn_command_line_async(arg,NULL); g_free(arg); } #ifndef DISABLE_XAUTH unsetenv("XAUTHORITY"); #endif } static void exit_cb(void) { g_message("exit cb\n"); ui_drop(); while(session_list) lxsession_free(session_list->data); g_message("free session\n"); put_lock(); set_active_vt(old_tty); g_key_file_free(config); } static gboolean delayed_restart_greeter(LXSession *s) { int level; level=get_run_level(); if(level=='0' || level=='6') { if(level=='0') g_spawn_command_line_sync("/etc/lxdm/PreShutdown",0,0,0,0); else g_spawn_command_line_sync("/etc/lxdm/PreReboot",0,0,0,0); g_message("run level %c\n",level); lxdm_quit_self(0); return FALSE; } if(s && s!=lxsession_greeter()) { lxsession_free(s); } else if(!s) { lxsession_greeter(); } return FALSE; } static void on_session_stop(void *data,int pid, int status) { int level; LXSession *s=data; gchar *argv[] = { "/etc/lxdm/PostLogout", NULL }; g_spawn_async(NULL, argv, s->env, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); if(g_key_file_get_integer(config,"server","reset",NULL)!=1) { lxsession_stop(s); } else { lxsession_free(s); s=NULL; } level=get_run_level(); if(level=='0' || level=='6') { if(level=='0') g_spawn_command_line_sync("/etc/lxdm/PreShutdown",0,0,0,0); else g_spawn_command_line_sync("/etc/lxdm/PreReboot",0,0,0,0); g_message("run level %c\n",level); lxdm_quit_self(0); return; } g_timeout_add(300,(GSourceFunc)delayed_restart_greeter,s); } gboolean lxdm_get_session_info(const char *session,char **pname,char **pexec,char **pdesktop_names) { char *name=NULL,*exec=NULL,**names=NULL,*desktop_names=NULL; if(!session || !session[0]) { name=g_key_file_get_string(config, "base", "session", 0); if(!name && getenv("PREFERRED")) name = g_strdup(getenv("PREFERRED")); if(!name && getenv("DESKTOP")) name = g_strdup(getenv("DESKTOP")); if(!name) name=g_strdup("LXDE"); } else { char *p=strrchr(session,'.'); if(p && !strcmp(p,".desktop")) { GKeyFile *cfg=g_key_file_new(); if(!g_key_file_load_from_file(cfg,session,G_KEY_FILE_NONE,NULL)) { g_key_file_free(cfg); return FALSE; } name=g_key_file_get_string(cfg,"Desktop Entry","Name",NULL); exec=g_key_file_get_string(cfg,"Desktop Entry","Exec",NULL); names = g_key_file_get_string_list (cfg, "Desktop Entry", "DesktopNames", NULL, NULL); if (names != NULL) { desktop_names = g_strjoinv (":", names); g_strfreev (names); } g_key_file_free(cfg); if(!name || !exec) { g_free(name); g_free(exec); return FALSE; } } else { GKeyFile *f; char *file_path; gboolean loaded; f = g_key_file_new(); char *desktop_name = g_strconcat(session, ".desktop", NULL); file_path = g_build_filename(XSESSIONS_DIR, desktop_name, NULL); loaded = g_key_file_load_from_file(f, file_path, G_KEY_FILE_NONE, NULL); g_free(file_path); g_free(desktop_name); if ( loaded ) { name = g_key_file_get_locale_string(f, "Desktop Entry", "Name", NULL, NULL); exec = g_key_file_get_string(f, "Desktop Entry", "Exec", NULL); names = g_key_file_get_string_list (f, "Desktop Entry", "DesktopNames", NULL, NULL); if (names != NULL) { desktop_names = g_strjoinv (":", names); g_strfreev (names); } } else { name=g_strdup(session); } g_key_file_free(f); } } if(name && !exec) { if(!strcasecmp(name,"LXDE")) exec = g_strdup("startlxde"); else if( !strcasecmp(name, "GNOME") ) exec = g_strdup("gnome-session"); else if( !strcasecmp(name, "KDE") ) exec = g_strdup("startkde"); else if( !strcasecmp(name, "XFCE") || !strcasecmp(name, "xfce4")) exec = g_strdup("startxfce4"); else exec=g_strdup(name); } if(pname) *pname=name; if(pexec) *pexec=exec; if(pdesktop_names) *pdesktop_names=desktop_names; return TRUE; } static void lxdm_save_login(char *session,char *lang) { char *old; GKeyFile *var; int dirty=0; if(!session || !session[0]) session="__default__"; if(!lang) lang=""; var=g_key_file_new(); g_key_file_set_list_separator(var, ' '); g_key_file_load_from_file(var,VCONFIG_FILE,0,NULL); old=g_key_file_get_string(var,"base","last_session",0); if(0!=g_strcmp0(old,session)) { g_key_file_set_string(var,"base","last_session",session); dirty++; } g_free(old); old=g_key_file_get_string(var,"base","last_lang",0); if(0!=g_strcmp0(old,lang)) { g_key_file_set_string(var,"base","last_lang",lang); dirty++; } g_free(old); if(lang[0]) { char **list; gsize len; list=g_key_file_get_string_list(var,"base","last_langs",&len,NULL); if(!list) { list=g_new0(char*,2); list[0]=g_strdup(lang); g_key_file_set_string_list(var,"base","last_langs",(void*)list,1); g_strfreev(list); dirty++; } else { int i; for(i=0;ipw_dir); GKeyFile *dmrc=g_key_file_new(); g_key_file_load_from_file(dmrc,path,G_KEY_FILE_NONE,0); g_free(path); if(!session || !session[0]) { session=g_key_file_get_string(dmrc,"Desktop","Session",NULL); alloc_session=TRUE; } if(!lang || !lang[0]) { lang=g_key_file_get_string(dmrc,"Desktop","Language",NULL); alloc_lang=TRUE; } g_key_file_free(dmrc); } if(!lxdm_get_session_info(session,&session_name,&session_exec,&session_desktop_names)) { if(alloc_session) g_free(session); if(alloc_lang) g_free(lang); ui_prepare(); g_debug("get session %s info fail\n",session); return; } g_debug("login user %s session %s lang %s\n",pw->pw_name,session_exec,lang); if( pw->pw_shell[0] == '\0' ) { setusershell(); strcpy(pw->pw_shell, getusershell()); endusershell(); } prev=lxsession_find_user(pw->pw_uid); s=lxsession_find_greeter(); if(prev && prev->child>0) { if(s) lxsession_free(s); lxsession_set_active(prev); g_free(session_name); g_free(session_exec); g_free(session_desktop_names); return; } if(!s) s=lxsession_find_idle(); if(!s) s=lxsession_add(); if(!s) { g_critical("lxsession_add fail\n"); exit(0); } s->greeter=FALSE; s->idle=FALSE; s->user=pw->pw_uid; if(option) s->option=g_strdup(option); #if HAVE_LIBCK_CONNECTOR if(s->ckc) { ck_connector_unref(s->ckc); s->ckc=NULL; } #endif lxdm_auth_session_begin(&s->auth,session_name,s->tty,s->display,s->mcookie); #if HAVE_LIBCK_CONNECTOR #if HAVE_LIBPAM if(!s->ckc && (!s->auth.handle || !pam_getenv(s->auth.handle,"XDG_SESSION_COOKIE"))) #else if(!s->ckc) #endif { s->ckc = ck_connector_new(); } if( s->ckc != NULL ) { DBusError error; char x[256], *d, *n; gboolean is_local=TRUE; sprintf(x, "/dev/tty%d", s->tty); dbus_error_init(&error); d = x; n = getenv("DISPLAY"); if( ck_connector_open_session_with_parameters(s->ckc, &error, "unix-user", &pw->pw_uid, // disable this, follow the gdm way //"display-device", &d, "x11-display-device", &d, "x11-display", &n, "is-local",&is_local, NULL)) { setenv("XDG_SESSION_COOKIE", ck_connector_get_cookie(s->ckc), 1); } else { g_message("create ConsoleKit session fail\n"); } } else { g_message("create ConsoleKit connector fail\n"); } #endif char **env, *path; env=g_get_environ(); env=g_environ_setenv(env, "HOME", pw->pw_dir, TRUE); env=g_environ_setenv(env, "SHELL", pw->pw_shell, TRUE); env=g_environ_setenv(env, "USER", pw->pw_name, TRUE); env=g_environ_setenv(env, "LOGNAME", pw->pw_name, TRUE); /* override $PATH if needed */ path = g_key_file_get_string(config, "base", "path", 0); if( G_UNLIKELY(path) && path[0] ) /* if PATH is specified in config file */ env=g_environ_setenv(env, "PATH", path, TRUE); /* override current $PATH with config value */ else /* don't use the global env, they are bad for user */ env=g_environ_setenv(env, "PATH", "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin", TRUE); /* set proper default */ g_free(path); /* optionally override $LANG, $LC_MESSAGES, and $LANGUAGE */ if( lang && lang[0] ) { env=g_environ_setenv(env, "LANG", lang, TRUE); env=g_environ_setenv(env, "LC_MESSAGES", lang, TRUE); env=g_environ_setenv(env, "LANGUAGE", lang, TRUE); } if( session_desktop_names && session_desktop_names[0] ) env=g_environ_setenv(env, "XDG_CURRENT_DESKTOP", session_desktop_names, TRUE); env=lxdm_auth_append_env(&s->auth,env); #ifndef DISABLE_XAUTH env=create_client_auth(pw,env); #endif s->env = env; /*s->child = pid = fork(); if(s->child==0) { env=lxdm_auth_append_env(&s->auth,env); lxdm_auth_clean_for_child(&s->auth); switch_user(pw, session_exec, env); lxdm_quit_self(4); }*/ s->child = pid = lxdm_auth_session_run(&s->auth,session_exec,env); g_free(session_name); g_free(session_exec); g_free(session_desktop_names); if(alloc_session) g_free(session); if(alloc_lang) g_free(lang); lxcom_add_child_watch(pid, on_session_stop, s); } void lxdm_do_reboot(void) { char *cmd; cmd = g_key_file_get_string(config, "cmd", "reboot", 0); if( !cmd ) cmd = g_strdup("reboot"); g_spawn_command_line_sync("/etc/lxdm/PreReboot",0,0,0,0); g_spawn_command_line_async(cmd,0); g_free(cmd); lxdm_quit_self(0); } void lxdm_do_shutdown(void) { char *cmd; cmd = g_key_file_get_string(config, "cmd", "shutdown", 0); if( !cmd ) cmd = g_strdup("shutdown -h now"); g_spawn_command_line_sync("/etc/lxdm/PreShutdown",0,0,0,0); g_spawn_command_line_async(cmd,0); g_free(cmd); lxdm_quit_self(0); } static gboolean auto_login_future(void) { return g_key_file_get_integer(config,"base","timeout",NULL)>=5; } int lxdm_do_auto_login(void) { struct passwd *pw; char *p,**users; char *pass=NULL; int i,count,ret; int success=0; p = g_key_file_get_string(config, "base", "autologin", 0); if(!p) return 0; users=g_strsplit(p," ",8); g_free(p); count=g_strv_length(users); #ifdef ENABLE_PASSWORD if(count==1) pass = g_key_file_get_string(config, "base", "password", 0); #endif /* get defaults from last login */ GKeyFile *var_config = g_key_file_new(); g_key_file_set_list_separator(var_config, ' '); g_key_file_load_from_file(var_config,VCONFIG_FILE,G_KEY_FILE_KEEP_COMMENTS, NULL); char* last_session = g_key_file_get_string(var_config, "base", "last_session", NULL); if(last_session != NULL && last_session[0] == 0) { g_free(last_session); last_session = NULL; } char* last_lang = g_key_file_get_string(var_config, "base", "last_lang", NULL); g_key_file_free(var_config); for(i=0;ipw_dir); if(!access(face,R_OK)) return face; g_free(face); kf=g_key_file_new(); file=g_build_filename ("/var/lib/AccountsService/users/", pw->pw_name, NULL); g_key_file_load_from_file (kf, file, 0, NULL); g_free(file); face=g_key_file_get_string(kf,"User","Icon",NULL); g_key_file_free(kf); if(face && !access(face,R_OK)) return face; g_free(face); return NULL; } GKeyFile *lxdm_user_list(void) { struct passwd *pw; GKeyFile *kf; char *face; char **black=NULL; char **white=NULL; // load black list face=g_key_file_get_string(config,"userlist","black",NULL); if(face) { black=g_strsplit(face," ",-1); g_free(face); } //load white list face=g_key_file_get_string(config,"userlist","white",NULL); if(face) { white=g_strsplit(face," ",-1); g_free(face); } kf=g_key_file_new(); g_key_file_set_comment(kf,NULL,NULL,"lxdm user list",NULL); while((pw=getpwent())!=NULL) { char *valid_shell; gboolean ret; if(strstr(pw->pw_shell, "nologin")) continue; ret = FALSE; setusershell(); while ((valid_shell = getusershell()) != NULL) { if (g_strcmp0 (pw->pw_shell, valid_shell) != 0) continue; ret = TRUE; } endusershell(); if(!ret) continue; if(strncmp(pw->pw_dir,"/home/",6)) { if(!strv_find(white,pw->pw_name)) continue; } else { if(strv_find(black,pw->pw_name)) continue; } g_key_file_set_string(kf,pw->pw_name,"name",pw->pw_name); if(pw->pw_gecos && pw->pw_gecos[0] && strcmp(pw->pw_name,pw->pw_gecos)) g_key_file_set_string(kf,pw->pw_name,"gecos",pw->pw_gecos); if(lxsession_find_user(pw->pw_uid)) g_key_file_set_boolean(kf,pw->pw_name,"login",TRUE); face=lxdm_get_user_face(pw); if(face) g_key_file_set_string(kf,pw->pw_name,"face",face); g_free(face); } endpwent(); if(black) g_strfreev(black); if(white) g_strfreev(white); return kf; } static GString *lxdm_user_cmd(void *data,int user,int arc,char **arg) { LXSession *s=NULL; GString *res=NULL; s=lxsession_find_user(user); if(!s && user==ui_greeter_user()) s=lxsession_find_greeter(); g_message("greeter %d session %p\n",ui_greeter_user(),lxsession_find_greeter()); g_message("user %d session %p cmd %s\n",user,s,arg[0]); if(user!=0 && s==NULL) return NULL; if(!strcmp(arg[0],"USER_SWITCH")) { g_message("start greeter\n"); lxsession_greeter(); } else if(!strcmp(arg[0],"USER_LIST")) { GKeyFile *kf=lxdm_user_list(); gsize len; char *p=g_key_file_to_data(kf,&len,NULL); if(p) { res=g_string_new_len(p,len); g_free(p); } g_key_file_free(kf); } return res; } void set_signal(void) { lxcom_set_signal_handler(SIGQUIT,lxdm_signal_handler,0); lxcom_set_signal_handler(SIGTERM,lxdm_signal_handler,0); lxcom_set_signal_handler(SIGINT,lxdm_signal_handler,0); lxcom_set_signal_handler(SIGHUP,lxdm_signal_handler,0); lxcom_set_signal_handler(SIGPIPE,lxdm_signal_handler,0); lxcom_set_signal_handler(SIGALRM,lxdm_signal_handler,0); signal(SIGTTIN,SIG_IGN); signal(SIGTTOU,SIG_IGN); signal(SIGUSR1,SIG_IGN); signal(SIGSEGV, sigsegv_handler); } int main(int arc, char *arg[]) { int daemonmode = 0; gboolean debugmode = FALSE; int i; for(i=1;i * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #ifndef _LXDM_H_ #define _LXDM_H_ #include #include G_BEGIN_DECLS extern GKeyFile *config; int lxdm_auth_user(int type,char *user,char *pass,struct passwd **ppw); void lxdm_do_login(struct passwd *pw,char *session,char *lang,char *option); void lxdm_do_reboot(void); void lxdm_do_shutdown(void); int lxdm_do_auto_login(void); void lxdm_quit_self(int code); enum AuthResult { AUTH_SUCCESS, AUTH_BAD_USER, AUTH_FAIL, AUTH_PRIV, AUTH_ERROR }; void ui_drop(void); int ui_main(void); void ui_prepare(void); int ui_greeter_user(void); typedef struct{ char *name; char *exec; char* desktop_file; }Session; GSList *do_scan_xsessions(void); void free_xsessions(GSList *); G_END_DECLS #endif/*_LXDM_H_*/ lxdm-0.5.3/src/numlock.c000066400000000000000000000015171262556610000150750ustar00rootroot00000000000000#include #include #include // strcmp void numlock(Display *c,int onoff) { XkbDescPtr xkb; unsigned int mask; int i; xkb = XkbGetKeyboard(c, XkbAllComponentsMask, XkbUseCoreKbd ); if(!xkb) return; if(!xkb->names) { XkbFreeKeyboard(xkb,0,True); return; } for(i = 0; i < XkbNumVirtualMods; i++) { char *s=XGetAtomName( xkb->dpy, xkb->names->vmods[i]); if(!s) continue; if(strcmp(s,"NumLock")) continue; XkbVirtualModsToReal( xkb, 1 << i, &mask ); break; } XkbFreeKeyboard( xkb, 0, True ); XkbLockModifiers ( c, XkbUseCoreKbd, mask, (onoff?mask:0)); } int main(int arc,char *arg[]) { Display *c; if(arc!=2) return -1; c=XOpenDisplay(0); if(!c) return -1; if(!strcmp(arg[1],"on") || !strcmp(arg[1],"1")) numlock(c,1); else numlock(c,0); XCloseDisplay(c); return 0; } lxdm-0.5.3/src/pam.c000066400000000000000000000314201262556610000141760ustar00rootroot00000000000000/* * lxdm.c - main entry of lxdm * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #define _GNU_SOURCE #ifdef HAVE_CONFIG_H #include #endif #ifndef HAVE_LIBPAM #ifdef USE_PAM #define HAVE_LIBPAM 1 #else #define HAVE_LIBPAM 0 #endif #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "lxdm.h" #include "auth.h" static void passwd_copy(struct passwd *dst,struct passwd *src) { dst->pw_name=g_strdup(src->pw_name); dst->pw_uid=src->pw_uid; dst->pw_gid=src->pw_gid; if(src->pw_gecos) dst->pw_gecos=g_strdup(src->pw_gecos); dst->pw_dir=g_strdup(src->pw_dir); dst->pw_shell=g_strdup(src->pw_shell); } static void passwd_clean(struct passwd *pw) { g_free(pw->pw_name); g_free(pw->pw_gecos); g_free(pw->pw_dir); g_free(pw->pw_shell); memset(pw,0,sizeof(*pw)); } #if !HAVE_LIBPAM int lxdm_auth_init(LXDM_AUTH *a) { memset(a,0,sizeof(*a)); return 0; } int lxdm_auth_cleanup(LXDM_AUTH *a) { passwd_clean(&a->pw); return 0; } int lxdm_auth_user_authenticate(LXDM_AUTH *a,const char *user,const char *pass,int type) { struct passwd *pw; struct spwd *sp; char *real; char *enc; if(!user || !user[0]) { g_debug("user==NULL\n"); return AUTH_ERROR; } pw = getpwnam(user); endpwent(); if(!pw) { g_debug("user %s not found\n",user); return AUTH_BAD_USER; } if(strstr(pw->pw_shell, "nologin")) { g_debug("user %s have nologin shell\n",user); return AUTH_PRIV; } if(type==AUTH_TYPE_AUTO_LOGIN && !pass) { goto out; } sp = getspnam(user); if( !sp ) { return AUTH_FAIL; } endspent(); real = sp->sp_pwdp; if( !real || !real[0] ) { if( !pass || !pass[0] ) { passwd_copy(&a->pw,pw); g_debug("user %s auth with no password ok\n",user); return AUTH_SUCCESS; } else { g_debug("user %s password not match\n",user); return AUTH_FAIL; } } enc = crypt(pass, real); if( strcmp(real, enc) ) { g_debug("user %s password not match\n",user); return AUTH_FAIL; } out: g_debug("user %s auth ok\n",pw->pw_name); passwd_copy(&a->pw,pw); return AUTH_SUCCESS; } int lxdm_auth_session_begin(LXDM_AUTH *a,const char *name,int tty,int display,char mcookie[16]) { return 0; } int lxdm_auth_session_end(LXDM_AUTH *a) { return 0; } int lxdm_auth_clean_for_child(LXDM_AUTH *a) { return 0; } void lxdm_auth_print_env(LXDM_AUTH *a) { } void lxdm_auth_put_env(LXDM_AUTH *a) { } #else #include static char *user_pass[2]; static int do_conv(int num, const struct pam_message **msg,struct pam_response **resp, void *arg) { int result = PAM_SUCCESS; int i; *resp = (struct pam_response *) calloc(num, sizeof(struct pam_response)); for(i=0;imsg_style,msg[i]->msg); switch(msg[i]->msg_style){ case PAM_PROMPT_ECHO_ON: resp[i]->resp=strdup(user_pass[0]?user_pass[0]:""); break; case PAM_PROMPT_ECHO_OFF: //resp[i]->resp=strdup(user_pass[1]?user_pass[1]:""); resp[i]->resp=user_pass[1]?strdup(user_pass[1]):NULL; break; case PAM_ERROR_MSG: case PAM_TEXT_INFO: //printf("PAM: %s\n",msg[i]->msg); break; default: break; } } return result; } static struct pam_conv conv={.conv=do_conv,.appdata_ptr=user_pass}; int lxdm_auth_init(LXDM_AUTH *a) { memset(a,0,sizeof(*a)); return 0; } int lxdm_auth_cleanup(LXDM_AUTH *a) { passwd_clean(&a->pw); return 0; } int lxdm_auth_user_authenticate(LXDM_AUTH *a,const char *user,const char *pass,int type) { struct passwd *pw; if(!user || !user[0]) { g_debug("user==NULL\n"); return AUTH_ERROR; } pw = getpwnam(user); endpwent(); if(!pw) { g_debug("user %s not found\n",user); return AUTH_BAD_USER; } if(strstr(pw->pw_shell, "nologin")) { g_debug("user %s have nologin shell\n",user); return AUTH_PRIV; } if(a->handle) pam_end(a->handle,0); if(PAM_SUCCESS != pam_start("lxdm", pw->pw_name, &conv, (pam_handle_t**)&a->handle)) { a->handle=NULL; g_debug("user %s start pam fail\n",user); return AUTH_FAIL; } else { int ret; if(type==AUTH_TYPE_AUTO_LOGIN && !pass) goto out; user_pass[0]=(char*)user;user_pass[1]=(char*)pass; ret=pam_authenticate(a->handle,PAM_SILENT); user_pass[0]=0;user_pass[1]=0; if(ret!=PAM_SUCCESS) { g_debug("user %s auth fail with %d\n",user,ret); return AUTH_FAIL; } ret=pam_acct_mgmt(a->handle,PAM_SILENT); if(ret!=PAM_SUCCESS) { g_debug("user %s acct mgmt fail with %d\n",user,ret); return AUTH_FAIL; } } out: passwd_copy(&a->pw,pw); return AUTH_SUCCESS; } int lxdm_auth_session_begin(LXDM_AUTH *a,const char *name,int tty,int display,char mcookie[16]) { int err; char x[256]; if(!a->handle) { return -1; } sprintf(x, "tty%d", tty); pam_set_item(a->handle, PAM_TTY, x); #ifdef PAM_XDISPLAY sprintf(x,":%d",display); pam_set_item(a->handle, PAM_XDISPLAY, x); #endif #if !defined(DISABLE_XAUTH) && defined(PAM_XAUTHDATA) struct pam_xauth_data value; value.name="MIT-MAGIC-COOKIE-1"; value.namelen=18; value.data=mcookie; value.datalen=16; pam_set_item (a->handle, PAM_XAUTHDATA, &value); #endif if(name && name[0]) { char *env; env = g_strdup_printf ("DESKTOP_SESSION=%s", name); pam_putenv (a->handle, env); g_free (env); } err = pam_open_session(a->handle, 0); /* FIXME pam session failed */ if( err != PAM_SUCCESS ) { g_warning( "pam open session error \"%s\"\n", pam_strerror(a->handle, err)); } else { a->in_session=1; } return 0; } static int proc_filter(const struct dirent *d) { int c=d->d_name[0]; return c>='1' && c<='9'; } static int check_process_sid(int pid,const char *sid) { char path[128]; FILE *fp; gchar *env_data,*p; gsize env_len; int res=0; sprintf(path,"/proc/%d/environ",pid); if(!g_file_get_contents(path,&env_data,&env_len,NULL)) { return 0; } for(p=env_data;p!=NULL && p-env_datad_name); if(pid==self || pid<=1) continue; if(check_process_sid(pid,sid)) { kill(pid,SIGKILL); } } free(list); } int lxdm_auth_session_end(LXDM_AUTH *a) { int err; if(!a->handle) return 0; if(a->in_session) { char xdg_session_id[32]={0}; const char *p=pam_getenv(a->handle,"XDG_SESSION_ID"); if(p!=NULL) snprintf(xdg_session_id,32,"%s",p); err = pam_close_session(a->handle, 0); if( err != PAM_SUCCESS ) { g_warning( "pam close session error \"%s\"\n", pam_strerror(a->handle, err)); } a->in_session=0; if(p!=NULL) { usleep(100*1000); kill_left_process(xdg_session_id); } } pam_end(a->handle, err); a->handle = NULL; passwd_clean(&a->pw); return 0; } int lxdm_auth_clean_for_child(LXDM_AUTH *a) { pam_end(a->handle,0); return 0; } void lxdm_auth_print_env(LXDM_AUTH *a) { int i; char **penv; if(!a->handle) return; penv=pam_getenvlist(a->handle); if(!penv) return; for(i=0;penv[i]!=NULL;i++) { if(i!=0) printf(" "); printf("%s",penv[i]); } free(penv); } void lxdm_auth_put_env(LXDM_AUTH *a) { int i; char **penv; if(!a->handle) return; penv=pam_getenvlist(a->handle); if(!penv) return; for(i=0;penv[i]!=NULL;i++) { if(i!=0) printf(" "); if(0!=putenv(penv[i])) perror("putenv"); } free(penv); } #endif static void close_left_fds(void) { struct dirent **list; char path[256]; int n; snprintf(path,sizeof(path),"/proc/%d/fd",getpid()); n=scandir(path,&list,0,0); if(n<0) return; while(n--) { int fd=atoi(list[n]->d_name); free(list[n]); if(fd<=STDERR_FILENO) continue; close(fd); } free(list); int fd = open("/dev/null", O_WRONLY); if(fd == -1) return; dup2(fd, 1); dup2(fd, 2); close(fd); } void switch_user(struct passwd *pw, const char *run, char **env) { int fd; setenv("USER",pw->pw_name,1); setenv("LOGNAME",pw->pw_name,1); setenv("SHELL",pw->pw_shell,1); setenv("HOME",pw->pw_dir,1); g_spawn_command_line_sync ("/etc/lxdm/PreLogin",NULL,NULL,NULL,NULL); if( !pw || initgroups(pw->pw_name, pw->pw_gid) || setgid(pw->pw_gid) || setuid(pw->pw_uid) || setsid()==-1) { exit(EXIT_FAILURE); } chdir(pw->pw_dir); fd=open(".xsession-errors",O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR); if(fd!=-1) { dup2(fd,STDERR_FILENO); close(fd); } /* reset signal */ signal(SIGCHLD, SIG_DFL); signal(SIGTERM, SIG_DFL); signal(SIGPIPE, SIG_DFL); signal(SIGALRM, SIG_DFL); signal(SIGHUP, SIG_DFL); close_left_fds(); g_spawn_command_line_async ("/etc/lxdm/PostLogin",NULL); execl("/etc/lxdm/Xsession","/etc/lxdm/Xsession",run,NULL); perror("execle"); exit(EXIT_FAILURE); } void run_session(LXDM_AUTH *a,const char *run) { a->child=fork(); if(a->child==0) { lxdm_auth_put_env(a); lxdm_auth_clean_for_child(a); switch_user(&a->pw,run,NULL); //execle(run,run,NULL,environ); _exit(EXIT_FAILURE); } } LXDM_AUTH a; static int session_exit=0; static int xreadline(int fd,char *buf,size_t size) { int i; for(i=0;i=0) { //fprintf(stderr,"begin %s\n",cmd); if(!strcmp(cmd,"auth")) { char temp[8],user[64],pass[64]; int type; ret=file_get_line(temp,sizeof(temp),stdin); if(ret<0) break; type=atoi(temp); ret=file_get_line(user,sizeof(user),stdin); if(ret<0) break; if(type==AUTH_TYPE_NORMAL) { ret=file_get_line(pass,sizeof(pass),stdin); if(ret<0) break; ret=lxdm_auth_user_authenticate(&a,user,pass,type); } else { ret=lxdm_auth_user_authenticate(&a,user,NULL,type); } printf("%d\n",ret); if(ret==AUTH_SUCCESS) { printf("%d\n",a.pw.pw_uid); printf("%d\n",a.pw.pw_gid); printf("%s\n",a.pw.pw_gecos?:""); printf("%s\n",a.pw.pw_dir); printf("%s\n",a.pw.pw_shell); } } else if(!strcmp(cmd,"begin")) { char name[128],tty[8],display[8],mcookie[32]; gsize out_len; ret=file_get_line(name,sizeof(name),stdin); if(ret<0) break; ret=file_get_line(tty,sizeof(tty),stdin); if(ret<0) break; ret=file_get_line(display,sizeof(display),stdin); if(ret<0) break; ret=file_get_line(mcookie,sizeof(mcookie),stdin); if(ret<0) break; g_base64_decode_inplace(mcookie,&out_len); ret=lxdm_auth_session_begin(&a,name,atoi(tty),atoi(display),mcookie); printf("%d\n",ret); } else if(!strcmp(cmd,"end")) { ret=lxdm_auth_session_end(&a); printf("%d\n",ret); } else if(!strcmp(cmd,"env")) { lxdm_auth_print_env(&a); printf("\n"); } else if(!strcmp(cmd,"putenv")) { char env[1024]; while(file_get_line(env,sizeof(env),stdin)>0) { putenv(strdup(env)); } } else if(!strcmp(cmd,"exec")) { char run[256]; if(file_get_line(run,sizeof(run),stdin)>0) { // some pam module likely replace the SIGCHLD handler signal(SIGCHLD,sig_handler); run_session(&a,run); } } else if(!strcmp(cmd,"exit")) { break; } //fprintf(stderr,"end\n"); } lxdm_auth_session_end(&a); lxdm_auth_cleanup(&a); return 0; } lxdm-0.5.3/src/ui.c000066400000000000000000000132501262556610000140370ustar00rootroot00000000000000/* * ui.c - basic ui of lxdm * * Copyright 2009 dgod * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ #include #include #include #include #include #include #include #include #include "lxdm.h" #include "lxcom.h" #include "auth.h" static pid_t greeter = -1; static int greeter_pipe[2]; static GIOChannel *greeter_io; static guint io_id; static int user; static gboolean first=TRUE; static void xwrite(int fd,const void *buf,size_t size) { int ret; do{ ret=write(fd,buf,size); }while(ret==-1 && errno==EINTR); } static void ui_reset(void) { xwrite(greeter_pipe[0], "reset\n", 6); } void ui_drop(void) { /* if greeter, do quit */ if( greeter > 0 ) { lxcom_del_child_watch(greeter); xwrite(greeter_pipe[0], "exit\n", 5); g_source_remove(io_id); io_id = 0; g_io_channel_unref(greeter_io); greeter_io = NULL; close(greeter_pipe[1]); close(greeter_pipe[0]); waitpid(greeter, 0, 0) ; greeter=-1; user=-1; } if(io_id>0) { g_source_remove(io_id); io_id = 0; g_io_channel_unref(greeter_io); greeter_io = NULL; close(greeter_pipe[1]); close(greeter_pipe[0]); } } static void greeter_setup(void *userdata) { struct passwd *pw=userdata; if(!pw) { return; } initgroups(pw->pw_name, pw->pw_gid); setgid(pw->pw_gid); setuid(pw->pw_uid); } static gchar *greeter_param(char *str, char *name) { char *temp, *p; char ret[128]; int i; temp = g_strdup_printf(" %s=", name); p = strstr(str, temp); if( !p ) { g_free(temp); return NULL; } p += strlen(temp); g_free(temp); for( i = 0; i < 127; i++ ) { if( !p[i] || isspace(p[i]) ) break; ret[i] = p[i]; } ret[i] = 0; if(!strcmp(name,"pass")) { gsize outlen; temp=(char*)g_base64_decode(ret,&outlen); if(!temp) return NULL; p=g_malloc(outlen+1); memcpy(p,temp,outlen); p[outlen]=0; g_free(temp); return p; } return g_strdup(ret); } static gboolean on_greeter_input(GIOChannel *source, GIOCondition condition, gpointer data) { GIOStatus ret; char *str; if( !(G_IO_IN & condition) ) return FALSE; ret = g_io_channel_read_line(source, &str, NULL, NULL, NULL); if( ret != G_IO_STATUS_NORMAL ) return FALSE; if( !strncmp(str, "reboot", 6) ) lxdm_do_reboot(); else if( !strncmp(str, "shutdown", 6) ) lxdm_do_shutdown(); else if( !strncmp(str, "log ", 4) ) g_message("%s",str + 4); else if( !strncmp(str, "login ", 6) ) { char *user = greeter_param(str, "user"); char *pass = greeter_param(str, "pass"); char *session = greeter_param(str, "session"); char *lang = greeter_param(str, "lang"); if( user/* && pass */) { struct passwd *pw; int ret = lxdm_auth_user(AUTH_TYPE_NORMAL, user, pass, &pw); if( AUTH_SUCCESS == ret && pw != NULL ) { ui_drop(); lxdm_do_login(pw, session, lang,NULL); } else { if(pass!=NULL) xwrite(greeter_pipe[0], "reset\n", 6); else xwrite(greeter_pipe[0], "password\n", 9); } } g_free(user); g_free(pass); g_free(session); g_free(lang); } else if(!strncmp(str, "autologin ", 10)) { char *user=g_key_file_get_string(config,"base","autologin",NULL); char *pass=g_key_file_get_string(config,"base","password",NULL); char *session = greeter_param(str, "session"); char *lang = greeter_param(str, "lang"); if(user) { struct passwd *pw; int ret = lxdm_auth_user(AUTH_TYPE_AUTO_LOGIN, user, pass, &pw); if( AUTH_SUCCESS == ret && pw != NULL ) { ui_drop(); lxdm_do_login(pw, session, lang,NULL); } else { ui_reset(); } } else { ui_reset(); } g_free(user); g_free(pass); g_free(session); g_free(lang); } g_free(str); return TRUE; } static void on_greeter_exit(void *data,int pid, int status) { if( pid != greeter ) return; greeter = -1; } int ui_greeter_user(void) { return user; } void ui_prepare(void) { char *p; if(greeter>0) return; /* if find greeter, run it */ p = g_key_file_get_string(config, "base", "greeter", NULL); if( p && p[0] ) { char *argv[3]={p,NULL,NULL}; gboolean ret; struct passwd *pw; if(first) { char *t=g_key_file_get_string(config,"base","autologin",NULL); if(t && !strchr(t,' ')) argv[1]="--auto-login"; g_free(t); first=FALSE; } pw=getpwnam("lxdm");endpwent(); ret = g_spawn_async_with_pipes(NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,greeter_setup, pw, &greeter, greeter_pipe + 0, greeter_pipe + 1, NULL, NULL); if( ret == TRUE ) { g_free(p); greeter_io = g_io_channel_unix_new(greeter_pipe[1]); io_id = g_io_add_watch(greeter_io, G_IO_IN | G_IO_HUP | G_IO_ERR, on_greeter_input, NULL); lxcom_add_child_watch(greeter, on_greeter_exit, 0); user=pw?pw->pw_uid:0; return; } } g_free(p); first=FALSE; } int ui_main(void) { GMainLoop *loop = g_main_loop_new(NULL, 0); if(greeter>0) g_spawn_command_line_async("/etc/lxdm/LoginReady",NULL); g_main_loop_run(loop); return 0; } lxdm-0.5.3/src/xconn.c000066400000000000000000000120551262556610000145510ustar00rootroot00000000000000#include #include #include #include #include #ifdef LXDM_XCONN_XLIB #include #include #include #endif #ifdef LXDM_XCONN_XCB #include #include #endif #ifdef LXDM_XCONN_XLIB typedef Display *xconn_t; static int CatchErrors(Display *dpy, XErrorEvent *ev) { return 0; } static jmp_buf XErrEnv; static int CatchIOErrors(Display *dpy) { close(ConnectionNumber(dpy)); longjmp(XErrEnv,1); return 0; } xconn_t xconn_open(const char *display) { return XOpenDisplay(display); } void xconn_close(xconn_t c) { if(!c) return; XSetErrorHandler(CatchErrors); XSetIOErrorHandler(CatchIOErrors); if(!setjmp(XErrEnv)) XCloseDisplay(c); XSetErrorHandler(NULL); XSetIOErrorHandler(NULL); } void xconn_clean(xconn_t c) { Window dummy, parent; Window *children; unsigned int nchildren; unsigned int i; Window Root; if(!c) return; XSetErrorHandler(CatchErrors); XSetIOErrorHandler(CatchIOErrors); Root = DefaultRootWindow(c); nchildren = 0; if(!setjmp(XErrEnv)) XQueryTree(c, Root, &dummy, &parent, &children, &nchildren); else goto out; for( i = 0; i < nchildren; i++ ) { if(!setjmp(XErrEnv)) XKillClient(c, children[i]); } XFree((char *)children); if(!setjmp(XErrEnv)) XSync(c, 0); out: XSetErrorHandler(NULL); XSetIOErrorHandler(NULL); } #endif #ifdef LXDM_XCONN_XCB typedef struct{ guint id; xcb_connection_t *c; }*xconn_t; typedef struct _XConnSource { GSource source; GPollFD poll; }XConnSource; typedef gboolean (*XConnFunc)(gpointer data,xcb_generic_event_t *event); static gboolean xconn_prepare (GSource *source,gint *timeout) { *timeout=-1; return FALSE; } static gboolean xconn_check(GSource *source) { XConnSource *s=(XConnSource*)source; if((s->poll.revents & G_IO_IN)) return TRUE; return FALSE; } static gboolean xconn_dispatch (GSource *source,GSourceFunc callback,gpointer user_data) { xconn_t c=user_data; xcb_generic_event_t *event; while((event=xcb_poll_for_event(c->c))!=NULL) { ((XConnFunc)callback)(user_data,event); free(event); } return TRUE; } static GSourceFuncs xconn_funcs = { xconn_prepare, xconn_check, xconn_dispatch, NULL }; static gboolean xconn_func(gpointer data,xcb_generic_event_t *event) { return TRUE; } xconn_t xconn_open(const char *display) { XConnSource *s; xcb_connection_t *dpy; xconn_t c; int fd; dpy=xcb_connect(display,0); /* is error in setup stage, there is memory leak at xcb */ if(!dpy || xcb_connection_has_error(dpy)) return NULL; c=malloc(sizeof(*c)); c->c=dpy; fd=xcb_get_file_descriptor(dpy); s=(XConnSource*)g_source_new(&xconn_funcs,sizeof(XConnSource)); g_source_set_callback((GSource*)s,(GSourceFunc)xconn_func,c,NULL); s->poll.fd=fd; s->poll.events=G_IO_IN; g_source_add_poll((GSource*)s,&s->poll); c->id=g_source_attach((GSource*)s,NULL); return c; } void xconn_close(xconn_t c) { if(!c) return; g_source_remove(c->id); /* hack, clear the xcb has_error, so we can free it any way */ if(xcb_connection_has_error(c->c) && *(int*)c->c==1) *(int*)c->c=0; xcb_disconnect(c->c); free(c); } #if 1 static xcb_window_t xconn_get_root(xconn_t c) { const xcb_setup_t *setup; setup=xcb_get_setup(c->c); xcb_screen_iterator_t iter = xcb_setup_roots_iterator (setup); xcb_screen_t *screen = iter.data; return screen->root; } static char *xconn_atom_name(xcb_connection_t *c,xcb_atom_t atom) { xcb_get_atom_name_cookie_t cookie; xcb_get_atom_name_reply_t *reply; char *buf; int len; char *res=NULL; cookie=xcb_get_atom_name(c,atom); reply=xcb_get_atom_name_reply(c,cookie,NULL); if(!reply) return NULL; buf=xcb_get_atom_name_name(reply); len=xcb_get_atom_name_name_length(reply); if(buf && len>0) { res=malloc(len+1); memcpy(res,buf,len); res[len]=0; } free(reply); return res; } static void xconn_clear_props(xcb_connection_t *c,xcb_window_t w) { xcb_list_properties_cookie_t cookie; xcb_list_properties_reply_t *reply; xcb_atom_t *atoms; int i,len; xcb_atom_t temp[16]; int temp_len=0; cookie=xcb_list_properties(c,w); reply=xcb_list_properties_reply(c,cookie,NULL); if(!reply) return; len=xcb_list_properties_atoms_length(reply); atoms=xcb_list_properties_atoms(reply); for(i=0;ic, root); rep = xcb_query_tree_reply(c->c, wintree, 0); if(!rep) return; len = xcb_query_tree_children_length(rep); children = xcb_query_tree_children(rep); for(i=0;ic,children[i]); free(rep); xconn_clear_props(c->c,root); xcb_flush(c->c); #endif } #endif lxdm-0.5.3/src/xconn.h000066400000000000000000000002651262556610000145560ustar00rootroot00000000000000#ifndef _XCONN_H_ #define _XCONN_H_ typedef void *xconn_t; xconn_t xconn_open(const char *display); void xconn_close(xconn_t c); void xconn_clean(xconn_t c); #endif/*_XCONN_H_*/ lxdm-0.5.3/systemd/000077500000000000000000000000001262556610000141565ustar00rootroot00000000000000lxdm-0.5.3/systemd/Makefile.am000066400000000000000000000002211262556610000162050ustar00rootroot00000000000000NULL= lxdm_systemddir = @systemdsystemunitdir@ lxdm_systemd_DATA = \ lxdm.service \ $(NULL) EXTRA_DIST = \ $(lxdm_systemd_DATA) \ $(NULL) lxdm-0.5.3/systemd/Makefile.in000066400000000000000000000343651262556610000162360ustar00rootroot00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = systemd 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) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(lxdm_systemddir)" DATA = $(lxdm_systemd_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONSOLEKIT_CFLAGS = @CONSOLEKIT_CFLAGS@ CONSOLEKIT_LIBS = @CONSOLEKIT_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FULL_LIBEXECDIR = @FULL_LIBEXECDIR@ GDK_CFLAGS = @GDK_CFLAGS@ GDK_LIBS = @GDK_LIBS@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ 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@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XCONN_CFLAGS = @XCONN_CFLAGS@ XCONN_LIBS = @XCONN_LIBS@ XGETTEXT = @XGETTEXT@ XLIB_CFLAGS = @XLIB_CFLAGS@ XLIB_LIBS = @XLIB_LIBS@ XMKMF = @XMKMF@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ 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_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ NULL = lxdm_systemddir = @systemdsystemunitdir@ lxdm_systemd_DATA = \ lxdm.service \ $(NULL) EXTRA_DIST = \ $(lxdm_systemd_DATA) \ $(NULL) 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) --foreign systemd/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign systemd/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-lxdm_systemdDATA: $(lxdm_systemd_DATA) @$(NORMAL_INSTALL) @list='$(lxdm_systemd_DATA)'; test -n "$(lxdm_systemddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(lxdm_systemddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(lxdm_systemddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lxdm_systemddir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(lxdm_systemddir)" || exit $$?; \ done uninstall-lxdm_systemdDATA: @$(NORMAL_UNINSTALL) @list='$(lxdm_systemd_DATA)'; test -n "$(lxdm_systemddir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(lxdm_systemddir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(lxdm_systemddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic 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-lxdm_systemdDATA 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-lxdm_systemdDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ ctags-am distclean distclean-generic 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-lxdm_systemdDATA 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 pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-lxdm_systemdDATA .PRECIOUS: Makefile # 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: lxdm-0.5.3/systemd/lxdm.service000066400000000000000000000004251262556610000165050ustar00rootroot00000000000000[Unit] Description=LXDE Display Manager Conflicts=getty@tty1.service plymouth-quit.service After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service [Service] ExecStart=/usr/sbin/lxdm Restart=always IgnoreSIGPIPE=no [Install] Alias=display-manager.service