ggz-python-0.0.9/0000755000175300017530000000000010076351225013717 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/dresden/0000755000175300017530000000000010076351225015343 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/dresden/README.dresden0000644000175300017530000000121010076351224017637 0ustar ggz009ggz00900000000000000Dresden - The Flood Game ======================== To play, you need: * Python 2.x * Pygame * SDL Story: You're a helper in a flooded area. Your task is to fix a dam, which isn't able to keep the water. The goal is to reach a high score (which can be increased by fixing many holes and staying alive as long as possible). Finally, you'll die (yes, that's the only way to end the game). Controls: * cursor left/right to move guy * space to jump * shift key to fix the holes Glossary: What is Dresden? - A very nice city in Germany. What is a 'saggse'? - An inhabitant of Saxony, which Dresden is capital of. Why this game? - Look at the source. ggz-python-0.0.9/dresden/dresden.py0000755000175300017530000000746410076351224017356 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # Copyright (C) 2002 Josef Spillner """ Dresden - The Flood Game This game is dedicated to the victims and the helpers of the flood catastrophy everywhere. As a Dresden inhabitant, I hope that it'll make us laugh about this one day. """ import pygame, pygame.transform, pygame.image from random import * from math import * from pygame.locals import * from Numeric import * import os, sys path = sys.argv[0] path = os.path.abspath(path) if path.startswith("/usr/local"): DATAPATH = "/usr/local/share/ggz/dresden/" elif path.startswith("/usr"): DATAPATH = "/usr/share/ggz/dresden/" else: DATAPATH = "./" RES = array((800, 600)) TILES = zeros([16, 20], Int) tide = 10 def main(): pygame.init() pygame.display.set_caption("Dresden") screen = pygame.display.set_mode(RES, 0, 24) water = pygame.Surface((RES[0], RES[1]), 0, 24) guy = pygame.image.load(DATAPATH + "saggse.png") stone = pygame.image.load(DATAPATH + "stone.png") font = pygame.font.Font(None, 48) flood = font.render("Flood!", 1, (255, 255, 200)) angle = 0 level = 0 guy_x = 100 guy_y = 200 nscore = 0 gogame = 1 TILES[14][12] = 1 while 1: pygame.event.pump() keyinput = pygame.key.get_pressed() if keyinput[K_ESCAPE] or pygame.event.peek(QUIT): return if gogame == 1: if keyinput[K_RIGHT]: if(guy_x < water.get_width() - 150 - 10): guy_x = guy_x + 10 if keyinput[K_LEFT]: if(guy_x > 0 + 10): guy_x = guy_x - 10 if keyinput[K_SPACE]: if guy_y < water.get_height(): guy_y = guy_y + 20 if (keyinput[K_LSHIFT] or keyinput[K_RSHIFT]): if TILES[guy_x / 50][(water.get_height() - guy_y) / 30] == 1: TILES[guy_x / 50][(water.get_height() - guy_y) / 30] = 0 nscore = nscore + 10 if TILES[(guy_x + 150) / 50][(water.get_height() - guy_y) / 30] == 1: TILES[(guy_x + 150) / 50][(water.get_height() - guy_y) / 30] = 0 nscore = nscore + 10 if guy_y > 200: guy_y = guy_y - 5 x = randrange(0, 49) if (x == 0): x = randrange(0, 15) y = randrange(0, 14) TILES[x][y] = 1 water.fill((0, 0, 0)) for j in range(20): for i in range(16): if TILES[i][j] == 0: water.blit(stone, (i * 50, j * 30)) for j in range(20): for i in range(16): if TILES[i][j] == 1: level = level + 0.05 for l in range(j * 30 + 20, water.get_height() - level): for k in range(i * 50 + l / 50, i * 50 + 49 - l / 50): blue = 200 + (l + k - angle * 10) % 55 water.set_at((k, l), (0, 0, blue)) water.blit(guy, (guy_x, water.get_height() - guy_y)) if gogame == 1: angle = angle + 0.1 wave = sin(angle) * tide level = level + 0.07 water.fill((0, 0, 255), ([0, water.get_height() - level + 1, water.get_width(), level])) water.fill((0, 0, 255), ([0, water.get_height() - level, water.get_width(), tide + wave])) water.blit(flood, (20, 30)) if gogame == 1: nscore = nscore + 1 score = font.render("Score: " + str(nscore), 1, (255, 255, 200)) water.blit(score, (160, 30)) if level > 180: gameover = font.render("Game Over", 1, (255, 255, 200)) water.blit(gameover, (350, 30)) gogame = 0 screen.blit(water, (0, 0)) pygame.display.update() if __name__ == '__main__': main() ggz-python-0.0.9/dresden/saggse.png0000644000175300017530000000641110076351224017323 0ustar ggz009ggz00900000000000000PNG  IHDR ebKGD pHYs  d_tIME7j IDATxk\U.2A Q1l`P1!qi4& Ą ) H`44F-%Ѐt%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YFRj"MSۭۮ(ydooOq۶l[ڌJm)˒K5Q.JXGjϿz3$Q/;w0ϹFJar-ڶ|W_/>₮$}t]o?y Jason Short # Past Developers up to 0.0.9 #---------------------------- Rich Gade Brent Hendricks Justin Zaun Brian Cox Douglas Hudson Roger Light Ismael Orenstein Ricardo Quesada ggz-python-0.0.9/COPYING0000644000175300017530000003545110076351224014761 0ustar ggz009ggz00900000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS ggz-python-0.0.9/ChangeLog0000644000175300017530000002476210076351224015503 0ustar ggz009ggz009000000000000002004-07-17 16:17 Josef Spillner * Makefile: - a crude 'make dist' target 2004-07-17 04:32 Josef Spillner * xadrez-chines/: xadrez-chines, xadrez-chines-server.dsc.in: - use relative data path 2004-07-13 19:29 Josef Spillner * vibora/vibora: - use python's unicode() object to display the name correctly 2004-07-13 16:41 Josef Spillner * pyggzcore/src/pyggzcoresimple_init.c: - use select() to determine whether game data is available 2004-07-13 16:41 Josef Spillner * vibora/vibora: - restore fullscreen mode - mark bots as.. well, bots :) Some window managers like icewm don't handle fullscreen apps launching windowed games very vell. But this is a minor issue for now. 2004-07-12 23:45 Josef Spillner * pyggzcore/src/pyggzcoresimple_init.c: - trying to fix game launching (without succeeding) 2004-07-12 16:57 Josef Spillner * vibora/vibora: - lots of fixes and some enhancements Chatting and viewing tables and players does now work. Playing is implemented, but still broken. Username/password is read from vibora.rc. 2004-07-12 16:56 Josef Spillner * pyggzcore/src/pyggzcoresimple_init.c: - support for joining tables (does not work yet) - more automatics functionality: table, player and gametype listings 2004-07-11 19:20 Josef Spillner * AUTHORS, INSTALL, QuickStart.GGZ: - more common files, which so far were missing from ggz-python - custom installation instructions 2004-07-11 19:19 Josef Spillner * Makefile, NEWS, README.GGZ, configure.ac, pyggzcore/setup.py.in, pyggzdmod/setup.py, pyggzdmod/setup.py.in, pyggzmod/setup.py, pyggzmod/setup.py.in: - fix installation into a prefix - preliminary common files updates 2004-07-10 22:01 Josef Spillner * Makefile, README, configure.ac, pyggzcore/.cvsignore, pyggzcore/README.pyggzcore, pyggzcore/README.pyggzcoresimple, pyggzcore/setup.py, pyggzcore/setup.py.in, pyggzcore/doc/doc.txt, pyggzcore/src/pyggzcore_init.c, pyggzcore/src/pyggzcoresimple_init.c, pyggzcore/src/test.py, vibora/vibora: - rename pyggzcore to pyggzcoresimple to allow a later 1:1 wrapper carry the name pyggzcore - support for installation in a different prefix (which would require the user to set PYTHONPATH accordingly) 2004-06-26 17:06 Josef Spillner * xadrez-chines/.cvsignore: - more files to be ignored 2004-06-26 17:06 Josef Spillner * xadrez-chines/: xadrez-chines, xadrez-chines-server, xadrezlib.py: - fix 'move not ok' to 'move invalid' in order to work with the client - network transmission fixes (little/big endian issue) 2004-06-26 17:05 Josef Spillner * vibora/: background.png, vibora: - prerendered background image (if not installed, background is still rendered in real time) - implementation of real room changes - parameter accepted (e.g. localhost), while default is live.g.o, while default is live.g.o 2004-06-25 15:30 Josef Spillner * go/goserver: - passive analyzer for the Go Modem Protocol 2004-06-21 16:10 Josef Spillner * go/: .cvsignore, Makefile, goclient, goclient.helper, goserver, goserver.dsc.in, goserver.room, module.dsc.in: - new external game support: GNU Go (server), CGoBan (client) 2004-06-14 22:51 Josef Spillner * pyggzdmod/src/pyggzdmod_init.c: - do not pass GGZSeat* object as pointer, but rather all its components individually Unfortunately, python doesn't allow arbitrary pointers to be wrapped as objects. In the PLAYER_DATA hook, we still get the player number though and not the GGZSeat*, this seems to be an inconsistency. 2004-06-14 22:49 Josef Spillner * xadrez-chines/: xadrez-chines, xadrez-chines-server, xadrezlib.py: - completion of single player mode - ai improvement: detect blocked moves (such as knights or cannons) - implemented basic client-server interaction 2004-06-13 19:18 Josef Spillner * configure.ac: - create xadrez-chines-server config file 2004-06-13 19:18 Josef Spillner * xadrez-chines/: Makefile, xadrez-chines, xadrez-chines-server, xadrez-chines-server.dsc, xadrez-chines-server.dsc.in, xadrez-chines-server.room, xadrez-protocol.txt: - implement basic GGZ handling - installation into /usr/local supported Unfortunately pyggzdmod is not up-to-date and will have to be improved 2004-06-11 19:16 Josef Spillner * xadrez-chines/: xadrez-chines, xadrez-chines-server, xadrez-chines-server.dsc, xadrez-chines-server.room, xadrez-protocol.txt, xadrezlib.py: - prepare server support for chinese chess - includes protocol handling using normal text messages and regexps - to not require yet another dependency, the server will stay in ggz-python for the time being, and share a common library script with the client 2004-05-27 23:28 Josef Spillner * pyggzcore/src/: pyggzcore_init.c, test.py: - support for player listings - (currently empty) start game function 2004-05-10 16:06 Josef Spillner * Makefile, vibora/logo.png, vibora/vibora: - new (simple) core client: vibora, using pyggzcore This can only be used for chatting atm 2004-05-10 16:05 Josef Spillner * pyggzcore/doc/doc.txt: - pyggzcore docs 2004-05-10 16:00 Josef Spillner * pyggzcore/src/: pyggzcore_init.c, test.py: - implementation of room object and simple chat 2004-04-26 16:08 Josef Spillner * pyggzcore/src/: pyggzcore_init.c, test.py: - completion of the server wrapper - start of the room wrapper 2004-04-24 19:42 Josef Spillner * configure.ac: - create Chinese Chess module.dsc file 2004-04-24 19:37 Josef Spillner * xadrez-chines/: .cvsignore, Makefile, bishop.png, bodyguard.png, cannon.png, king.png, knight.png, module.dsc.in, pawn.png, rock.png, xadrez-chines: - here comes the Chinese Chess game No multiplayer mode yet. 2004-04-24 19:36 Josef Spillner * pyggzcore/src/: pyggzcore_init.c, test.py: - completion of all GGZServer functionality This uses some undocumented python wrapper functionality, I hope it will work for the next versions too. 2004-03-29 18:44 Josef Spillner * pyggzcore/src/: pyggzcore_init.c, test.py: - further pyggzcore implementation In theory it should now be possible to execute the test program. But some python internals prevent that. The object initialization for the GGZServer* wrapper might have to be changed. 2004-03-22 18:23 Josef Spillner * pyggzcore/: .cvsignore, README.pyggzcore, setup.py, src/pyggzcore_init.c, src/test.py: - skeleton for python wrapper around ggzcore This is intended to become a really simplyfying wrapper. It will hide many details like ggzcore_init() etc. The configuration include path is currently hardcoded. This must be changed to use the configure defaults, likewise for pyggzmod and pyggzdmod. 2004-02-09 15:46 Josef Spillner * escape-sdl/: escape-sdl, module.dsc.in: - lots of fixes for the Escape/SDL game * in singleplayer mode, if a move ends on a non-empty point, let move again * in singleplayer mode, get user's name from the operating system * in multiplayer mode, get user's and opponent's name from the protocol (I think we need to rework all protocols to use ggzmod here) * at the end of the game, display winner correctly 2004-02-09 10:30 Josef Spillner * escape-sdl/escape-sdl: - display 'you' as a generic name To really fix this, pyggzmod should support the ggzmod_get_player() function. In single player mode, the username should be used. 2004-02-08 19:41 Josef Spillner * COPYING: - clarify license 2004-02-05 11:46 Josef Spillner * README, configure.ac, ChangeLog, NEWS, README.GGZ: - synchronized NEWS, README.GGZ and QuickStart.GGZ from docs - updated README * new URLs for developers, bugs, website * no more per-package maintainer mention (it was never valid anyway) - updated configure.ac to indicate final version 0.0.8 - ChangeLog updates 2004-01-27 21:49 Josef Spillner * Makefile, .cvsignore, README, aclocal.m4, configure.ac, escape-sdl/Makefile, dresden/README.dresden, dresden/dresden.py, dresden/saggse.png, dresden/stone.png, escape-sdl/.cvsignore, escape-sdl/escape-sdl, escape-sdl/module.dsc.in, pyggzdmod/.cvsignore, pyggzdmod/README.pyggzdmod, pyggzdmod/setup.py, pyggzdmod/src/pyggzdmod_init.c, pyggzdmod/src/test.py, pyggzmod/.cvsignore, pyggzmod/README.pyggzmod, pyggzmod/setup.py, pyggzmod/src/pyggzmod_init.c, pyggzmod/src/test.py: - new GGZ module: ggz-python for all python-related stuff - doesn't contain README.GGZ etc. yet 2004-01-27 21:49 Josef Spillner * Makefile, .cvsignore, README, aclocal.m4, configure.ac, escape-sdl/Makefile, dresden/README.dresden, dresden/dresden.py, dresden/saggse.png, dresden/stone.png, escape-sdl/.cvsignore, escape-sdl/escape-sdl, escape-sdl/module.dsc.in, pyggzdmod/.cvsignore, pyggzdmod/README.pyggzdmod, pyggzdmod/setup.py, pyggzdmod/src/pyggzdmod_init.c, pyggzdmod/src/test.py, pyggzmod/.cvsignore, pyggzmod/README.pyggzmod, pyggzmod/setup.py, pyggzmod/src/pyggzmod_init.c, pyggzmod/src/test.py: Initial revision 2004-01-27 21:49 Josef Spillner * Makefile, .cvsignore, README, aclocal.m4, configure.ac, escape-sdl/Makefile, dresden/README.dresden, dresden/dresden.py, dresden/saggse.png, dresden/stone.png, escape-sdl/.cvsignore, escape-sdl/escape-sdl, escape-sdl/module.dsc.in, pyggzdmod/.cvsignore, pyggzdmod/README.pyggzdmod, pyggzdmod/setup.py, pyggzdmod/src/pyggzdmod_init.c, pyggzdmod/src/test.py, pyggzmod/.cvsignore, pyggzmod/README.pyggzmod, pyggzmod/setup.py, pyggzmod/src/pyggzmod_init.c, pyggzmod/src/test.py: Initial revision ggz-python-0.0.9/INSTALL0000644000175300017530000000133410076351224014750 0ustar ggz009ggz00900000000000000Installing the GGZ python packages ================================== This is somewhat different from how C/C++ packages work. First of all, while autoconf is used, automake is not - the python distutils are used instead. A standard installation procedure would be: # Run autoconf if configure does not exist yet (i.e. CVS checkout) autoconf # Configure package, to be installed to where the other GGZ packages reside ./configure --prefix=/home/ggz/build # Compilation of python wrapper modules make # Installation make install prefix=/home/ggz/build Afterwards, the variable PYTHONPATH must point to this directory unless it's already in Python's default search path. export PYTHONPATH=/home/ggz/build That's it, basically. ggz-python-0.0.9/Makefile0000644000175300017530000000414210076351224015357 0ustar ggz009ggz00900000000000000prefix = /usr/local all: @echo Building library PyGGZMod cd pyggzmod && python setup.py build @echo Building library PyGGZdMod cd pyggzdmod && python setup.py build @echo Building library PyGGZCoreSimple cd pyggzcore && python setup.py build install: @echo Installing library PyGGZMod cd pyggzmod && python setup.py install --prefix=$(DESTDIR)$(prefix) @echo Installing library PyGGZdMod cd pyggzdmod && python setup.py install --prefix=$(DESTDIR)$(prefix) @echo Installing library PyGGZCoreSimple cd pyggzcore && python setup.py install --prefix=$(DESTDIR)$(prefix) @echo Installing game Dresden mkdir -p $(DESTDIR)$(prefix)/bin/ cp dresden/dresden.py $(DESTDIR)$(prefix)/bin mkdir -p $(DESTDIR)$(prefix)/share/ggz/dresden/ cp dresden/*.png $(DESTDIR)$(prefix)/share/ggz/dresden @echo Installing game Escape/SDL mkdir -p $(DESTDIR)$(prefix)/bin/ cp escape-sdl/escape-sdl $(DESTDIR)$(prefix)/bin ggz-config --install --force --modfile=escape-sdl/module.dsc @echo Installing game Xadrez Chines mkdir -p $(DESTDIR)$(prefix)/bin/ cp xadrez-chines/xadrez-chines $(DESTDIR)$(prefix)/bin cp xadrez-chines/xadrez-chines-server $(DESTDIR)$(prefix)/bin mkdir -p $(DESTDIR)$(prefix)/lib/site-python/ cp xadrez-chines/xadrezlib.py $(DESTDIR)$(prefix)/lib/site-python mkdir -p $(DESTDIR)$(prefix)/share/ggz/xadrez-chines/ cp xadrez-chines/*.png $(DESTDIR)$(prefix)/share/ggz/xadrez-chines ggz-config --install --force --modfile=xadrez-chines/module.dsc @echo Installing external game GNU Go support files mkdir -p $(DESTDIR)$(prefix)/bin/ cp go/goclient $(DESTDIR)$(prefix)/bin cp go/goserver $(DESTDIR)$(prefix)/bin cp go/goclient.helper $(DESTDIR)$(prefix)/bin ggz-config --install --force --modfile=go/module.dsc @echo Installing core client Vibora mkdir -p $(DESTDIR)$(prefix)/bin/ cp vibora/vibora $(DESTDIR)$(prefix)/bin mkdir -p $(DESTDIR)$(prefix)/share/ggz/vibora/ cp vibora/*.png $(DESTDIR)$(prefix)/share/ggz/vibora dist: rm -rf ../ggz-python-0.0.9 cp -r ../python ../ggz-python-0.0.9 find ../ggz-python-0.0.9 -name CVS | xargs rm -rf cd .. && tar cvf ggz-python-0.0.9.tar.gz ggz-python-0.0.9 ggz-python-0.0.9/NEWS0000644000175300017530000000202210076351224014411 0ustar ggz009ggz00900000000000000Announcing the release of The GGZ Gaming Zone v0.0.9! The GGZ Gaming Zone (GGZ) is an open-sourced Internet gaming center. Similar to other online gaming sites, players login and sit at tables where they can play their favorite games and chat with other players (and grubby, the chat bot) as well as watching them play. GGZ supports multiple rooms with varying skill levels, and records your statistics so you can see how you match up against other players (quite a few game support statistics now). A web interface allows for tournament, team and rankings tracking. Features in this release: - Advanced player rankings and statistics - Tournaments and game match information in the web interface - Detail information about people in the individual gaming rooms - More python programs: a core client, a Chinese Chess game, a Go wrapper - Chatbot enhancements such as Chess support See README.GGZ for an overview, or QuickStart.GGZ to get started with the GGZ client. Additional information: http://www.ggzgamingzone.org/releases/0.0.9/ ggz-python-0.0.9/QuickStart.GGZ0000644000175300017530000002231010076351224016357 0ustar ggz009ggz00900000000000000The GGZ Gaming Zone - Client Setup ================================== Installation Requirements for the release 0.0.9 ----------------------------------------------- The GGZ Gaming Zone client is built from three separate packages (these may be available as an integrated package in the future), upon which any number of game clients may be installed. It is important that each package be built and installed in the proper sequence in order that all library dependencies are properly resolved. For example, you must build and install the libggz package before building ggz-client-libs. The reason things are packaged this way is that our libraries will change only rarely once they have stabilized, so we will be able to release a new version of a client or game module without requiring every subsystem to be replaced anew. If you are missing a package, they are freely downloadable in source format (as well as precompiled or preconfigured packages for a number of GNU/Linux distributions and BSD systems) from: http://ggzgamingzone.org/ The packages have been tested on a variety of systems, including Linux, FreeBSD and Solaris. It should work on pretty much any type of UNIX system that supports X Windows and sockets, though it may require some changes in order to work. We will be glad to assist anyone who wishes to port the software to other platforms. Windows users can use either the native Windows client ports (might be outdated) or the newer Cygwin packages. The remainder of this document assumes that you are installing from source code. If you are installing pre-compiled packages, please keep in mind two things: 1) The order of installation should be the same as when installing from source. Dependencies should enforce this automatically. 2) If you are performing an upgrade, make sure that you obtained the upgrade from the same location so that directory location requirements are not broken. If you obtain your packages from the GGZ homepage (noted above) you will always be safe in that regard. General Installation Guidelines ------------------------------- Client packages should be installed in this order: libggz ggz-client-libs ggz-xxx-client (where xxx is the user interface the client supports) You do not need to install all of the client frontends, only the one for your preferred environment. Following this, the game packages (ggz-xxx-games) and/or individual games may be installed. For most packages, the installation is as simple as: ./configure make make install (as root) You may also need to update the shared library cache, eg: ldconfig /usr/local/lib (as root, and assuming --prefix was not specified) Note that the installation defaults to the /usr/local hierarchy. If you prefer to install it under /usr, add --prefix=/usr --sysconfdir=/etc to all of the configure scripts below. The source packages are relocatable, so you can also install them inside your home directory, if you don't have system-wide permission. Step by step instructions follow. For more detailed installation instructions, please read the INSTALL file that accompanies each of the packages. Installing libggz ----------------- Unpack the libggz sources. They should extract into a directory named libggz-X.X.X. Enter that directory and run the following commands: ./configure make make install (as root) This will install the libggz library under /usr/local. You may also need to run ldconfig (as root) on some systems. The following important features exist: --disable-debug: omit debug code --with-gcrypt: enable hash functions --with-tls: enable encryptions functions Installing ggz-client-libs -------------------------- Before installing ggz-client-libs, you must have the popt and expat libraries installed. You may obtain them from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x http://prdownloads.sourceforge.net/expat/ Unpack the ggz-client-libs sources. They should extract into a directory named ggz-client-libs-X.X.X. Enter that directory and run the following commands: ./configure make make install (as root) This will install the GGZ client libraries and the ggz-config tool under /usr/local. You may also need to run ldconfig as root on some systems. Gtk Client Installation ----------------------- The Gtk+ client requires that the Gtk+ libraries 1.2.X or 2.X be installed. These can be downloaded from http://www.gtk.org. We recommend the latest stable version, 1.2.10 or 2.2.4. Support for the 2.X series has just been added and might not always work correctly yet, it will however be the preferred toolkit in the future. Unpack the ggz-gtk-client sources. They should extract into a directory named ggz-gtk-client-X.X.X. Enter that directory and run the following commands: ./configure make make install (as root) This will install the gtk client under /usr/local. KDE Client Installation ----------------------- The KDE client requires that the KDE libraries 3.X be installed. These can be downloaded from http://www.kde.org. We recommend the latest stable version, 3.2.0. As KDE depends on Qt, you will need Qt version >= 3.0 (3.2.3 is recommended as it is the version which KDE 3.2 development was based on). Unpack the ggz-kde-client sources. They should extract into a directory named ggz-kde-client-X.X.X. Enter that directory and run the following commands: Typical Installation: ./configure make make install (as root) This will install the KDE client under your KDE installation. You may also need to run ldconfig as root on some systems. Make sure to use the same configuration prefix as KDE does, otherwise no menu entries will show up, and programs might not work as expected. Advanced users can use the KDEDIRS environment variable. GNOME Client Installation ------------------------- The GNOME client requires that the GNOME libraries 2.X be installed. You can get them from http://www.gnome.org. The recommended version is GNOME 2.4.1. Unpack the ggz-gnome-client sources. They should extract into a directory named ggz-gnome-client-X.X.X. Enter tjat directory and run the following commands: ./configure make make install (as root) You will then find the GNOME client under /usr/local. Gtk/KDE/SDL Games Installation ------------------------------ Remember that all game modules can be used with any client. Just because you're using one frontend for your client doesn't mean you can't use the games for the other frontend. Whether you are installing a single game, or the full gtk-games or kde-games or sdl-games package, the instructions are the same. The ggz-config program must be on the path, and it will automatically set all the proper installation directory options for you. Typical Installation: ./configure make make install (as root) Troubleshooting/Tips -------------------- 1) Remember, if you are going to be altering the locations of files in ggz-client-libs, you should uninstall all client and game packages first. If you are changing ONLY the GGZCONFDIR, then it is possible to simply move the ggz.modules file to the new location after reinstalling ggz-client-libs - this will save you from recompiling all of the clients and games. 2) Both libggz and ggz-client-libs require you to run ldconfig after installing! The same applies to the kde-client package. 3) Always use the 'make (un)install' script to add or remove a game client. This insures that the ggz-config program will update ggz.modules to note the presence of the game module. 4) If you can't launch a game, execute this command to view the ggz.module file that is being used by the programs: less `ggz-config --configdir`/ggz.modules You can then see if the game you are attempting to run is even present in the *Engines* list in the [Games] section. 5) Do not manually edit the ggz.modules file unless you are quite certain that you know what you are doing. This file is meant to be completely maintained by the ggz-config program which should automatically be launched by the (un)installation scripts. 6) Severe compilation or install issues should be brought up with the GGZ maintainers. You can either contact us on the ggz-dev mailing list or via the bug tracker accessible from our developer page (http://dev.ggzgamingzone.org/) - A link to join the mailing list is also available here. 7) Once you have everything compiled you need a server to connect to! There is a permanent server installed at ggz://live.ggzgamingzone.org (Germany) on port 5688. Check the FAQ on our webpage (http://ggzgamingzone.org/) for any other permanent servers that may get setup. 8) If you are compiling from CVS and are getting weird errors during the compilations, make sure you have the correct version of each build tool. The following are known to cause problems: libtool < 1.4 automake 1.5d or 1.6 The recommended compiler is gcc 3.3, although many other versions (including 2.95 or previous or later 3.x) should work as well (see point 9 below). On non-GNU systems, use gmake rather than make. 9) All C++ code must be compiled with the same compiler. This does currently affect the KDE packages of GGZ. It means that if your KDE and Qt has been compiled with gcc 2.9x, you cannot compile ggz-kde-client or ggz-kde-games with gcc 3. The reverse is also true. ggz-python-0.0.9/README0000644000175300017530000000266010076351224014602 0ustar ggz009ggz00900000000000000================================================================ The GGZ Gaming Zone - Python Libraries and Games - Version 0.0.9 ================================================================ For people not liking C or C++, the GGZ Python package provides everything they need to start hacking on GGZ. This package has appeared first as part of GGZ 0.0.8. Players will love the elegance and flexibility of games written in a scripting language. Content of GGZ-Python: - PyGGZMod, python wrapper for the ggzmod library (game clients) - PyGGZdMod, python wrapper for the ggzdmod library (game servers) - PyGGZCore, simplified python wrapper for ggzcore (core clients) - Dresden, a simple single-player pygame-based game - Escape/SDL, port of the Windows game Escape to pygame + ggz-python, which also works in single-player mode against the AI - Xadrez Chines, a chinese chess game client, server and AI module - Vibora, fullscreen core client All of them have their own README for more information on them. Please read 'INSTALL' if you aren't experienced with the build yet. For an overall view on the GGZ setup procedures, please consult the file README.GGZ. Have a look at QuickStart.GGZ to learn about the installation process. If you encounter any bugs, please send them to the mailing list, . Or use the bug tracker at http://bugs.ggzgamingzone.org/. Have fun! The GGZ Gaming Zone Development Team ggz-python-0.0.9/README.GGZ0000644000175300017530000001350310076351224015226 0ustar ggz009ggz00900000000000000The GGZ Gaming Zone - Release 0.0.9 =================================== Welcome to the GGZ Gaming Zone, a multiuser networked gaming environment. This project is still in the development phase, and as such may have some bugs. It may not even compile or run on your machine (although we do our best to make sure it does). If you are interested in assisting with development or in writing a module for your favorite game, please let us know at: . The server currently supports eighteen different game types, including spades, tic-tac-toe, chess, reversi, and others. Players can create accounts, login, and play games in any one of multiple game rooms. Sometimes they can even watch other players. More game servers are available in experimental state or as part of other projects. The project homepage is located here: http://www.ggzgamingzone.org/ An online player ranking system with tournaments is available here: http://rankings.ggzgamingzone.org/ Developers can find more information at: http://dev.ggzgamingzone.org/ Downloading =========== You can always download the latest released version of GGZ from our homepage at http://ggzgamingzone.org/, or for the absolute bleeding edge you can check out the sources via anonymous CVS (instructions are at the aforementioned homepage). GGZ is comprised of several components, each of which is packaged separately for maximum flexibility. The components are: - The libggz library This is a library of common function calls for client/server communication and utily functions. It is distributed in source form as libggz-X.X.X.tar.gz, where X.X.X is the version number. The easysock library has been merged into libggz. - Common client libraries This is the set of libraries common to all clients. The source is available as ggz-client-libs-X.X.X.tar.gz where X.X.X is the version number. - GGZ client This is the core client program that lets you log into a GGZ server, chat with friends, move between rooms and launch tables (the actual games are distributed separately). It is our goal to provide frontends for all environments. We currently have a Gtk+ client, a KDE client, a GNOME client, a SDL client, and a simple text-only client. These are available as ggz-YYY-client-X.X.X.tar.gz where YYY is one of kde, gtk, gnome, or txt, and X.X.X is the version number. The SDL client is part of the ggz-python-X.X.X.tar.gz package. - GGZ game client modules To make it easy to add more games without having to recompile GGZ, we distribute games as modules. Each frontend (kde, gtk, etc) has separate modules, but you can mix and match as you like. Every GGZ module should work with every GGZ client (within reason. You can't expect X-based games to work on a text console, of course). The games are distributed as ggz-YYY-games-X.X.X.tar.gz where YYY is kde or gtk or sdl, and X.X.X is the version number. Some SDL games are available in the ggz-python-X.X.X.tar.gz package. One text game is included in the text client. - Python module Game development using the Python programming language is supported through the pyggzmod, pyggzdmod and pyggzcoresimple wrappers. This package is distributed as ggz-python-X.X.X.tar.gz, where X.X.X is the version number. It also contains a core client and serveral game clients and servers. - The GGZ server This is the software for setting up and managing a GGZ server installation, including the server game modules. Note that if you only want to play games on an existing server, you do not need to download this. The GGZ server is distributed as ggz-server-X.X.X.tar.gz where X.X.X is the version number. - Additional software If you want to experience everything of GGZ, try this out. The current additional packages are grubby (our chat bot), available as ggz-grubby-X.X.X.tar.gz, and various utilities, ggz-utils.X.X.X. For the very bleeding edge, some more (not distributed) software can be found in the playground CVS module. The web pages are also kept in CVS (module www), but not part of the releases. The rankings/tournament web pages will be released in a later version. - Documentation A whole bunch of documentation, including the GGZ hosting guide and the GGZ development guide, as well as information on the various games and the project itself can be found in ggz-docs-X.X.X. Compiling and Installing ======================== For more detailed instructions on configuring and installing each of GGZ components, please read the INSTALL file in each of the respective source directories. For an overview of the installation process, please read the QuickStart.GGZ file. Running ======= You must have access to a running server for the client to be of any use to you. The server does not have to be running on your machine, however, if you have no (or slow!) network access, you may want to run both the client and the server locally. If you choose to install the GGZ server, you may launch it simply by running the command 'ggzd' This will start the server listening on port of 5688 (ggz). You can find a list of GGZ servers on our homepage, or query to GGZ metaserver to get this information. The command to launch the client will vary, depending on the particular flavor you have installed. For example, the Gtk+ client is started by running 'ggz-gtk', whereas the KDE client is started by running 'kggz'. Once the client is running you should be able to log into a running GGZ server and begin playing! (Provided you have installed some games as well). Bugs ==== Bugs in our code? Never! :) But if you do happen to find one, you can report it at http://bugs.ggzgamingzone.org/ or feel free to contact us at the email address below. Please let us know if you have any problems, comments, feedback. etc. Enjoy! --The GGZ Development Team ggz-python-0.0.9/aclocal.m40000644000175300017530000005462510076351224015572 0ustar ggz009ggz00900000000000000dnl ====================================== dnl GGZ Gaming Zone - Configuration Macros dnl ====================================== dnl dnl Copyright (C) 2001 - 2004 Josef Spillner, josef@ggzgamingzone.org dnl This file has heavily been inspired by KDE's acinclude :) dnl It is published under the conditions of the GNU General Public License. dnl dnl ====================================== dnl dnl This file is common to most GGZ modules, and should be kept in sync dnl between them all. Currently the following modules use it: dnl kde-games, kde-client, gtk-games, gtk-client, utils, grubby, dnl ggz-client-libs, ggzd, gnome-client, txt-client. dnl See /docs/ggz-project/buildsystem for documentation. dnl dnl ====================================== dnl dnl History: dnl 2001-05-??: first version to find easysock and ggzcore dnl 2001-09-09: include libggz[d]mod support, and rename ac_find_file dnl 2001-11-05: backport from copenhagen, and more macros dnl 2001-12-16: updated for new ggzmod, imported to gtk-games and gtk-client dnl 2002-01-12: include libggz support; imported to ggz-client-libs and ggzd dnl 2002-01-18: remove easysock functions; look in prefix dirs for dnl includes and libs dnl 2002-08-20: change -I to -isystem to avoid dnl warnings in gcc3 dnl 2002-09-25: added AC_GGZ_ERROR, AC_GGZ_REMOVEDUPS, AC_GGZ_INIT, allowing dnl for more control over what is going to happen dnl 2002-10-12: added action-if-found and action-if-not-found parameters to dnl all primary macros dnl ------------------------------------------------------------------------ dnl Content of this file: dnl ------------------------------------------------------------------------ dnl AC_GGZ_LIBGGZ - find the libggz headers and libraries dnl AC_GGZ_GGZCORE - find the ggzcore headers and libraries dnl AC_GGZ_CONFIG - find the ggz-config tool and set up configuration dnl AC_GGZ_GGZMOD - find the ggzmod library dnl AC_GGZ_GGZDMOD - find the ggzdmod library dnl AC_GGZ_SERVER - set up game and room path for ggzd game servers dnl AC_GGZ_INTL - ensure proper i18n tools installation dnl dnl Each macro takes two arguments: dnl 1. Action-if-found (or empty for no action). dnl 2. Action-if-not-found (or empty for error, or "ignore" to ignore). dnl ------------------------------------------------------------------------ dnl Internal functions: dnl ------------------------------------------------------------------------ dnl AC_GGZ_INIT - initialization dnl AC_GGZ_ERROR - user-friendly error messages dnl AC_GGZ_FIND_FILE - macro for convenience (thanks kde) dnl AC_GGZ_REMOVEDUPS - eliminate duplicate list elements dnl dnl ------------------------------------------------------------------------ dnl Find a directory containing a single file dnl Synopsis: AC_GGZ_FIND_FILE(file, directorylist, ) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_FIND_FILE], [ $3=NO for i in $2; do for j in $1; do echo "configure: __oline__: $i/$j" >&AC_FD_CC if test -r "$i/$j"; then echo "taking that" >&AC_FD_CC $3=$i break 2 fi done done ]) dnl ------------------------------------------------------------------------ dnl Remove duplicate entries in a list, and remove all NO's dnl Synopsis: AC_GGZ_REMOVEDUPS(list, ) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_REMOVEDUPS], [ ret="" for i in $1; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done $2=$ret ]) dnl ------------------------------------------------------------------------ dnl User-friendly error messages dnl Synopsis: AC_GGZ_ERROR(libraryname, headerdirlist, libdirlist) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_ERROR], [ AC_MSG_WARN([no The library '$1' does not seem to be installed correctly. Headers searched in: $2 Libraries searched in: $3 Please read QuickStart.GGZ in order to fix this. ]) exit 1 ]) dnl ------------------------------------------------------------------------ dnl Initialization, common values and such dnl Synopsis: AC_GGZ_INIT([export], [defaults]) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_INIT], [ if test "x${prefix}" = "xNONE"; then ac_ggz_prefix_incdir="${ac_default_prefix}/include" ac_ggz_prefix_libdir="${ac_default_prefix}/lib" ac_ggz_prefix_bindir="${ac_default_prefix}/bin" ac_ggz_prefix_etcdir="${ac_default_prefix}/etc" else ac_ggz_prefix_incdir="${prefix}/include" ac_ggz_prefix_libdir="${prefix}/lib" ac_ggz_prefix_bindir="${prefix}/bin" ac_ggz_prefix_etcdir="${prefix}/etc" fi ac_ggz_stdinc="$ac_ggz_prefix_incdir" ac_ggz_stdlib="$ac_ggz_prefix_libdir" ac_ggz_stdbin="$ac_ggz_prefix_bindir" ac_ggz_stdetc="$ac_ggz_prefix_etcdir" if test "x$1" = "xdefaults" || test "x$2" = "xdefaults"; then ac_ggz_stdinc="$ac_ggz_stdinc /usr/local/include /usr/include" ac_ggz_stdlib="$ac_ggz_stdlib /usr/local/lib /usr/lib" ac_ggz_stdbin="$ac_ggz_stdbin /usr/local/bin /usr/bin" ac_ggz_stdetc="$ac_ggz_stdetc/ggzd /usr/local/etc/ggzd /etc/ggzd" fi if test "x$1" = "xexport" || test "x$2" = "xexport"; then CPPFLAGS="$CPPFLAGS -isystem${ac_ggz_prefix_incdir}" LDFLAGS="$LDFLAGS -L${ac_ggz_prefix_libdir}" fi save_cflags=$CFLAGS save_cxxflags=$CXXFLAGS CFLAGS="-Wall -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[void signedness(void){char c;if(c==-1)c=0;}]])], [], [save_cflags="$save_cflags -fsigned-char" save_cxxflags="$save_cxxflags -fsigned-char"]) CFLAGS=$save_cflags CXXFLAGS=$save_cxxflags ]) dnl ------------------------------------------------------------------------ dnl Try to find the libggz headers and libraries. dnl $(LIBGGZ_LDFLAGS) will be -L ... (if needed) dnl and $(LIBGGZ_INCLUDES) will be -I ... (if needed) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_LIBGGZ], [ AC_MSG_CHECKING([for GGZ library: libggz]) ac_libggz_includes=NO ac_libggz_libraries=NO libggz_libraries="" libggz_includes="" AC_ARG_WITH(libggz-dir, [ --with-libggz-dir=DIR libggz installation prefix ], [ ac_libggz_includes="$withval"/include ac_libggz_libraries="$withval"/lib ]) AC_ARG_WITH(libggz-includes, [ --with-libggz-includes=DIR where the libggz includes are. ], [ ac_libggz_includes="$withval" ]) AC_ARG_WITH(libggz-libraries, [ --with-libggz-libraries=DIR where the libggz libs are. ], [ ac_libggz_libraries="$withval" ]) AC_CACHE_VAL(ac_cv_have_libggz, [ libggz_incdirs="$ac_libggz_includes $ac_ggz_stdinc" AC_GGZ_REMOVEDUPS($libggz_incdirs, libggz_incdirs) libggz_header=ggz.h AC_GGZ_FIND_FILE($libggz_header, $libggz_incdirs, libggz_incdir) ac_libggz_includes="$libggz_incdir" libggz_libdirs="$ac_libggz_libraries $ac_ggz_stdlib" AC_GGZ_REMOVEDUPS($libggz_libdirs, libggz_libdirs) test=NONE libggz_libdir=NONE for dir in $libggz_libdirs; do try="ls -1 $dir/libggz.so" if test -n "`$try 2> /dev/null`"; then libggz_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi done ac_libggz_libraries="$libggz_libdir" if test "$ac_libggz_includes" = NO || test "$ac_libggz_libraries" = NO; then ac_cv_have_libggz="have_libggz=no" ac_libggz_notfound="" else have_libggz="yes" fi ]) eval "$ac_cv_have_libggz" if test "$have_libggz" != yes; then if test "x$2" = "xignore"; then AC_MSG_RESULT([$have_libggz (ignored)]) else AC_MSG_RESULT([$have_libggz]) if test "x$2" = "x"; then AC_GGZ_ERROR(libggz, $libggz_incdirs, $libggz_libdirs) fi # perform actions given by argument 2. $2 fi else ac_cv_have_libggz="have_libggz=yes \ ac_libggz_includes=$ac_libggz_includes ac_libggz_libraries=$ac_libggz_libraries" AC_MSG_RESULT([$have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)]) libggz_libraries="$ac_libggz_libraries" libggz_includes="$ac_libggz_includes" AC_SUBST(libggz_libraries) AC_SUBST(libggz_includes) LIBGGZ_INCLUDES="-isystem $libggz_includes" LIBGGZ_LDFLAGS="-L$libggz_libraries" AC_SUBST(LIBGGZ_INCLUDES) AC_SUBST(LIBGGZ_LDFLAGS) LIB_GGZ='-lggz' AC_SUBST(LIB_GGZ) # perform actions given by argument 1. $1 fi ]) dnl ------------------------------------------------------------------------ dnl Try to find the ggzcore headers and libraries. dnl $(GGZCORE_LDFLAGS) will be -L ... (if needed) dnl and $(GGZCORE_INCLUDES) will be -I ... (if needed) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_GGZCORE], [ AC_MSG_CHECKING([for GGZ library: ggzcore]) ac_ggzcore_includes=NO ac_ggzcore_libraries=NO ggzcore_libraries="" ggzcore_includes="" AC_ARG_WITH(ggzcore-dir, [ --with-ggzcore-dir=DIR ggzcore installation prefix ], [ ac_ggzcore_includes="$withval"/include ac_ggzcore_libraries="$withval"/lib ]) AC_ARG_WITH(ggzcore-includes, [ --with-ggzcore-includes=DIR where the ggzcore includes are. ], [ ac_ggzcore_includes="$withval" ]) AC_ARG_WITH(ggzcore-libraries, [ --with-ggzcore-libraries=DIR where the ggzcore libs are. ], [ ac_ggzcore_libraries="$withval" ]) AC_CACHE_VAL(ac_cv_have_ggzcore, [ ggzcore_incdirs="$ac_ggzcore_includes $ac_ggz_stdinc" AC_GGZ_REMOVEDUPS($ggzcore_incdirs, ggzcore_incdirs) ggzcore_header=ggzcore.h AC_GGZ_FIND_FILE($ggzcore_header, $ggzcore_incdirs, ggzcore_incdir) ac_ggzcore_includes="$ggzcore_incdir" ggzcore_libdirs="$ac_ggzcore_libraries $ac_ggz_stdlib" AC_GGZ_REMOVEDUPS($ggzcore_libdirs, ggzcore_libdirs) test=NONE ggzcore_libdir=NONE for dir in $ggzcore_libdirs; do try="ls -1 $dir/libggzcore.so" if test -n "`$try 2> /dev/null`"; then ggzcore_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi done ac_ggzcore_libraries="$ggzcore_libdir" if test "$ac_ggzcore_includes" = NO || test "$ac_ggzcore_libraries" = NO; then ac_cv_have_ggzcore="have_ggzcore=no" ac_ggzcore_notfound="" else have_ggzcore="yes" fi ]) eval "$ac_cv_have_ggzcore" if test "$have_ggzcore" != yes; then if test "x$2" = "xignore"; then AC_MSG_RESULT([$have_ggzcore (intentionally ignored)]) else AC_MSG_RESULT([$have_ggzcore]) if test "x$2" = "x"; then AC_GGZ_ERROR(ggzcore, $ggzcore_incdirs, $ggzcore_libdirs) fi # Perform actions given by argument 2. $2 fi else ac_cv_have_ggzcore="have_ggzcore=yes \ ac_ggzcore_includes=$ac_ggzcore_includes ac_ggzcore_libraries=$ac_ggzcore_libraries" AC_MSG_RESULT([$have_ggzcore (libraries $ac_ggzcore_libraries, headers $ac_ggzcore_includes)]) ggzcore_libraries="$ac_ggzcore_libraries" ggzcore_includes="$ac_ggzcore_includes" AC_SUBST(ggzcore_libraries) AC_SUBST(ggzcore_includes) GGZCORE_INCLUDES="-isystem $ggzcore_includes" GGZCORE_LDFLAGS="-L$ggzcore_libraries" AC_SUBST(GGZCORE_INCLUDES) AC_SUBST(GGZCORE_LDFLAGS) LIB_GGZCORE='-lggzcore' AC_SUBST(LIB_GGZCORE) # Perform actions given by argument 1. $1 fi ]) dnl ------------------------------------------------------------------------ dnl Try to find the ggz-config binary. dnl Sets GGZ_CONFIG to the path/name of the program. dnl Sets also: ggz_gamedir, ggz_datadir etc. dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_CONFIG], [ AC_MSG_CHECKING([for GGZ configuration tool: ggz-config]) ac_ggz_config=NO ggz_config="" AC_ARG_WITH(ggzconfig, [ --with-ggzconfig=DIR path to ggz-config ], [ ac_ggz_config="$withval" ]) AC_CACHE_VAL(ac_cv_have_ggzconfig, [ ggz_config_dirs="$ac_ggz_config $ac_ggz_stdbin" AC_GGZ_FIND_FILE(ggz-config, $ggz_config_dirs, ggz_config_dir) ac_ggz_config="$ggz_config_dir" if test "$ac_ggz_config" = NO; then ac_cv_have_ggzcore="have_ggz_config=no" ac_ggz_config_notfound="" have_ggz_config="no" else have_ggz_config="yes" fi ]) eval "$ac_cv_have_ggz_config" if test "$have_ggz_config" != yes; then if test "x$2" = "xignore"; then AC_MSG_RESULT([$have_ggz_config (intentionally ignored)]) else AC_MSG_RESULT([$have_ggz_config]) if test "x$2" = "x"; then AC_MSG_ERROR([ggz-config not found. Please check your installation! ]) fi # Perform actions given by argument 2. $2 fi else ac_cv_have_ggz_config="have_ggz_config=yes \ ac_ggz_config=$ac_ggz_config" AC_MSG_RESULT([$ac_ggz_config/ggz-config]) ggz_config="$ac_ggz_config" AC_SUBST(ggz_config) GGZ_CONFIG="${ggz_config}/ggz-config" AC_SUBST(GGZ_CONFIG) ggzmoduleconfdir=`$GGZ_CONFIG --configdir` AC_DEFINE_UNQUOTED(GGZMODULECONFDIR, "${ggzmoduleconfdir}", [Path where the game registry is located]) ggzexecmoddir=`$GGZ_CONFIG --gamedir` AC_DEFINE_UNQUOTED(GAMEDIR, "${ggzexecmoddir}", [Path where to install the games]) ggzdatadir=`$GGZ_CONFIG --datadir` AC_DEFINE_UNQUOTED(GGZDATADIR, "${ggzdatadir}", [Path where the games should look for their data files]) packagesrcdir=`cd $srcdir && pwd` AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Path where the source is located]) AC_SUBST(ggzmoduleconfdir) AC_SUBST(ggzexecmoddir) AC_SUBST(ggzdatadir) AC_SUBST(packagesrcdir) # Perform actions given by argument 1. $1 fi ]) dnl ------------------------------------------------------------------------ dnl Try to find the ggzmod headers and libraries. dnl $(GGZMOD_LDFLAGS) will be -L ... (if needed) dnl and $(GGZMOD_INCLUDES) will be -I ... (if needed) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_GGZMOD], [ AC_MSG_CHECKING([for GGZ library: ggzmod]) ac_ggzmod_includes=NO ac_ggzmod_libraries=NO ggzmod_libraries="" ggzmod_includes="" AC_ARG_WITH(ggzmod-dir, [ --with-ggzmod-dir=DIR ggzmod installation prefix ], [ ac_ggzmod_includes="$withval"/include ac_ggzmod_libraries="$withval"/lib ]) AC_ARG_WITH(ggzmod-includes, [ --with-ggzmod-includes=DIR where the ggzmod includes are. ], [ ac_ggzmod_includes="$withval" ]) AC_ARG_WITH(ggzmod-libraries, [ --with-ggzmod-libraries=DIR where the ggzmod libs are. ], [ ac_ggzmod_libraries="$withval" ]) AC_CACHE_VAL(ac_cv_have_ggzmod, [ ggzmod_incdirs="$ac_ggzmod_includes $ac_ggz_stdinc" AC_GGZ_REMOVEDUPS($ggzmod_incdirs, ggzmod_incdirs) ggzmod_header=ggzmod.h AC_GGZ_FIND_FILE($ggzmod_header, $ggzmod_incdirs, ggzmod_incdir) ac_ggzmod_includes="$ggzmod_incdir" ggzmod_libdirs="$ac_ggzmod_libraries $ac_ggz_stdlib" AC_GGZ_REMOVEDUPS($ggzmod_libdirs, ggzmod_libdirs) test=NONE ggzmod_libdir=NONE for dir in $ggzmod_libdirs; do try="ls -1 $dir/libggzmod.so" if test -n "`$try 2> /dev/null`"; then ggzmod_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi done ac_ggzmod_libraries="$ggzmod_libdir" if test "$ac_ggzmod_includes" = NO || test "$ac_ggzmod_libraries" = NO; then ac_cv_have_ggzmod="have_ggzmod=no" ac_ggzmod_notfound="" else have_ggzmod="yes" fi ]) eval "$ac_cv_have_ggzmod" if test "$have_ggzmod" != yes; then if test "x$2" = "xignore"; then AC_MSG_RESULT([$have_ggzmod (intentionally ignored)]) else AC_MSG_RESULT([$have_ggzmod]) if test "x$2" = "x"; then AC_GGZ_ERROR(ggzmod, $ggzmod_incdirs, $ggzmod_libdirs) fi # Perform actions given by argument 2. $2 fi else ac_cv_have_ggzmod="have_ggzmod=yes \ ac_ggzmod_includes=$ac_ggzmod_includes ac_ggzmod_libraries=$ac_ggzmod_libraries" AC_MSG_RESULT([$have_ggzmod (libraries $ac_ggzmod_libraries, headers $ac_ggzmod_includes)]) ggzmod_libraries="$ac_ggzmod_libraries" ggzmod_includes="$ac_ggzmod_includes" AC_SUBST(ggzmod_libraries) AC_SUBST(ggzmod_includes) GGZMOD_INCLUDES="-isystem $ggzmod_includes" GGZMOD_LDFLAGS="-L$ggzmod_libraries" AC_SUBST(GGZMOD_INCLUDES) AC_SUBST(GGZMOD_LDFLAGS) LIB_GGZMOD='-lggzmod' AC_SUBST(LIB_GGZMOD) # Perform actions given by argument 1. $1 fi ]) dnl ------------------------------------------------------------------------ dnl Try to find the ggzdmod headers and libraries. dnl $(GGZDMOD_LDFLAGS) will be -L ... (if needed) dnl and $(GGZDMOD_INCLUDES) will be -I ... (if needed) dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_GGZDMOD], [ AC_MSG_CHECKING([for GGZ library: ggzdmod]) ac_ggzdmod_includes=NO ac_ggzdmod_libraries=NO ggzdmod_libraries="" ggzdmod_includes="" AC_ARG_WITH(ggzdmod-dir, [ --with-ggzdmod-dir=DIR ggzdmod installation prefix ], [ ac_ggzdmod_includes="$withval"/include ac_ggzdmod_libraries="$withval"/lib ]) AC_ARG_WITH(ggzdmod-includes, [ --with-ggzdmod-includes=DIR where the ggzdmod includes are. ], [ ac_ggzdmod_includes="$withval" ]) AC_ARG_WITH(ggzdmod-libraries, [ --with-ggzdmod-libraries=DIR where the ggzdmod libs are. ], [ ac_ggzdmod_libraries="$withval" ]) AC_CACHE_VAL(ac_cv_have_ggzdmod, [ ggzdmod_incdirs="$ac_ggzdmod_includes $ac_ggz_stdinc" AC_GGZ_REMOVEDUPS($ggzdmod_incdirs, ggzdmod_incdirs) ggzdmod_header=ggzdmod.h AC_GGZ_FIND_FILE($ggzdmod_header, $ggzdmod_incdirs, ggzdmod_incdir) ac_ggzdmod_includes="$ggzdmod_incdir" ggzdmod_libdirs="$ac_ggzdmod_libraries $ac_ggz_stdlib" AC_GGZ_REMOVEDUPS($ggzdmod_libdirs, ggzdmod_libdirs) test=NONE ggzdmod_libdir=NONE for dir in $ggzdmod_libdirs; do try="ls -1 $dir/libggzdmod.so" if test -n "`$try 2> /dev/null`"; then ggzdmod_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi done ac_ggzdmod_libraries="$ggzdmod_libdir" if test "$ac_ggzdmod_includes" = NO || test "$ac_ggzdmod_libraries" = NO; then ac_cv_have_ggzdmod="have_ggzdmod=no" ac_ggzdmod_notfound="" else have_ggzdmod="yes" fi ]) eval "$ac_cv_have_ggzdmod" if test "$have_ggzdmod" != yes; then if test "x$2" = "xignore"; then AC_MSG_RESULT([$have_ggzdmod (intentionally ignored)]) else AC_MSG_RESULT([$have_ggzdmod]) if test "x$2" = "x"; then AC_GGZ_ERROR(ggzdmod, $ggzdmod_incdirs, $ggzdmod_libdirs) fi # Perform actions given by argument 2. $2 fi else ac_cv_have_ggzdmod="have_ggzdmod=yes \ ac_ggzdmod_includes=$ac_ggzdmod_includes ac_ggzdmod_libraries=$ac_ggzdmod_libraries" AC_MSG_RESULT([$have_ggzdmod (libraries $ac_ggzdmod_libraries, headers $ac_ggzdmod_includes)]) ggzdmod_libraries="$ac_ggzdmod_libraries" ggzdmod_includes="$ac_ggzdmod_includes" AC_SUBST(ggzdmod_libraries) AC_SUBST(ggzdmod_includes) GGZDMOD_INCLUDES="-isystem $ggzdmod_includes" GGZDMOD_LDFLAGS="-L$ggzdmod_libraries" AC_SUBST(GGZDMOD_INCLUDES) AC_SUBST(GGZDMOD_LDFLAGS) LIB_GGZDMOD='-lggzdmod' AC_SUBST(LIB_GGZDMOD) # Perform actions given by argument 1. $1 fi ]) dnl ------------------------------------------------------------------------ dnl Setup the game server configuration. dnl Sets ggzdconfdir (ggzd configuration). dnl Sets ggzddatadir (for game server data). dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_SERVER], [ AC_MSG_CHECKING([for GGZ server: ggzd]) AC_ARG_WITH(ggzd-confdir, [ --with-ggzd-confdir=DIR directory for room/game data], [ ac_ggzd_confdir="$withval" ]) AC_CACHE_VAL(ac_cv_have_ggzdconf, [ if test "x$1" = "xforce"; then if test "x$ac_ggzd_confdir" = "x"; then ggzdconfdirs="$ac_ggz_stdetc" else ggzdconfdirs="$ac_ggzd_confdir" fi else ggzdconfdirs="$ac_ggzd_confdir $ac_ggz_stdetc" fi ggzdconfdir=NONE for dir in $ggzdconfdirs; do if test -n "`ls -d $dir/rooms 2> /dev/null`"; then if test -n "`ls -d $dir/rooms 2> /dev/null`"; then ggzdconfdir=$dir; break; else echo "tried $dir" >&AC_FD_CC; fi else echo "tried $dir" >&AC_FD_CC; fi done if test "x$ggzdconfdir" = "xNONE"; then have_ggzdconf="no" else have_ggzdconf="yes" fi ]) eval "$ac_cv_have_ggzdconf" if test "$have_ggzdconf" != yes; then if test "x$2" = "xignore"; then AC_MSG_RESULT([$have_ggzdconf (intentionally ignored)]) elif test "x$2" = "xforce"; then if test "x$ac_ggzd_confdir" = "x"; then ggzdconfdir="\${prefix}/etc/ggzd" else ggzdconfdir=$ac_ggzd_confdir fi AC_MSG_RESULT([$have_ggzdconf (but forced to ${ggzdconfdir})]) else AC_MSG_RESULT([$have_ggzdconf]) if test "x$2" = "x"; then AC_MSG_ERROR([GGZ server configuration not found. Please check your installation! ]) fi # Perform actions given by argument 2. $2 fi else prefixed=0 if test "x${prefix}" != "xNONE" && test "x${prefix}" != "x${ac_default_prefix}"; then prefixed=1 fi if test "x$ggzconfdir" != "x${prefix}/etc/ggzd" && test "x$prefixed" = "x1"; then AC_MSG_RESULT([$have_ggzdconf ($ggzdconfdir, but using ${prefix}/etc/ggzd nevertheless)]) ggzdconfdir="\${prefix}/etc/ggzd" else AC_MSG_RESULT([$have_ggzdconf ($ggzdconfdir)]) fi fi if test "$have_ggzdconf" = yes || test "x$2" = "xforce"; then AC_SUBST(ggzdconfdir) ggzddatadir=${prefix}/share/${PACKAGE} AC_DEFINE_UNQUOTED(GGZDDATADIR, "${ggzddatadir}", [Game server data directory]) AC_SUBST(ggzddatadir) if test "x${libdir}" = 'x${exec_prefix}/lib'; then if test "x${exec_prefix}" = "xNONE"; then if test "x${prefix}" = "xNONE"; then ggzdexecmoddir="\${ac_default_prefix}/lib/ggzd" ggzdexecmodpath="${ac_default_prefix}/lib/ggzd" else ggzdexecmoddir="\${prefix}/lib/ggzd" ggzdexecmodpath="${prefix}/lib/ggzd" fi else ggzdexecmoddir="\${exec_prefix}/lib/ggzd" ggzdexecmodpath="${exec_prefix}/lib/ggzd" fi else ggzdexecmoddir="\${libdir}/ggzd" ggzdexecmodpath="${libdir}/ggzd" fi AC_SUBST(ggzdexecmoddir) AC_SUBST(ggzdexecmodpath) # Perform actions given by argument 1. $1 fi ]) dnl ------------------------------------------------------------------------ dnl Find internationalization tools dnl ------------------------------------------------------------------------ dnl AC_DEFUN([AC_GGZ_INTL], [ AC_PATH_PROG(GETTEXT, xgettext) AC_PATH_PROG(MSGFMT, msgfmt) AC_PATH_PROG(MSGMERGE, msgmerge) intl=1 if test "x$GETTEXT" = "x"; then intl=0; fi if test "x$MSGFMT" = "x"; then intl=0; fi if test "x$MSGMERGE" = "x"; then intl=0; fi if test "$intl" = 0; then if test "x$2" = "xignore"; then AC_MSG_WARN([Internationalization tools missing. (ignored)]) else AC_MSG_RESULT([Internationalization tools missing.]) if test "x$2" = "x"; then AC_MSG_ERROR([Internationalization tools missing.]) fi # Perform actions given by argument 2. $2 fi else AC_MSG_RESULT([Internationalization tools found.]) XGETTEXT=$GETTEXT GMSGFMT=$MSGFMT AC_SUBST(XGETTEXT) AC_SUBST(GETTEXT) AC_SUBST(GMSGFMT) AC_SUBST(MSGFMT) AC_SUBST(MSGMERGE) # Perform actions given by argument 1. $1 fi ]) ggz-python-0.0.9/configure.ac0000644000175300017530000000216110076351224016204 0ustar ggz009ggz00900000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT([GGZ python package], [0.0.9pre], [ggz-dev@mail.ggzgamingzone.org], [ggz-python]) AC_CONFIG_SRCDIR([configure.ac]) #AC_CONFIG_HEADERS([config.h]) #AM_INIT_AUTOMAKE #AM_MAINTAINER_MODE dnl Compiling Options dnl ===================== #AC_ARG_ENABLE(ggzdmod,[ --disable-ggzdmod Exclude pyggzdmod wrapper],,enable_ggzdmod=yes) dnl Check for standard build environment dnl ==================================== AC_PROG_CC AC_PROG_MAKE_SET dnl GGZ checks dnl ========== AC_GGZ_INIT(defaults) AC_GGZ_LIBGGZ AC_GGZ_GGZMOD("true", ignore) AC_GGZ_GGZDMOD("true", ignore) AC_GGZ_GGZCORE("true", ignore) AC_GGZ_CONFIG dnl Create files dnl ============ if test "x$prefix" = "xNONE"; then prefix="/usr/local" fi AC_CONFIG_FILES([ escape-sdl/module.dsc xadrez-chines/module.dsc xadrez-chines/xadrez-chines-server.dsc go/module.dsc go/goserver.dsc pyggzmod/setup.py pyggzdmod/setup.py pyggzcore/setup.py ]) AC_OUTPUT dnl Status output dnl ============= echo "" echo "Configured python stuff. Type 'make' to compile it, followed by a 'make install'." echo "" ggz-python-0.0.9/escape-sdl/0000755000175300017530000000000010076351225015737 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/escape-sdl/.cvsignore0000644000175300017530000000001410076351224017731 0ustar ggz009ggz00900000000000000module.dsc ggz-python-0.0.9/escape-sdl/Makefile0000644000175300017530000000021610076351224017375 0ustar ggz009ggz00900000000000000all: @echo "Run 'make install'." install: /usr/local/bin/ggz-config --install --force --modfile=module.dsc cp escape-sdl /usr/local/bin/ ggz-python-0.0.9/escape-sdl/escape-sdl0000755000175300017530000003074510076351224017715 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # Copyright (C) 2003, 2004 Josef Spillner # Published under GNU GPL conditions import pygame import pygame.image from pygame.locals import * from Numeric import * import ggzmod import socket import sys import time import random import os, pwd def username(): return pwd.getpwuid(os.geteuid())[0] def playernames(surface, player1, player2): font3 = pygame.font.Font(None, 30) player1 = font3.render(player1, 1, (165, 140, 0)) vs = font3.render("vs.", 1, (165, 140, 0)) player2 = font3.render(player2, 1, (165, 140, 0)) surface.blit(player1, (610 - player1.get_width(), 285)) surface.blit(vs, (610 - vs.get_width(), 315)) surface.blit(player2, (610 - player2.get_width(), 345)) class Proto: def __init__(self): self.move_invalid = 0 self.move_ok = 1 self.move_again = 2 class Game: def __init__(self): self.seat = -1 self.domove = 0 def tomove(self, x2, y2, x, y): move = 0 if x == x2 - 1 and y == y2 - 1: move = 7 elif x == x2 and y == y2 - 1: move = 8 elif x == x2 + 1 and y == y2 - 1: move = 9 elif x == x2 + 1 and y == y2: move = 6 elif x == x2 + 1 and y == y2 + 1: move = 3 elif x == x2 and y == y2 + 1: move = 2 elif x == x2 - 1 and y == y2 + 1: move = 1 elif x == x2 - 1 and y == y2: move = 4 return move def frommove(self, move): p = (0, 0) if move == 1: p = (-1, 1) elif move == 2: p = (0, 1) elif move == 3: p = (1, 1) elif move == 4: p = (-1, 0) elif move == 5: p = (0, 0) elif move == 6: p = (1, 0) elif move == 7: p = (-1, -1) elif move == 8: p = (0, -1) elif move == 9: p = (1, -1) return p class Network: def __init__(self): self.sock = None self.gamefd = -1 self.MSG_SEAT = 0 self.MSG_PLAYERS = 1 self.MSG_MOVE = 2 self.MSG_GAMEOVER = 3 self.REQ_MOVE = 4 self.RSP_MOVE = 5 self.SND_SYNC = 6 self.MSG_OPTIONS = 7 self.REQ_OPTIONS = 8 self.MSG_CHAT = 9 self.RSP_CHAT = 10 self.SND_STATS = 11 self.SND_MOVE = 0 self.REQ_SYNC = 1 self.SND_OPTIONS = 2 self.REQ_NEWGAME = 3 self.REQ_STATS = 4 self.ERR_STATE = -1 self.ERR_TURN = -2 self.ERR_BOUND = -3 self.ERR_FULL = -4 self.SEAT_OPEN = 1 self.game = Game() def init(self, fd): self.sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM) def getbyte(self): opstr = self.sock.recv(4) op = ord(opstr[0]) * 256 * 256 * 256 op += ord(opstr[1]) * 256 * 256 op += ord(opstr[2]) * 256 op += ord(opstr[3]) return op def getchar(self): opstr = self.sock.recv(1) op = ord(opstr[0]) return op def getstring(self): length = self.getbyte() opstr = self.sock.recv(length) return opstr def sendbyte(self, byte): nbyte = socket.htonl(byte) c1 = (nbyte >> 0) & 0xFF c2 = (nbyte >> 8) & 0xFF c3 = (nbyte >> 16) & 0xFF c4 = (nbyte >> 24) & 0xFF self.sock.send(chr(c1)) self.sock.send(chr(c2)) self.sock.send(chr(c3)) self.sock.send(chr(c4)) def sendchar(self, char): self.sock.send(chr(char)) def sendstring(self, str): self.sendbyte(len(str)) self.sock.send(str) def handle_server(fd): global net ggzmod.setState(ggzmod.STATE_PLAYING) net.gamefd = fd net.init(net.gamefd) def network(): global net global blobpos global trail global madeturn global surface global winner print "network!" op = net.getbyte() if op == net.MSG_PLAYERS: print "- players" seattype = net.getbyte() print "seattype:", seattype if seattype != net.SEAT_OPEN: name1 = net.getstring() print "name:", name1 seattype = net.getbyte() print "seattype:", seattype if seattype != net.SEAT_OPEN: name2 = net.getstring() print "name:", name2 playernames(surface, name1, name2) elif op == net.MSG_SEAT: print "- seat" seat = net.getbyte() print "seat:", seat net.game.seat = seat elif op == net.MSG_MOVE: print "- move" direction = net.getbyte() print "direction:", direction (xd, yd) = net.game.frommove(direction) (x, y, player) = blobpos blobpos = (x + xd, y + yd, 1) trail.append(blobpos) elif op == net.SND_STATS: print "- stats" wins = net.getbyte() losses = net.getbyte() ties = net.getbyte() print "wins:", wins, "losses:", losses, "ties:", ties elif op == net.SND_SYNC: print "- sync" boardheight = net.getchar() goalwidth = net.getchar() wallwidth = net.getchar() turn = net.getchar() x = net.getbyte() y = net.getbyte() print "boardheight:", boardheight, "goalwidth:", goalwidth, "wallwidth:", wallwidth print "turn:", turn, "x:", x, "y:", y for p in range(0, goalwidth + wallwidth * 2): for q in range(0, boardheight): for d in range(1, 10): c = net.getchar() elif op == net.MSG_GAMEOVER: print "- gameover" winner = net.getchar() print "winner:", winner elif op == net.RSP_MOVE: print "- rspmove" status = net.getchar() move = net.getbyte() print "status:", status, "move:", move elif op == net.REQ_MOVE: print "- reqmove" net.game.domove = 1 madeturn = 0 elif op == net.REQ_OPTIONS: print "- reqoptions" boardheight = 11 goalwidth = 1 wallwidth = 4 net.sendbyte(net.SND_OPTIONS) net.sendchar(boardheight) net.sendchar(goalwidth) net.sendchar(wallwidth) elif op == net.MSG_OPTIONS: print "- options" boardheight = net.getchar() goalwidth = net.getchar() wallwidth = net.getchar() print "boardheight:", boardheight, "goalwidth:", goalwidth, "wallwidth:", wallwidth else: print "- unknown opcode" def handle_network(): global net networked = 0 if net.gamefd != -1: networked = 1 ret = ggzmod.autonetwork(networked, net.gamefd) if ret == 1 or ret == 3: network() if ret == 2 or ret == 3: ggzmod.dispatch() def validate((blobpos, trail, x, y)): global proto (bx, by, bplayer) = blobpos found = proto.move_invalid if (abs(x - bx) == 1 and abs(y - by) <= 1) or (abs(x - bx) <= 1 and abs(y - by) == 1): found = proto.move_ok if x < 0 or y < 0 or x > 8 or y > 11: found = proto.move_invalid elif (x == 0 and bx == 0) or (x == 8 and bx == 8) or (y == 0 and by == 0) or (y == 11 and by == 11): found = proto.move_invalid else: index = 0 for t in trail: (tx, ty, tplayer) = t if tx == x and ty == y: if found == proto.move_ok: found = proto.move_again if index > 0: (tx2, ty2, tplayer2) = trail[index - 1] if tx2 == bx and ty2 == by: found = proto.move_invalid if index < len(trail) - 1: (tx2, ty2, tplayer2) = trail[index + 1] if tx2 == bx and ty2 == by: found = proto.move_invalid index += 1 return found def ai((blobpos, trail)): global proto time.sleep(1) (bx, by, bplayer) = blobpos found = proto.move_invalid tries = 0 while found == proto.move_invalid and tries < 100: tries += 1 x = random.randint(bx - 1, bx + 1) y = random.randint(by - 1, by + 1) if x != bx or y != by: found = validate((blobpos, trail, x, y)) if tries < 100: blobpos = (x, y, 1 - bplayer) trail.append(blobpos) return (blobpos, trail) def main(ggzmode): global net global blobpos global trail global madeturn global surface global winner global proto proto = Proto() """ Pygame setup """ pygame.init() pygame.display.set_caption("Escape/SDL") screen = pygame.display.set_mode((640, 480), DOUBLEBUF) pygame.mouse.set_visible(0) surface = pygame.Surface((640, 480), 0, 24) """ Game board background """ for i in range(0, 240): x = sin(i / 15.0) * 20 surface.fill(((255 - i) / 2, 0, i / 2), ((10, i * 2), (400 + x, 1))) """ Menu """ for i in range(0, 480): x = sin(i / 30.0) * 20 surface.fill((165, 140, 0), ((400 + x + 10, i), (2, 1))) surface.fill((195, 160, 0), ((400 + x + 12, i), (2, 1))) surface.fill((225, 180, 0), ((400 + x + 14, i), (2, 1))) surface.fill((255, 200, 0), ((400 + x + 16, i), (639 - (400 + x + 16) - 10, 1))) surface.fill((165, 140, 0), ((0, i), (10, 1))) surface.fill((165, 140, 0), ((628, i), (10, 1))) """ Menu captions """ font = pygame.font.Font(None, 44) escape = font.render("ESCAPE", 1, (165, 140, 0)) sdl = font.render("SDL", 1, (165, 140, 0)) font2 = pygame.font.Font(None, 70) slash = font2.render("/", 1, (165, 140, 0)) surface.blit(escape, (420, 100)) surface.blit(sdl, (550, 130)) surface.blit(slash, (540, 105)) if not ggzmode: playernames(surface, username(), "opponent") """ Points on the game board """ stone = pygame.Surface((16, 16)) for j in range(0, 16): x = sin(j / 5.0) * 8 stone.fill((255, 255, 255), ((8 - x, j), (2 * x, 1))) stone.set_alpha(30, RLEACCEL) blob = pygame.Surface((32, 32)) for j in range(0, 32): x = sin(j / 10.0) * 16 blob.fill((255, 255, 255), ((16 - x, j), (2 * x, 1))) blob.set_alpha(30, RLEACCEL) for j in range(1, 10): for i in range(1, 8): surface.blit(stone, (i * 40 + 30, j * 40 + 30)) """ Frame around points """ vline = pygame.Surface((8, 400)) vline.fill((255, 255, 255)) vline.set_alpha(30, RLEACCEL) hline = pygame.Surface((150, 8)) hline.fill((255, 255, 255)) hline.set_alpha(30, RLEACCEL) surface.blit(vline, (30, 38)) surface.blit(vline, (360, 38)) surface.blit(hline, (30, 38)) surface.blit(hline, (368 - 150, 38)) surface.blit(hline, (30, 430)) surface.blit(hline, (368 - 150, 430)) """ Network setup """ ggzsuccess = 0 if ggzmode: ggzmod.setHandler(ggzmod.EVENT_SERVER, handle_server) ret = ggzmod.connect() if ret < 0: ggzsuccess = 0 else: ggzsuccess = 1 net = Network() if ggzmode: ggzfont = pygame.font.Font(None, 20) if ggzsuccess: ggz = ggzfont.render("Running on GGZ", 1, (165, 140, 0)) else: ggz = ggzfont.render("GGZ unavailable", 1, (165, 140, 0)) surface.blit(ggz, (420, 140)) """ Main loop """ madeturn = 0 againturn = 0 aierror = 0 humanerror = 0 gameover = 0 winner = 0 mouse = stone pressed = 0 blobpos = (4, 5, -1) trail = [blobpos] pygame.event.clear() while 1: if ggzsuccess: handle_network() pygame.event.pump() keyinput = pygame.key.get_pressed() if keyinput[K_ESCAPE] or pygame.event.peek(QUIT): break (b1, b2, b3) = pygame.mouse.get_pressed() if b1 and not pressed and not madeturn: if not ggzmode or (ggzsuccess and net.game.domove): (x, y) = pygame.mouse.get_pos() x = (x - 30 + 20) / 40 y = (y - 30 + 20) / 40 if x >= 0 and x < 9 and y >= 0 and y < 11: val = validate((blobpos, trail, x, y)) if val is not proto.move_invalid: (x2, y2, player) = blobpos blobpos = (x, y, 0) trail.append(blobpos) if val is not proto.move_again: madeturn = 1 againturn = 0 else: againturn = 1 humanerror = 0 if ggzsuccess and net.game.domove: move = net.game.tomove(x2, y2, x, y) net.sendbyte(net.SND_MOVE) net.sendbyte(move) else: humanerror = 1 pressed = 1 if not b1 and pressed: pressed = 0 screen.blit(surface, (0, 0)) x = -1 for t in trail: if x > -1: (x2, y2, player) = t p1 = (x * 40 + 30 + 8, y * 40 + 30 + 8) p2 = (x2 * 40 + 30 + 8, y2 * 40 + 30 + 8) p = [p1, p2] if player == 1: color = (255, 0, 0) else: color = (0, 0, 255) pygame.draw.lines(screen, color, 0, p, 5) x = x2 y = y2 (x, y, player) = t (x, y, player) = blobpos screen.blit(blob, (x * 40 + 30 - 8, y * 40 + 30 - 8)) screen.blit(mouse, pygame.mouse.get_pos()) if (y == 0 and x == 4) or (y == 10 and x == 4): if y == 0: winner = 2 else: winner = 1 if winner: font4 = pygame.font.Font(None, 24) if winner == 2: waiting = font4.render("Game over, you lost", 1, (165, 140, 0)) else: waiting = font4.render("Game over, you won", 1, (165, 140, 0)) screen.blit(waiting, (610 - waiting.get_width(), 400)) gameover = 1 madeturn = 1 if madeturn and not gameover: font4 = pygame.font.Font(None, 24) if aierror: waiting = font4.render("AI error, game over", 1, (165, 140, 0)) else: waiting = font4.render("Waiting for opponent", 1, (165, 140, 0)) screen.blit(waiting, (610 - waiting.get_width(), 400)) if humanerror: font4 = pygame.font.Font(None, 24) waiting = font4.render("Not allowed, try again", 1, (165, 140, 0)) screen.blit(waiting, (610 - waiting.get_width(), 400)) elif againturn: font4 = pygame.font.Font(None, 24) again = font4.render("Move again", 1, (165, 140, 0)) screen.blit(again, (610 - again.get_width(), 400)) pygame.display.flip() if not ggzmode and madeturn and not aierror and not gameover: origpos = blobpos (blobpos, trail) = ai((blobpos, trail)) if origpos != blobpos: madeturn = 0 else: aierror = 1 if __name__ == "__main__": if len(sys.argv) == 2 and sys.argv[1] == "--ggz": main(1) else: main(0) ggz-python-0.0.9/escape-sdl/module.dsc.in0000644000175300017530000000035010076351224020321 0ustar ggz009ggz00900000000000000[ModuleInfo] Author = Josef Spillner CommandLine = @prefix@/bin/escape-sdl --ggz Frontend = sdl Homepage = http://www.ggzgamingzone.org/games/escape/ Name = Escape/SDL ProtocolEngine = Escape ProtocolVersion = 2 Version = 0.0.2pre ggz-python-0.0.9/go/0000755000175300017530000000000010076351225014324 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/go/.cvsignore0000644000175300017530000000003010076351224016314 0ustar ggz009ggz00900000000000000module.dsc goserver.dsc ggz-python-0.0.9/go/Makefile0000644000175300017530000000040210076351224015757 0ustar ggz009ggz00900000000000000all: @echo "Run 'make install'." install: /usr/local/bin/ggz-config --install --force --modfile=module.dsc cp goclient /usr/local/bin/ cp goserver.dsc /usr/local/etc/ggzd/games/ cp goserver.room /usr/local/etc/ggzd/rooms/ cp goserver /usr/local/bin/ ggz-python-0.0.9/go/goclient0000755000175300017530000000524210076351224016060 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # GNU Go client wrapper (CGoBan) # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions from Numeric import * import sys import time import random import os, pwd import socket import select import ggzmod class Child: def __init__(self): self.pr = -1 self.pw = -1 def getchars(self, length): chars = os.read(self.pr, 256) print "child::read", len(chars) return (len(chars), chars) def sendchars(self, chars, length): print "child::write", length os.write(self.pw, chars) class Network: def __init__(self): self.sock = None self.gamefd = -1 def init(self, fd): self.sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM) def getchars(self, length): chars = self.sock.recv(length) print "net::read", len(chars) return (len(chars), chars) def sendchars(self, chars, length): print "net::write", length self.sock.send(chars) def network(): global net global child (length, line) = net.getchars(256) child.sendchars(line, length) def handle_server(fd): global net ggzmod.setState(ggzmod.STATE_PLAYING) net.gamefd = fd net.init(net.gamefd) def handle_network(): global net networked = 0 if net.gamefd != -1: networked = 1 ret = ggzmod.autonetwork(networked, net.gamefd) if ret == 1 or ret == 3: network() if ret == 2 or ret == 3: ggzmod.dispatch() def main(ggzmode): global net global child print "<< goclient >>" fifopc = "/tmp/goclient.fifo.pc" fifocp = "/tmp/goclient.fifo.cp" try: os.mkfifo(fifopc) except: os.unlink(fifopc) os.mkfifo(fifopc) try: os.mkfifo(fifocp) except: os.unlink(fifocp) os.mkfifo(fifocp) ret = os.fork() if ret == 0: os.execv("/usr/games/cgoban", ["/usr/games/cgoban"]) elif ret > 0: pass else: print "<< problem: fork >>" os.unlink(fifopc) os.unlink(fifocp) return ggzsuccess = 0 if ggzmode: ggzmod.setHandler(ggzmod.EVENT_SERVER, handle_server) ret = ggzmod.connect() if ret < 0: ggzsuccess = 0 else: ggzsuccess = 1 net = Network() child = Child() child.pw = os.open(fifopc, os.O_WRONLY) child.pr = os.open(fifocp, os.O_RDONLY) if ggzsuccess: while net.gamefd != -1: handle_network() print "<< loop >>" while 1: if ggzsuccess: handle_network() (r, w, e) = select.select([child.pr], [], [], 0) if len(r) == 1: (length, line) = child.getchars(256) if length > 0: net.sendchars(line, length) else: break os.close(child.pr) os.close(child.pw) os.unlink(fifopc) os.unlink(fifocp) print "<< done >>" if __name__ == "__main__": if len(sys.argv) == 2 and sys.argv[1] == "--ggz": main(1) else: print "This program needs to be run in GGZ mode." ggz-python-0.0.9/go/goclient.helper0000755000175300017530000000426610076351224017343 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # GNU Go client wrapper (CGoBan) helper application # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions from Numeric import * import sys import time import random import os, pwd import socket import select class Debug: def __init__(self, verbose): self.verbose = verbose def debug(self, s): if self.verbose == 0: return f = file("/tmp/goclient.debug", "a") f.write(s + "\n") f.close() class Parent: def __init__(self): self.cw = -1 self.cr = -1 def getchars(self, length): global debug chars = os.read(self.cr, 256) debug.debug("parent::read " + str(len(chars))) return (len(chars), chars) def sendchars(self, chars, length): global debug debug.debug("parent::write " + str(length)) os.write(self.cw, chars) class Go: def __init__(self): self.gw = -1 self.gr = -1 def getchars(self, length): global debug chars = os.read(self.gr, 256) debug.debug("go::read " + str(len(chars))) return (len(chars), chars) def sendchars(self, chars, length): global debug debug.debug("go::write " + str(length)) os.write(self.gw, chars) def main(ggzmode, verbose): global net global parent global debug global go if verbose: debug = Debug(1) else: debug = Debug(0) debug.debug("<< goclient-helper >>") fifopc = "/tmp/goclient.fifo.pc" fifocp = "/tmp/goclient.fifo.cp" parent = Parent() parent.cr = os.open(fifopc, os.O_RDONLY) parent.cw = os.open(fifocp, os.O_WRONLY) go = Go() go.gr = 0 go.gw = 1 debug.debug("<< loop >>") while 1: (r, w, e) = select.select([parent.cr], [], [], 0) if len(r) == 1: (length, line) = parent.getchars(256) if length > 0: go.sendchars(line, length) else: break (r, w, e) = select.select([go.gr], [], [], 0) if len(r) == 1: (length, line) = go.getchars(256) if length > 0: parent.sendchars(line, length) else: break os.close(go.gr) os.close(go.gw) os.close(parent.cr) os.close(parent.cw) os.unlink(fifopc) os.unlink(fifocp) debug.debug("<< done >>") if __name__ == "__main__": if len(sys.argv) == 2 and sys.argv[1] == "--ggz": main(1, 0) else: print "This program needs to be run in GGZ mode." ggz-python-0.0.9/go/goserver0000755000175300017530000001274310076351224016114 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # GNU Go server wrapper (gnugo) # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions from Numeric import * import sys import time import random import os, pwd import select import socket import ggzdmod class Analyzer: def __init__(self): self.sequence = -1 self.command_ok = 0 self.command_deny = 1 self.command_newgame = 2 self.command_query = 3 self.command_answer = 4 self.command_move = 5 self.command_takeback = 6 self.command_extended = 7 self.file = os.getenv("HOME") + "/.ggz/gomoves.12345" def analyze(self, chars, length): state = "start" for c in chars: byte = ord(c) #print "ord", byte f = file(self.file, "a") f.write(str(byte) + "\n") f.close() if state == "start": if byte & 0x80: print "analyze error: start byte has high bit set" else: if self.sequence == -1: self.sequence = byte & 0xFC sequence = byte & 0xFC if self.sequence != sequence: print "analyze error: sequence changed" else: clientbit = (byte & 2) >> 1 serverbit = (byte & 1) print "* clientbit, serverbit:", clientbit, serverbit state = "checksum" elif state == "checksum": if byte & 0x80: checksum = (byte & 0x7F) print "* checksum:", checksum else: print "analyze error: checksum byte is missing high bit" state = "data1" elif state == "data1": if byte & 0x80: basiccommand = (byte & 0x70) >> 4 commandseparator = (byte & 8) commandoptions = (byte & 7) else: print "analyze error: first data byte is missing high bit" state = "data2" elif state == "data2": if byte & 0x80: tmpoptions = (byte & 0x7F) commandoptions = tmpoptions + (commandoptions << 7) print "* command, separator, options", basiccommand, commandseparator, commandoptions if basiccommand == self.command_ok: if commandoptions == 0x3FF: print "command: ok" else: print "command error: ok data corrupted" elif basiccommand == self.command_deny: if commandoptions == 0x000: print "command: deny" else: print "command error: deny data corrupted" elif basiccommand == self.command_newgame: if commandoptions == 0x000: print "command: newgame" else: print "command error: newgame data corrupted" elif basiccommand == self.command_query: print "command: query" elif basiccommand == self.command_answer: print "command: answer" elif basiccommand == self.command_move: print "command: move" elif basiccommand == self.command_takeback: print "command: takeback" elif basiccommand == self.command_extended: print "command: extended" else: print "command error: unknown command" else: print "analyze error: second data byte is missing high bit" state = "start" class Child: def __init__(self): self.pr = -1 self.pw = -1 self.cr = -1 self.cw = -1 def getchars(self, length): chars = os.read(self.pr, 256) print "child::read", len(chars) return (len(chars), chars) def sendchars(self, chars, length): print "child::write", length os.write(self.pw, chars) class Network: def __init__(self): self.sock = None self.gamefd = -1 def init(self, fd): self.sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM) def getchars(self, length): chars = self.sock.recv(length) print "net::read", len(chars) return (len(chars), chars) def sendchars(self, chars, length): print "net::write", length self.sock.send(chars) def hook_state (state): print "* state:", str(state) def hook_join (num, type, name, fd): print "* join:", num, type, name, fd print "fd =", fd net.init(fd) def hook_leave (num, type, name, fd): print "* leave:", num, type, name, fd def hook_log (line): print "* log:", line def hook_data (num, type, name, fd): global net global child global analyzer print "* data:", num, type, name, fd print "fd =", fd net.init(fd) (length, line) = net.getchars(256) analyzer.analyze(line, length) child.sendchars(line, length) def hook_error (arg): print "* error:", arg def initggz(): ggzdmod.setHandler(ggzdmod.EVENT_STATE, hook_state) ggzdmod.setHandler(ggzdmod.EVENT_JOIN, hook_join) ggzdmod.setHandler(ggzdmod.EVENT_LEAVE, hook_leave) ggzdmod.setHandler(ggzdmod.EVENT_LOG, hook_log) ggzdmod.setHandler(ggzdmod.EVENT_DATA, hook_data) ggzdmod.setHandler(ggzdmod.EVENT_ERROR, hook_error) def main(gomode): global net global child global analyzer print "<< goserver >>" initggz() net = Network() child = Child() analyzer = Analyzer() (child.pr, child.cw) = os.pipe() (child.cr, child.pw) = os.pipe() ret = ggzdmod.connect() if ret == 0: ret = os.fork() if ret == 0: os.dup2(child.cr, 0) os.dup2(child.cw, 1) os.execv("/usr/games/gnugo", ["/usr/games/gnugo", "--mode", gomode]) elif ret > 0: s = "" while 1: ggzdmod.dispatch() (r, w, e) = select.select([child.pr], [], [], 0) if len(r) == 1: (length, line) = child.getchars(256) analyzer.analyze(line, length) net.sendchars(line, length) else: print "<< problem: fork >>" else: print "<< problem: ggzdmod >>" print "<< done >>" if __name__ == "__main__": ggzmode = 0 gomode = "gmp" for arg in sys.argv: if arg == "--gmp": gomode = "gmp" elif arg == "--gtp": gomode = "gtp" elif arg == "--ggz": ggzmode = 1 if ggzmode == 1: main(gomode) else: print "This program needs to be run in GGZ mode." ggz-python-0.0.9/go/goserver.dsc.in0000644000175300017530000000045310076351224017261 0ustar ggz009ggz00900000000000000[GameInfo] Author = Josef Spillner Description = GNU Go wrapper Homepage = http://www.ggzgamingzone.org/games/gnugo/ Name = GNU Go Version = 0.1 [LaunchInfo] ExecutablePath = @prefix@/bin/goserver --ggz --gmp [Protocol] Engine = GMP Version = 1 [TableOptions] BotsAllowed = 1 PlayersAllowed = 2 ggz-python-0.0.9/go/goserver.room0000644000175300017530000000020010076351224017045 0ustar ggz009ggz00900000000000000[RoomInfo] Name = GNU Go (CGoBan Client) Description = The Japanese Go game GameType = GNU Go MaxPlayers = 500 MaxTables = 100 ggz-python-0.0.9/go/module.dsc.in0000644000175300017530000000033110076351224016705 0ustar ggz009ggz00900000000000000[ModuleInfo] Author = Josef Spillner CommandLine = @prefix@/bin/goclient --ggz Frontend = x11 Homepage = http://www.ggzgamingzone.org/games/gnugo/ Name = CGoBan ProtocolEngine = GMP ProtocolVersion = 1 Version = 0.1 ggz-python-0.0.9/pyggzcore/0000755000175300017530000000000010076351225015730 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzcore/doc/0000755000175300017530000000000010076351225016475 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzcore/doc/doc.txt0000644000175300017530000000254110076351224020004 0ustar ggz009ggz00900000000000000How to use pyggzcoresimple -------------------------- 1) Use the ggzcore documentation! While pyggzcoresimple does have some simplifications, the basic concepts are still the same like in the C version. 2) Objects The GGZServer object has already been created when running any script which imports ggzcore. It is thus accessible as in: s = ggzcoresimple.server The room and game objects are at this time None objects, until they are assigned their proper values. 3) Handlers Unlike in the C version, handlers are not set on a object basis, but on a object class basis. This means that calling ggzcoresimple.setHandler(ggzcoresimple.EVENT_ROOM, room_event) can be done once at the beginning, and is then valid for all room objects. 4) Structures In C, a lot of structures and arrays are used to combine values. In python, those are translated as follows: SERVER MOTD_LOADED: array of char* -> string with line breaks SERVER_ROOM_LIST: (nothing) -> list of room names ROOM_CHAT_EVENT: GGZChatEventData* -> list with (type, sender, message) 5) Identifiers While internally rooms, players etc. still have numbers, the API enforces referring them by their respective names. 6) Memory handling The way pyggzcoresimple is designed, an application author should never have to worry about memory allocations. ggz-python-0.0.9/pyggzcore/src/0000755000175300017530000000000010076351225016517 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzcore/src/pyggzcoresimple_init.c0000644000175300017530000007416710076351224023147 0ustar ggz009ggz00900000000000000/**********************************************/ /* */ /* PyGGZCore - Python wrapper for libggzcore */ /* Copyright (C) 2004 Josef Spillner */ /* josef@ggzgamingzone.org */ /* Published under GNU GPL conditions */ /* */ /**********************************************/ /**********************************************/ /* Include files */ /**********************************************/ #include #include /**********************************************/ /* Definitions */ /**********************************************/ #define GGZCORE_EVENT_SERVER 1 #define GGZCORE_EVENT_ROOM 2 #define GGZCORE_EVENT_GAME 3 /**********************************************/ /* Function prototypes */ /**********************************************/ static GGZHookReturn pyggzcoresimple_cb_server_hook(unsigned int id, void *event_data, void *user_data); static GGZHookReturn pyggzcoresimple_cb_room_hook(unsigned int id, void *event_data, void *user_data); static GGZHookReturn pyggzcoresimple_cb_game_hook(unsigned int id, void *event_data, void *user_data); static void pyggzcoresimple_set_handler_game(void); static PyObject *pyggzcoresimple_new_game(PyObject *self, PyObject *args); /**********************************************/ /* Global variables */ /**********************************************/ static PyObject *core = NULL; static PyObject *coreserver = NULL; static PyObject *coreroom = NULL; static PyObject *coregame = NULL; static PyObject *roomlist = NULL; static GGZServer *ggzserver = NULL; static GGZRoom *ggzroom = NULL; static GGZGame *ggzgame = NULL; static PyObject *pyggzcoresimple_cb_server = NULL; static PyObject *pyggzcoresimple_cb_room = NULL; static PyObject *pyggzcoresimple_cb_game = NULL; static int join_table = -1; static int read_channel = 0; static int read_game = 0; /**********************************************/ /* Object definitions */ /**********************************************/ staticforward PyTypeObject pyggzcoresimple_ServerType; staticforward PyTypeObject pyggzcoresimple_RoomType; staticforward PyTypeObject pyggzcoresimple_GameType; typedef struct { PyObject_HEAD } pyggzcoresimple_ServerObject; typedef struct { PyObject_HEAD } pyggzcoresimple_RoomObject; typedef struct { PyObject_HEAD } pyggzcoresimple_GameObject; static void pyggzcoresimple_delete_server(PyObject *self) { if(ggzserver) { ggzcore_server_free(ggzserver); ggzserver = NULL; } coreserver = Py_None; PyObject_Del(self); } static void pyggzcoresimple_delete_room(PyObject *self) { if(ggzroom) { /*ggzcore_room_free(ggzroom);*/ /*ggzroom = NULL;*/ /*!!! this would also destroy the current one*/ } coreroom = Py_None; PyObject_Del(self); } static void pyggzcoresimple_delete_game(PyObject *self) { if(ggzgame) { /*ggzcore_game_free(ggzgame); ggzgame = NULL;*/ } coregame = Py_None; PyObject_Del(self); } static PyTypeObject pyggzcoresimple_ServerType = { PyObject_HEAD_INIT(NULL) 0, "GGZCore Server", sizeof(pyggzcoresimple_ServerObject), 0, pyggzcoresimple_delete_server, }; static PyTypeObject pyggzcoresimple_RoomType = { PyObject_HEAD_INIT(NULL) 0, "GGZCore Room", sizeof(pyggzcoresimple_RoomObject), 0, pyggzcoresimple_delete_room, }; static PyTypeObject pyggzcoresimple_GameType = { PyObject_HEAD_INIT(NULL) 0, "GGZCore Game", sizeof(pyggzcoresimple_GameObject), 0, pyggzcoresimple_delete_game, }; /*****************************************************/ /* GGZCoreSimple object methods just like in C */ /*****************************************************/ static PyObject *pyggzcoresimple_reload(PyObject *self, PyObject *args) { if(!PyArg_ParseTuple(args, "")) return NULL; ggzcore_reload(); return Py_BuildValue(""); } static PyObject *pyggzcoresimple_server_set_hostinfo(PyObject *self, PyObject *args) { char *host; int port, use_tls; int ret; if(!PyArg_ParseTuple(args, "sii", &host, &port, &use_tls)) return NULL; ret = ggzcore_server_set_hostinfo(ggzserver, host, port, use_tls); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_set_logininfo(PyObject *self, PyObject *args) { char *handle, *password; int type; int ret; if(!PyArg_ParseTuple(args, "iss", &type, &handle, &password)) return NULL; ret = ggzcore_server_set_logininfo(ggzserver, type, handle, password); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_get_state(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_get_state(ggzserver); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_get_tls(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_get_tls(ggzserver); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_connect(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_connect(ggzserver); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_login(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_login(ggzserver); return Py_BuildValue("i", ret); } /* static PyObject *pyggzcoresimple_server_motd(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_motd(ggzserver); return Py_BuildValue("i", ret); } */ static PyObject *pyggzcoresimple_server_logout(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_logout(ggzserver); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_disconnect(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_server_disconnect(ggzserver); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_process(PyObject *self, PyObject *args) { int ret, sret; fd_set set; int fd; struct timeval to; struct timeval *top; if(!PyArg_ParseTuple(args, "")) return NULL; if(ggzcore_server_data_is_pending(ggzserver)) ret = ggzcore_server_read_data(ggzserver, ggzcore_server_get_fd(ggzserver)); else ret = 0; if(read_game) if(ggzcore_game_get_control_fd(ggzgame) != -1) { to.tv_sec = 0; to.tv_usec = 0; top = &to; fd = ggzcore_game_get_control_fd(ggzgame); FD_ZERO(&set); FD_SET(fd, &set); sret = select(fd + 1, &set, NULL, NULL, top); if(sret == 1) ggzcore_game_read_data(ggzgame); } if(read_channel) if(ggzcore_server_get_channel(ggzserver) != -1) ggzcore_server_read_data(ggzserver, ggzcore_server_get_channel(ggzserver)); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_server_join_room(PyObject *self, PyObject *args) { int ret; char *room, *room2; int i, number; PyObject *item; if(!PyArg_ParseTuple(args, "s", &room)) return NULL; if(!roomlist) return Py_BuildValue("i", -1); // no room list available yet number = 0; for(i = 0; i < PyList_Size(roomlist); i++) { item = PyList_GetItem(roomlist, i); room2 = PyString_AsString(item); if(!strcmp(room, room2)) { number = i; /*printf("(pyggzcoresimple) join room %s yields: %i\n", room, number);*/ } } ret = ggzcore_server_join_room(ggzserver, number); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_room_get_name(PyObject *self, PyObject *args) { char *ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_room_get_name(ggzroom); return Py_BuildValue("s", ret); } static PyObject *pyggzcoresimple_room_get_desc(PyObject *self, PyObject *args) { char *ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzcore_room_get_desc(ggzroom); return Py_BuildValue("s", ret); } static PyObject *pyggzcoresimple_room_chat(PyObject *self, PyObject *args) { char *player, *message; int type; int ret; if(!PyArg_ParseTuple(args, "iss", &type, &player, &message)) return NULL; ret = ggzcore_room_chat(ggzroom, type, player, message); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_room_play(PyObject *self, PyObject *args) { char *description; int type; int ret; if(!PyArg_ParseTuple(args, "si", &description, &type)) return NULL; ret = -1; //ggzcore_room_chat(ggzroom, type, player, message); return Py_BuildValue("i", ret); } static PyObject *pyggzcoresimple_room_join(PyObject *self, PyObject *args) { int table; int ret; int i, modnum; GGZGameType *gametype; GGZModule *module; if(!PyArg_ParseTuple(args, "i", &table)) return NULL; join_table = table; ret = 1; module = NULL; gametype = ggzcore_room_get_gametype(ggzroom); modnum = ggzcore_module_get_num_by_type( ggzcore_gametype_get_name(gametype), ggzcore_gametype_get_prot_engine(gametype), ggzcore_gametype_get_prot_version(gametype)); for(i = 0; i < modnum; i++) { module = ggzcore_module_get_nth_by_type( ggzcore_gametype_get_name(gametype), ggzcore_gametype_get_prot_engine(gametype), ggzcore_gametype_get_prot_version(gametype), i); if(ggzcore_module_get_environment(module) == GGZ_ENVIRONMENT_XWINDOW) break; if(ggzcore_module_get_environment(module) == GGZ_ENVIRONMENT_XFULLSCREEN) break; module = NULL; } if(!module) ret = 0; ggzgame = ggzcore_game_new(); ggzcore_game_init(ggzgame, ggzserver, module); pyggzcoresimple_set_handler_game(); coregame = pyggzcoresimple_new_game(NULL, NULL); PyModule_AddObject(core, "game", coregame); ggzcore_game_launch(ggzgame); return Py_BuildValue("i", ret); } static void pyggzcoresimple_set_handler_server(void) { if(!ggzserver) return; ggzcore_server_add_event_hook(ggzserver, GGZ_CONNECTED, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_CONNECT_FAIL, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_NEGOTIATED, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_NEGOTIATE_FAIL, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_LOGGED_IN, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_LOGIN_FAIL, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_MOTD_LOADED, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_ROOM_LIST, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_TYPE_LIST, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_ENTERED, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_ENTER_FAIL, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_LOGOUT, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_NET_ERROR, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_PROTOCOL_ERROR, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_CHAT_FAIL, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_STATE_CHANGE, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_CHANNEL_CONNECTED, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_CHANNEL_READY, pyggzcoresimple_cb_server_hook); ggzcore_server_add_event_hook(ggzserver, GGZ_CHANNEL_FAIL, pyggzcoresimple_cb_server_hook); } static void pyggzcoresimple_remove_handler_room(void) { if(!ggzroom) return; ggzcore_room_remove_event_hook(ggzroom, GGZ_PLAYER_LIST, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_LIST, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_CHAT_EVENT, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_ROOM_ENTER, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_ROOM_LEAVE, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_UPDATE, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_LAUNCHED, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_LAUNCH_FAIL, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_JOINED, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_JOIN_FAIL, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_LEFT, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_TABLE_LEAVE_FAIL, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_PLAYER_LAG, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_PLAYER_STATS, pyggzcoresimple_cb_room_hook); ggzcore_room_remove_event_hook(ggzroom, GGZ_PLAYER_COUNT, pyggzcoresimple_cb_room_hook); } static void pyggzcoresimple_set_handler_room(void) { if(!ggzroom) return; ggzcore_room_add_event_hook(ggzroom, GGZ_PLAYER_LIST, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_LIST, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_CHAT_EVENT, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_ROOM_ENTER, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_ROOM_LEAVE, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_UPDATE, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_LAUNCHED, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_LAUNCH_FAIL, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_JOINED, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_JOIN_FAIL, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_LEFT, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_TABLE_LEAVE_FAIL, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_PLAYER_LAG, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_PLAYER_STATS, pyggzcoresimple_cb_room_hook); ggzcore_room_add_event_hook(ggzroom, GGZ_PLAYER_COUNT, pyggzcoresimple_cb_room_hook); } static void pyggzcoresimple_set_handler_game(void) { if(!ggzgame) return; ggzcore_game_add_event_hook(ggzgame, GGZ_GAME_LAUNCHED, pyggzcoresimple_cb_game_hook); ggzcore_game_add_event_hook(ggzgame, GGZ_GAME_LAUNCH_FAIL, pyggzcoresimple_cb_game_hook); ggzcore_game_add_event_hook(ggzgame, GGZ_GAME_NEGOTIATED, pyggzcoresimple_cb_game_hook); ggzcore_game_add_event_hook(ggzgame, GGZ_GAME_NEGOTIATE_FAIL, pyggzcoresimple_cb_game_hook); ggzcore_game_add_event_hook(ggzgame, GGZ_GAME_PLAYING, pyggzcoresimple_cb_game_hook); } static PyObject *pyggzcoresimple_set_handler(PyObject *self, PyObject *args) { int id; PyObject *result = NULL; PyObject *temp; if(!PyArg_ParseTuple(args, "iO", &id, &temp)) return NULL; Py_XINCREF(temp); switch(id) { case GGZCORE_EVENT_SERVER: Py_XDECREF(pyggzcoresimple_cb_server); pyggzcoresimple_cb_server = temp; pyggzcoresimple_set_handler_server(); break; case GGZCORE_EVENT_ROOM: Py_XDECREF(pyggzcoresimple_cb_room); pyggzcoresimple_cb_room = temp; //pyggzcoresimple_set_handler_room(); break; case GGZCORE_EVENT_GAME: Py_XDECREF(pyggzcoresimple_cb_game); pyggzcoresimple_cb_game = temp; //pyggzcoresimple_set_handler_game(); break; } Py_INCREF(Py_None); result = Py_None; return result; } /**********************************************/ /* Function lookup table */ /**********************************************/ static PyMethodDef pyggzcoresimple_server_methods[] = { {"set_hostinfo", pyggzcoresimple_server_set_hostinfo, METH_VARARGS}, {"set_logininfo", pyggzcoresimple_server_set_logininfo, METH_VARARGS}, {"get_state", pyggzcoresimple_server_get_state, METH_VARARGS}, {"get_tls", pyggzcoresimple_server_get_tls, METH_VARARGS}, {"connect", pyggzcoresimple_server_connect, METH_VARARGS}, {"login", pyggzcoresimple_server_login, METH_VARARGS}, /*{"motd", pyggzcoresimple_server_motd, METH_VARARGS},*/ {"process", pyggzcoresimple_server_process, METH_VARARGS}, {"logout", pyggzcoresimple_server_logout, METH_VARARGS}, {"disconnect", pyggzcoresimple_server_disconnect, METH_VARARGS}, {"join_room", pyggzcoresimple_server_join_room, METH_VARARGS}, {NULL, NULL, 0} }; static PyMethodDef pyggzcoresimple_room_methods[] = { {"get_name", pyggzcoresimple_room_get_name, METH_VARARGS}, {"get_desc", pyggzcoresimple_room_get_desc, METH_VARARGS}, {"chat", pyggzcoresimple_room_chat, METH_VARARGS}, {"play", pyggzcoresimple_room_play, METH_VARARGS}, {"join", pyggzcoresimple_room_join, METH_VARARGS}, {NULL, NULL, 0} }; static PyMethodDef pyggzcoresimple_game_methods[] = { {NULL, NULL, 0} }; static PyMethodDef pyggzcoresimple_methods[] = { {"setHandler", pyggzcoresimple_set_handler, METH_VARARGS}, {"reload", pyggzcoresimple_reload, METH_VARARGS}, {NULL, NULL, 0} }; static PyObject *pyggzcoresimple_server_getattr(PyObject *self, char *name) { PyObject *ret = NULL; ret = Py_FindMethod(pyggzcoresimple_server_methods, self, name); return ret; } static PyObject *pyggzcoresimple_room_getattr(PyObject *self, char *name) { PyObject *ret = NULL; ret = Py_FindMethod(pyggzcoresimple_room_methods, self, name); return ret; } static PyObject *pyggzcoresimple_game_getattr(PyObject *self, char *name) { PyObject *ret = NULL; ret = Py_FindMethod(pyggzcoresimple_game_methods, self, name); return ret; } static PyObject *pyggzcoresimple_new_server(PyObject *self, PyObject *args) { pyggzcoresimple_ServerObject *server; pyggzcoresimple_ServerType.ob_type = &PyType_Type; pyggzcoresimple_ServerType.tp_methods = (struct PyMethodDef*)pyggzcoresimple_server_methods; pyggzcoresimple_ServerType.tp_getattr = (getattrfunc)pyggzcoresimple_server_getattr; server = PyObject_New(pyggzcoresimple_ServerObject, &pyggzcoresimple_ServerType); return (PyObject*)server; } static PyObject *pyggzcoresimple_new_room(PyObject *self, PyObject *args) { pyggzcoresimple_RoomObject *room; pyggzcoresimple_RoomType.ob_type = &PyType_Type; pyggzcoresimple_RoomType.tp_methods = (struct PyMethodDef*)pyggzcoresimple_room_methods; pyggzcoresimple_RoomType.tp_getattr = (getattrfunc)pyggzcoresimple_room_getattr; room = PyObject_New(pyggzcoresimple_RoomObject, &pyggzcoresimple_RoomType); return (PyObject*)room; } static PyObject *pyggzcoresimple_new_game(PyObject *self, PyObject *args) { pyggzcoresimple_GameObject *game; pyggzcoresimple_GameType.ob_type = &PyType_Type; pyggzcoresimple_GameType.tp_methods = (struct PyMethodDef*)pyggzcoresimple_game_methods; pyggzcoresimple_GameType.tp_getattr = (getattrfunc)pyggzcoresimple_game_getattr; game = PyObject_New(pyggzcoresimple_GameObject, &pyggzcoresimple_GameType); return (PyObject*)game; } /**********************************************/ /* Internal callbacks */ /**********************************************/ static GGZHookReturn pyggzcoresimple_cb_server_hook(unsigned int id, void *event_data, void *user_data) { PyObject *arg, *res; PyObject *element; char *str, **e; int i; GGZRoom *room; /*printf("(pyggzcoresimple) server event: %i %p %p\n", id, event_data, user_data);*/ arg = NULL; str = NULL; if((id == GGZ_CONNECT_FAIL) || (id == GGZ_NEGOTIATE_FAIL)) { str = strdup((char*)event_data); } if(id == GGZ_MOTD_LOADED) { e = (char**)event_data; if((e) && (e[0])) { str = strdup(e[0]); i = 1; while(e[i]) { str = (char*)realloc(str, strlen(str) + strlen(e[i]) + 2); strcat(str, "\n"); strcat(str, e[i]); } } } if(id == GGZ_ROOM_LIST) { roomlist = PyList_New(0); //ggzcore_server_get_num_rooms(ggzserver)); for(i = 0; i < ggzcore_server_get_num_rooms(ggzserver); i++) { room = ggzcore_server_get_nth_room(ggzserver, i); element = Py_BuildValue("s", ggzcore_room_get_name(room)); PyList_Append(roomlist, element); } arg = Py_BuildValue("(iO)", id, roomlist); } if(id == GGZ_ENTERED) { pyggzcoresimple_remove_handler_room(); ggzroom = ggzcore_server_get_cur_room(ggzserver); pyggzcoresimple_set_handler_room(); coreroom = pyggzcoresimple_new_room(NULL, NULL); PyModule_AddObject(core, "room", coreroom); } if(!arg) { //arg = Py_BuildValue("(iO)", id, event_data); arg = Py_BuildValue("(is)", id, str); } res = PyEval_CallObject(pyggzcoresimple_cb_server, arg); if(res == NULL) { printf("----------------------------------\n"); printf("ERROR in pyggzcoresimple callback!\n"); PyErr_Print(); printf("----------------------------------\n"); } // Py_DECREF(arg); if(str) free(str); if(id == GGZ_LOGGED_IN) { ggzcore_server_list_rooms(ggzserver, 0, 1); ggzcore_server_list_gametypes(ggzserver, 1); } if(id == GGZ_ENTERED) { ggzcore_room_list_players(ggzroom); ggzcore_room_list_tables(ggzroom, -1, 0); } if(id == GGZ_CHANNEL_CONNECTED) { read_channel = 1; } if(id == GGZ_CHANNEL_READY) { ggzcore_game_set_server_fd(ggzgame, ggzcore_server_get_channel(ggzserver)); read_channel = 0; } return GGZ_HOOK_OK; } static const char *playertype_to_string(GGZPlayerType t) { switch(t) { case GGZ_PLAYER_NORMAL: return "registered"; case GGZ_PLAYER_GUEST: return "guest"; case GGZ_PLAYER_ADMIN: return "admin"; case GGZ_PLAYER_BOT: return "bot"; case GGZ_PLAYER_UNKNOWN: default: return "unknown"; } return NULL; } static GGZHookReturn pyggzcoresimple_cb_room_hook(unsigned int id, void *event_data, void *user_data) { PyObject *arg, *res; PyObject *list, *element; char *str; GGZChatEventData *cd; PyObject *playerlist, *tablelist; GGZPlayer *player; GGZTable *table; int i, j; /*printf("(pyggzcore) room event: %i %p %p\n", id, event_data, user_data);*/ arg = NULL; str = NULL; if(id == GGZ_CHAT_EVENT) { cd = (GGZChatEventData*)event_data; /*printf("(pyggzcore) chat data: %i %s %s\n", cd->type, cd->sender, cd->message);*/ list = PyList_New(0); element = Py_BuildValue("i", cd->type); PyList_Append(list, element); element = Py_BuildValue("s", cd->sender); PyList_Append(list, element); element = Py_BuildValue("s", cd->message); PyList_Append(list, element); arg = Py_BuildValue("(iO)", id, list); //str = strdup((char*)event_data); } if(id == GGZ_PLAYER_LIST) { playerlist = PyList_New(0); //ggzcore_server_get_num_rooms(ggzserver)); for(i = 0; i < ggzcore_room_get_num_players(ggzroom); i++) { player = ggzcore_room_get_nth_player(ggzroom, i); element = Py_BuildValue("ss", ggzcore_player_get_name(player), playertype_to_string(ggzcore_player_get_type(player))); PyList_Append(playerlist, element); } arg = Py_BuildValue("(iO)", id, playerlist); } if((id == GGZ_TABLE_LIST) || (id == GGZ_TABLE_UPDATE)) { tablelist = PyList_New(0); for(i = 0; i < ggzcore_room_get_num_tables(ggzroom); i++) { table = ggzcore_room_get_nth_table(ggzroom, i); element = Py_BuildValue("si", ggzcore_table_get_desc(table), ggzcore_table_get_num_seats(table)); PyList_Append(tablelist, element); for(j = 0; j < ggzcore_table_get_num_seats(table); j++) { if(ggzcore_table_get_nth_player_type(table, j) == GGZ_SEAT_PLAYER) element = Py_BuildValue("s", ggzcore_table_get_nth_player_name(table, j)); else if(ggzcore_table_get_nth_player_type(table, j) == GGZ_SEAT_BOT) element = Py_BuildValue("s", "(bot)"); else element = Py_BuildValue("s", ""); PyList_Append(tablelist, element); } } arg = Py_BuildValue("(iO)", id, tablelist); } if(id == GGZ_TABLE_LAUNCHED) /* launched or joined? */ { } if(id == GGZ_TABLE_JOINED) /* launched or joined? */ { } if(id == GGZ_TABLE_LEFT) { ggzcore_game_free(ggzgame); ggzgame = NULL; read_game = 0; } if(!arg) { arg = Py_BuildValue("(is)", id, str); } res = PyEval_CallObject(pyggzcoresimple_cb_room, arg); if(res == NULL) { printf("----------------------------------\n"); printf("ERROR in pyggzcoresimple callback!\n"); PyErr_Print(); printf("----------------------------------\n"); } // Py_DECREF(arg); if(str) free(str); return GGZ_HOOK_OK; } static GGZHookReturn pyggzcoresimple_cb_game_hook(unsigned int id, void *event_data, void *user_data) { PyObject *arg, *res; char *str; /*printf("(pyggzcore) game event: %i %p %p\n", id, event_data, user_data);*/ arg = NULL; str = NULL; if(id == GGZ_GAME_LAUNCHED) { read_game = 1; } if(id == GGZ_GAME_NEGOTIATED) { ggzcore_server_create_channel(ggzserver); } if(id == GGZ_GAME_PLAYING) { ggzcore_room_join_table(ggzroom, join_table, 0); } if(!arg) { arg = Py_BuildValue("(is)", id, str); } res = PyEval_CallObject(pyggzcoresimple_cb_game, arg); if(res == NULL) { printf("----------------------------------\n"); printf("ERROR in pyggzcoresimple callback!\n"); PyErr_Print(); printf("----------------------------------\n"); } // Py_DECREF(arg); if(str) free(str); return GGZ_HOOK_OK; } /**********************************************/ /* Initialization code and constants */ /**********************************************/ void initggzcoresimple(void) { PyObject *coreserver; GGZOptions opt; core = Py_InitModule("ggzcoresimple", pyggzcoresimple_methods); PyModule_AddIntConstant(core, "LOGIN", GGZ_LOGIN); PyModule_AddIntConstant(core, "LOGIN_GUEST", GGZ_LOGIN_GUEST); PyModule_AddIntConstant(core, "LOGIN_NEW", GGZ_LOGIN_NEW); PyModule_AddIntConstant(core, "CHAT_NORMAL", GGZ_CHAT_NORMAL); PyModule_AddIntConstant(core, "CHAT_ANNOUNCE", GGZ_CHAT_ANNOUNCE); PyModule_AddIntConstant(core, "CHAT_BEEP", GGZ_CHAT_BEEP); PyModule_AddIntConstant(core, "CHAT_PERSONAL", GGZ_CHAT_PERSONAL); PyModule_AddIntConstant(core, "CHAT_TABLE", GGZ_CHAT_TABLE); PyModule_AddIntConstant(core, "EVENT_SERVER", GGZCORE_EVENT_SERVER); PyModule_AddIntConstant(core, "EVENT_ROOM", GGZCORE_EVENT_ROOM); PyModule_AddIntConstant(core, "EVENT_GAME", GGZCORE_EVENT_GAME); PyModule_AddIntConstant(core, "SERVER_CONNECTED", GGZ_CONNECTED); PyModule_AddIntConstant(core, "SERVER_CONNECT_FAIL", GGZ_CONNECT_FAIL); PyModule_AddIntConstant(core, "SERVER_NEGOTIATED", GGZ_NEGOTIATED); PyModule_AddIntConstant(core, "SERVER_NEGOTIATE_FAIL", GGZ_NEGOTIATE_FAIL); PyModule_AddIntConstant(core, "SERVER_LOGGED_IN", GGZ_LOGGED_IN); PyModule_AddIntConstant(core, "SERVER_LOGIN_FAIL", GGZ_LOGIN_FAIL); PyModule_AddIntConstant(core, "SERVER_MOTD_LOADED", GGZ_MOTD_LOADED); PyModule_AddIntConstant(core, "SERVER_ROOM_LIST", GGZ_ROOM_LIST); PyModule_AddIntConstant(core, "SERVER_TYPE_LIST", GGZ_TYPE_LIST); PyModule_AddIntConstant(core, "SERVER_ENTERED", GGZ_ENTERED); PyModule_AddIntConstant(core, "SERVER_ENTER_FAIL", GGZ_ENTER_FAIL); PyModule_AddIntConstant(core, "SERVER_LOGOUT", GGZ_LOGOUT); PyModule_AddIntConstant(core, "SERVER_NET_ERROR", GGZ_NET_ERROR); PyModule_AddIntConstant(core, "SERVER_PROTOCOL_ERROR", GGZ_PROTOCOL_ERROR); PyModule_AddIntConstant(core, "SERVER_CHAT_FAIL", GGZ_CHAT_FAIL); PyModule_AddIntConstant(core, "SERVER_STATE_CHANGE", GGZ_STATE_CHANGE); PyModule_AddIntConstant(core, "SERVER_CHANNEL_CONNECTED", GGZ_CHANNEL_CONNECTED); PyModule_AddIntConstant(core, "SERVER_CHANNEL_READY", GGZ_CHANNEL_READY); PyModule_AddIntConstant(core, "SERVER_CHANNEL_FAIL", GGZ_CHANNEL_FAIL); PyModule_AddIntConstant(core, "ROOM_PLAYER_LIST", GGZ_PLAYER_LIST); PyModule_AddIntConstant(core, "ROOM_TABLE_LIST", GGZ_TABLE_LIST); PyModule_AddIntConstant(core, "ROOM_CHAT_EVENT", GGZ_CHAT_EVENT); PyModule_AddIntConstant(core, "ROOM_ENTER", GGZ_ROOM_ENTER); PyModule_AddIntConstant(core, "ROOM_LEAVE", GGZ_ROOM_LEAVE); PyModule_AddIntConstant(core, "ROOM_TABLE_UPDATE", GGZ_TABLE_UPDATE); PyModule_AddIntConstant(core, "ROOM_TABLE_LAUNCHED", GGZ_TABLE_LAUNCHED); PyModule_AddIntConstant(core, "ROOM_TABLE_LAUNCH_FAIL", GGZ_TABLE_LAUNCH_FAIL); PyModule_AddIntConstant(core, "ROOM_TABLE_JOINED", GGZ_TABLE_JOINED); PyModule_AddIntConstant(core, "ROOM_TABLE_JOIN_FAIL", GGZ_TABLE_JOIN_FAIL); PyModule_AddIntConstant(core, "ROOM_TABLE_LEFT", GGZ_TABLE_LEFT); PyModule_AddIntConstant(core, "ROOM_TABLE_LEAVE_FAIL", GGZ_TABLE_LEAVE_FAIL); PyModule_AddIntConstant(core, "ROOM_PLAYER_LAG", GGZ_PLAYER_LAG); PyModule_AddIntConstant(core, "ROOM_PLAYER_STATS", GGZ_PLAYER_STATS); PyModule_AddIntConstant(core, "ROOM_PLAYER_COUNT", GGZ_PLAYER_COUNT); PyModule_AddIntConstant(core, "GAME_LAUNCHED", GGZ_GAME_LAUNCHED); PyModule_AddIntConstant(core, "GAME_LAUNCH_FAIL", GGZ_GAME_LAUNCH_FAIL); PyModule_AddIntConstant(core, "GAME_NEGOTIATED", GGZ_GAME_NEGOTIATED); PyModule_AddIntConstant(core, "GAME_NEGOTIATE_FAIL", GGZ_GAME_NEGOTIATE_FAIL); PyModule_AddIntConstant(core, "GAME_PLAYING", GGZ_GAME_PLAYING); PyModule_AddIntConstant(core, "STATE_OFFLINE", GGZ_STATE_OFFLINE); PyModule_AddIntConstant(core, "STATE_CONNECTING", GGZ_STATE_CONNECTING); PyModule_AddIntConstant(core, "STATE_ONLINE", GGZ_STATE_ONLINE); PyModule_AddIntConstant(core, "STATE_LOGGING_IN", GGZ_STATE_LOGGING_IN); PyModule_AddIntConstant(core, "STATE_LOGGED_IN", GGZ_STATE_LOGGED_IN); PyModule_AddIntConstant(core, "STATE_ENTERING_ROOM", GGZ_STATE_ENTERING_ROOM); PyModule_AddIntConstant(core, "STATE_IN_ROOM", GGZ_STATE_IN_ROOM); PyModule_AddIntConstant(core, "STATE_BETWEEN_ROOMS", GGZ_STATE_BETWEEN_ROOMS); PyModule_AddIntConstant(core, "STATE_LAUNCHING_TABLE", GGZ_STATE_LAUNCHING_TABLE); PyModule_AddIntConstant(core, "STATE_JOINING_TABLE", GGZ_STATE_JOINING_TABLE); PyModule_AddIntConstant(core, "STATE_AT_TABLE", GGZ_STATE_AT_TABLE); PyModule_AddIntConstant(core, "STATE_LEAVING_TABLE", GGZ_STATE_LEAVING_TABLE); PyModule_AddIntConstant(core, "STATE_LOGGING_OUT", GGZ_STATE_LOGGING_OUT); PyModule_AddIntConstant(core, "ENVIRONMENT_PASSIVE", GGZ_ENVIRONMENT_PASSIVE); PyModule_AddIntConstant(core, "ENVIRONMENT_CONSOLE", GGZ_ENVIRONMENT_CONSOLE); PyModule_AddIntConstant(core, "ENVIRONMENT_FRAMEBUFFER", GGZ_ENVIRONMENT_FRAMEBUFFER); PyModule_AddIntConstant(core, "ENVIRONMENT_XWINDOW", GGZ_ENVIRONMENT_XWINDOW); PyModule_AddIntConstant(core, "ENVIRONMENT_XFULLSCREEN", GGZ_ENVIRONMENT_XFULLSCREEN); coreserver = pyggzcoresimple_new_server(NULL, NULL); coreroom = Py_None; coregame = Py_None; PyModule_AddObject(core, "server", coreserver); PyModule_AddObject(core, "room", coreroom); PyModule_AddObject(core, "game", coregame); ggzserver = ggzcore_server_new(); opt.flags = GGZ_OPT_PARSER | GGZ_OPT_MODULES; ggzcore_init(opt); } ggz-python-0.0.9/pyggzcore/src/test.py0000755000175300017530000000444710076351224020063 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # # Test core client for the GGZ Gaming Zone # Written in Python import ggzcoresimple import inspect import sys def minisleep(s): counter = 499999 while counter is not 0: counter = counter - 1 s.process() def server_event(id, data): print "server event!" if id == ggzcoresimple.SERVER_STATE_CHANGE: print "state change event!" print "state is now", s.get_state() elif id == ggzcoresimple.SERVER_CONNECTED: print "connected!" elif id == ggzcoresimple.SERVER_CONNECT_FAIL: print "connection error!" print "reason", data sys.exit() elif id == ggzcoresimple.SERVER_NEGOTIATED: print "negotiated!" ggzcoresimple.server.login() elif id == ggzcoresimple.SERVER_LOGGED_IN: print "logged in!" elif id == ggzcoresimple.SERVER_MOTD_LOADED: print "motd loaded!" print "motd is", data elif id == ggzcoresimple.SERVER_ROOM_LIST: print "room list!" print data for room in data: print "room =", room elif id == ggzcoresimple.SERVER_ENTERED: print "we are in the room!" print ggzcoresimple.room.get_name() print ggzcoresimple.room.get_desc() else: print "!! unknown server event", id def room_event(id, data): print "room event!" if id == ggzcoresimple.ROOM_CHAT_EVENT: print "chat!" print "data:", data elif id == ggzcoresimple.ROOM_PLAYER_LIST: print "player list!" print data for player in data: print "player =", player else: print "!! unknown room event", id print ">> this is ggzcoresimple reloaded" #ggzcoresimple.reload() ggzcoresimple.setHandler(ggzcoresimple.EVENT_SERVER, server_event) ggzcoresimple.setHandler(ggzcoresimple.EVENT_ROOM, room_event) print ">> try to toy around with the server object" s = ggzcoresimple.server print "** server is", s print "** server dict is", inspect.getmembers(s) s.set_hostinfo("localhost", 5688, 1) s.set_logininfo(ggzcoresimple.LOGIN_GUEST, "player", "") s.connect() print ">> the current state" state = s.get_state() print state minisleep(s) minisleep(s) print ">> go to room TTT" s.join_room("TicTacToe") minisleep(s) minisleep(s) print ">> go chat" r = ggzcoresimple.room r.chat(ggzcoresimple.CHAT_NORMAL, "", "fuuubaaar") minisleep(s) print ">> go play" r.play("test game", 0) minisleep(s) print ">> go logout" minisleep(s) s.logout() print ">> logout done. go disconnect" s.disconnect() ggz-python-0.0.9/pyggzcore/.cvsignore0000644000175300017530000000001710076351224017725 0ustar ggz009ggz00900000000000000build setup.py ggz-python-0.0.9/pyggzcore/README.pyggzcoresimple0000644000175300017530000000017010076351224022027 0ustar ggz009ggz00900000000000000About PyGGZCoreSimple ===================== Read the PyGGZDmod documentation. Most explanations are identical. Josef ggz-python-0.0.9/pyggzcore/setup.py.in0000644000175300017530000000116510076351224020051 0ustar ggz009ggz00900000000000000# Python wrapper module for a GGZ library for use with distutils # # Compilation: python setup.py build # Installation: python setup.py install [--prefix=] from distutils.core import setup, Extension setup( name = "GGZCore", version = "0.1", author = "Josef Spillner", author_email = "josef@ggzgamingzone.org", url = "http://www.ggzgamingzone.org", ext_modules = [ Extension('ggzcoresimple', ['src/pyggzcoresimple_init.c'], library_dirs = ["@ggzcore_libraries@"], libraries = ['ggzcore', 'ggzmod', 'ggz'], include_dirs = ["@ggzcore_includes@"]) ] ) ggz-python-0.0.9/pyggzdmod/0000755000175300017530000000000010076351225015723 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzdmod/src/0000755000175300017530000000000010076351225016512 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzdmod/src/pyggzdmod_init.c0000644000175300017530000003230310076351224021705 0ustar ggz009ggz00900000000000000/**********************************************/ /* */ /* PyGGZDMod - Python wrapper for libggzdmod */ /* Copyright (C) 2001 - 2004 Josef Spillner */ /* josef@ggzgamingzone.org */ /* Published under GNU GPL conditions */ /* */ /**********************************************/ /**********************************************/ /* Include files */ /**********************************************/ #include #include /**********************************************/ /* Function prototypes */ /**********************************************/ static void pyggzdmod_cb_join_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_leave_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_data_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_spectatorjoin_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_spectatorleave_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_spectatordata_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_log_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_error_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static void pyggzdmod_cb_state_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data); static PyObject *pyggzdmod_test(PyObject *self, PyObject *args); /**********************************************/ /* Global variables */ /**********************************************/ static GGZdMod *ggzdmod; static PyObject *pyggzdmod_cb_join = NULL; static PyObject *pyggzdmod_cb_leave = NULL; static PyObject *pyggzdmod_cb_data = NULL; static PyObject *pyggzdmod_cb_spectatorjoin = NULL; static PyObject *pyggzdmod_cb_spectatorleave = NULL; static PyObject *pyggzdmod_cb_spectatordata = NULL; static PyObject *pyggzdmod_cb_log = NULL; static PyObject *pyggzdmod_cb_error = NULL; static PyObject *pyggzdmod_cb_state = NULL; /**********************************************/ /* GGZDMod object methods just like in C */ /**********************************************/ static PyObject *pyggzdmod_get_num_seats(PyObject *self, PyObject *args) { int seats; if(!PyArg_ParseTuple(args, "")) return NULL; seats = ggzdmod_get_num_seats(ggzdmod); return Py_BuildValue("i", seats); } static PyObject *pyggzdmod_get_max_spectators(PyObject *self, PyObject *args) { int spectators; if(!PyArg_ParseTuple(args, "")) return NULL; spectators = ggzdmod_get_max_num_spectators(ggzdmod); return Py_BuildValue("i", spectators); } static PyObject *pyggzdmod_count_spectators(PyObject *self, PyObject *args) { int spectators; if(!PyArg_ParseTuple(args, "")) return NULL; spectators = ggzdmod_count_spectators(ggzdmod); return Py_BuildValue("i", spectators); } /*static PyObject *pyggzdmod_seats_open(PyObject *self, PyObject *args) { int seats; if(!PyArg_ParseTuple(args, "")) return NULL; seats = ggzdmod_seats_open(ggzdmod); return Py_BuildValue("i", seats); }*/ static PyObject *pyggzdmod_connect(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzdmod_connect(ggzdmod); return Py_BuildValue("i", ret); } static PyObject *pyggzdmod_disconnect(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzdmod_disconnect(ggzdmod); return Py_BuildValue("i", ret); } static PyObject *pyggzdmod_dispatch(PyObject *self, PyObject *args) { if(!PyArg_ParseTuple(args, "")) return NULL; ggzdmod_dispatch(ggzdmod); return Py_BuildValue(""); } static PyObject *pyggzdmod_loop(PyObject *self, PyObject *args) { int ret; if(!PyArg_ParseTuple(args, "")) return NULL; ret = ggzdmod_loop(ggzdmod); return Py_BuildValue("i", ret); } /*static PyObject *pyggzdmod_seat_fd(PyObject *self, PyObject *args) { GGZSeat *seat = NULL; if(!PyArg_ParseTuple(args, "O", seat)) return NULL; return Py_BuildValue("i", seat->fd); }*/ static PyObject *pyggzdmod_set_handler(PyObject *self, PyObject *args) { int id; PyObject *result = NULL; PyObject *temp; if(!PyArg_ParseTuple(args, "iO", &id, &temp)) return NULL; Py_XINCREF(temp); switch(id) { case GGZDMOD_EVENT_JOIN: Py_XDECREF(pyggzdmod_cb_join); pyggzdmod_cb_join = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_JOIN, pyggzdmod_cb_join_hook); break; case GGZDMOD_EVENT_LEAVE: Py_XDECREF(pyggzdmod_cb_leave); pyggzdmod_cb_leave = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_LEAVE, pyggzdmod_cb_leave_hook); break; case GGZDMOD_EVENT_PLAYER_DATA: Py_XDECREF(pyggzdmod_cb_data); pyggzdmod_cb_data = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_PLAYER_DATA, pyggzdmod_cb_data_hook); break; case GGZDMOD_EVENT_SPECTATOR_JOIN: Py_XDECREF(pyggzdmod_cb_spectatorjoin); pyggzdmod_cb_spectatorjoin = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_JOIN, pyggzdmod_cb_spectatorjoin_hook); break; case GGZDMOD_EVENT_SPECTATOR_LEAVE: Py_XDECREF(pyggzdmod_cb_spectatorleave); pyggzdmod_cb_spectatorleave = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_LEAVE, pyggzdmod_cb_spectatorleave_hook); break; case GGZDMOD_EVENT_SPECTATOR_DATA: Py_XDECREF(pyggzdmod_cb_spectatordata); pyggzdmod_cb_spectatordata = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_SPECTATOR_DATA, pyggzdmod_cb_spectatordata_hook); break; case GGZDMOD_EVENT_ERROR: Py_XDECREF(pyggzdmod_cb_error); pyggzdmod_cb_error = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_ERROR, pyggzdmod_cb_error_hook); break; case GGZDMOD_EVENT_LOG: Py_XDECREF(pyggzdmod_cb_log); pyggzdmod_cb_log = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_LOG, pyggzdmod_cb_log_hook); break; case GGZDMOD_EVENT_STATE: Py_XDECREF(pyggzdmod_cb_state); pyggzdmod_cb_state = temp; ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_STATE, pyggzdmod_cb_state_hook); break; } Py_INCREF(Py_None); result = Py_None; return result; } /**********************************************/ /* Function lookup table */ /**********************************************/ static PyMethodDef pyggzdmod_methods[] = { {"getNumSeats", pyggzdmod_get_num_seats, METH_VARARGS}, {"getMaxSpectators", pyggzdmod_get_max_spectators, METH_VARARGS}, {"countSpectators", pyggzdmod_count_spectators, METH_VARARGS}, /*{"seatsOpen", pyggzdmod_seats_open, METH_VARARGS},*/ {"connect", pyggzdmod_connect, METH_VARARGS}, {"disconnect", pyggzdmod_disconnect, METH_VARARGS}, {"dispatch", pyggzdmod_dispatch, METH_VARARGS}, {"mainLoop", pyggzdmod_loop, METH_VARARGS}, {"setHandler", pyggzdmod_set_handler, METH_VARARGS}, {"test", pyggzdmod_test, METH_VARARGS}, /*{"seatFd", pyggzdmod_seat_fd, METH_VARARGS},*/ {NULL, NULL} }; /**********************************************/ /* Internal callbacks */ /**********************************************/ void pyggzdmod_cb_join_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; GGZSeat seat; seat = *(GGZSeat*)handler_data; seat = ggzdmod_get_seat(ggzdmod, seat.num); arg = Py_BuildValue("(iisi)", seat.num, seat.type, seat.name, seat.fd); res = PyEval_CallObject(pyggzdmod_cb_join, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_leave_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; GGZSeat seat; seat = *(GGZSeat*)handler_data; seat = ggzdmod_get_seat(ggzdmod, seat.num); arg = Py_BuildValue("(iisi)", seat.num, seat.type, seat.name, seat.fd); res = PyEval_CallObject(pyggzdmod_cb_leave, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_data_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; GGZSeat seat; seat = ggzdmod_get_seat(ggzdmod, *(int*)handler_data); arg = Py_BuildValue("(iisi)", seat.num, seat.type, seat.name, seat.fd); res = PyEval_CallObject(pyggzdmod_cb_data, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_spectatorjoin_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzdmod_cb_spectatorjoin, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_spectatorleave_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzdmod_cb_spectatorleave, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_spectatordata_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzdmod_cb_spectatordata, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_error_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(s)", (char*)handler_data); res = PyEval_CallObject(pyggzdmod_cb_error, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_log_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(s)", (char*)handler_data); res = PyEval_CallObject(pyggzdmod_cb_log, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } void pyggzdmod_cb_state_hook(GGZdMod *ggzdmod, GGZdModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(GGZdModState*)handler_data); res = PyEval_CallObject(pyggzdmod_cb_state, arg); if(res == NULL) { printf("----------------------------\n"); printf("ERROR in pyggzdmod callback!\n"); PyErr_Print(); printf("----------------------------\n"); } Py_DECREF(arg); } static PyObject *pyggzdmod_test(PyObject *self, PyObject *args) { int z; z = 0; pyggzdmod_cb_state_hook(ggzdmod, GGZDMOD_EVENT_STATE, NULL); pyggzdmod_cb_join_hook(ggzdmod, GGZDMOD_EVENT_JOIN, (void*)(&z)); return Py_None; } /**********************************************/ /* Initialization code and constants */ /**********************************************/ void initggzdmod(void) { PyObject *mod; mod = Py_InitModule("ggzdmod", pyggzdmod_methods); PyModule_AddIntConstant(mod, "SEAT_OPEN", GGZ_SEAT_OPEN); PyModule_AddIntConstant(mod, "SEAT_BOT", GGZ_SEAT_BOT); PyModule_AddIntConstant(mod, "SEAT_RESERVED", GGZ_SEAT_RESERVED); PyModule_AddIntConstant(mod, "SEAT_NONE", GGZ_SEAT_NONE); PyModule_AddIntConstant(mod, "SEAT_PLAYER", GGZ_SEAT_PLAYER); PyModule_AddIntConstant(mod, "CHAT_UNKNOWN", GGZ_CHAT_UNKNOWN); PyModule_AddIntConstant(mod, "CHAT_NORMAL", GGZ_CHAT_NORMAL); PyModule_AddIntConstant(mod, "CHAT_ANNOUNCE", GGZ_CHAT_ANNOUNCE); PyModule_AddIntConstant(mod, "CHAT_BEEP", GGZ_CHAT_BEEP); PyModule_AddIntConstant(mod, "CHAT_PERSONAL", GGZ_CHAT_PERSONAL); PyModule_AddIntConstant(mod, "CHAT_TABLE", GGZ_CHAT_TABLE); PyModule_AddIntConstant(mod, "EVENT_JOIN", GGZDMOD_EVENT_JOIN); PyModule_AddIntConstant(mod, "EVENT_LEAVE", GGZDMOD_EVENT_LEAVE); PyModule_AddIntConstant(mod, "EVENT_DATA", GGZDMOD_EVENT_PLAYER_DATA); PyModule_AddIntConstant(mod, "EVENT_SPECTATORJOIN", GGZDMOD_EVENT_SPECTATOR_JOIN); PyModule_AddIntConstant(mod, "EVENT_SPECTATORLEAVE", GGZDMOD_EVENT_SPECTATOR_LEAVE); PyModule_AddIntConstant(mod, "EVENT_SPECTATORDATA", GGZDMOD_EVENT_SPECTATOR_DATA); PyModule_AddIntConstant(mod, "EVENT_LOG", GGZDMOD_EVENT_LOG); PyModule_AddIntConstant(mod, "EVENT_ERROR", GGZDMOD_EVENT_ERROR); PyModule_AddIntConstant(mod, "EVENT_STATE", GGZDMOD_EVENT_STATE); PyModule_AddIntConstant(mod, "STATE_CREATED", GGZDMOD_STATE_CREATED); PyModule_AddIntConstant(mod, "STATE_WAITING", GGZDMOD_STATE_WAITING); PyModule_AddIntConstant(mod, "STATE_PLAYING", GGZDMOD_STATE_PLAYING); PyModule_AddIntConstant(mod, "STATE_DONE", GGZDMOD_STATE_DONE); PyModule_AddIntConstant(mod, "TYPE_GGZ", GGZDMOD_GGZ); PyModule_AddIntConstant(mod, "TYPE_GAME", GGZDMOD_GAME); ggzdmod = ggzdmod_new(GGZDMOD_GAME); } ggz-python-0.0.9/pyggzdmod/src/test.py0000755000175300017530000000165610076351224020055 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # # Test game server for the GGZ Gaming Zone # Written in Python import ggzdmod; def hook_state (): print "* state" def hook_join (seat): print "* join: ", seat print "(Name: " + ggzdmod.getPlayerName(seat) + ")" def hook_leave (seat): print "* leave: ", seat print "(Name: " + ggzdmod.getPlayerName(seat) + ")" def hook_log (): print "* log" def hook_data (seat): print "* data: ", seat print "(Name: " + ggzdmod.getPlayerName(seat) + ")" def hook_error (arg): print "* error" print ">> register callbacks" ggzdmod.setHandler(ggzdmod.EVENT_STATE, hook_state) ggzdmod.setHandler(ggzdmod.EVENT_JOIN, hook_join) ggzdmod.setHandler(ggzdmod.EVENT_LEAVE, hook_leave) ggzdmod.setHandler(ggzdmod.EVENT_LOG, hook_log) ggzdmod.setHandler(ggzdmod.EVENT_DATA, hook_data) ggzdmod.setHandler(ggzdmod.EVENT_ERROR, hook_error) print ">> launch the game server" ggzdmod.connect() ggzdmod.mainLoop() print ">> done." ggz-python-0.0.9/pyggzdmod/.cvsignore0000644000175300017530000000000710076351224017717 0ustar ggz009ggz00900000000000000build ggz-python-0.0.9/pyggzdmod/README.pyggzdmod0000644000175300017530000000145510076351224020612 0ustar ggz009ggz00900000000000000About PyGGZDMod ============== PyGGZDMod is the python wrapper for the libggzdmod library, which is used by most GGZ Gaming Zone game servers. Its functionality includes setting up the connection, informing the server about player join/leave events, and querying the seat usage. Also some kind of database support will be provided, it's currently being developed for the C library, for game statistics and such. To install PyGGZDMod: python setup.py build python setup.py install (needs root access) For library documentation please refer to the C header file ggz_server.h. This is the content of PyGGZDMod: src/ - module source and test file (test.py) civil/ - preliminary civil support tictactoe/ - Upcoming GGZ TicTacToe server (drop-in replacement) Thanks to #pygame for the improved setup file. Josef ggz-python-0.0.9/pyggzdmod/setup.py.in0000644000175300017530000000113710076351224020043 0ustar ggz009ggz00900000000000000# Python wrapper module for a GGZ library for use with distutils # # Compilation: python setup.py build # Installation: python setup.py install [--prefix=] from distutils.core import setup, Extension setup( name = "GGZDMod", version = "0.2", author = "Josef Spillner", author_email = "josef@ggzgamingzone.org", url = "http://www.ggzgamingzone.org", ext_modules = [ Extension('ggzdmod', ['src/pyggzdmod_init.c'], library_dirs = ["@ggzdmod_libraries@"], libraries = ['ggzdmod', 'ggz'], include_dirs = ["@ggzdmod_includes@"]) ] ) ggz-python-0.0.9/pyggzmod/0000755000175300017530000000000010076351225015557 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzmod/src/0000755000175300017530000000000010076351225016346 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/pyggzmod/src/pyggzmod_init.c0000644000175300017530000003062510076351224021402 0ustar ggz009ggz00900000000000000/**********************************************/ /* */ /* PyGGZMod - Python wrapper for libggzmod */ /* Copyright (C) 2003 Josef Spillner */ /* josef@ggzgamingzone.org */ /* Published under GNU GPL conditions */ /* */ /**********************************************/ /**********************************************/ /* Include files */ /**********************************************/ #include #include /**********************************************/ /* Function prototypes */ /**********************************************/ static void pyggzmod_cb_server_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data); static void pyggzmod_cb_player_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data); static void pyggzmod_cb_seat_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data); static void pyggzmod_cb_spectatorseat_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data); static void pyggzmod_cb_error_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data); static void pyggzmod_cb_state_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data); /**********************************************/ /* Global variables */ /**********************************************/ static GGZMod *ggzmod; static PyObject *pyggzmod_cb_server = NULL; static PyObject *pyggzmod_cb_player = NULL; static PyObject *pyggzmod_cb_seat = NULL; static PyObject *pyggzmod_cb_spectatorseat = NULL; static PyObject *pyggzmod_cb_error = NULL; static PyObject *pyggzmod_cb_state = NULL; /**********************************************/ /* GGZDMod object methods just like in C */ /**********************************************/ static PyObject *pyggzmod_get_fd(PyObject *self, PyObject *args) { int fd; if(!PyArg_ParseTuple(args, "")) return NULL; fd = ggzmod_get_fd(ggzmod); return Py_BuildValue("i", fd); } static PyObject *pyggzmod_get_type(PyObject *self, PyObject *args) { GGZModType type; if(!PyArg_ParseTuple(args, "")) return NULL; type = ggzmod_get_type(ggzmod); return Py_BuildValue("i", type); } static PyObject *pyggzmod_get_state(PyObject *self, PyObject *args) { GGZModState state; if(!PyArg_ParseTuple(args, "")) return NULL; state = ggzmod_get_state(ggzmod); return Py_BuildValue("i", state); } /*static PyObject *pyggzmod_get_server_fd(PyObject *self, PyObject *args) { int serverfd; if(!PyArg_ParseTuple(args, "")) return NULL; serverfd = ggzmod_get_server_fd(ggzmod); return Py_BuildValue("i", serverfd); }*/ static PyObject *pyggzmod_get_num_seats(PyObject *self, PyObject *args) { int seats; if(!PyArg_ParseTuple(args, "")) return NULL; seats = ggzmod_get_num_seats(ggzmod); return Py_BuildValue("i", seats); } static PyObject *pyggzmod_get_num_spectator_seats(PyObject *self, PyObject *args) { int spectatorseats; if(!PyArg_ParseTuple(args, "")) return NULL; spectatorseats = ggzmod_get_num_spectator_seats(ggzmod); return Py_BuildValue("i", spectatorseats); } static PyObject *pyggzmod_get_player(PyObject *self, PyObject *args) { const char *player; int *seat = NULL; int *spectator = NULL; if(!PyArg_ParseTuple(args, "OO", spectator, seat)) return NULL; player = ggzmod_get_player(ggzmod, spectator, seat); return Py_BuildValue("s", player); } static PyObject *pyggzmod_dispatch(PyObject *self, PyObject *args) { int dispatch; if(!PyArg_ParseTuple(args, "")) return NULL; dispatch = ggzmod_dispatch(ggzmod); return Py_BuildValue("i", dispatch); } static PyObject *pyggzmod_set_state(PyObject *self, PyObject *args) { int state; int ret; if(!PyArg_ParseTuple(args, "i", &state)) return NULL; ret = ggzmod_set_state(ggzmod, state); return Py_BuildValue("i", ret); } static PyObject *pyggzmod_connect(PyObject *self, PyObject *args) { int connect; if(!PyArg_ParseTuple(args, "")) return NULL; connect = ggzmod_connect(ggzmod); return Py_BuildValue("i", connect); } static PyObject *pyggzmod_disconnect(PyObject *self, PyObject *args) { int disconnect; if(!PyArg_ParseTuple(args, "")) return NULL; disconnect = ggzmod_disconnect(ggzmod); return Py_BuildValue("i", disconnect); } static PyObject *pyggzmod_get_seat_num(PyObject *self, PyObject *args) { unsigned int num; int seat; if(!PyArg_ParseTuple(args, "i", &seat)) return NULL; num = ggzmod_get_seat(ggzmod, seat).num; return Py_BuildValue("i", num); } static PyObject *pyggzmod_get_seat_type(PyObject *self, PyObject *args) { GGZSeatType type; int seat; if(!PyArg_ParseTuple(args, "i", &seat)) return NULL; type = ggzmod_get_seat(ggzmod, seat).type; return Py_BuildValue("i", type); } static PyObject *pyggzmod_get_seat_name(PyObject *self, PyObject *args) { const char *name; int seat; if(!PyArg_ParseTuple(args, "i", &seat)) return NULL; name = ggzmod_get_seat(ggzmod, seat).name; return Py_BuildValue("s", name); } static PyObject *pyggzmod_get_spectator_seat_num(PyObject *self, PyObject *args) { unsigned int num; int seat; if(!PyArg_ParseTuple(args, "i", &seat)) return NULL; num = ggzmod_get_spectator_seat(ggzmod, seat).num; return Py_BuildValue("i", num); } static PyObject *pyggzmod_get_spectator_seat_name(PyObject *self, PyObject *args) { const char *name; int seat; if(!PyArg_ParseTuple(args, "i", &seat)) return NULL; name = ggzmod_get_spectator_seat(ggzmod, seat).name; return Py_BuildValue("s", name); } static PyObject *pyggzmod_autonetwork(PyObject *self, PyObject *args) { int networked; int ret, actualret; int maxfd; fd_set set; struct timeval tv; int serverfd; int gamefd; if(!PyArg_ParseTuple(args, "ii", &networked, &gamefd)) return NULL; FD_ZERO(&set); serverfd = ggzmod_get_fd(ggzmod); FD_SET(serverfd, &set); maxfd = serverfd; if(gamefd >= 0) { FD_SET(gamefd, &set); if(gamefd > maxfd) maxfd = gamefd; } tv.tv_sec = 0; tv.tv_usec = 0; ret = select(maxfd + 1, &set, NULL, NULL, &tv); actualret = 0; if(ret) { if(gamefd >= 0) { if(FD_ISSET(gamefd, &set)) /*game_handle_io()*/actualret |= 1; } if(FD_ISSET(serverfd, &set)) /*handle_ggz()*/actualret |= 2; } return Py_BuildValue("i", actualret); } /* (ggzmod_get_seat) */ /* (ggzmod_get_spectator_seat) */ /* (ggzmod_get_player) */ /* ggzmod_request_stand */ /* ggzmod_request_sit */ /* ggzmod_request_boot */ /* ggzmod_request_bot */ /* ggzmod_request_open */ static PyObject *pyggzmod_set_handler(PyObject *self, PyObject *args) { int id; PyObject *result = NULL; PyObject *temp; if(!PyArg_ParseTuple(args, "iO", &id, &temp)) return NULL; Py_XINCREF(temp); switch(id) { case GGZMOD_EVENT_SERVER: Py_XDECREF(pyggzmod_cb_server); pyggzmod_cb_server = temp; ggzmod_set_handler(ggzmod, GGZMOD_EVENT_SERVER, pyggzmod_cb_server_hook); break; case GGZMOD_EVENT_PLAYER: Py_XDECREF(pyggzmod_cb_player); pyggzmod_cb_player = temp; ggzmod_set_handler(ggzmod, GGZMOD_EVENT_PLAYER, pyggzmod_cb_player_hook); break; case GGZMOD_EVENT_SEAT: Py_XDECREF(pyggzmod_cb_seat); pyggzmod_cb_seat = temp; ggzmod_set_handler(ggzmod, GGZMOD_EVENT_SEAT, pyggzmod_cb_seat_hook); break; case GGZMOD_EVENT_SPECTATOR_SEAT: Py_XDECREF(pyggzmod_cb_spectatorseat); pyggzmod_cb_spectatorseat = temp; ggzmod_set_handler(ggzmod, GGZMOD_EVENT_SPECTATOR_SEAT, pyggzmod_cb_spectatorseat_hook); break; case GGZMOD_EVENT_ERROR: Py_XDECREF(pyggzmod_cb_error); pyggzmod_cb_error = temp; ggzmod_set_handler(ggzmod, GGZMOD_EVENT_ERROR, pyggzmod_cb_error_hook); break; case GGZMOD_EVENT_STATE: Py_XDECREF(pyggzmod_cb_state); pyggzmod_cb_state = temp; ggzmod_set_handler(ggzmod, GGZMOD_EVENT_STATE, pyggzmod_cb_state_hook); break; } Py_INCREF(Py_None); result = Py_None; return result; } /**********************************************/ /* Function lookup table */ /**********************************************/ static PyMethodDef pyggzmod_methods[] = { {"getFd", pyggzmod_get_fd, METH_VARARGS}, {"getType", pyggzmod_get_type, METH_VARARGS}, {"getState", pyggzmod_get_state, METH_VARARGS}, /*{"getServerFd", pyggzmod_get_server_fd, METH_VARARGS},*/ {"getNumSeats", pyggzmod_get_num_seats, METH_VARARGS}, {"getNumSpectatorSeats", pyggzmod_get_num_spectator_seats, METH_VARARGS}, {"getSeatNum", pyggzmod_get_seat_num, METH_VARARGS}, {"getSeatType", pyggzmod_get_seat_type, METH_VARARGS}, {"getSeatName", pyggzmod_get_seat_name, METH_VARARGS}, {"getSpectatorSeatNum", pyggzmod_get_spectator_seat_num, METH_VARARGS}, {"getSpectatorSeatName", pyggzmod_get_spectator_seat_name, METH_VARARGS}, {"getPlayer", pyggzmod_get_player, METH_VARARGS}, {"dispatch", pyggzmod_dispatch, METH_VARARGS}, {"setState", pyggzmod_set_state, METH_VARARGS}, {"connect", pyggzmod_connect, METH_VARARGS}, {"disconnect", pyggzmod_disconnect, METH_VARARGS}, {"setHandler", pyggzmod_set_handler, METH_VARARGS}, {"autonetwork", pyggzmod_autonetwork, METH_VARARGS}, {NULL, NULL} }; /**********************************************/ /* Internal callbacks */ /**********************************************/ void pyggzmod_cb_server_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzmod_cb_server, arg); if(res == NULL) { printf("---------------------------\n"); printf("ERROR in pyggzmod callback!\n"); PyErr_Print(); printf("---------------------------\n"); } Py_DECREF(arg); } void pyggzmod_cb_player_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzmod_cb_player, arg); if(res == NULL) { printf("---------------------------\n"); printf("ERROR in pyggzmod callback!\n"); PyErr_Print(); printf("---------------------------\n"); } Py_DECREF(arg); } void pyggzmod_cb_seat_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzmod_cb_seat, arg); if(res == NULL) { printf("---------------------------\n"); printf("ERROR in pyggzmod callback!\n"); PyErr_Print(); printf("---------------------------\n"); } Py_DECREF(arg); } void pyggzmod_cb_spectatorseat_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzmod_cb_spectatorseat, arg); if(res == NULL) { printf("---------------------------\n"); printf("ERROR in pyggzmod callback!\n"); PyErr_Print(); printf("---------------------------\n"); } Py_DECREF(arg); } void pyggzmod_cb_error_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("(i)", *(int*)handler_data); res = PyEval_CallObject(pyggzmod_cb_error, arg); if(res == NULL) { printf("---------------------------\n"); printf("ERROR in pyggzmod callback!\n"); PyErr_Print(); printf("---------------------------\n"); } Py_DECREF(arg); } void pyggzmod_cb_state_hook(GGZMod *ggzmod, GGZModEvent event, void *handler_data) { PyObject *arg, *res; arg = Py_BuildValue("()"); res = PyEval_CallObject(pyggzmod_cb_state, arg); if(res == NULL) { printf("---------------------------\n"); printf("ERROR in pyggzmod callback!\n"); PyErr_Print(); printf("---------------------------\n"); } Py_DECREF(arg); } /**********************************************/ /* Initialization code and constants */ /**********************************************/ void initggzmod(void) { PyObject *mod; mod = Py_InitModule("ggzmod", pyggzmod_methods); PyModule_AddIntConstant(mod, "GGZ", GGZMOD_GGZ); PyModule_AddIntConstant(mod, "GAME", GGZMOD_GAME); PyModule_AddIntConstant(mod, "STATE_CREATED", GGZMOD_STATE_CREATED); PyModule_AddIntConstant(mod, "STATE_WAITING", GGZMOD_STATE_WAITING); PyModule_AddIntConstant(mod, "STATE_PLAYING", GGZMOD_STATE_PLAYING); PyModule_AddIntConstant(mod, "STATE_DONE", GGZMOD_STATE_DONE); PyModule_AddIntConstant(mod, "EVENT_STATE", GGZMOD_EVENT_STATE); PyModule_AddIntConstant(mod, "EVENT_SERVER", GGZMOD_EVENT_SERVER); PyModule_AddIntConstant(mod, "EVENT_PLAYER", GGZMOD_EVENT_PLAYER); PyModule_AddIntConstant(mod, "EVENT_SEAT", GGZMOD_EVENT_SEAT); PyModule_AddIntConstant(mod, "EVENT_SPECTATOR_SEAT", GGZMOD_EVENT_SPECTATOR_SEAT); PyModule_AddIntConstant(mod, "EVENT_ERROR", GGZMOD_EVENT_ERROR); ggzmod = ggzmod_new(GGZMOD_GAME); } ggz-python-0.0.9/pyggzmod/src/test.py0000755000175300017530000000130010076351224017673 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # # Test game client for the GGZ Gaming Zone # Written in Python import ggzmod def hook_state (): print "* state" def hook_join (seat): print "* join: ", seat print "(Name: " + ggzmod.getPlayerName(seat) + ")" def hook_leave (seat): print "* leave: ", seat print "(Name: " + ggzmod.getPlayerName(seat) + ")" def hook_log (): print "* log" def hook_data (seat): print "* data: ", seat print "(Name: " + ggzmod.getPlayerName(seat) + ")" def hook_error (arg): print "* error" print ">> register callbacks" ggzmod.setHandler(ggzmod.EVENT_STATE, hook_state) print ">> launch the game client" ggzmod.connect() ggzmod.autonetwork(0) #ggzmod.mainLoop() print ">> done." ggz-python-0.0.9/pyggzmod/.cvsignore0000644000175300017530000000000710076351224017553 0ustar ggz009ggz00900000000000000build ggz-python-0.0.9/pyggzmod/README.pyggzmod0000644000175300017530000000015210076351224020273 0ustar ggz009ggz00900000000000000About PyGGZMod ============== Read the PyGGZDmod documentation. Most explanations are identical. Josef ggz-python-0.0.9/pyggzmod/setup.py.in0000644000175300017530000000113110076351224017671 0ustar ggz009ggz00900000000000000# Python wrapper module for a GGZ library for use with distutils # # Compilation: python setup.py build # Installation: python setup.py install [--prefix=] from distutils.core import setup, Extension setup( name = "GGZMod", version = "0.2", author = "Josef Spillner", author_email = "josef@ggzgamingzone.org", url = "http://www.ggzgamingzone.org", ext_modules = [ Extension('ggzmod', ['src/pyggzmod_init.c'], library_dirs = ["@ggzmod_libraries@"], libraries = ['ggzmod', 'ggz'], include_dirs = ["@ggzmod_includes@"]) ] ) ggz-python-0.0.9/vibora/0000755000175300017530000000000010076351225015201 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/vibora/background.png0000644000175300017530000033747310076351224020046 0ustar ggz009ggz00900000000000000PNG  IHDR bKGD pHYs  tIME%7 1 IDATxg$;%heW7oXaXͻWNZrwIss: (dedS-80?o ` nɻKW%_MM/ !c}l_~ix2o!|Sy?(ք4ɿV^VT4wh7C[/yNDso>{ipH4m3D|d]2I 5>/wx` Z+ 37lp)d^ɮ>N6-{O}K 6'?F/>D5!=vi 0~) ަQ=cAKKpp3//#[8$?4HUFɚkVI_ ?/ cgl̩@]@i͗D?(-{z< U6rpLbI(@{z>. WV@Z8}ڂ;VM? 8ǒm ԋݴMQaLcR:*ccAΈiHjq_8.B)]NkVZM}hMy#Vik|$͚,EU稴+Q( |DPrٸc-Sbu3) l=&Pӏ9qG }^ l ߧ9S INgIZXT$,@֗㎳HεT!8mnCTsV]DJ2f{GeV y,p,-$Cib߂|³@706|p5QҒ؁D*~1yN' R%esz_ 4\"J q.h"! 2E.z$ʣ%?ڰG+w)Dbp!g]An|1-:Ɛ hCK"1;@tcHpI,] k"Ta)F]@cBk,({ @M0dQ&] 9(_e"#Er !@ eCV%h_;Q%<{d`hy$#|Q"ȟr, D^/̺ZU$2hm&{HԓzэA: m1 E$ t`l9; @ld)<.oN["XA@NPU;hvXgU% JbI(^MMMC *RUM4Ici5«kFm>}@4)!Ԙhy;E7wݤă+B?p8~l`C$0{"iE8Te{I$ j . Z +R- dC8e$[P,F/jbPHb,V瀺D^p"w1{Dj$Aj;wl`N0jh2yΓn^Cbl6Mn:(A%8(ʋV*oC r~i]I쑬տ8dѩu$Es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*- coding: utf-8 -*- # # GGZ Core Client with SDL fullscreen interface # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions """ Vibora Pygame core client for GGZ """ import ggzcoresimple import pygame, pygame.transform, pygame.image import pygame.surfarray from random import * from math import * from pygame.locals import * from Numeric import * import os, sys CAPTION_ALL = 3 CAPTION_TEXT = 2 CAPTION_BG = 1 SCROLL_UP = 1 SCROLL_DOWN = 2 WHITE = (255, 255, 255) YELLOW = (255, 255, 0) RED = (255, 0, 0) DARKRED = (150, 0, 0) GREEN = (0, 255, 0) DATAPATH = "./" def vibora_background(resolution): granularity = 16 counter = 27 try: bg = pygame.image.load(DATAPATH + "background.png") except: overlay = pygame.Surface((resolution[0] / granularity, resolution[1] / granularity)) for j in range(resolution[1] / granularity): for i in range(resolution[0] / granularity): blue = ((sin(i / 2.0 - counter / 2.0) + cos(j / 2.0 + counter / 2.0)) * 80.0) if blue < 0: blue = 0 if blue > 50: blue = 50 green = 0 red = 0 overlay.fill((red, green, blue), ((i, j), (1, 1))) bg = pygame.transform.scale(overlay, resolution) return bg def vibora_frame(surface, rect): ((x, y), (x2, y2)) = rect w = x2 - x h = y2 - y if 0 == 1: array = pygame.surfarray.pixels2d(surface) for j in range(y, y2, 2): for i in range(x, x2, 2): pixel = array[i, j] pixel = pixel & 0xFF1F array[i, j] = pixel array[i + 1, j] = pixel array[i, j + 1] = pixel array[i + 1, j + 1] = pixel if 1 == 1: surface.lock() for j in range(y, y2): for i in range(x, x2): (red, green, blue, alpha) = surface.get_at((i, j)) blue = blue / 3 if(blue > 30): blue = 30 surface.set_at((i, j), (red, green, blue, alpha)) surface.unlock() surface.fill((255, 255, 255), ((x, y), (w, 1))) surface.fill((255, 255, 255), ((x, y), (1, h))) surface.fill((255, 255, 255), ((x, y2), (w, 1))) surface.fill((255, 255, 255), ((x2, y), (1, h))) def vibora_scrollframe(surface, rect, direction): ((x, y), (x2, y2)) = rect vibora_frame(surface, rect) points = ((x + 3, y2 - 3), ((x2 + x) / 2, y + 3), (x2 - 3, y2 - 3)) if direction == SCROLL_DOWN: points = ((x + 3, y + 3), ((x2 + x) / 2, y2 - 3), (x2 - 3, y + 3)) pygame.draw.polygon(surface, (255, 255, 255), points) def vibora_caption(surface, caption, rect, what, color, line): ((x, y), (x2, y2)) = rect y = y + 20 * line if what & CAPTION_BG: surface.lock() for j in range(y + 1, y + 19): for i in range(x + 1, x2 - 1): (red, green, blue, alpha) = surface.get_at((i, j)) blue = blue + 30 green = green + 30 red = red + 30 if blue > 255: blue = 255 if green > 255: green = 255 if red > 255: red = 255 surface.set_at((i, j), (red, green, blue, alpha)) surface.unlock() if what & CAPTION_TEXT: font = pygame.font.Font(None, 20) text = font.render(caption, 1, color) surface.blit(text, (x + 3, y + 1)) def fits(caption, rect): ((x, y), (x2, y2)) = rect font = pygame.font.Font(None, 20) (w, h) = font.size(caption) if w > (x2 - x) - 6: return 0 return 1 def background_loading(): global screen_logo global screen_loading global screen screen.blit(screen_loading, (100, 10)) screen.blit(screen_logo, (10, 15)) pygame.display.flip() def background_progress(): global screen_resolution global screen_logo global screen_loading global screen global progressrect bg = vibora_background(screen_resolution) progressrect = ((100, 100), (screen_resolution[0] - 100, 300)) vibora_frame(bg, progressrect) vibora_caption(bg, "Login progress:", progressrect, CAPTION_ALL, WHITE, 0) bg.blit(screen_loading, (100, 10)) bg.blit(screen_logo, (10, 15)) screen.blit(bg, (0, 0)) pygame.display.flip() return bg def background_firsttime(): global screen_resolution global screen_logo global screen_loading global screen global progressrect bg = vibora_background(screen_resolution) progressrect = ((100, 100), (screen_resolution[0] - 100, 250)) vibora_frame(bg, progressrect) vibora_caption(bg, "First-time setup:", progressrect, CAPTION_ALL, WHITE, 0) bg.blit(screen_loading, (100, 10)) bg.blit(screen_logo, (10, 15)) screen.blit(bg, (0, 0)) pygame.display.flip() return bg def firsttime(): global progressrect global bg global screen global username global password username = "" password = "" firstlogin = "" inputready = 0 bgdirty = 1 try: os.mkdir(os.getenv("HOME") + "/.ggz") except: pass try: f = file(os.getenv("HOME") + "/.ggz/vibora.rc", "r") while 1: line = f.readline() if line == "": break (key, value) = line.split("=") value = value[:-1] if key == "username": username = value elif key == "password": password = value elif key == "firstlogin": firstlogin = value f.close() except: pass if firstlogin == "false": return 1 bg = background_firsttime() bgshadow = pygame.Surface(screen_resolution) while inputready < 2: pygame.event.pump() event = pygame.event.poll() if event.type == KEYDOWN: key = event.key if key == K_RETURN: inputready += 1 bgdirty = 1 elif key == K_ESCAPE: return -1 elif key == K_BACKSPACE: if inputready == 0: username = username[:-1] else: password = password[:-1] bgdirty = 10 else: if inputready == 0: username += event.unicode else: password += event.unicode bgdirty = 10 if bgdirty == 1: bgshadow.blit(bg, (0, 0)) vibora_caption(bgshadow, "* Username (can be registered at rankings.ggzgamingzone.org)", progressrect, CAPTION_ALL, YELLOW, 1) if username: vibora_caption(bgshadow, username, progressrect, CAPTION_ALL, GREEN, 2) if inputready > 0: vibora_caption(bgshadow, "* Password (empty for guest accounts)", progressrect, CAPTION_ALL, YELLOW, 3) if password: passwordsecret = "" for c in password: passwordsecret += "*" vibora_caption(bgshadow, passwordsecret, progressrect, CAPTION_ALL, GREEN, 4) if inputready == 2: vibora_caption(bgshadow, "* Data saved", progressrect, CAPTION_ALL, YELLOW, 5) screen.blit(bgshadow, (0, 0)) pygame.display.flip() if bgdirty > 0: bgdirty -= 1 f = file(os.getenv("HOME") + "/.ggz/vibora.rc", "w") f.write("username=" + username + "\n") f.write("password=" + password + "\n") f.close() return 1 def background_problem(): global screen_resolution global screen_logo global screen_problem global screen bg = vibora_background(screen_resolution) msgrect = ((100, 100), (screen_resolution[0] - 100, screen_resolution[1] - 90)) vibora_frame(bg, msgrect) vibora_caption(bg, "Message:", msgrect, CAPTION_ALL, WHITE, 0) bg.blit(screen_problem, (100, 10)) bg.blit(screen_logo, (10, 15)) screen.blit(bg, (0, 0)) pygame.display.flip() def background_chat(): global screen_resolution global screen_logo global screen_caption global screen global chatscrolluprect, chatscrolldownrect, roomscrolluprect, roomscrolldownrect global chatrect, roomrect, chatlinerect global roomwidth bg = vibora_background(screen_resolution) roomwidth = 300 resolution = screen_resolution chatrect = ((100, 100), (resolution[0] - roomwidth, resolution[1] - 90)) roomrect = ((resolution[0] - (roomwidth - 20), 100), (resolution[0] - 100, resolution[1] - 50)) chatlinerect = ((100, resolution[1] - 70), (resolution[0] - roomwidth, resolution[1] - 50)) chatscrolluprect = ((60, 100), (80, 120)) chatscrolldownrect = ((60, 140), (80, 160)) roomscrolluprect = ((resolution[0] - 80, 100), (resolution[0] - 60, 120)) roomscrolldownrect = ((resolution[0] - 80, 140), (resolution[0] - 60, 160)) vibora_frame(bg, chatrect) vibora_frame(bg, chatlinerect) vibora_frame(bg, roomrect) vibora_caption(bg, "Chat", chatrect, CAPTION_ALL, WHITE, 0) bigfont = pygame.font.Font(None, 48) roomname = ggzcoresimple.room.get_name() screen_caption = bigfont.render("GGZ Gaming Zone: " + roomname, 1, (255, 255, 255)) bg.blit(screen_caption, (100, 10)) bg.blit(screen_logo, (10, 15)) screen.blit(bg, (0, 0)) pygame.display.flip() return bg def ggz_game_event(id, data): pass def ggz_room_event(id, data): global chatoutput global bg_dirty global playerlist global tablelist if id == ggzcoresimple.ROOM_CHAT_EVENT: type = data[0] player = data[1] message = data[2] chatoutput.append(player + ": " + message) bg_dirty = 1 elif id == ggzcoresimple.ROOM_TABLE_LIST: tablelist = data bg_dirty = 1 elif id == ggzcoresimple.ROOM_PLAYER_LIST: playerlist = data bg_dirty = 1 elif id == ggzcoresimple.ROOM_TABLE_UPDATE: tablelist = data bg_dirty = 1 elif id == ggzcoresimple.ROOM_ENTER: #tablelist = data bg_dirty = 1 elif id == ggzcoresimple.ROOM_LEAVE: #tablelist = data bg_dirty = 1 def ggz_server_event(id, data): global progressrect global bg global ggzready global roomlist global bg_dirty global chatoutput global username global playerlist global tablelist if id == ggzcoresimple.SERVER_CONNECTED: vibora_caption(bg, "* Connected!", progressrect, CAPTION_ALL, GREEN, 2) elif id == ggzcoresimple.SERVER_CONNECT_FAIL: vibora_caption(bg, "* Failure!", progressrect, CAPTION_ALL, RED, 2) ggzready = -1 elif id == ggzcoresimple.SERVER_NEGOTIATED: vibora_caption(bg, "* Logging in as " + username, progressrect, CAPTION_ALL, YELLOW, 3) ggzcoresimple.server.login() elif id == ggzcoresimple.SERVER_LOGGED_IN: vibora_caption(bg, "* Logged in!", progressrect, CAPTION_ALL, GREEN, 4) elif id == ggzcoresimple.SERVER_ROOM_LIST: roomlist = data vibora_caption(bg, "* Entering the lounge", progressrect, CAPTION_ALL, YELLOW, 5) ggzcoresimple.server.join_room("Lounge") elif id == ggzcoresimple.SERVER_ENTERED: if ggzready == 0: vibora_caption(bg, "* Entered!", progressrect, CAPTION_ALL, GREEN, 6) ggzready = 1 else: chatoutput.append("* Entered!") playerlist = "" tablelist = "" elif id == ggzcoresimple.SERVER_ENTER_FAIL: vibora_caption(bg, "* Failure!", progressrect, CAPTION_ALL, RED, 6) ggzready = -1 elif id == ggzcoresimple.SERVER_LOGIN_FAIL: vibora_caption(bg, "* Failure!", progressrect, CAPTION_ALL, RED, 4) ggzready = -1 if ggzready < 2: screen.blit(bg, (0, 0)) pygame.display.flip() if ggzready == 1: ggzready = 2 else: bg_dirty = 1 def readenterkey(): while 1: pygame.event.pump() event = pygame.event.poll() if event.type == KEYDOWN: key = event.key if key == K_RETURN: return if key == K_ESCAPE: return def ggz_progress(host): global progressrect global bg global ggzready global username global password ggzready = 0 ggzcoresimple.setHandler(ggzcoresimple.EVENT_SERVER, ggz_server_event) ggzcoresimple.setHandler(ggzcoresimple.EVENT_ROOM, ggz_room_event) ggzcoresimple.setHandler(ggzcoresimple.EVENT_GAME, ggz_game_event) ggzcoresimple.server.set_hostinfo(host, 5688, 1) if password: ggzcoresimple.server.set_logininfo(ggzcoresimple.LOGIN, username, password) else: ggzcoresimple.server.set_logininfo(ggzcoresimple.LOGIN_GUEST, username, "") vibora_caption(bg, "* Connecting to " + host, progressrect, CAPTION_ALL, YELLOW, 1) screen.blit(bg, (0, 0)) pygame.display.flip() ggzcoresimple.server.connect() while not ggzready: pygame.event.pump() event = pygame.event.poll() if event.type == KEYDOWN: key = event.key if key == K_ESCAPE: vibora_caption(bg, "* User interrupt!", progressrect, CAPTION_ALL, RED, 2) ggzready = -1 screen.blit(bg, (0, 0)) pygame.display.flip() ggzcoresimple.server.process() if ggzready == -1: readenterkey() return ggzready def main(host): global screen_resolution global screen_problem global screen_caption global screen_loading global screen_logo global screen global chatscrolluprect, chatscrolldownrect, roomscrolluprect, roomscrolldownrect global chatrect, roomrect, chatlinerect global progressrect global roomwidth global bg global chatoutput global roomlist global bg_dirty global playerlist global tablelist global tablerects """ Initialization """ screen_resolution = (1024, 768) #resolution = (640, 480) pygame.init() pygame.display.set_caption("GGZ Gaming Zone (Vibora Client)") screen = pygame.display.set_mode(screen_resolution, HWSURFACE | DOUBLEBUF | FULLSCREEN) bigfont = pygame.font.Font(None, 48) font = pygame.font.Font(None, 20) smallfont = pygame.font.Font(None, 14) screen_loading = bigfont.render(unicode("Loading Víbora 0.0.1 (GGZ 0.0.9)...", "utf-8"), 1, (255, 255, 255)) screen_problem = bigfont.render("Problem!", 1, (255, 255, 255)) screen_caption = bigfont.render("GGZ Gaming Zone: Lounge", 1, (255, 255, 255)) screen_logo = pygame.image.load(DATAPATH + "logo.png") clock = pygame.time.Clock() """ Intro screen """ background_loading() clock.tick() chatoutput = [] tablerects = [] roomlist = [] startroom = 0 """ Username/password entry on first startup """ ret = firsttime() if ret < 0: return """ Progress """ bg = background_progress() ret = ggz_progress(host) if ret < 0: return #""" Simulate problem """ #background_problem() """ Create background """ bg = background_chat() chatline = "" #chatoutput = ["Hello", "World"] #roomlist = ["TicTacToe (0)", "NetSpades (3)"] bg_dirty = 1 bgshadow = pygame.Surface(screen_resolution) switchto_room = -1 switchto_table = -1 current_room = 0 maxline = (screen_resolution[1] - 50 - 100) / 20 if (screen_resolution[1] - 50 - 100) % 20 > 0: maxline = maxline - 1 maxchatline = (screen_resolution[1] - 120 - 100) / 20 if (screen_resolution[1] - 120 - 100) % 20 > 0: maxchatline = maxchatline - 1 """ Main loop """ while 1: oldchatline = chatline dchatline = "" ggzcoresimple.server.process() pygame.event.pump() while 1: event = pygame.event.poll() if event.type == NOEVENT: break if event.type == QUIT: return if event.type == MOUSEBUTTONDOWN: (x, y) = event.pos ((rx, ry), (rx2, ry2)) = roomrect if x > rx and x < rx2 and y > ry and y < ry2: line = (y - ry) / 20 if line == maxline: return if line > 0 and line < maxline - 1: if current_room == 0: switchto_room = line + startroom - 1 else: if line < maxline - 2: i = 0 for r in tablerects: (ypos, yheight) = r if y >= ypos and y <= ypos + yheight: switchto_table = i i += 1 if line == maxline - 1: if current_room != 0: switchto_room = 0 ((rx, ry), (rx2, ry2)) = roomscrolluprect if x > rx and x < rx2 and y > ry and y < ry2: if startroom > 0: startroom -= 1 bg_dirty = 1 ((rx, ry), (rx2, ry2)) = roomscrolldownrect if x > rx and x < rx2 and y > ry and y < ry2: if startroom < len(roomlist) - 1: startroom += 1 bg_dirty = 1 if event.type == KEYDOWN: key = event.key #print event, pygame.key.name(key) if key == K_ESCAPE: return elif key == K_RETURN: if chatline != "": ggzcoresimple.room.chat(ggzcoresimple.CHAT_NORMAL, "", chatline) #chatoutput.append(chatline) chatline = "" bg_dirty = 1 elif key == K_SPACE: chatline += " " elif key == K_TAB: ignore = 1 elif key == K_BACKSPACE: chatline = chatline[:-1] bg_dirty = 1 else: chatline += event.unicode if chatline != oldchatline: if oldchatline == "": bg_dirty = 1 dchatline = chatline while not fits(dchatline, chatlinerect): dchatline = dchatline[1:] bg_dirty = 1 if switchto_room >= 0: chatoutput.append("* Entering room " + roomlist[switchto_room]) ggzcoresimple.server.join_room(roomlist[switchto_room]) current_room = switchto_room switchto_room = -1 #bg_dirty = 1 playerlist = "" tablelist = "" if switchto_table >= 0: chatoutput.append("* Joining table " + str(switchto_table)) ggzcoresimple.room.join(switchto_table) switchto_table = -1 bg_dirty = 1 if bg_dirty: bgshadow.blit(bg, (0, 0)) vibora_scrollframe(bgshadow, chatscrolluprect, SCROLL_UP) vibora_scrollframe(bgshadow, chatscrolldownrect, SCROLL_DOWN) vibora_scrollframe(bgshadow, roomscrolluprect, SCROLL_UP) vibora_scrollframe(bgshadow, roomscrolldownrect, SCROLL_DOWN) if current_room != 0: vibora_caption(bgshadow, "Players and Tables", roomrect, CAPTION_ALL, WHITE, 0) else: vibora_caption(bgshadow, "Rooms", roomrect, CAPTION_ALL, WHITE, 0) if chatline != "": vibora_caption(bgshadow, chatline, chatlinerect, CAPTION_BG, YELLOW, 0) i = len(chatoutput) j = 0 tmp = [] for l in chatoutput: tmp.append(l) tmp.reverse() ((x, y), (x2, y2)) = chatrect for line in tmp: (w, h) = font.size(line) i = i - 1 j = j + w / (x2 - x) + 1 if j > maxchatline: i = i + 1 break j = 1 while i < len(chatoutput): line = chatoutput[i] while len(line) > 0: tmpline = line (w, h) = font.size(tmpline) while w > x2 - x: tmpline = tmpline[:-1] (w, h) = font.size(tmpline) vibora_caption(bgshadow, tmpline, chatrect, CAPTION_ALL, YELLOW, j) j = j + 1 line = line[len(tmpline):] i = i + 1 if current_room == 0: i = 0 for line in roomlist: if i >= startroom: vibora_caption(bgshadow, line, roomrect, CAPTION_ALL, RED, i - startroom + 1) i = i + 1 if i == 27 + startroom: break else: base = 150 tableplayers = [] if len(tablelist) > 0: index = 0 tablerects = [] while index < len(tablelist): (tablename, playercount) = tablelist[index] if not tablename: tablename = "Table (untitled)" else: tablename = "Table " + tablename tablerects.append((base, 30 + 10 * playercount)) rect = ((screen_resolution[0] - (roomwidth - 20) + 20, base), (roomwidth - 20 - 100 - 20 * 2, 30 + 10 * playercount)) pygame.draw.rect(bgshadow, (55, 150, 127), rect) titletext = smallfont.render(tablename, 1, (255, 255, 255)) bgshadow.blit(titletext, (screen_resolution[0] - (roomwidth - 20) + 20 + 3, base + 1)) i = 2 for j in range(index + 1, index + 1 + playercount): player = tablelist[index + j] tableplayers.append(player) if player == "": player == "(open)" name = smallfont.render(player, 1, (255, 255, 255)) if i % 2 == 0: bgshadow.blit(name, (screen_resolution[0] - (roomwidth - 20) + 20 + 3, base + i * 10 + 1)) else: w = name.get_width() bgshadow.blit(name, (screen_resolution[0] - 100 - 20 * 2 - w + 3, base + i * 10 + 1)) i = i + 1 base += 20 + 20 * playercount + 10 index += playercount + 1 if len(playerlist) > 0: players = [] for p in playerlist: (name, status) = p if name not in tableplayers: namestr = name if status == "guest": namestr += " (guest)" elif status == "admin": namestr += " (admin)" elif status == "bot": namestr += " (bot)" players.append(namestr) rect = ((screen_resolution[0] - (roomwidth - 20) + 20, base), (roomwidth - 20 - 100 - 20 * 2, 30 + 10 * len(players))) pygame.draw.rect(bgshadow, (155, 150, 127), rect) titletext = smallfont.render("Not playing", 1, (255, 255, 255)) bgshadow.blit(titletext, (screen_resolution[0] - (roomwidth - 20) + 20 + 3, base + 1)) i = 2 for player in players: name = smallfont.render(player, 1, (255, 255, 255)) bgshadow.blit(name, (screen_resolution[0] - (roomwidth - 20) + 20 + 3, base + i * 10 + 1)) i = i + 1 i = maxline - 2 vibora_caption(bgshadow, "Launch new game", roomrect, CAPTION_ALL, DARKRED, i) i = maxline - 1 vibora_caption(bgshadow, "Back to Lounge", roomrect, CAPTION_ALL, RED, i) i = maxline vibora_caption(bgshadow, "Logout", roomrect, CAPTION_ALL, RED, i) bg_dirty = 0 screen.blit(bgshadow, (0, 0)) fps = "Fps: " + str(int(clock.get_fps() * 10) / 10.0) state = "State: offline" lag = "Lag: " + str(0) subcaption = font.render(state + " " + lag + " " + fps, 1, (255, 255, 255)) screen.blit(subcaption, (100, 50)) if dchatline != "": vibora_caption(bgshadow, dchatline, chatlinerect, CAPTION_TEXT, YELLOW, 0) pygame.display.flip() clock.tick() if __name__ == '__main__': host = None if len(sys.argv) == 2: host = sys.argv[1] if not host: host = "live.ggzgamingzone.org" main(host) ggz-python-0.0.9/xadrez-chines/0000755000175300017530000000000010076351225016463 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/xadrez-chines/.cvsignore0000644000175300017530000000006310076351225020462 0ustar ggz009ggz00900000000000000module.dsc xadrez-chines-server.dsc xadrezlib.pyc ggz-python-0.0.9/xadrez-chines/Makefile0000644000175300017530000000066210076351225020127 0ustar ggz009ggz00900000000000000all: @echo "Run 'make install'." install: mkdir -p /usr/local/share/ggz/xadrez-chines/ cp *.png /usr/local/share/ggz/xadrez-chines/ /usr/local/bin/ggz-config --install --force --modfile=module.dsc cp xadrez-chines /usr/local/bin/ cp xadrez-chines-server.dsc /usr/local/etc/ggzd/games/ cp xadrez-chines-server.room /usr/local/etc/ggzd/rooms/ cp xadrez-chines-server /usr/local/bin/ cp xadrezlib.py /usr/local/lib/python2.3/ ggz-python-0.0.9/xadrez-chines/bishop.png0000644000175300017530000000152310076351225020456 0ustar ggz009ggz00900000000000000PNG  IHDR szzbKGD pHYs  tIMEs tEXtCommentCreated with The GIMPd%nIDATxW1h"A}HX !ͥ6[UGٚ"f@ 2X4 I{*&iDM   "5d5lֻfKV|f @ @@KA*-Ca}~6tGL&̦Yge X*ܒ:"I5s.s;ۙ7Nz׊L Kn&دT*h6h6vnIp8d2d4[ _f{{{ބinz}n2iF]?Sm 6u]ʊcD"Ap vww0H :NJ9 M( ( 2"{:.4yrrBUU]kc28x#Ej:鴝=!AV6b&cv Nn$jKrLӎBt$p||EQ*%X ruu!G ɹ}a!=!^Ht,NZ ~7pxBȺt:|zz^Ƿ7a憩Tcqj[!iJorwzɮf-r*D0PIENDB`ggz-python-0.0.9/xadrez-chines/bodyguard.png0000644000175300017530000000165410076351225021157 0ustar ggz009ggz00900000000000000PNG  IHDR szzbKGD pHYs  tIME ksoKtEXtCommentCreated with The GIMPd%nIDATx͗K#Q3> i VvSX`-$VmEAMD%1g5s'{`>s] &"0L!`piWtHXD^ſw>|ʯb65Uﶰbuyy $}yyI>w2 ,*ce166Ύm 8  )D m~h !/@R!%9sgtmwr$H6=~ܳ ksBے뺎hzbr|zpNeVZ(x>>|14M3.[Sf+u{(kUUdhJCF#`00?ìxhX,2 z^__BQuO!`0VNyIB^^ߏBqC'˫~|Ƒ~/$' ֒&Ip@Zv_^^ߑR)V*>==-yfN[*:[&Y<"q3 onnx~~n~;d J҇t{{Mԑ*F:dt^bun.nF^(8͜Q\5$R~DX.S?zԔ|.&;q5SD>z#=awIENDB`ggz-python-0.0.9/xadrez-chines/king.png0000644000175300017530000000244210076351225020123 0ustar ggz009ggz00900000000000000PNG  IHDR szzbKGD pHYs  tIME8r=tEXtCommentCreated with The GIMPd%nIDATxڵWMH[YZhFR aMqUqWAhWE,B݈fJ.#H@q("j|ŐK7y3s»swϽ*hH*AkGG|D@e2N]יfYAyKo/k4M1>~x<c,av0/]0$屴Th JRK {{{B ~HrEE,zx`(c 8fFq~~fx<%B޼yUUgyH描]C>FGG۷o^/ ={VWC=Y) ɛ3 Z[@ iG{.^/"\"xO}HdRK I0ʷo:;)J뷷&"QUX$ ʜiV[ɪj]~ݡO<.VWW%ލ7 S|!{U􈹪AX|^DraTk`,sׯǏ$VUժѱ&PUU1囬f׮]. /\QS4ܔ;;;6r .@ t:F"-omm!Hxxc_" IJ.r5C+I뻻yvvRt:H$Rɛe---H$j D"744T;wi-IrmmMJUj+rTjtLyх84%jcc3Jqssrccgggr;<<䷷i?|&I]q,k(8;;eJ%A&-ǎ4M|R2Ź9ёT$/^T3~ZO`/ZS4B!WOUbMi5MiCmex<{$ok=LWWc~ "j*/zgiV 0>>t:]a{v.8U.y @….IENDB`ggz-python-0.0.9/xadrez-chines/knight.png0000644000175300017530000000145010076351225020455 0ustar ggz009ggz00900000000000000PNG  IHDR szzbKGD pHYs  tIME, 7,tEXtCommentCreated with The GIMPd%nIDATxWjbA=#%Xbcc$ "6[I^ EA@R FB*1$Ղ.VW$5t6:u7 7wF@$ ~Hp@Bv1oqJ~q/i.W&'ڏI>19s|%lh@ulmm!ɨ @Dѳk\.GGSO]וC9ᤔ, BfqqqA)bi$_xg4U&p 8R׹9\.v:y?+Q8(+;$9 L&m!E";l%m?zx|-"4*IZEp84%lv-"MqJp8ٙ鴥ٗ0&nnmWJIMg 8==JBaV@3+Jn[RJ<!cooNs# !~ɗ˩?SgpIENDB`ggz-python-0.0.9/xadrez-chines/module.dsc.in0000644000175300017530000000036110076351225021050 0ustar ggz009ggz00900000000000000[ModuleInfo] Author = Josef Spillner CommandLine = @prefix@/bin/xadrez-chines --ggz Frontend = sdl Homepage = http://www.ggzgamingzone.org/games/xadrezchines/ Name = Xadrez Chines ProtocolEngine = CChess ProtocolVersion = 1 Version = 0.0.1 ggz-python-0.0.9/xadrez-chines/pawn.png0000644000175300017530000000154610076351225020144 0ustar ggz009ggz00900000000000000PNG  IHDR szzbKGD pHYs  tIME:tEXtCommentCreated with The GIMPd%nIDATxWKja~>qC Ip=K5 nAMAKt6q&F Dġ x>to=~$ARPP@]A$=$Hj3-&椧>p" >55A>1xrea| T?o?N|qpapx{{;-6E!,bـ-;VEm,MӦ5` D½p[]XYYARfP$jP'%~+< daT*\__7=8J0U/t H$X,fKH$xuunk} C$I]יdzyttG w@ `{ʃS^SUU(HjjBvQ*P.='qCB|mvooO:V,c'+H&Sh42wwwGB4<==RͬöA\ Gnoo)><<4O#L& XI41Jqmm~4u Q86#;t:pjFR #ɏp;dVUՖ|cccIyI0 198.=Eaٔ=3 Tc{||1 ?U7&%dIENDB`ggz-python-0.0.9/xadrez-chines/rock.png0000644000175300017530000000154310076351225020132 0ustar ggz009ggz00900000000000000PNG  IHDR szzbKGD pHYs  tIME>@5tEXtCommentCreated with The GIMPd%nIDATxW=K#Q=/"j b 6a+Iu@t?&OFHbe"X>H20 !d31gyy1$fb澏s{ ) [W~D i,rtvɱ=nj#GIHrnχ~~~L&çqIdTbaaaH$:u|pLb1qF ^l4%z+++eUVmʜ~ϥ%iz:@o%fYem777ʜFt ^s d #P.]KbtbX LZR60z7M30H'l6l8Nht>FZ%IP{^Cm, fff$q}}j-݄[hZ|{{ kru_⾖auu5@uggkkk(lmmim///:S*7LU*T*iZ[ @X^^֙dۘ+$HOԙB ݝ6ȁ|[tX1WO=<؎}}}x;$a]oqzz:R+Ű,sI6(Js\$r9kER_n$x~~u|B&D0qmSJI)%[V4i/b? 8 AIENDB`ggz-python-0.0.9/xadrez-chines/xadrez-chines0000755000175300017530000002500010076351225021152 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # Client for the Chinese Chess game # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions import pygame import pygame.image from pygame.locals import * from Numeric import * import sys import time import random import os, pwd import re import ggzmod from xadrezlib import * path = sys.argv[0] path = os.path.abspath(path) if path.startswith("/usr/local"): DATAPATH = "/usr/local/share/ggz/xadrez-chines/" elif path.startswith("/usr"): DATAPATH = "/usr/share/ggz/xadrez-chines/" else: DATAPATH = "./" DATAPATH = str("/").join(path.split("/")[:-2]) + "/share/ggz/xadrez-chines/" print "Xadrez Chines: Using data path", DATAPATH def networkprocess(line): global madeturn global humanerror global message global winner global xadrez global aierror print "LINE", line turn = re.compile("your turn") responseok = re.compile("move was ok") responseinvalid = re.compile("move was invalid") responseturn = re.compile("not your turn") move = re.compile("(\S+) moved from (\d+),(\d+) to (\d+),(\d+)") event = re.compile("(\S+) took figure at (\d+),(\d+) from (\S+)") gameover = re.compile("(\S+) won") m = turn.match(line) if m: madeturn = 0 message = "It's your turn" m = responseok.match(line) if m: humanerror = 0 madeturn = 1 message = "" m = responseinvalid.match(line) if m: humanerror = 1 m = responseturn.match(line) if m: pass m = move.match(line) if m: player = m.group(1) x1 = int(m.group(2)) y1 = int(m.group(3)) x2 = int(m.group(4)) y2 = int(m.group(5)) ret = xadrez.validate(x1, y1, x2, y2) if ret != xadrez.proto.move_ok: print "huh? server fubared" aierror = 1 m = event.match(line) if m: player = m.group(1) x1 = int(m.group(2)) y1 = int(m.group(3)) player2 = m.group(4) pass m = gameover.match(line) if m: winner = m.group(1) if winner == "opponent": winner = 2 else: winner = 1 def network(): global net print "network!" message = net.getstring() networkprocess(message) def handle_server(fd): global net ggzmod.setState(ggzmod.STATE_PLAYING) net.gamefd = fd net.init(net.gamefd) def handle_network(): global net networked = 0 if net.gamefd != -1: networked = 1 ret = ggzmod.autonetwork(networked, net.gamefd) if ret == 1 or ret == 3: network() if ret == 2 or ret == 3: ggzmod.dispatch() def main(ggzmode): global net #global surface global madeturn global humanerror global message global winner global xadrez global aierror xadrez = Xadrez() """ Pygame setup """ pygame.init() pygame.display.set_caption("Xadrez Chines/SDL") screen = pygame.display.set_mode((800, 600), DOUBLEBUF) pygame.mouse.set_visible(0) surface = pygame.Surface((800, 600)) """ Game board background """ for i in range(0, 300): x = sin(i / 15.0) * 20 surface.fill((0, abs(i - 150), 150 - abs(150 - i)), ((10, i * 2), (560 + x, 1))) """ Menu """ for i in range(0, 600): x = sin(i / 30.0) * 20 surface.fill((65, 140, 100), ((560 + x + 10, i), (2, 1))) surface.fill((95, 160, 100), ((560 + x + 12, i), (2, 1))) surface.fill((125, 180, 100), ((560 + x + 14, i), (2, 1))) surface.fill((155, 200, 100), ((560 + x + 16, i), (799 - (560 + x + 16) - 10, 1))) surface.fill((65, 140, 100), ((0, i), (10, 1))) surface.fill((65, 140, 100), ((788, i), (10, 1))) """ Menu captions """ font = pygame.font.Font(None, 44) xadrezfont = font.render("XADREZ", 1, (165, 140, 0)) chinesfont = font.render("CHINES", 1, (165, 140, 0)) sdlfont = font.render("SDL", 1, (165, 140, 0)) font2 = pygame.font.Font(None, 70) slashfont = font2.render("/", 1, (165, 140, 0)) surface.blit(xadrezfont, (580, 90)) surface.blit(chinesfont, (580, 120)) surface.blit(sdlfont, (710, 150)) surface.blit(slashfont, (700, 125)) #playernames(surface, username(), "opponent") """ Game stones """ img = {} img['pawn:white'] = pygame.image.load(DATAPATH + "pawn.png") img['bodyguard:white'] = pygame.image.load(DATAPATH + "bodyguard.png") img['bishop:white'] = pygame.image.load(DATAPATH + "bishop.png") img['knight:white'] = pygame.image.load(DATAPATH + "knight.png") img['cannon:white'] = pygame.image.load(DATAPATH + "cannon.png") img['rock:white'] = pygame.image.load(DATAPATH + "rock.png") img['king:white'] = pygame.image.load(DATAPATH + "king.png") alphapix = img['pawn:white'] for pix in img.keys(): (name, white) = pix.split(":") img[name + ':' + 'black'] = pygame.Surface((32, 32), 0, alphapix) for j in range(0, 32): for i in range(0, 32): (red, green, blue, alpha) = img[name + ':' + 'white'].get_at((i, j)) if alpha: red = 255 - red green = 255 - green blue = 255 - blue img[name + ':' + 'black'].set_at((i, j), (red, green, blue, alpha)) """ Points on the game board """ stone = pygame.Surface((16, 16), 0, alphapix) for j in range(0, 16): x = sin(j / 5.0) * 8 stone.fill((255, 255, 255, 30), ((8 - x, j), (2 * x, 1))) startstone = pygame.Surface((24, 24), 0, alphapix) for j in range(0, 24): x = sin(j / 7.5) * 12 startstone.fill((255, 255, 255, 30), ((12 - x, j), (2 * x, 1))) blob = pygame.Surface((32, 32), 0, alphapix) for j in range(0, 32): x = sin(j / 10.0) * 16 blob.fill((255, 255, 255, 30), ((16 - x, j), (2 * x, 1))) blob.fill((255, 255, 255, 100), ((14, 14), (2, 2))) for j in range(0, 11): if j is not 5: for i in range(0, 9): surface.blit(stone, (i * 55 + 40, j * 55 + 20)) for j in (0, 10): for i in range(0, 9): surface.blit(startstone, (i * 55 + 40 - 4, j * 55 + 20 - 4)) for j in (3, 7): for i in range(0, 5): surface.blit(startstone, (i * 2 * 55 + 40 - 4, j * 55 + 20 - 4)) for j in (2, 8): for i in range(0, 2): surface.blit(startstone, (i * 6 * 55 + 55 + 40 - 4, j * 55 + 20 - 4)) """ Frame around points """ vline = pygame.Surface((8, 215)) vline.fill((255, 255, 255)) vline.set_alpha(15, RLEACCEL) hline = pygame.Surface((445, 8)) hline.fill((255, 255, 255)) hline.set_alpha(15, RLEACCEL) shline = pygame.Surface((125, 8)) shline.fill((255, 255, 255)) shline.set_alpha(15, RLEACCEL) svline = pygame.Surface((8, 115)) svline.fill((255, 255, 255)) svline.set_alpha(15, RLEACCEL) surface.blit(vline, (43, 28)) surface.blit(vline, (483, 28)) surface.blit(vline, (43, 360)) surface.blit(vline, (483, 360)) surface.blit(hline, (40, 25)) surface.blit(hline, (40, 573)) surface.blit(hline, (40, 245)) surface.blit(hline, (40, 355)) surface.blit(shline, (205, 135)) surface.blit(shline, (205, 465)) surface.blit(shline, (205, 80)) surface.blit(shline, (205, 520)) surface.blit(svline, (206, 28)) surface.blit(svline, (261, 28)) surface.blit(svline, (316, 28)) surface.blit(svline, (206, 467)) surface.blit(svline, (261, 467)) surface.blit(svline, (316, 467)) """ Network setup """ madeturn = 0 initialization = 0 ggzsuccess = 0 if ggzmode: ggzmod.setHandler(ggzmod.EVENT_SERVER, handle_server) ret = ggzmod.connect() if ret < 0: ggzsuccess = 0 else: ggzsuccess = 1 net = Network() if ggzmode: ggzfont = pygame.font.Font(None, 20) if ggzsuccess: ggz = ggzfont.render("Running on GGZ", 1, (165, 140, 0)) madeturn = 1 initialization = 1 else: ggz = ggzfont.render("GGZ unavailable", 1, (165, 140, 0)) surface.blit(ggz, (580, 160)) """ Main loop """ againturn = 0 aierror = 0 humanerror = 0 gameover = 0 winner = 0 if madeturn == 0: message = "It's your turn" else: message = "Initialization..." mouse = blob pressed = 0 lastpos = (-1, -1) pygame.event.clear() while 1: if ggzsuccess: handle_network() pygame.event.pump() keyinput = pygame.key.get_pressed() if keyinput[K_ESCAPE] or pygame.event.peek(QUIT): break (b1, b2, b3) = pygame.mouse.get_pressed() if b1 and not pressed and not madeturn: (x, y) = pygame.mouse.get_pos() x = (x - 40 + 16) / 55 y = (y - 20 + 16) / 55 if y > 5: y = y - 1 if x >= 0 and x < 9 and y >= 0 and y < 11: (figure, color, options) = xadrez.components(xadrez.field[x][y]) print "got", figure, "of color", color (oldx, oldy) = lastpos print "lastpos:", oldx, oldy if oldx >= 0 and oldy >= 0: if ggzsuccess == 1: frompos = str(oldx) + "," + str(oldy) topos = str(x) + "," + str(y) net.sendstring("move from " + frompos + " to " + topos) message = "Sending move..." else: val = xadrez.validate(oldx, oldy, x, y) if val is not xadrez.proto.move_invalid: madeturn = 1 humanerror = 0 message = "" else: humanerror = 1 lastpos = (-1, -1) else: if figure is not "" and color != xadrez.aicolor(): message = "Where to move to?" lastpos = (x, y) humanerror = 0 pressed = 1 if not b1 and pressed: pressed = 0 screen.blit(surface, (0, 0)) river = 0 for y in range(0, 11): if y == 5: river = 1 for x in range(0, 9): if xadrez.field[x][y] is not "": index = xadrez.field[x][y] if index.count(":") == 2: tmp = index.split(":") index = tmp[0] + ":" + tmp[1] screen.blit(img[index], (x * 55 + 40 - 8, (y + river) * 55 + 20 - 8)) (x, y) = pygame.mouse.get_pos() screen.blit(mouse, (x - 16, y - 16)) if xadrez.winner() != "": message = "" if xadrez.winner() == xadrez.aicolor(): winner = 1 else: winner = 2 if winner: font4 = pygame.font.Font(None, 24) if winner == 2: waiting = font4.render("Game over, you lost", 1, (165, 140, 0)) else: waiting = font4.render("Game over, you won", 1, (165, 140, 0)) screen.blit(waiting, (770 - waiting.get_width(), 400)) gameover = 1 madeturn = 1 if madeturn and not gameover and not initialization: font4 = pygame.font.Font(None, 24) if aierror: waiting = font4.render("AI error, game over", 1, (165, 140, 0)) else: waiting = font4.render("Waiting for opponent", 1, (165, 140, 0)) screen.blit(waiting, (770 - waiting.get_width(), 400)) elif madeturn == 0: initialization = 0 if humanerror: font4 = pygame.font.Font(None, 24) waiting = font4.render("Not allowed, try again", 1, (165, 140, 0)) screen.blit(waiting, (770 - waiting.get_width(), 400)) elif message: font4 = pygame.font.Font(None, 24) waiting = font4.render(message, 1, (165, 140, 0)) screen.blit(waiting, (770 - waiting.get_width(), 400)) pygame.display.flip() if madeturn and not aierror and not gameover and not ggzsuccess: ret = xadrez.ai() if ret == xadrez.proto.move_ok: madeturn = 0 message = "It's your turn" else: aierror = 1 if __name__ == "__main__": if len(sys.argv) == 2 and sys.argv[1] == "--ggz": main(1) else: main(0) ggz-python-0.0.9/xadrez-chines/xadrez-chines-server0000755000175300017530000000565610076351225022475 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # Server for the Chinese Chess game # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions from Numeric import * import sys import time import random import os, pwd import re import ggzdmod from xadrezlib import * def hook_state (state): print "* state:", str(state) def hook_join (num, type, name, fd): print "* join:", num, type, name, fd #print "(Name: " + ggzdmod.getPlayerName(seat) + ")" print "fd =", fd net.init(fd) net.sendstring("your turn") def hook_leave (num, type, name, fd): print "* leave:", num, type, name, fd #print "(Name: " + ggzdmod.getPlayerName(seat) + ")" def hook_log (line): print "* log:", line def hook_data (num, type, name, fd): print "* data:", num, type, name, fd #print "(Name: " + ggzdmod.getPlayerName(seat) + ")" print "fd =", fd net.init(fd) line = net.getstring() move = re.compile("move from (\d+),(\d+) to (\d+),(\d+)") m = move.match(line) if m: x1 = int(m.group(1)) y1 = int(m.group(2)) x2 = int(m.group(3)) y2 = int(m.group(4)) print "DEBUG", "move", x1, y1, x2, y2 ret = xadrez.proto.move_invalid if x1 >= 0 and x1 < 9 and y1 >= 0 and y1 < 11: if x2 >= 0 and x2 < 9 and y2 >= 0 and y2 < 11: (figure, color, options) = xadrez.components(xadrez.field[x1][y1]) print "DEBUG", "color", color, xadrez.aicolor() if color != xadrez.aicolor(): ret = xadrez.validate(x1, y1, x2, y2) if ret == xadrez.proto.move_ok: net.sendstring("move was ok") frompos = str(x1) + "," + str(y1) topos = str(x2) + "," + str(y2) net.sendstring("you moved from " + frompos + " to " + topos) ret = xadrez.ai() # XXX server-side ai error? (x1, y1, x2, y2) = xadrez.aimove() frompos = str(x1) + "," + str(y1) topos = str(x2) + "," + str(y2) net.sendstring("opponent moved from " + frompos + " to " + topos) if xadrez.winner() != "": if xadrez.winner() == xadrez.aicolor(): winner = "you" else: winner = "opponent" net.sendstring(winner + " won") else: net.sendstring("your turn") else: net.sendstring("move was invalid") def hook_error (arg): print "* error:", arg sys.exit(-1) def initggz(): ggzdmod.setHandler(ggzdmod.EVENT_STATE, hook_state) ggzdmod.setHandler(ggzdmod.EVENT_JOIN, hook_join) ggzdmod.setHandler(ggzdmod.EVENT_LEAVE, hook_leave) ggzdmod.setHandler(ggzdmod.EVENT_LOG, hook_log) ggzdmod.setHandler(ggzdmod.EVENT_DATA, hook_data) ggzdmod.setHandler(ggzdmod.EVENT_ERROR, hook_error) def main(): global net global xadrez # global madeturn # global surface # global winner print "### launched" """ Setup """ xadrez = Xadrez() print "### go init ggz" initggz() net = Network() print "### now go loop" ggzdmod.connect() ggzdmod.mainLoop() """ Main loop """ # madeturn = 0 # againturn = 0 # aierror = 0 # humanerror = 0 # gameover = 0 # winner = 0 # message = "" # # lastpos = (-1, -1) while 1: pass if __name__ == "__main__": main() ggz-python-0.0.9/xadrez-chines/xadrez-chines-server.dsc.in0000644000175300017530000000062610076351225023637 0ustar ggz009ggz00900000000000000[GameInfo] Author = Josef Spillner Description = Xadrez Chines Server Homepage = http://www.ggzgamingzone.org/games/xadrezchines/ Name = Chinese Chess Version = 0.0.1 [LaunchInfo] ExecutablePath = @prefix@/bin/xadrez-chines-server --ggz [Protocol] Engine = CChess Version = 1 [TableOptions] AllowLeave = 1 BotsAllowed = 1 PlayersAllowed = 1..2 AllowSpectators = 1 [Statistics] Records = 1 Ratings = 1 ggz-python-0.0.9/xadrez-chines/xadrez-chines-server.room0000644000175300017530000000020210076351225023423 0ustar ggz009ggz00900000000000000[RoomInfo] Name = Xadrez Chines Description = Chinese version of chess GameType = Chinese Chess MaxPlayers = 500 MaxTables = 100 ggz-python-0.0.9/xadrez-chines/xadrez-protocol.txt0000644000175300017530000000105210076351225022356 0ustar ggz009ggz00900000000000000Protocol used by Xadrez Chines ============================== The protocol consists of clear text messages, which are parsed using regular expressions. Client and server assume the same board setup (for now). - server sends move request "your turn" - client sends move "move from 3,4 to 7,5" - server sends response "move was ok" "move was invalid" "not your turn" - server broadcasts move "opponent moved from 3,4 to 7,5" - game events can happen too "opponent took figure at 7,5 from you" - server sends game result "opponent won" ggz-python-0.0.9/xadrez-chines/xadrezlib.py0000755000175300017530000001523710076351225021034 0ustar ggz009ggz00900000000000000#!/usr/bin/env python # Backend library for the Chinese Chess game # Copyright (C) 2004 Josef Spillner # Published under GNU GPL conditions from Numeric import * import random import socket class Network: def __init__(self): self.sock = None self.gamefd = -1 #self.game = Game() def init(self, fd): self.sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM) def getbyte(self): opstr = "" while len(opstr) < 4: tmpstr = self.sock.recv(1) opstr += tmpstr op = ord(opstr[0]) * 256 * 256 * 256 op += ord(opstr[1]) * 256 * 256 op += ord(opstr[2]) * 256 op += ord(opstr[3]) return socket.ntohl(op) def getchar(self): opstr = self.sock.recv(1) op = ord(opstr[0]) return op def getstring(self): length = self.getbyte() opstr = self.sock.recv(length) return opstr def sendbyte(self, byte): nbyte = socket.htonl(byte) c1 = (nbyte >> 24) & 0xFF c2 = (nbyte >> 16) & 0xFF c3 = (nbyte >> 8) & 0xFF c4 = (nbyte >> 0) & 0xFF self.sock.send(chr(c1)) self.sock.send(chr(c2)) self.sock.send(chr(c3)) self.sock.send(chr(c4)) def sendchar(self, char): self.sock.send(chr(char)) def sendstring(self, str): self.sendbyte(len(str)) self.sock.send(str) class Proto: def __init__(self): self.move_invalid = 101 self.move_ok = 102 class Xadrez: def __init__(self): self.proto = Proto() self.field = {} self.setup() self.aicol = "white" self.win = "" self.aituple = () def setaicolor(self, color): self.aicolor = color def aicolor(self): return self.aicol def winner(self): return self.win def ai(self): ret = self.proto.move_invalid tries = 0 while ret == self.proto.move_invalid and tries < 1000: x = random.randint(0, 8) y = random.randint(0, 9) oldx = random.randint(0, 8) oldy = random.randint(0, 9) (figure, color, options) = self.components(self.field[oldx][oldy]) if color == self.aicol: ret = self.validate(oldx, oldy, x, y) tries += 1 if ret == self.proto.move_ok: self.aituple = (oldx, oldy, x, y) return ret def aimove(self): return self.aituple def components(self, fieldcell): if fieldcell.count(":") == 2: (figure, color, options) = fieldcell.split(":") elif fieldcell.count(":") == 1: (figure, color) = fieldcell.split(":") options = "" else: figure = "" color = "" options = "" return (figure, color, options) def validate(self, oldx, oldy, x, y): proto = self.proto field = self.field ret = proto.move_invalid (oldfigure, oldcolor, oldoptions) = self.components(field[oldx][oldy]) print "go with", oldfigure, "of color", oldcolor, "and options", oldoptions (figure, color, options) = self.components(field[x][y]) print "to", figure, "of color", color if oldfigure == "": return proto.move_invalid if oldcolor == color: return proto.move_invalid rivercross = 0 if oldy < 5 and y >= 5: rivercross = 1 if oldy >= 5 and y < 5: rivercross = 1 insidecastle = 0 if (x >= 3 and x <= 5) and (oldx >= 3 and oldx <= 5): if (oldy >= 7 and oldy <= 9) and (oldy >= 7 and oldy <= 9): insidecastle = 1 if (oldy >= 0 and oldy <= 2) and (oldy >= 0 and oldy <= 2): insidecastle = 1 print "try with rivercross", rivercross, "and insidecastle", insidecastle print "figure", oldfigure, "oldx/y", oldx, oldy, "x/y", x, y if oldfigure == "pawn": if rivercross: field[oldx][oldy] = oldfigure + ":" + oldcolor + ":" + oldoptions + ",promoted" if oldcolor == "white": if x == oldx and y == oldy + 1: ret = proto.move_ok if oldcolor == "black": if x == oldx and y == oldy - 1: ret = proto.move_ok if "promoted" in oldoptions: if y == oldy and x == oldx - 1: ret = proto.move_ok if y == oldy and x == oldx + 1: ret = proto.move_ok inbetween = 0 if oldfigure in ("cannon", "rock", "bishop"): len = 0 if abs(y - oldy) < abs(x - oldx): len = x - oldx else: len = y - oldy stepsize = 1 #if oldfigure == "bishop": # stepsize = 2 for i in range(stepsize, abs(len), stepsize): xn = oldx + i * (x - oldx) / abs(len) yn = oldy + i * (y - oldy) / abs(len) print "try", xn, yn (tmpfigure, tmpcolor, tmpoptions) = self.components(field[xn][yn]) if tmpfigure is not "": inbetween += 1 if oldfigure in ("knight"): if abs(x - oldx) == 1 and y - oldy != 0: xn = oldx yn = oldy + (y - oldy) / abs(y - oldy) elif x - oldx != 0: xn = oldx + (x - oldx) / abs(x - oldx) yn = oldy else: xn = oldx yn = oldy print "try", xn, yn (tmpfigure, tmpcolor, tmpoptions) = self.components(field[xn][yn]) if tmpfigure is not "": inbetween = 1 if inbetween == 1: print "figure is blocked!" if oldfigure == "knight": if not inbetween: if abs(oldy - y) == 2 and abs(oldx - x) == 1: ret = proto.move_ok if abs(oldy - y) == 1 and abs(oldx - x) == 2: ret = proto.move_ok if oldfigure == "bishop": if not rivercross: if not inbetween: if abs(oldx - x) == 2 and abs(oldy - y) == 2: ret = proto.move_ok if oldfigure == "bodyguard": if insidecastle: if abs(oldy - y) == 1 and abs(oldx - x) == 1: ret = proto.move_ok if oldfigure == "cannon": if oldx == x or oldy == y: if figure == "": if not inbetween: ret = proto.move_ok else: if inbetween == 1: ret = proto.move_ok if oldfigure == "rock": if oldx == x or oldy == y: if not inbetween: ret = proto.move_ok if oldfigure == "king": if insidecastle: if abs(oldx - x) == 1 and y == oldy: ret = proto.move_ok if abs(oldy - y) == 1 and x == oldx: ret = proto.move_ok if ret == proto.move_ok: if figure == "king": self.win = color tmp = field[oldx][oldy] field[oldx][oldy] = "" field[x][y] = tmp return ret def setup(self): field = self.field for i in range(10): field[i] = {} for j in range(11): field[i][j] = '' for i in range(0, 5): field[i * 2][3] = 'pawn:white' field[i * 2][6] = 'pawn:black' field[1][2] = 'cannon:white' field[7][2] = 'cannon:white' field[1][7] = 'cannon:black' field[7][7] = 'cannon:black' field[0][0] = 'rock:white' field[1][0] = 'knight:white' field[2][0] = 'bishop:white' field[3][0] = 'bodyguard:white' field[4][0] = 'king:white:foo' field[5][0] = 'bodyguard:white' field[6][0] = 'bishop:white' field[7][0] = 'knight:white' field[8][0] = 'rock:white' field[0][9] = 'rock:black' field[1][9] = 'knight:black' field[2][9] = 'bishop:black' field[3][9] = 'bodyguard:black' field[4][9] = 'king:black' field[5][9] = 'bodyguard:black' field[6][9] = 'bishop:black' field[7][9] = 'knight:black' field[8][9] = 'rock:black' self.field = field ggz-python-0.0.9/autom4te.cache/0000755000175300017530000000000010076351225016523 5ustar ggz009ggz00900000000000000ggz-python-0.0.9/autom4te.cache/requests0000644000175300017530000001210110076351225020314 0ustar ggz009ggz00900000000000000# This file was generated by Autom4te Sat Mar 13 12:27:59 PST 2004. # It contains the lists of macros which have been traced. # It can be safely removed. @request = ( bless( [ '0', 1, [ '/usr/share/autoconf' ], [ '/usr/share/autoconf/autoconf/autoconf.m4f', 'aclocal.m4', 'configure.ac' ], { 'm4_pattern_forbid' => 1, 'AC_CONFIG_LIBOBJ_DIR' => 1, 'AC_TYPE_OFF_T' => 1, 'AC_C_VOLATILE' => 1, 'AC_FUNC_CLOSEDIR_VOID' => 1, 'AC_REPLACE_FNMATCH' => 1, 'AC_PROG_LIBTOOL' => 1, 'AC_FUNC_STAT' => 1, 'AC_HEADER_TIME' => 1, 'AC_FUNC_WAIT3' => 1, 'AM_AUTOMAKE_VERSION' => 1, 'AC_STRUCT_TM' => 1, 'AC_FUNC_LSTAT' => 1, 'AC_TYPE_MODE_T' => 1, 'AC_FUNC_GETMNTENT' => 1, 'AC_FUNC_STRTOD' => 1, 'AC_CHECK_HEADERS' => 1, 'AC_FUNC_STRNLEN' => 1, 'm4_sinclude' => 1, 'AC_PROG_CXX' => 1, 'AC_PATH_X' => 1, 'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1, 'AC_PROG_AWK' => 1, '_m4_warn' => 1, 'AC_HEADER_STDC' => 1, 'AC_HEADER_MAJOR' => 1, 'AC_FUNC_ERROR_AT_LINE' => 1, 'AC_PROG_GCC_TRADITIONAL' => 1, 'AC_LIBSOURCE' => 1, 'AC_FUNC_MBRTOWC' => 1, 'AC_STRUCT_ST_BLOCKS' => 1, 'AC_TYPE_SIGNAL' => 1, 'AC_TYPE_UID_T' => 1, 'AC_CONFIG_AUX_DIR' => 1, 'AC_PROG_MAKE_SET' => 1, 'sinclude' => 1, 'm4_pattern_allow' => 1, 'AC_DEFINE_TRACE_LITERAL' => 1, 'AC_FUNC_STRERROR_R' => 1, 'AC_PROG_CC' => 1, 'AC_FUNC_FORK' => 1, 'AC_DECL_SYS_SIGLIST' => 1, 'AC_FUNC_VPRINTF' => 1, 'AC_FUNC_STRCOLL' => 1, 'AC_PROG_YACC' => 1, 'AC_INIT' => 1, 'AC_STRUCT_TIMEZONE' => 1, 'AC_FUNC_CHOWN' => 1, 'AC_SUBST' => 1, 'AC_FUNC_ALLOCA' => 1, 'AC_CANONICAL_HOST' => 1, 'AC_FUNC_GETPGRP' => 1, 'AC_PROG_RANLIB' => 1, 'AM_INIT_AUTOMAKE' => 1, 'AC_FUNC_SETPGRP' => 1, 'AC_CONFIG_SUBDIRS' => 1, 'AC_FUNC_MMAP' => 1, 'AC_FUNC_REALLOC' => 1, 'AC_TYPE_SIZE_T' => 1, 'AC_CONFIG_LINKS' => 1, 'AC_CHECK_TYPES' => 1, 'AC_CHECK_MEMBERS' => 1, 'AM_MAINTAINER_MODE' => 1, 'AC_FUNC_UTIME_NULL' => 1, 'AC_FUNC_SELECT_ARGTYPES' => 1, 'AC_FUNC_STRFTIME' => 1, 'AC_HEADER_STAT' => 1, 'AC_C_INLINE' => 1, 'AC_PROG_CPP' => 1, 'AC_TYPE_PID_T' => 1, 'AC_C_CONST' => 1, 'AC_PROG_LEX' => 1, 'AC_CONFIG_FILES' => 1, 'include' => 1, 'AC_FUNC_SETVBUF_REVERSED' => 1, 'AC_PROG_INSTALL' => 1, 'AM_GNU_GETTEXT' => 1, 'AC_FUNC_OBSTACK' => 1, 'AC_CHECK_LIB' => 1, 'AC_FUNC_MALLOC' => 1, 'AC_FUNC_GETGROUPS' => 1, 'AC_FUNC_GETLOADAVG' => 1, 'AH_OUTPUT' => 1, 'AC_FUNC_FSEEKO' => 1, 'AM_PROG_CC_C_O' => 1, 'AM_CONDITIONAL' => 1, 'AC_CANONICAL_SYSTEM' => 1, 'AC_FUNC_MKTIME' => 1, 'AC_CONFIG_HEADERS' => 1, 'AC_HEADER_SYS_WAIT' => 1, 'AC_FUNC_MEMCMP' => 1, 'AC_PROG_LN_S' => 1, 'm4_include' => 1, 'AC_HEADER_DIRENT' => 1, 'AC_CHECK_FUNCS' => 1 } ], 'Autom4te::Request' ) ); ggz-python-0.0.9/autom4te.cache/output.00000644000175300017530000034567410076351225020167 0ustar ggz009ggz00900000000000000@%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. @%:@ Generated by GNU Autoconf 2.59 for GGZ python package 0.0.9pre. @%:@ @%:@ Report bugs to . @%:@ @%:@ Copyright (C) 2003 Free Software Foundation, Inc. @%:@ This configure script is free software; the Free Software Foundation @%:@ gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='GGZ python package' PACKAGE_TARNAME='ggz-python' PACKAGE_VERSION='0.0.9pre' PACKAGE_STRING='GGZ python package 0.0.9pre' PACKAGE_BUGREPORT='ggz-dev@mail.ggzgamingzone.org' ac_unique_file="configure.ac" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE libggz_libraries libggz_includes LIBGGZ_INCLUDES LIBGGZ_LDFLAGS LIB_GGZ ggzmod_libraries ggzmod_includes GGZMOD_INCLUDES GGZMOD_LDFLAGS LIB_GGZMOD ggzdmod_libraries ggzdmod_includes GGZDMOD_INCLUDES GGZDMOD_LDFLAGS LIB_GGZDMOD ggzcore_libraries ggzcore_includes GGZCORE_INCLUDES GGZCORE_LDFLAGS LIB_GGZCORE ggz_config GGZ_CONFIG ggzmoduleconfdir ggzexecmoddir ggzdatadir packagesrcdir LIB@&t@OBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures GGZ python package 0.0.9pre to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of GGZ python package 0.0.9pre:";; esac cat <<\_ACEOF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libggz-dir=DIR libggz installation prefix --with-libggz-includes=DIR where the libggz includes are. --with-libggz-libraries=DIR where the libggz libs are. --with-ggzmod-dir=DIR ggzmod installation prefix --with-ggzmod-includes=DIR where the ggzmod includes are. --with-ggzmod-libraries=DIR where the ggzmod libs are. --with-ggzdmod-dir=DIR ggzdmod installation prefix --with-ggzdmod-includes=DIR where the ggzdmod includes are. --with-ggzdmod-libraries=DIR where the ggzdmod libs are. --with-ggzcore-dir=DIR ggzcore installation prefix --with-ggzcore-includes=DIR where the ggzcore includes are. --with-ggzcore-libraries=DIR where the ggzcore libs are. --with-ggzconfig=DIR path to ggz-config 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 CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd "$ac_popdir" done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF GGZ python package configure 0.0.9pre generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GGZ python package $as_me 0.0.9pre, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME @%:@@%:@ --------- @%:@@%:@ @%:@@%:@ Platform. @%:@@%:@ @%:@@%:@ --------- @%:@@%:@ hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF @%:@@%:@ ----------- @%:@@%:@ @%:@@%:@ Core tests. @%:@@%:@ @%:@@%:@ ----------- @%:@@%:@ _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX @%:@@%:@ ---------------- @%:@@%:@ @%:@@%:@ Cache variables. @%:@@%:@ @%:@@%:@ ---------------- @%:@@%:@ _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX @%:@@%:@ ----------------- @%:@@%:@ @%:@@%:@ Output variables. @%:@@%:@ @%:@@%:@ ----------------- @%:@@%:@ _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX @%:@@%:@ ------------- @%:@@%:@ @%:@@%:@ Output files. @%:@@%:@ @%:@@%:@ ------------- @%:@@%:@ _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX @%:@@%:@ ----------- @%:@@%:@ @%:@@%:@ confdefs.h. @%:@@%:@ @%:@@%:@ ----------- @%:@@%:@ _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu #AC_CONFIG_HEADERS([config.h]) #AM_INIT_AUTOMAKE #AM_MAINTAINER_MODE #AC_ARG_ENABLE(ggzdmod,[ --disable-ggzdmod Exclude pyggzdmod wrapper],,enable_ggzdmod=yes) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_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" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done 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 echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$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 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 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 -std1. */ int osf4_cc_array ['\x00' == 0 ? 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 # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF @%:@ifndef __cplusplus choke me @%:@endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration @%:@include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 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 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi if test "x${prefix}" = "xNONE"; then ac_ggz_prefix_incdir="${ac_default_prefix}/include" ac_ggz_prefix_libdir="${ac_default_prefix}/lib" ac_ggz_prefix_bindir="${ac_default_prefix}/bin" ac_ggz_prefix_etcdir="${ac_default_prefix}/etc" else ac_ggz_prefix_incdir="${prefix}/include" ac_ggz_prefix_libdir="${prefix}/lib" ac_ggz_prefix_bindir="${prefix}/bin" ac_ggz_prefix_etcdir="${prefix}/etc" fi ac_ggz_stdinc="$ac_ggz_prefix_incdir" ac_ggz_stdlib="$ac_ggz_prefix_libdir" ac_ggz_stdbin="$ac_ggz_prefix_bindir" ac_ggz_stdetc="$ac_ggz_prefix_etcdir" if test "xdefaults" = "xdefaults" || test "x" = "xdefaults"; then ac_ggz_stdinc="$ac_ggz_stdinc /usr/local/include /usr/include" ac_ggz_stdlib="$ac_ggz_stdlib /usr/local/lib /usr/lib" ac_ggz_stdbin="$ac_ggz_stdbin /usr/local/bin /usr/bin" ac_ggz_stdetc="$ac_ggz_stdetc/ggzd /usr/local/etc/ggzd /etc/ggzd" fi if test "xdefaults" = "xexport" || test "x" = "xexport"; then CPPFLAGS="$CPPFLAGS -isystem${ac_ggz_prefix_incdir}" LDFLAGS="$LDFLAGS -L${ac_ggz_prefix_libdir}" fi save_cflags=$CFLAGS save_cxxflags=$CXXFLAGS CFLAGS="-Wall -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ void signedness(void){char c;if(c==-1)c=0;} int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 save_cflags="$save_cflags -fsigned-char" save_cxxflags="$save_cxxflags -fsigned-char" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$save_cflags CXXFLAGS=$save_cxxflags echo "$as_me:$LINENO: checking for GGZ library: libggz" >&5 echo $ECHO_N "checking for GGZ library: libggz... $ECHO_C" >&6 ac_libggz_includes=NO ac_libggz_libraries=NO libggz_libraries="" libggz_includes="" # Check whether --with-libggz-dir or --without-libggz-dir was given. if test "${with_libggz_dir+set}" = set; then withval="$with_libggz_dir" ac_libggz_includes="$withval"/include ac_libggz_libraries="$withval"/lib fi; # Check whether --with-libggz-includes or --without-libggz-includes was given. if test "${with_libggz_includes+set}" = set; then withval="$with_libggz_includes" ac_libggz_includes="$withval" fi; # Check whether --with-libggz-libraries or --without-libggz-libraries was given. if test "${with_libggz_libraries+set}" = set; then withval="$with_libggz_libraries" ac_libggz_libraries="$withval" fi; if test "${ac_cv_have_libggz+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else libggz_incdirs="$ac_libggz_includes $ac_ggz_stdinc" ret="" for i in $libggz_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done libggz_incdirs=$ret libggz_header=ggz.h libggz_incdir=NO for i in $libggz_incdirs; do for j in $libggz_header; do echo "configure: __oline__: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 libggz_incdir=$i break 2 fi done done ac_libggz_includes="$libggz_incdir" libggz_libdirs="$ac_libggz_libraries $ac_ggz_stdlib" ret="" for i in $libggz_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done libggz_libdirs=$ret test=NONE libggz_libdir=NONE for dir in $libggz_libdirs; do try="ls -1 $dir/libggz.so" if test -n "`$try 2> /dev/null`"; then libggz_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_libggz_libraries="$libggz_libdir" if test "$ac_libggz_includes" = NO || test "$ac_libggz_libraries" = NO; then ac_cv_have_libggz="have_libggz=no" ac_libggz_notfound="" else have_libggz="yes" fi fi eval "$ac_cv_have_libggz" if test "$have_libggz" != yes; then if test "x" = "xignore"; then echo "$as_me:$LINENO: result: $have_libggz (ignored)" >&5 echo "${ECHO_T}$have_libggz (ignored)" >&6 else echo "$as_me:$LINENO: result: $have_libggz" >&5 echo "${ECHO_T}$have_libggz" >&6 if test "x" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'libggz' does not seem to be installed correctly. Headers searched in: $libggz_incdirs Libraries searched in: $libggz_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'libggz' does not seem to be installed correctly. Headers searched in: $libggz_incdirs Libraries searched in: $libggz_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # perform actions given by argument 2. fi else ac_cv_have_libggz="have_libggz=yes \ ac_libggz_includes=$ac_libggz_includes ac_libggz_libraries=$ac_libggz_libraries" echo "$as_me:$LINENO: result: $have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&5 echo "${ECHO_T}$have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&6 libggz_libraries="$ac_libggz_libraries" libggz_includes="$ac_libggz_includes" LIBGGZ_INCLUDES="-isystem $libggz_includes" LIBGGZ_LDFLAGS="-L$libggz_libraries" LIB_GGZ='-lggz' # perform actions given by argument 1. fi echo "$as_me:$LINENO: checking for GGZ library: ggzmod" >&5 echo $ECHO_N "checking for GGZ library: ggzmod... $ECHO_C" >&6 ac_ggzmod_includes=NO ac_ggzmod_libraries=NO ggzmod_libraries="" ggzmod_includes="" # Check whether --with-ggzmod-dir or --without-ggzmod-dir was given. if test "${with_ggzmod_dir+set}" = set; then withval="$with_ggzmod_dir" ac_ggzmod_includes="$withval"/include ac_ggzmod_libraries="$withval"/lib fi; # Check whether --with-ggzmod-includes or --without-ggzmod-includes was given. if test "${with_ggzmod_includes+set}" = set; then withval="$with_ggzmod_includes" ac_ggzmod_includes="$withval" fi; # Check whether --with-ggzmod-libraries or --without-ggzmod-libraries was given. if test "${with_ggzmod_libraries+set}" = set; then withval="$with_ggzmod_libraries" ac_ggzmod_libraries="$withval" fi; if test "${ac_cv_have_ggzmod+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggzmod_incdirs="$ac_ggzmod_includes $ac_ggz_stdinc" ret="" for i in $ggzmod_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzmod_incdirs=$ret ggzmod_header=ggzmod.h ggzmod_incdir=NO for i in $ggzmod_incdirs; do for j in $ggzmod_header; do echo "configure: __oline__: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggzmod_incdir=$i break 2 fi done done ac_ggzmod_includes="$ggzmod_incdir" ggzmod_libdirs="$ac_ggzmod_libraries $ac_ggz_stdlib" ret="" for i in $ggzmod_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzmod_libdirs=$ret test=NONE ggzmod_libdir=NONE for dir in $ggzmod_libdirs; do try="ls -1 $dir/libggzmod.so" if test -n "`$try 2> /dev/null`"; then ggzmod_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_ggzmod_libraries="$ggzmod_libdir" if test "$ac_ggzmod_includes" = NO || test "$ac_ggzmod_libraries" = NO; then ac_cv_have_ggzmod="have_ggzmod=no" ac_ggzmod_notfound="" else have_ggzmod="yes" fi fi eval "$ac_cv_have_ggzmod" if test "$have_ggzmod" != yes; then if test "xignore" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggzmod (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggzmod (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggzmod" >&5 echo "${ECHO_T}$have_ggzmod" >&6 if test "xignore" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'ggzmod' does not seem to be installed correctly. Headers searched in: $ggzmod_incdirs Libraries searched in: $ggzmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'ggzmod' does not seem to be installed correctly. Headers searched in: $ggzmod_incdirs Libraries searched in: $ggzmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # Perform actions given by argument 2. ignore fi else ac_cv_have_ggzmod="have_ggzmod=yes \ ac_ggzmod_includes=$ac_ggzmod_includes ac_ggzmod_libraries=$ac_ggzmod_libraries" echo "$as_me:$LINENO: result: $have_ggzmod (libraries $ac_ggzmod_libraries, headers $ac_ggzmod_includes)" >&5 echo "${ECHO_T}$have_ggzmod (libraries $ac_ggzmod_libraries, headers $ac_ggzmod_includes)" >&6 ggzmod_libraries="$ac_ggzmod_libraries" ggzmod_includes="$ac_ggzmod_includes" GGZMOD_INCLUDES="-isystem $ggzmod_includes" GGZMOD_LDFLAGS="-L$ggzmod_libraries" LIB_GGZMOD='-lggzmod' # Perform actions given by argument 1. "true" fi echo "$as_me:$LINENO: checking for GGZ library: ggzdmod" >&5 echo $ECHO_N "checking for GGZ library: ggzdmod... $ECHO_C" >&6 ac_ggzdmod_includes=NO ac_ggzdmod_libraries=NO ggzdmod_libraries="" ggzdmod_includes="" # Check whether --with-ggzdmod-dir or --without-ggzdmod-dir was given. if test "${with_ggzdmod_dir+set}" = set; then withval="$with_ggzdmod_dir" ac_ggzdmod_includes="$withval"/include ac_ggzdmod_libraries="$withval"/lib fi; # Check whether --with-ggzdmod-includes or --without-ggzdmod-includes was given. if test "${with_ggzdmod_includes+set}" = set; then withval="$with_ggzdmod_includes" ac_ggzdmod_includes="$withval" fi; # Check whether --with-ggzdmod-libraries or --without-ggzdmod-libraries was given. if test "${with_ggzdmod_libraries+set}" = set; then withval="$with_ggzdmod_libraries" ac_ggzdmod_libraries="$withval" fi; if test "${ac_cv_have_ggzdmod+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggzdmod_incdirs="$ac_ggzdmod_includes $ac_ggz_stdinc" ret="" for i in $ggzdmod_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzdmod_incdirs=$ret ggzdmod_header=ggzdmod.h ggzdmod_incdir=NO for i in $ggzdmod_incdirs; do for j in $ggzdmod_header; do echo "configure: __oline__: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggzdmod_incdir=$i break 2 fi done done ac_ggzdmod_includes="$ggzdmod_incdir" ggzdmod_libdirs="$ac_ggzdmod_libraries $ac_ggz_stdlib" ret="" for i in $ggzdmod_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzdmod_libdirs=$ret test=NONE ggzdmod_libdir=NONE for dir in $ggzdmod_libdirs; do try="ls -1 $dir/libggzdmod.so" if test -n "`$try 2> /dev/null`"; then ggzdmod_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_ggzdmod_libraries="$ggzdmod_libdir" if test "$ac_ggzdmod_includes" = NO || test "$ac_ggzdmod_libraries" = NO; then ac_cv_have_ggzdmod="have_ggzdmod=no" ac_ggzdmod_notfound="" else have_ggzdmod="yes" fi fi eval "$ac_cv_have_ggzdmod" if test "$have_ggzdmod" != yes; then if test "xignore" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggzdmod (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggzdmod (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggzdmod" >&5 echo "${ECHO_T}$have_ggzdmod" >&6 if test "xignore" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'ggzdmod' does not seem to be installed correctly. Headers searched in: $ggzdmod_incdirs Libraries searched in: $ggzdmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'ggzdmod' does not seem to be installed correctly. Headers searched in: $ggzdmod_incdirs Libraries searched in: $ggzdmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # Perform actions given by argument 2. ignore fi else ac_cv_have_ggzdmod="have_ggzdmod=yes \ ac_ggzdmod_includes=$ac_ggzdmod_includes ac_ggzdmod_libraries=$ac_ggzdmod_libraries" echo "$as_me:$LINENO: result: $have_ggzdmod (libraries $ac_ggzdmod_libraries, headers $ac_ggzdmod_includes)" >&5 echo "${ECHO_T}$have_ggzdmod (libraries $ac_ggzdmod_libraries, headers $ac_ggzdmod_includes)" >&6 ggzdmod_libraries="$ac_ggzdmod_libraries" ggzdmod_includes="$ac_ggzdmod_includes" GGZDMOD_INCLUDES="-isystem $ggzdmod_includes" GGZDMOD_LDFLAGS="-L$ggzdmod_libraries" LIB_GGZDMOD='-lggzdmod' # Perform actions given by argument 1. "true" fi echo "$as_me:$LINENO: checking for GGZ library: ggzcore" >&5 echo $ECHO_N "checking for GGZ library: ggzcore... $ECHO_C" >&6 ac_ggzcore_includes=NO ac_ggzcore_libraries=NO ggzcore_libraries="" ggzcore_includes="" # Check whether --with-ggzcore-dir or --without-ggzcore-dir was given. if test "${with_ggzcore_dir+set}" = set; then withval="$with_ggzcore_dir" ac_ggzcore_includes="$withval"/include ac_ggzcore_libraries="$withval"/lib fi; # Check whether --with-ggzcore-includes or --without-ggzcore-includes was given. if test "${with_ggzcore_includes+set}" = set; then withval="$with_ggzcore_includes" ac_ggzcore_includes="$withval" fi; # Check whether --with-ggzcore-libraries or --without-ggzcore-libraries was given. if test "${with_ggzcore_libraries+set}" = set; then withval="$with_ggzcore_libraries" ac_ggzcore_libraries="$withval" fi; if test "${ac_cv_have_ggzcore+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggzcore_incdirs="$ac_ggzcore_includes $ac_ggz_stdinc" ret="" for i in $ggzcore_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzcore_incdirs=$ret ggzcore_header=ggzcore.h ggzcore_incdir=NO for i in $ggzcore_incdirs; do for j in $ggzcore_header; do echo "configure: __oline__: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggzcore_incdir=$i break 2 fi done done ac_ggzcore_includes="$ggzcore_incdir" ggzcore_libdirs="$ac_ggzcore_libraries $ac_ggz_stdlib" ret="" for i in $ggzcore_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzcore_libdirs=$ret test=NONE ggzcore_libdir=NONE for dir in $ggzcore_libdirs; do try="ls -1 $dir/libggzcore.so" if test -n "`$try 2> /dev/null`"; then ggzcore_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_ggzcore_libraries="$ggzcore_libdir" if test "$ac_ggzcore_includes" = NO || test "$ac_ggzcore_libraries" = NO; then ac_cv_have_ggzcore="have_ggzcore=no" ac_ggzcore_notfound="" else have_ggzcore="yes" fi fi eval "$ac_cv_have_ggzcore" if test "$have_ggzcore" != yes; then if test "xignore" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggzcore (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggzcore (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggzcore" >&5 echo "${ECHO_T}$have_ggzcore" >&6 if test "xignore" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'ggzcore' does not seem to be installed correctly. Headers searched in: $ggzcore_incdirs Libraries searched in: $ggzcore_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'ggzcore' does not seem to be installed correctly. Headers searched in: $ggzcore_incdirs Libraries searched in: $ggzcore_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # Perform actions given by argument 2. ignore fi else ac_cv_have_ggzcore="have_ggzcore=yes \ ac_ggzcore_includes=$ac_ggzcore_includes ac_ggzcore_libraries=$ac_ggzcore_libraries" echo "$as_me:$LINENO: result: $have_ggzcore (libraries $ac_ggzcore_libraries, headers $ac_ggzcore_includes)" >&5 echo "${ECHO_T}$have_ggzcore (libraries $ac_ggzcore_libraries, headers $ac_ggzcore_includes)" >&6 ggzcore_libraries="$ac_ggzcore_libraries" ggzcore_includes="$ac_ggzcore_includes" GGZCORE_INCLUDES="-isystem $ggzcore_includes" GGZCORE_LDFLAGS="-L$ggzcore_libraries" LIB_GGZCORE='-lggzcore' # Perform actions given by argument 1. "true" fi echo "$as_me:$LINENO: checking for GGZ configuration tool: ggz-config" >&5 echo $ECHO_N "checking for GGZ configuration tool: ggz-config... $ECHO_C" >&6 ac_ggz_config=NO ggz_config="" # Check whether --with-ggzconfig or --without-ggzconfig was given. if test "${with_ggzconfig+set}" = set; then withval="$with_ggzconfig" ac_ggz_config="$withval" fi; if test "${ac_cv_have_ggzconfig+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggz_config_dirs="$ac_ggz_config $ac_ggz_stdbin" ggz_config_dir=NO for i in $ggz_config_dirs; do for j in ggz-config; do echo "configure: __oline__: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggz_config_dir=$i break 2 fi done done ac_ggz_config="$ggz_config_dir" if test "$ac_ggz_config" = NO; then ac_cv_have_ggzcore="have_ggz_config=no" ac_ggz_config_notfound="" have_ggz_config="no" else have_ggz_config="yes" fi fi eval "$ac_cv_have_ggz_config" if test "$have_ggz_config" != yes; then if test "x" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggz_config (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggz_config (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggz_config" >&5 echo "${ECHO_T}$have_ggz_config" >&6 if test "x" = "x"; then { { echo "$as_me:$LINENO: error: ggz-config not found. Please check your installation! " >&5 echo "$as_me: error: ggz-config not found. Please check your installation! " >&2;} { (exit 1); exit 1; }; } fi # Perform actions given by argument 2. fi else ac_cv_have_ggz_config="have_ggz_config=yes \ ac_ggz_config=$ac_ggz_config" echo "$as_me:$LINENO: result: $ac_ggz_config/ggz-config" >&5 echo "${ECHO_T}$ac_ggz_config/ggz-config" >&6 ggz_config="$ac_ggz_config" GGZ_CONFIG="${ggz_config}/ggz-config" ggzmoduleconfdir=`$GGZ_CONFIG --configdir` cat >>confdefs.h <<_ACEOF @%:@define GGZMODULECONFDIR "${ggzmoduleconfdir}" _ACEOF ggzexecmoddir=`$GGZ_CONFIG --gamedir` cat >>confdefs.h <<_ACEOF @%:@define GAMEDIR "${ggzexecmoddir}" _ACEOF ggzdatadir=`$GGZ_CONFIG --datadir` cat >>confdefs.h <<_ACEOF @%:@define GGZDATADIR "${ggzdatadir}" _ACEOF packagesrcdir=`cd $srcdir && pwd` cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_SOURCE_DIR "${packagesrcdir}" _ACEOF # Perform actions given by argument 1. fi if test "x$prefix" = "xNONE"; then prefix="/usr/local" fi ac_config_files="$ac_config_files escape-sdl/module.dsc xadrez-chines/module.dsc xadrez-chines/xadrez-chines-server.dsc go/module.dsc go/goserver.dsc pyggzmod/setup.py pyggzdmod/setup.py pyggzcore/setup.py" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then we branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. cat >confdef2opt.sed <<\_ACEOF t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g t quote s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g t quote d : quote s,[ `~#$^&*(){}\\|;'"<>?],\\&,g s,\[,\\&,g s,\],\\&,g s,\$,$$,g p _ACEOF # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within # single-quotes doesn't work because, if this script is created in a # platform that uses two characters for line-breaks (e.g., DOS), tr # would break. ac_LF_and_DOT=`echo; echo .` DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` rm -f confdef2opt.sed ac_libobjs= ac_ltlibobjs= for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIB@&t@OBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX @%:@@%:@ Running $as_me. @%:@@%:@ _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by GGZ python package $as_me 0.0.9pre, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ GGZ python package config.status 0.0.9pre configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "escape-sdl/module.dsc" ) CONFIG_FILES="$CONFIG_FILES escape-sdl/module.dsc" ;; "xadrez-chines/module.dsc" ) CONFIG_FILES="$CONFIG_FILES xadrez-chines/module.dsc" ;; "xadrez-chines/xadrez-chines-server.dsc" ) CONFIG_FILES="$CONFIG_FILES xadrez-chines/xadrez-chines-server.dsc" ;; "go/module.dsc" ) CONFIG_FILES="$CONFIG_FILES go/module.dsc" ;; "go/goserver.dsc" ) CONFIG_FILES="$CONFIG_FILES go/goserver.dsc" ;; "pyggzmod/setup.py" ) CONFIG_FILES="$CONFIG_FILES pyggzmod/setup.py" ;; "pyggzdmod/setup.py" ) CONFIG_FILES="$CONFIG_FILES pyggzdmod/setup.py" ;; "pyggzcore/setup.py" ) CONFIG_FILES="$CONFIG_FILES pyggzcore/setup.py" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@libggz_libraries@,$libggz_libraries,;t t s,@libggz_includes@,$libggz_includes,;t t s,@LIBGGZ_INCLUDES@,$LIBGGZ_INCLUDES,;t t s,@LIBGGZ_LDFLAGS@,$LIBGGZ_LDFLAGS,;t t s,@LIB_GGZ@,$LIB_GGZ,;t t s,@ggzmod_libraries@,$ggzmod_libraries,;t t s,@ggzmod_includes@,$ggzmod_includes,;t t s,@GGZMOD_INCLUDES@,$GGZMOD_INCLUDES,;t t s,@GGZMOD_LDFLAGS@,$GGZMOD_LDFLAGS,;t t s,@LIB_GGZMOD@,$LIB_GGZMOD,;t t s,@ggzdmod_libraries@,$ggzdmod_libraries,;t t s,@ggzdmod_includes@,$ggzdmod_includes,;t t s,@GGZDMOD_INCLUDES@,$GGZDMOD_INCLUDES,;t t s,@GGZDMOD_LDFLAGS@,$GGZDMOD_LDFLAGS,;t t s,@LIB_GGZDMOD@,$LIB_GGZDMOD,;t t s,@ggzcore_libraries@,$ggzcore_libraries,;t t s,@ggzcore_includes@,$ggzcore_includes,;t t s,@GGZCORE_INCLUDES@,$GGZCORE_INCLUDES,;t t s,@GGZCORE_LDFLAGS@,$GGZCORE_LDFLAGS,;t t s,@LIB_GGZCORE@,$LIB_GGZCORE,;t t s,@ggz_config@,$ggz_config,;t t s,@GGZ_CONFIG@,$GGZ_CONFIG,;t t s,@ggzmoduleconfdir@,$ggzmoduleconfdir,;t t s,@ggzexecmoddir@,$ggzexecmoddir,;t t s,@ggzdatadir@,$ggzdatadir,;t t s,@packagesrcdir@,$packagesrcdir,;t t s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi echo "" echo "Configured python stuff. Type 'make' to compile it, followed by a 'make install'." echo "" ggz-python-0.0.9/autom4te.cache/traces.00000644000175300017530000002742410076351225020076 0ustar ggz009ggz00900000000000000m4trace:configure.ac:3: -1- AC_INIT([GGZ python package], [0.0.9pre], [ggz-dev@mail.ggzgamingzone.org], [ggz-python]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_]) m4trace:configure.ac:3: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}]) m4trace:configure.ac:3: -1- AC_SUBST([PATH_SEPARATOR]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE]) m4trace:configure.ac:3: -1- AC_SUBST([prefix], [NONE]) m4trace:configure.ac:3: -1- AC_SUBST([program_transform_name], [s,x,x,]) m4trace:configure.ac:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) m4trace:configure.ac:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) m4trace:configure.ac:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) m4trace:configure.ac:3: -1- AC_SUBST([datadir], ['${prefix}/share']) m4trace:configure.ac:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) m4trace:configure.ac:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) m4trace:configure.ac:3: -1- AC_SUBST([localstatedir], ['${prefix}/var']) m4trace:configure.ac:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) m4trace:configure.ac:3: -1- AC_SUBST([includedir], ['${prefix}/include']) m4trace:configure.ac:3: -1- AC_SUBST([oldincludedir], ['/usr/include']) m4trace:configure.ac:3: -1- AC_SUBST([infodir], ['${prefix}/info']) m4trace:configure.ac:3: -1- AC_SUBST([mandir], ['${prefix}/man']) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ #undef PACKAGE_NAME]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ #undef PACKAGE_VERSION]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ #undef PACKAGE_STRING]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT]) m4trace:configure.ac:3: -1- AC_SUBST([build_alias]) m4trace:configure.ac:3: -1- AC_SUBST([host_alias]) m4trace:configure.ac:3: -1- AC_SUBST([target_alias]) m4trace:configure.ac:3: -1- AC_SUBST([DEFS]) m4trace:configure.ac:3: -1- AC_SUBST([ECHO_C]) m4trace:configure.ac:3: -1- AC_SUBST([ECHO_N]) m4trace:configure.ac:3: -1- AC_SUBST([ECHO_T]) m4trace:configure.ac:3: -1- AC_SUBST([LIBS]) m4trace:configure.ac:15: -1- AC_PROG_CC m4trace:configure.ac:15: -1- AC_SUBST([CC]) m4trace:configure.ac:15: -1- AC_SUBST([CFLAGS]) m4trace:configure.ac:15: -1- AC_SUBST([LDFLAGS]) m4trace:configure.ac:15: -1- AC_SUBST([CPPFLAGS]) m4trace:configure.ac:15: -1- AC_SUBST([CC]) m4trace:configure.ac:15: -1- AC_SUBST([ac_ct_CC]) m4trace:configure.ac:15: -1- AC_SUBST([CC]) m4trace:configure.ac:15: -1- AC_SUBST([ac_ct_CC]) m4trace:configure.ac:15: -1- AC_SUBST([CC]) m4trace:configure.ac:15: -1- AC_SUBST([CC]) m4trace:configure.ac:15: -1- AC_SUBST([ac_ct_CC]) m4trace:configure.ac:15: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) m4trace:configure.ac:15: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) m4trace:configure.ac:16: -1- AC_PROG_MAKE_SET m4trace:configure.ac:16: -1- AC_SUBST([SET_MAKE]) m4trace:configure.ac:21: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:260: AC_GGZ_LIBGGZ is expanded from... configure.ac:21: the top level]) m4trace:configure.ac:21: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:260: AC_GGZ_LIBGGZ is expanded from... configure.ac:21: the top level]) m4trace:configure.ac:21: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:260: AC_GGZ_LIBGGZ is expanded from... configure.ac:21: the top level]) m4trace:configure.ac:21: -1- AC_SUBST([libggz_libraries]) m4trace:configure.ac:21: -1- AC_SUBST([libggz_includes]) m4trace:configure.ac:21: -1- AC_SUBST([LIBGGZ_INCLUDES]) m4trace:configure.ac:21: -1- AC_SUBST([LIBGGZ_LDFLAGS]) m4trace:configure.ac:21: -1- AC_SUBST([LIB_GGZ]) m4trace:configure.ac:22: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:535: AC_GGZ_GGZMOD is expanded from... configure.ac:22: the top level]) m4trace:configure.ac:22: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:535: AC_GGZ_GGZMOD is expanded from... configure.ac:22: the top level]) m4trace:configure.ac:22: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:535: AC_GGZ_GGZMOD is expanded from... configure.ac:22: the top level]) m4trace:configure.ac:22: -1- AC_SUBST([ggzmod_libraries]) m4trace:configure.ac:22: -1- AC_SUBST([ggzmod_includes]) m4trace:configure.ac:22: -1- AC_SUBST([GGZMOD_INCLUDES]) m4trace:configure.ac:22: -1- AC_SUBST([GGZMOD_LDFLAGS]) m4trace:configure.ac:22: -1- AC_SUBST([LIB_GGZMOD]) m4trace:configure.ac:23: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:632: AC_GGZ_GGZDMOD is expanded from... configure.ac:23: the top level]) m4trace:configure.ac:23: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:632: AC_GGZ_GGZDMOD is expanded from... configure.ac:23: the top level]) m4trace:configure.ac:23: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:632: AC_GGZ_GGZDMOD is expanded from... configure.ac:23: the top level]) m4trace:configure.ac:23: -1- AC_SUBST([ggzdmod_libraries]) m4trace:configure.ac:23: -1- AC_SUBST([ggzdmod_includes]) m4trace:configure.ac:23: -1- AC_SUBST([GGZDMOD_INCLUDES]) m4trace:configure.ac:23: -1- AC_SUBST([GGZDMOD_LDFLAGS]) m4trace:configure.ac:23: -1- AC_SUBST([LIB_GGZDMOD]) m4trace:configure.ac:24: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:358: AC_GGZ_GGZCORE is expanded from... configure.ac:24: the top level]) m4trace:configure.ac:24: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:358: AC_GGZ_GGZCORE is expanded from... configure.ac:24: the top level]) m4trace:configure.ac:24: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:358: AC_GGZ_GGZCORE is expanded from... configure.ac:24: the top level]) m4trace:configure.ac:24: -1- AC_SUBST([ggzcore_libraries]) m4trace:configure.ac:24: -1- AC_SUBST([ggzcore_includes]) m4trace:configure.ac:24: -1- AC_SUBST([GGZCORE_INCLUDES]) m4trace:configure.ac:24: -1- AC_SUBST([GGZCORE_LDFLAGS]) m4trace:configure.ac:24: -1- AC_SUBST([LIB_GGZCORE]) m4trace:configure.ac:25: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:438: AC_GGZ_CONFIG is expanded from... configure.ac:25: the top level]) m4trace:configure.ac:25: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete. You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from... aclocal.m4:77: AC_GGZ_FIND_FILE is expanded from... autoconf/general.m4:1799: AC_CACHE_VAL is expanded from... aclocal.m4:438: AC_GGZ_CONFIG is expanded from... configure.ac:25: the top level]) m4trace:configure.ac:25: -1- AC_SUBST([ggz_config]) m4trace:configure.ac:25: -1- AC_SUBST([GGZ_CONFIG]) m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([GGZMODULECONFDIR]) m4trace:configure.ac:25: -1- AH_OUTPUT([GGZMODULECONFDIR], [/* Path where the game registry is located */ #undef GGZMODULECONFDIR]) m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([GAMEDIR]) m4trace:configure.ac:25: -1- AH_OUTPUT([GAMEDIR], [/* Path where to install the games */ #undef GAMEDIR]) m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([GGZDATADIR]) m4trace:configure.ac:25: -1- AH_OUTPUT([GGZDATADIR], [/* Path where the games should look for their data files */ #undef GGZDATADIR]) m4trace:configure.ac:25: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_SOURCE_DIR]) m4trace:configure.ac:25: -1- AH_OUTPUT([PACKAGE_SOURCE_DIR], [/* Path where the source is located */ #undef PACKAGE_SOURCE_DIR]) m4trace:configure.ac:25: -1- AC_SUBST([ggzmoduleconfdir]) m4trace:configure.ac:25: -1- AC_SUBST([ggzexecmoddir]) m4trace:configure.ac:25: -1- AC_SUBST([ggzdatadir]) m4trace:configure.ac:25: -1- AC_SUBST([packagesrcdir]) m4trace:configure.ac:43: -1- AC_CONFIG_FILES([ escape-sdl/module.dsc xadrez-chines/module.dsc xadrez-chines/xadrez-chines-server.dsc go/module.dsc go/goserver.dsc pyggzmod/setup.py pyggzdmod/setup.py pyggzcore/setup.py ]) m4trace:configure.ac:44: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) m4trace:configure.ac:44: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) ggz-python-0.0.9/configure0000755000175300017530000034464310076351225015644 0ustar ggz009ggz00900000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for GGZ python package 0.0.9pre. # # Report bugs to . # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='GGZ python package' PACKAGE_TARNAME='ggz-python' PACKAGE_VERSION='0.0.9pre' PACKAGE_STRING='GGZ python package 0.0.9pre' PACKAGE_BUGREPORT='ggz-dev@mail.ggzgamingzone.org' ac_unique_file="configure.ac" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE libggz_libraries libggz_includes LIBGGZ_INCLUDES LIBGGZ_LDFLAGS LIB_GGZ ggzmod_libraries ggzmod_includes GGZMOD_INCLUDES GGZMOD_LDFLAGS LIB_GGZMOD ggzdmod_libraries ggzdmod_includes GGZDMOD_INCLUDES GGZDMOD_LDFLAGS LIB_GGZDMOD ggzcore_libraries ggzcore_includes GGZCORE_INCLUDES GGZCORE_LDFLAGS LIB_GGZCORE ggz_config GGZ_CONFIG ggzmoduleconfdir ggzexecmoddir ggzdatadir packagesrcdir LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures GGZ python package 0.0.9pre to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of GGZ python package 0.0.9pre:";; esac cat <<\_ACEOF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libggz-dir=DIR libggz installation prefix --with-libggz-includes=DIR where the libggz includes are. --with-libggz-libraries=DIR where the libggz libs are. --with-ggzmod-dir=DIR ggzmod installation prefix --with-ggzmod-includes=DIR where the ggzmod includes are. --with-ggzmod-libraries=DIR where the ggzmod libs are. --with-ggzdmod-dir=DIR ggzdmod installation prefix --with-ggzdmod-includes=DIR where the ggzdmod includes are. --with-ggzdmod-libraries=DIR where the ggzdmod libs are. --with-ggzcore-dir=DIR ggzcore installation prefix --with-ggzcore-includes=DIR where the ggzcore includes are. --with-ggzcore-libraries=DIR where the ggzcore libs are. --with-ggzconfig=DIR path to ggz-config 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 CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd "$ac_popdir" done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF GGZ python package configure 0.0.9pre generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GGZ python package $as_me 0.0.9pre, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu #AC_CONFIG_HEADERS([config.h]) #AM_INIT_AUTOMAKE #AM_MAINTAINER_MODE #AC_ARG_ENABLE(ggzdmod,[ --disable-ggzdmod Exclude pyggzdmod wrapper],,enable_ggzdmod=yes) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" 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 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_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" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done 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 echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$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 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 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 -std1. */ int osf4_cc_array ['\x00' == 0 ? 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 # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 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 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi if test "x${prefix}" = "xNONE"; then ac_ggz_prefix_incdir="${ac_default_prefix}/include" ac_ggz_prefix_libdir="${ac_default_prefix}/lib" ac_ggz_prefix_bindir="${ac_default_prefix}/bin" ac_ggz_prefix_etcdir="${ac_default_prefix}/etc" else ac_ggz_prefix_incdir="${prefix}/include" ac_ggz_prefix_libdir="${prefix}/lib" ac_ggz_prefix_bindir="${prefix}/bin" ac_ggz_prefix_etcdir="${prefix}/etc" fi ac_ggz_stdinc="$ac_ggz_prefix_incdir" ac_ggz_stdlib="$ac_ggz_prefix_libdir" ac_ggz_stdbin="$ac_ggz_prefix_bindir" ac_ggz_stdetc="$ac_ggz_prefix_etcdir" if test "xdefaults" = "xdefaults" || test "x" = "xdefaults"; then ac_ggz_stdinc="$ac_ggz_stdinc /usr/local/include /usr/include" ac_ggz_stdlib="$ac_ggz_stdlib /usr/local/lib /usr/lib" ac_ggz_stdbin="$ac_ggz_stdbin /usr/local/bin /usr/bin" ac_ggz_stdetc="$ac_ggz_stdetc/ggzd /usr/local/etc/ggzd /etc/ggzd" fi if test "xdefaults" = "xexport" || test "x" = "xexport"; then CPPFLAGS="$CPPFLAGS -isystem${ac_ggz_prefix_incdir}" LDFLAGS="$LDFLAGS -L${ac_ggz_prefix_libdir}" fi save_cflags=$CFLAGS save_cxxflags=$CXXFLAGS CFLAGS="-Wall -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ void signedness(void){char c;if(c==-1)c=0;} int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 save_cflags="$save_cflags -fsigned-char" save_cxxflags="$save_cxxflags -fsigned-char" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$save_cflags CXXFLAGS=$save_cxxflags echo "$as_me:$LINENO: checking for GGZ library: libggz" >&5 echo $ECHO_N "checking for GGZ library: libggz... $ECHO_C" >&6 ac_libggz_includes=NO ac_libggz_libraries=NO libggz_libraries="" libggz_includes="" # Check whether --with-libggz-dir or --without-libggz-dir was given. if test "${with_libggz_dir+set}" = set; then withval="$with_libggz_dir" ac_libggz_includes="$withval"/include ac_libggz_libraries="$withval"/lib fi; # Check whether --with-libggz-includes or --without-libggz-includes was given. if test "${with_libggz_includes+set}" = set; then withval="$with_libggz_includes" ac_libggz_includes="$withval" fi; # Check whether --with-libggz-libraries or --without-libggz-libraries was given. if test "${with_libggz_libraries+set}" = set; then withval="$with_libggz_libraries" ac_libggz_libraries="$withval" fi; if test "${ac_cv_have_libggz+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else libggz_incdirs="$ac_libggz_includes $ac_ggz_stdinc" ret="" for i in $libggz_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done libggz_incdirs=$ret libggz_header=ggz.h libggz_incdir=NO for i in $libggz_incdirs; do for j in $libggz_header; do echo "configure: 2379: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 libggz_incdir=$i break 2 fi done done ac_libggz_includes="$libggz_incdir" libggz_libdirs="$ac_libggz_libraries $ac_ggz_stdlib" ret="" for i in $libggz_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done libggz_libdirs=$ret test=NONE libggz_libdir=NONE for dir in $libggz_libdirs; do try="ls -1 $dir/libggz.so" if test -n "`$try 2> /dev/null`"; then libggz_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_libggz_libraries="$libggz_libdir" if test "$ac_libggz_includes" = NO || test "$ac_libggz_libraries" = NO; then ac_cv_have_libggz="have_libggz=no" ac_libggz_notfound="" else have_libggz="yes" fi fi eval "$ac_cv_have_libggz" if test "$have_libggz" != yes; then if test "x" = "xignore"; then echo "$as_me:$LINENO: result: $have_libggz (ignored)" >&5 echo "${ECHO_T}$have_libggz (ignored)" >&6 else echo "$as_me:$LINENO: result: $have_libggz" >&5 echo "${ECHO_T}$have_libggz" >&6 if test "x" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'libggz' does not seem to be installed correctly. Headers searched in: $libggz_incdirs Libraries searched in: $libggz_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'libggz' does not seem to be installed correctly. Headers searched in: $libggz_incdirs Libraries searched in: $libggz_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # perform actions given by argument 2. fi else ac_cv_have_libggz="have_libggz=yes \ ac_libggz_includes=$ac_libggz_includes ac_libggz_libraries=$ac_libggz_libraries" echo "$as_me:$LINENO: result: $have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&5 echo "${ECHO_T}$have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&6 libggz_libraries="$ac_libggz_libraries" libggz_includes="$ac_libggz_includes" LIBGGZ_INCLUDES="-isystem $libggz_includes" LIBGGZ_LDFLAGS="-L$libggz_libraries" LIB_GGZ='-lggz' # perform actions given by argument 1. fi echo "$as_me:$LINENO: checking for GGZ library: ggzmod" >&5 echo $ECHO_N "checking for GGZ library: ggzmod... $ECHO_C" >&6 ac_ggzmod_includes=NO ac_ggzmod_libraries=NO ggzmod_libraries="" ggzmod_includes="" # Check whether --with-ggzmod-dir or --without-ggzmod-dir was given. if test "${with_ggzmod_dir+set}" = set; then withval="$with_ggzmod_dir" ac_ggzmod_includes="$withval"/include ac_ggzmod_libraries="$withval"/lib fi; # Check whether --with-ggzmod-includes or --without-ggzmod-includes was given. if test "${with_ggzmod_includes+set}" = set; then withval="$with_ggzmod_includes" ac_ggzmod_includes="$withval" fi; # Check whether --with-ggzmod-libraries or --without-ggzmod-libraries was given. if test "${with_ggzmod_libraries+set}" = set; then withval="$with_ggzmod_libraries" ac_ggzmod_libraries="$withval" fi; if test "${ac_cv_have_ggzmod+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggzmod_incdirs="$ac_ggzmod_includes $ac_ggz_stdinc" ret="" for i in $ggzmod_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzmod_incdirs=$ret ggzmod_header=ggzmod.h ggzmod_incdir=NO for i in $ggzmod_incdirs; do for j in $ggzmod_header; do echo "configure: 2547: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggzmod_incdir=$i break 2 fi done done ac_ggzmod_includes="$ggzmod_incdir" ggzmod_libdirs="$ac_ggzmod_libraries $ac_ggz_stdlib" ret="" for i in $ggzmod_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzmod_libdirs=$ret test=NONE ggzmod_libdir=NONE for dir in $ggzmod_libdirs; do try="ls -1 $dir/libggzmod.so" if test -n "`$try 2> /dev/null`"; then ggzmod_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_ggzmod_libraries="$ggzmod_libdir" if test "$ac_ggzmod_includes" = NO || test "$ac_ggzmod_libraries" = NO; then ac_cv_have_ggzmod="have_ggzmod=no" ac_ggzmod_notfound="" else have_ggzmod="yes" fi fi eval "$ac_cv_have_ggzmod" if test "$have_ggzmod" != yes; then if test "xignore" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggzmod (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggzmod (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggzmod" >&5 echo "${ECHO_T}$have_ggzmod" >&6 if test "xignore" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'ggzmod' does not seem to be installed correctly. Headers searched in: $ggzmod_incdirs Libraries searched in: $ggzmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'ggzmod' does not seem to be installed correctly. Headers searched in: $ggzmod_incdirs Libraries searched in: $ggzmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # Perform actions given by argument 2. ignore fi else ac_cv_have_ggzmod="have_ggzmod=yes \ ac_ggzmod_includes=$ac_ggzmod_includes ac_ggzmod_libraries=$ac_ggzmod_libraries" echo "$as_me:$LINENO: result: $have_ggzmod (libraries $ac_ggzmod_libraries, headers $ac_ggzmod_includes)" >&5 echo "${ECHO_T}$have_ggzmod (libraries $ac_ggzmod_libraries, headers $ac_ggzmod_includes)" >&6 ggzmod_libraries="$ac_ggzmod_libraries" ggzmod_includes="$ac_ggzmod_includes" GGZMOD_INCLUDES="-isystem $ggzmod_includes" GGZMOD_LDFLAGS="-L$ggzmod_libraries" LIB_GGZMOD='-lggzmod' # Perform actions given by argument 1. "true" fi echo "$as_me:$LINENO: checking for GGZ library: ggzdmod" >&5 echo $ECHO_N "checking for GGZ library: ggzdmod... $ECHO_C" >&6 ac_ggzdmod_includes=NO ac_ggzdmod_libraries=NO ggzdmod_libraries="" ggzdmod_includes="" # Check whether --with-ggzdmod-dir or --without-ggzdmod-dir was given. if test "${with_ggzdmod_dir+set}" = set; then withval="$with_ggzdmod_dir" ac_ggzdmod_includes="$withval"/include ac_ggzdmod_libraries="$withval"/lib fi; # Check whether --with-ggzdmod-includes or --without-ggzdmod-includes was given. if test "${with_ggzdmod_includes+set}" = set; then withval="$with_ggzdmod_includes" ac_ggzdmod_includes="$withval" fi; # Check whether --with-ggzdmod-libraries or --without-ggzdmod-libraries was given. if test "${with_ggzdmod_libraries+set}" = set; then withval="$with_ggzdmod_libraries" ac_ggzdmod_libraries="$withval" fi; if test "${ac_cv_have_ggzdmod+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggzdmod_incdirs="$ac_ggzdmod_includes $ac_ggz_stdinc" ret="" for i in $ggzdmod_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzdmod_incdirs=$ret ggzdmod_header=ggzdmod.h ggzdmod_incdir=NO for i in $ggzdmod_incdirs; do for j in $ggzdmod_header; do echo "configure: 2715: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggzdmod_incdir=$i break 2 fi done done ac_ggzdmod_includes="$ggzdmod_incdir" ggzdmod_libdirs="$ac_ggzdmod_libraries $ac_ggz_stdlib" ret="" for i in $ggzdmod_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzdmod_libdirs=$ret test=NONE ggzdmod_libdir=NONE for dir in $ggzdmod_libdirs; do try="ls -1 $dir/libggzdmod.so" if test -n "`$try 2> /dev/null`"; then ggzdmod_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_ggzdmod_libraries="$ggzdmod_libdir" if test "$ac_ggzdmod_includes" = NO || test "$ac_ggzdmod_libraries" = NO; then ac_cv_have_ggzdmod="have_ggzdmod=no" ac_ggzdmod_notfound="" else have_ggzdmod="yes" fi fi eval "$ac_cv_have_ggzdmod" if test "$have_ggzdmod" != yes; then if test "xignore" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggzdmod (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggzdmod (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggzdmod" >&5 echo "${ECHO_T}$have_ggzdmod" >&6 if test "xignore" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'ggzdmod' does not seem to be installed correctly. Headers searched in: $ggzdmod_incdirs Libraries searched in: $ggzdmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'ggzdmod' does not seem to be installed correctly. Headers searched in: $ggzdmod_incdirs Libraries searched in: $ggzdmod_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # Perform actions given by argument 2. ignore fi else ac_cv_have_ggzdmod="have_ggzdmod=yes \ ac_ggzdmod_includes=$ac_ggzdmod_includes ac_ggzdmod_libraries=$ac_ggzdmod_libraries" echo "$as_me:$LINENO: result: $have_ggzdmod (libraries $ac_ggzdmod_libraries, headers $ac_ggzdmod_includes)" >&5 echo "${ECHO_T}$have_ggzdmod (libraries $ac_ggzdmod_libraries, headers $ac_ggzdmod_includes)" >&6 ggzdmod_libraries="$ac_ggzdmod_libraries" ggzdmod_includes="$ac_ggzdmod_includes" GGZDMOD_INCLUDES="-isystem $ggzdmod_includes" GGZDMOD_LDFLAGS="-L$ggzdmod_libraries" LIB_GGZDMOD='-lggzdmod' # Perform actions given by argument 1. "true" fi echo "$as_me:$LINENO: checking for GGZ library: ggzcore" >&5 echo $ECHO_N "checking for GGZ library: ggzcore... $ECHO_C" >&6 ac_ggzcore_includes=NO ac_ggzcore_libraries=NO ggzcore_libraries="" ggzcore_includes="" # Check whether --with-ggzcore-dir or --without-ggzcore-dir was given. if test "${with_ggzcore_dir+set}" = set; then withval="$with_ggzcore_dir" ac_ggzcore_includes="$withval"/include ac_ggzcore_libraries="$withval"/lib fi; # Check whether --with-ggzcore-includes or --without-ggzcore-includes was given. if test "${with_ggzcore_includes+set}" = set; then withval="$with_ggzcore_includes" ac_ggzcore_includes="$withval" fi; # Check whether --with-ggzcore-libraries or --without-ggzcore-libraries was given. if test "${with_ggzcore_libraries+set}" = set; then withval="$with_ggzcore_libraries" ac_ggzcore_libraries="$withval" fi; if test "${ac_cv_have_ggzcore+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggzcore_incdirs="$ac_ggzcore_includes $ac_ggz_stdinc" ret="" for i in $ggzcore_incdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzcore_incdirs=$ret ggzcore_header=ggzcore.h ggzcore_incdir=NO for i in $ggzcore_incdirs; do for j in $ggzcore_header; do echo "configure: 2883: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggzcore_incdir=$i break 2 fi done done ac_ggzcore_includes="$ggzcore_incdir" ggzcore_libdirs="$ac_ggzcore_libraries $ac_ggz_stdlib" ret="" for i in $ggzcore_libdirs; do add=yes for j in $ret; do if test "x$i" = "x$j"; then add=no fi done if test "x$i" = "xNO"; then add=no fi if test "x$add" = "xyes"; then ret="$ret $i" fi done ggzcore_libdirs=$ret test=NONE ggzcore_libdir=NONE for dir in $ggzcore_libdirs; do try="ls -1 $dir/libggzcore.so" if test -n "`$try 2> /dev/null`"; then ggzcore_libdir=$dir; break; else echo "tried $dir" >&5 ; fi done ac_ggzcore_libraries="$ggzcore_libdir" if test "$ac_ggzcore_includes" = NO || test "$ac_ggzcore_libraries" = NO; then ac_cv_have_ggzcore="have_ggzcore=no" ac_ggzcore_notfound="" else have_ggzcore="yes" fi fi eval "$ac_cv_have_ggzcore" if test "$have_ggzcore" != yes; then if test "xignore" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggzcore (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggzcore (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggzcore" >&5 echo "${ECHO_T}$have_ggzcore" >&6 if test "xignore" = "x"; then { echo "$as_me:$LINENO: WARNING: no The library 'ggzcore' does not seem to be installed correctly. Headers searched in: $ggzcore_incdirs Libraries searched in: $ggzcore_libdirs Please read QuickStart.GGZ in order to fix this. " >&5 echo "$as_me: WARNING: no The library 'ggzcore' does not seem to be installed correctly. Headers searched in: $ggzcore_incdirs Libraries searched in: $ggzcore_libdirs Please read QuickStart.GGZ in order to fix this. " >&2;} exit 1 fi # Perform actions given by argument 2. ignore fi else ac_cv_have_ggzcore="have_ggzcore=yes \ ac_ggzcore_includes=$ac_ggzcore_includes ac_ggzcore_libraries=$ac_ggzcore_libraries" echo "$as_me:$LINENO: result: $have_ggzcore (libraries $ac_ggzcore_libraries, headers $ac_ggzcore_includes)" >&5 echo "${ECHO_T}$have_ggzcore (libraries $ac_ggzcore_libraries, headers $ac_ggzcore_includes)" >&6 ggzcore_libraries="$ac_ggzcore_libraries" ggzcore_includes="$ac_ggzcore_includes" GGZCORE_INCLUDES="-isystem $ggzcore_includes" GGZCORE_LDFLAGS="-L$ggzcore_libraries" LIB_GGZCORE='-lggzcore' # Perform actions given by argument 1. "true" fi echo "$as_me:$LINENO: checking for GGZ configuration tool: ggz-config" >&5 echo $ECHO_N "checking for GGZ configuration tool: ggz-config... $ECHO_C" >&6 ac_ggz_config=NO ggz_config="" # Check whether --with-ggzconfig or --without-ggzconfig was given. if test "${with_ggzconfig+set}" = set; then withval="$with_ggzconfig" ac_ggz_config="$withval" fi; if test "${ac_cv_have_ggzconfig+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ggz_config_dirs="$ac_ggz_config $ac_ggz_stdbin" ggz_config_dir=NO for i in $ggz_config_dirs; do for j in ggz-config; do echo "configure: 3016: $i/$j" >&5 if test -r "$i/$j"; then echo "taking that" >&5 ggz_config_dir=$i break 2 fi done done ac_ggz_config="$ggz_config_dir" if test "$ac_ggz_config" = NO; then ac_cv_have_ggzcore="have_ggz_config=no" ac_ggz_config_notfound="" have_ggz_config="no" else have_ggz_config="yes" fi fi eval "$ac_cv_have_ggz_config" if test "$have_ggz_config" != yes; then if test "x" = "xignore"; then echo "$as_me:$LINENO: result: $have_ggz_config (intentionally ignored)" >&5 echo "${ECHO_T}$have_ggz_config (intentionally ignored)" >&6 else echo "$as_me:$LINENO: result: $have_ggz_config" >&5 echo "${ECHO_T}$have_ggz_config" >&6 if test "x" = "x"; then { { echo "$as_me:$LINENO: error: ggz-config not found. Please check your installation! " >&5 echo "$as_me: error: ggz-config not found. Please check your installation! " >&2;} { (exit 1); exit 1; }; } fi # Perform actions given by argument 2. fi else ac_cv_have_ggz_config="have_ggz_config=yes \ ac_ggz_config=$ac_ggz_config" echo "$as_me:$LINENO: result: $ac_ggz_config/ggz-config" >&5 echo "${ECHO_T}$ac_ggz_config/ggz-config" >&6 ggz_config="$ac_ggz_config" GGZ_CONFIG="${ggz_config}/ggz-config" ggzmoduleconfdir=`$GGZ_CONFIG --configdir` cat >>confdefs.h <<_ACEOF #define GGZMODULECONFDIR "${ggzmoduleconfdir}" _ACEOF ggzexecmoddir=`$GGZ_CONFIG --gamedir` cat >>confdefs.h <<_ACEOF #define GAMEDIR "${ggzexecmoddir}" _ACEOF ggzdatadir=`$GGZ_CONFIG --datadir` cat >>confdefs.h <<_ACEOF #define GGZDATADIR "${ggzdatadir}" _ACEOF packagesrcdir=`cd $srcdir && pwd` cat >>confdefs.h <<_ACEOF #define PACKAGE_SOURCE_DIR "${packagesrcdir}" _ACEOF # Perform actions given by argument 1. fi if test "x$prefix" = "xNONE"; then prefix="/usr/local" fi ac_config_files="$ac_config_files escape-sdl/module.dsc xadrez-chines/module.dsc xadrez-chines/xadrez-chines-server.dsc go/module.dsc go/goserver.dsc pyggzmod/setup.py pyggzdmod/setup.py pyggzcore/setup.py" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then we branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. cat >confdef2opt.sed <<\_ACEOF t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g t quote s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g t quote d : quote s,[ `~#$^&*(){}\\|;'"<>?],\\&,g s,\[,\\&,g s,\],\\&,g s,\$,$$,g p _ACEOF # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within # single-quotes doesn't work because, if this script is created in a # platform that uses two characters for line-breaks (e.g., DOS), tr # would break. ac_LF_and_DOT=`echo; echo .` DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` rm -f confdef2opt.sed ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by GGZ python package $as_me 0.0.9pre, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ GGZ python package config.status 0.0.9pre configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "escape-sdl/module.dsc" ) CONFIG_FILES="$CONFIG_FILES escape-sdl/module.dsc" ;; "xadrez-chines/module.dsc" ) CONFIG_FILES="$CONFIG_FILES xadrez-chines/module.dsc" ;; "xadrez-chines/xadrez-chines-server.dsc" ) CONFIG_FILES="$CONFIG_FILES xadrez-chines/xadrez-chines-server.dsc" ;; "go/module.dsc" ) CONFIG_FILES="$CONFIG_FILES go/module.dsc" ;; "go/goserver.dsc" ) CONFIG_FILES="$CONFIG_FILES go/goserver.dsc" ;; "pyggzmod/setup.py" ) CONFIG_FILES="$CONFIG_FILES pyggzmod/setup.py" ;; "pyggzdmod/setup.py" ) CONFIG_FILES="$CONFIG_FILES pyggzdmod/setup.py" ;; "pyggzcore/setup.py" ) CONFIG_FILES="$CONFIG_FILES pyggzcore/setup.py" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@libggz_libraries@,$libggz_libraries,;t t s,@libggz_includes@,$libggz_includes,;t t s,@LIBGGZ_INCLUDES@,$LIBGGZ_INCLUDES,;t t s,@LIBGGZ_LDFLAGS@,$LIBGGZ_LDFLAGS,;t t s,@LIB_GGZ@,$LIB_GGZ,;t t s,@ggzmod_libraries@,$ggzmod_libraries,;t t s,@ggzmod_includes@,$ggzmod_includes,;t t s,@GGZMOD_INCLUDES@,$GGZMOD_INCLUDES,;t t s,@GGZMOD_LDFLAGS@,$GGZMOD_LDFLAGS,;t t s,@LIB_GGZMOD@,$LIB_GGZMOD,;t t s,@ggzdmod_libraries@,$ggzdmod_libraries,;t t s,@ggzdmod_includes@,$ggzdmod_includes,;t t s,@GGZDMOD_INCLUDES@,$GGZDMOD_INCLUDES,;t t s,@GGZDMOD_LDFLAGS@,$GGZDMOD_LDFLAGS,;t t s,@LIB_GGZDMOD@,$LIB_GGZDMOD,;t t s,@ggzcore_libraries@,$ggzcore_libraries,;t t s,@ggzcore_includes@,$ggzcore_includes,;t t s,@GGZCORE_INCLUDES@,$GGZCORE_INCLUDES,;t t s,@GGZCORE_LDFLAGS@,$GGZCORE_LDFLAGS,;t t s,@LIB_GGZCORE@,$LIB_GGZCORE,;t t s,@ggz_config@,$ggz_config,;t t s,@GGZ_CONFIG@,$GGZ_CONFIG,;t t s,@ggzmoduleconfdir@,$ggzmoduleconfdir,;t t s,@ggzexecmoddir@,$ggzexecmoddir,;t t s,@ggzdatadir@,$ggzdatadir,;t t s,@packagesrcdir@,$packagesrcdir,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi echo "" echo "Configured python stuff. Type 'make' to compile it, followed by a 'make install'." echo ""